blob: 4e69d0b78446adf9c5565870d357312d3b8d8692 [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
698OPTIMIZE_OPTION
699EXTRA_OPTIONS
700BINUTILS_INCDIR
701ENABLE_LLVMC_DYNAMIC
702ENABLE_LLVMC_DYNAMIC_PLUGINS
703CXX
704CXXFLAGS
705ac_ct_CXX
706NM
707ifGNUmake
708LN_S
709CMP
710CP
711DATE
712FIND
713MKDIR
714MV
715RANLIB
716AR
717RM
718SED
719TAR
720BINPWD
721GRAPHVIZ
722DOT
723FDP
724NEATO
725TWOPI
726CIRCO
727GV
728DOTTY
729PERL
730HAVE_PERL
731INSTALL_PROGRAM
732INSTALL_SCRIPT
733INSTALL_DATA
734BZIP2
735DOXYGEN
736GROFF
737GZIP
738POD2HTML
739POD2MAN
740RUNTEST
741TCLSH
742ZIP
743OCAMLC
744OCAMLOPT
745OCAMLDEP
746OCAMLDOC
747GAS
748INSTALL_LTDL_TRUE
749INSTALL_LTDL_FALSE
750CONVENIENCE_LTDL_TRUE
751CONVENIENCE_LTDL_FALSE
752LIBADD_DL
753LLVMGCCCOMMAND
754LLVMGXXCOMMAND
755LLVMGCC
756LLVMGXX
757NO_VARIADIC_MACROS
758NO_MISSING_FIELD_INITIALIZERS
759USE_UDIS86
760USE_OPROFILE
761HAVE_PTHREAD
762HUGE_VAL_SANITY
763MMAP_FILE
764LLVMCC1
765LLVMCC1PLUS
766LLVMGCCDIR
767LLVMGCCLIBEXEC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000768LLVMGCC_LANGS
769SHLIBEXT
770LLVM_PREFIX
771LLVM_BINDIR
772LLVM_LIBDIR
773LLVM_DATADIR
774LLVM_DOCSDIR
775LLVM_ETCDIR
776LLVM_INCLUDEDIR
777LLVM_INFODIR
778LLVM_MANDIR
779LLVM_CONFIGTIME
780BINDINGS_TO_BUILD
781ALL_BINDINGS
782OCAML_LIBDIR
783ENABLE_VISIBILITY_INLINES_HIDDEN
784RPATH
785RDYNAMIC
786LIBOBJS
787LTLIBOBJS'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000788ac_subst_files=''
789 ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795CPPFLAGS
796CPP
797CXX
798CXXFLAGS
Edwin Törökc27310c2010-01-26 08:50:50 +0000799CCC'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000800ac_subdirs_all='projects/sample
801projects/privbracket
802projects/llvm-stacker
803projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000804projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000805projects/llvm-reopt
806projects/llvm-gcc
807projects/llvm-java
808projects/llvm-tv
809projects/llvm-poolalloc
810projects/poolalloc
811projects/llvm-kernel'
812
813# Initialize some variables set by options.
814ac_init_help=
815ac_init_version=false
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
858
859ac_prev=
860ac_dashdash=
861for ac_option
862do
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
866 ac_prev=
867 continue
868 fi
869
870 case $ac_option in
871 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *) ac_optarg=yes ;;
873 esac
874
875 # Accept the important Cygnus configure options, so we can diagnose typos.
876
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
885
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
900
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
905
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
913 -disable-* | --disable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000914 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000915 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000916 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
917 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918 { (exit 1); exit 1; }; }
919 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
920 eval enable_$ac_feature=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000933 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000934 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000940
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
960
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
965
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
971
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
988
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
995
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1020
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1024
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1038
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1045
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1052
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1069
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1128
1129 -with-* | --with-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001130 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001131 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133 { echo "$as_me: error: invalid package name: $ac_package" >&2
1134 { (exit 1); exit 1; }; }
1135 ac_package=`echo $ac_package| sed 's/-/_/g'`
1136 eval with_$ac_package=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001137
1138 -without-* | --without-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001139 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001140 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package | sed 's/-/_/g'`
1145 eval with_$ac_package=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001165 -*) { echo "$as_me: error: unrecognized option: $ac_option
1166Try \`$0 --help' for more information." >&2
1167 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001173 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1174 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1175 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001181 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001183 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001184 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1185 ;;
1186
1187 esac
1188done
1189
1190if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001192 { echo "$as_me: error: missing argument to $ac_option" >&2
1193 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001194fi
1195
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001196# Be sure to have absolute directory names.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001197for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
1201do
1202 eval ac_val=\$$ac_var
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001207 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1208 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001209done
1210
1211# There might be people who depend on the old broken behavior: `$host'
1212# used to hold the argument of --host etc.
1213# FIXME: To remove some day.
1214build=$build_alias
1215host=$host_alias
1216target=$target_alias
1217
1218# FIXME: To remove some day.
1219if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001222 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001223 If a cross compiler is detected then cross compile mode will be used." >&2
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1226 fi
1227fi
1228
1229ac_tool_prefix=
1230test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232test "$silent" = yes && exec 6>/dev/null
1233
1234
1235ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236ac_ls_di=`ls -di .` &&
1237ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001238 { echo "$as_me: error: Working directory cannot be determined" >&2
1239 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001240test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001241 { echo "$as_me: error: pwd does not report name of working directory" >&2
1242 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001243
1244
1245# Find the source files, if location was not specified.
1246if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001249 ac_confdir=`$as_dirname -- "$0" ||
1250$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$0" : 'X\(//\)[^/]' \| \
1252 X"$0" : 'X\(//\)$' \| \
1253 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1254echo X"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\).*/{
1268 s//\1/
1269 q
1270 }
1271 s/.*/./; q'`
1272 srcdir=$ac_confdir
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 srcdir=..
1275 fi
1276else
1277 ac_srcdir_defaulted=no
1278fi
1279if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001281 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1282 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001283fi
1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285ac_abs_confdir=`(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001286 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1287 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001288 pwd)`
1289# When building in place, set srcdir=.
1290if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1292fi
1293# Remove unnecessary trailing slashes from srcdir.
1294# Double slashes in file names in object file debugging info
1295# mess up M-x gdb in Emacs.
1296case $srcdir in
1297*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298esac
1299for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304done
1305
1306#
1307# Report the --help message.
1308#
1309if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001313\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001314
1315Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318VAR=VALUE. See below for descriptions of some of the useful variables.
1319
1320Defaults for the options are specified in brackets.
1321
1322Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332
1333Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001335 [$ac_default_prefix]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001337 [PREFIX]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001338
1339By default, \`make install' will install all the files in
1340\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342for instance \`--prefix=\$HOME'.
1343
1344For better control, use the options below.
1345
1346Fine tuning of the installation directories:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001366_ACEOF
1367
1368 cat <<\_ACEOF
1369
1370System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374_ACEOF
1375fi
1376
1377if test -n "$ac_init_help"; then
1378 case $ac_init_help in
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001379 short | recursive ) echo "Configuration of llvm 2.7svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001380 esac
1381 cat <<\_ACEOF
1382
1383Optional Features:
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001386 --enable-optimized Compile with optimizations enabled (default is NO)
1387 --enable-profiling Compile with profiling enabled (default is NO)
1388 --enable-assertions Compile with assertion checks enabled (default is
1389 YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001390 --enable-expensive-checks
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001391 Compile with expensive debug checks enabled (default
1392 is NO)
1393 --enable-debug-runtime Build runtime libs with debug symbols (default is
1394 NO)
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00001395 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1396 optimization is on and YES if it's off)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001397 --enable-jit Enable Just In Time Compiling (default is YES)
1398 --enable-doxygen Build doxygen documentation (default is NO)
1399 --enable-threads Use threads if available (default is YES)
1400 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001401 is YES)
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00001402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
1404 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1405 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1406 and cpp (default=all)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001407 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1408 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001409 --enable-bindings Build specific language bindings:
1410 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskin260af332010-02-09 23:03:44 +00001411 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00001412 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1413 Win32)
1414 --enable-llvmc-dynamic-plugins
1415 Enable dynamic LLVMC plugins (default is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001416 --enable-ltdl-install install libltdl
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001417
1418Optional Packages:
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1422 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001423 --with-llvmgcc Specify location of llvm-gcc driver (default
1424 searches PATH)
1425 --with-llvmgxx Specify location of llvm-g++ driver (default
1426 searches PATH)
Daniel Dunbarca58fd82009-11-04 04:32:50 +00001427 --with-optimize-option Select the compiler options to use for optimized
1428 builds
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001429 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001430 --with-ocaml-libdir Specify install location for ocaml bindings (default
1431 is stdlib)
Rafael Espindola354924d2009-11-12 05:46:09 +00001432 --with-c-include-dirs Colon separated list of directories clang will
1433 search for headers
Rafael Espindola3890bf02009-11-16 19:46:55 +00001434 --with-cxx-include-root Directory with the libstdc++ headers.
1435 --with-cxx-include-arch Architecture of the libstdc++ headers.
1436 --with-cxx-include-32bit-dir
1437 32 bit multilib dir.
1438 --with-cxx-include-64bit-dir
1439 64 bit multilib directory.
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001440 --with-binutils-include Specify path to binutils/include/ containing
1441 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001442 --with-tclinclude directory where tcl headers are
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001443 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +00001444 --with-oprofile=<prefix>
1445 Tell OProfile >= 0.9.4 how to symbolize JIT output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001446
1447Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001452 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001453 you have headers in a nonstandard directory <include dir>
1454 CPP C preprocessor
1455 CXX C++ compiler command
1456 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001457
1458Use these variables to override the choices made by `configure' or to help
1459it to find libraries and programs with nonstandard names/locations.
1460
1461Report bugs to <llvmbugs@cs.uiuc.edu>.
1462_ACEOF
1463ac_status=$?
1464fi
1465
1466if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001469 test -d "$ac_dir" || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001470 ac_builddir=.
1471
1472case "$ac_dir" in
1473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001475 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001476 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001477 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 esac ;;
1482esac
1483ac_abs_top_builddir=$ac_pwd
1484ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485# for backward compatibility:
1486ac_top_builddir=$ac_top_build_prefix
1487
1488case $srcdir in
1489 .) # We are building in place.
1490 ac_srcdir=.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1497 *) # Relative name.
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501esac
1502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001513 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1517fi
1518
1519test -n "$ac_init_help" && exit $ac_status
1520if $ac_init_version; then
1521 cat <<\_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001522llvm configure 2.7svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001523generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001524
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001525Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15262002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001527This configure script is free software; the Free Software Foundation
1528gives unlimited permission to copy, distribute and modify it.
1529
Tanya Lattner916a91122009-08-22 21:01:26 +00001530Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001531_ACEOF
1532 exit
1533fi
1534cat >config.log <<_ACEOF
1535This file contains any messages produced by compilers while
1536running configure, to aid debugging if configure makes a mistake.
1537
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001538It was created by llvm $as_me 2.7svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001539generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001540
1541 $ $0 $@
1542
1543_ACEOF
1544exec 5>>config.log
1545{
1546cat <<_ASUNAME
1547## --------- ##
1548## Platform. ##
1549## --------- ##
1550
1551hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1552uname -m = `(uname -m) 2>/dev/null || echo unknown`
1553uname -r = `(uname -r) 2>/dev/null || echo unknown`
1554uname -s = `(uname -s) 2>/dev/null || echo unknown`
1555uname -v = `(uname -v) 2>/dev/null || echo unknown`
1556
1557/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1558/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1559
1560/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1561/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1562/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1563/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1564/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1565/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1566/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1567
1568_ASUNAME
1569
1570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571for as_dir in $PATH
1572do
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001575 echo "PATH: $as_dir"
1576done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001577IFS=$as_save_IFS
1578
1579} >&5
1580
1581cat >&5 <<_ACEOF
1582
1583
1584## ----------- ##
1585## Core tests. ##
1586## ----------- ##
1587
1588_ACEOF
1589
1590
1591# Keep a trace of the command line.
1592# Strip out --no-create and --no-recursion so they do not pile up.
1593# Strip out --silent because we don't want to record it for future runs.
1594# Also quote any args containing shell meta-characters.
1595# Make two passes to allow for proper duplicate-argument suppression.
1596ac_configure_args=
1597ac_configure_args0=
1598ac_configure_args1=
1599ac_must_keep_next=false
1600for ac_pass in 1 2
1601do
1602 for ac_arg
1603 do
1604 case $ac_arg in
1605 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1607 | -silent | --silent | --silen | --sile | --sil)
1608 continue ;;
1609 *\'*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001610 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001611 esac
1612 case $ac_pass in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001613 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001614 2)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001615 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001616 if test $ac_must_keep_next = true; then
1617 ac_must_keep_next=false # Got value, back to normal.
1618 else
1619 case $ac_arg in
1620 *=* | --config-cache | -C | -disable-* | --disable-* \
1621 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1622 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1623 | -with-* | --with-* | -without-* | --without-* | --x)
1624 case "$ac_configure_args0 " in
1625 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1626 esac
1627 ;;
1628 -* ) ac_must_keep_next=true ;;
1629 esac
1630 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001631 ac_configure_args="$ac_configure_args '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001632 ;;
1633 esac
1634 done
1635done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001636$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1637$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 +00001638
1639# When interrupted or exit'd, cleanup temporary files, and complete
1640# config.log. We remove comments because anyway the quotes in there
1641# would cause problems or look ugly.
1642# WARNING: Use '\'' to represent an apostrophe within the trap.
1643# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1644trap 'exit_status=$?
1645 # Save into config.log some information that might help in debugging.
1646 {
1647 echo
1648
1649 cat <<\_ASBOX
1650## ---------------- ##
1651## Cache variables. ##
1652## ---------------- ##
1653_ASBOX
1654 echo
1655 # The following way of writing the cache mishandles newlines in values,
1656(
1657 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1658 eval ac_val=\$$ac_var
1659 case $ac_val in #(
1660 *${as_nl}*)
1661 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001662 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1663echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001664 esac
1665 case $ac_var in #(
1666 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001667 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001668 esac ;;
1669 esac
1670 done
1671 (set) 2>&1 |
1672 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1673 *${as_nl}ac_space=\ *)
1674 sed -n \
1675 "s/'\''/'\''\\\\'\'''\''/g;
1676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1677 ;; #(
1678 *)
1679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1680 ;;
1681 esac |
1682 sort
1683)
1684 echo
1685
1686 cat <<\_ASBOX
1687## ----------------- ##
1688## Output variables. ##
1689## ----------------- ##
1690_ASBOX
1691 echo
1692 for ac_var in $ac_subst_vars
1693 do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001696 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001697 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001698 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001699 done | sort
1700 echo
1701
1702 if test -n "$ac_subst_files"; then
1703 cat <<\_ASBOX
1704## ------------------- ##
1705## File substitutions. ##
1706## ------------------- ##
1707_ASBOX
1708 echo
1709 for ac_var in $ac_subst_files
1710 do
1711 eval ac_val=\$$ac_var
1712 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001713 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001714 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001715 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001716 done | sort
1717 echo
1718 fi
1719
1720 if test -s confdefs.h; then
1721 cat <<\_ASBOX
1722## ----------- ##
1723## confdefs.h. ##
1724## ----------- ##
1725_ASBOX
1726 echo
1727 cat confdefs.h
1728 echo
1729 fi
1730 test "$ac_signal" != 0 &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001731 echo "$as_me: caught signal $ac_signal"
1732 echo "$as_me: exit $exit_status"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001733 } >&5
1734 rm -f core *.core core.conftest.* &&
1735 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1736 exit $exit_status
1737' 0
1738for ac_signal in 1 2 13 15; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001739 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001740done
1741ac_signal=0
1742
1743# confdefs.h avoids OS command line length limits that DEFS can exceed.
1744rm -f -r conftest* confdefs.h
1745
1746# Predefined preprocessor variables.
1747
1748cat >>confdefs.h <<_ACEOF
1749#define PACKAGE_NAME "$PACKAGE_NAME"
1750_ACEOF
1751
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001752
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001753cat >>confdefs.h <<_ACEOF
1754#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1755_ACEOF
1756
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001757
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001758cat >>confdefs.h <<_ACEOF
1759#define PACKAGE_VERSION "$PACKAGE_VERSION"
1760_ACEOF
1761
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001762
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_STRING "$PACKAGE_STRING"
1765_ACEOF
1766
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001767
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1770_ACEOF
1771
1772
1773# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001774# Prefer explicitly selected file to automatically selected ones.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001775if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001776 set x "$CONFIG_SITE"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001777elif test "x$prefix" != xNONE; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001778 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001779else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001780 set x "$ac_default_prefix/share/config.site" \
1781 "$ac_default_prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001782fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001783shift
1784for ac_site_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001785do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001786 if test -r "$ac_site_file"; then
1787 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1788echo "$as_me: loading site script $ac_site_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001789 sed 's/^/| /' "$ac_site_file" >&5
1790 . "$ac_site_file"
1791 fi
1792done
1793
1794if test -r "$cache_file"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001795 # Some versions of bash will fail to source /dev/null (special
1796 # files actually), so we avoid doing that.
1797 if test -f "$cache_file"; then
1798 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1799echo "$as_me: loading cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001800 case $cache_file in
1801 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1802 *) . "./$cache_file";;
1803 esac
1804 fi
1805else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001806 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1807echo "$as_me: creating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001808 >$cache_file
1809fi
1810
1811# Check that the precious variables saved in the cache have kept the same
1812# value.
1813ac_cache_corrupted=false
1814for ac_var in $ac_precious_vars; do
1815 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1816 eval ac_new_set=\$ac_env_${ac_var}_set
1817 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1818 eval ac_new_val=\$ac_env_${ac_var}_value
1819 case $ac_old_set,$ac_new_set in
1820 set,)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001821 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1822echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001823 ac_cache_corrupted=: ;;
1824 ,set)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001825 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1826echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001827 ac_cache_corrupted=: ;;
1828 ,);;
1829 *)
1830 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001831 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1832echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1833 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1834echo "$as_me: former value: $ac_old_val" >&2;}
1835 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1836echo "$as_me: current value: $ac_new_val" >&2;}
1837 ac_cache_corrupted=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001838 fi;;
1839 esac
1840 # Pass precious variables to config.status.
1841 if test "$ac_new_set" = set; then
1842 case $ac_new_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001843 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001844 *) ac_arg=$ac_var=$ac_new_val ;;
1845 esac
1846 case " $ac_configure_args " in
1847 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001848 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001849 esac
1850 fi
1851done
1852if $ac_cache_corrupted; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001853 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1854echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1855 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1856echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1857 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001858fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001883
1884ac_ext=c
1885ac_cpp='$CPP $CPPFLAGS'
1886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1888ac_compiler_gnu=$ac_cv_c_compiler_gnu
1889
1890
1891
Tanya Lattner916a91122009-08-22 21:01:26 +00001892LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001893
1894
1895
1896
1897
1898
1899
1900ac_aux_dir=
1901for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001902 if test -f "$ac_dir/install-sh"; then
1903 ac_aux_dir=$ac_dir
1904 ac_install_sh="$ac_aux_dir/install-sh -c"
1905 break
1906 elif test -f "$ac_dir/install.sh"; then
1907 ac_aux_dir=$ac_dir
1908 ac_install_sh="$ac_aux_dir/install.sh -c"
1909 break
1910 elif test -f "$ac_dir/shtool"; then
1911 ac_aux_dir=$ac_dir
1912 ac_install_sh="$ac_aux_dir/shtool install -c"
1913 break
1914 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001915done
1916if test -z "$ac_aux_dir"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001917 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1918echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1919 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001920fi
1921
1922# These three variables are undocumented and unsupported,
1923# and are intended to be withdrawn in a future Autoconf release.
1924# They can cause serious problems if a builder's source tree is in a directory
1925# whose full name contains unusual characters.
1926ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1927ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1928ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1929
1930
1931
1932if test ${srcdir} != "." ; then
1933 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001934 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1935echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1936 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001937 fi
1938fi
1939
1940for i in `ls ${srcdir}/projects`
1941do
1942 if test -d ${srcdir}/projects/${i} ; then
1943 case ${i} in
1944 CVS) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001945 sample) subdirs="$subdirs projects/sample"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001946 ;;
1947 privbracket) subdirs="$subdirs projects/privbracket"
1948 ;;
1949 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1950 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00001951 # llvm-test is the old name of the test-suite, kept here for backwards
1952 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001953 llvm-test) subdirs="$subdirs projects/llvm-test"
1954 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00001955 test-suite) subdirs="$subdirs projects/test-suite"
1956 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001957 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1958;;
1959 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1960 ;;
1961 llvm-java) subdirs="$subdirs projects/llvm-java"
1962 ;;
1963 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1964 ;;
1965 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1966 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00001967 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001968 ;;
1969 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1970 ;;
1971 *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001972 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1973echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001974 ;;
1975 esac
1976 fi
1977done
1978
1979
1980# Make sure we can run config.sub.
1981$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001982 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1983echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1984 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001985
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001986{ echo "$as_me:$LINENO: checking build system type" >&5
1987echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1988if test "${ac_cv_build+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001990else
1991 ac_build_alias=$build_alias
1992test "x$ac_build_alias" = x &&
1993 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1994test "x$ac_build_alias" = x &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001995 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1996echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1997 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001998ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001999 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2000echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2001 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002002
2003fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002004{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2005echo "${ECHO_T}$ac_cv_build" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002006case $ac_cv_build in
2007*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002008*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2009echo "$as_me: error: invalid value of canonical build" >&2;}
2010 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002011esac
2012build=$ac_cv_build
2013ac_save_IFS=$IFS; IFS='-'
2014set x $ac_cv_build
2015shift
2016build_cpu=$1
2017build_vendor=$2
2018shift; shift
2019# Remember, the first character of IFS is used to create $*,
2020# except with old shells:
2021build_os=$*
2022IFS=$ac_save_IFS
2023case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2024
2025
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002026{ echo "$as_me:$LINENO: checking host system type" >&5
2027echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2028if test "${ac_cv_host+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002030else
2031 if test "x$host_alias" = x; then
2032 ac_cv_host=$ac_cv_build
2033else
2034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2036echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002038fi
2039
2040fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002041{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2042echo "${ECHO_T}$ac_cv_host" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002043case $ac_cv_host in
2044*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002045*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2046echo "$as_me: error: invalid value of canonical host" >&2;}
2047 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002048esac
2049host=$ac_cv_host
2050ac_save_IFS=$IFS; IFS='-'
2051set x $ac_cv_host
2052shift
2053host_cpu=$1
2054host_vendor=$2
2055shift; shift
2056# Remember, the first character of IFS is used to create $*,
2057# except with old shells:
2058host_os=$*
2059IFS=$ac_save_IFS
2060case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2061
2062
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002063{ echo "$as_me:$LINENO: checking target system type" >&5
2064echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2065if test "${ac_cv_target+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002067else
2068 if test "x$target_alias" = x; then
2069 ac_cv_target=$ac_cv_host
2070else
2071 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2073echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002075fi
2076
2077fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002078{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2079echo "${ECHO_T}$ac_cv_target" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002080case $ac_cv_target in
2081*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002082*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2083echo "$as_me: error: invalid value of canonical target" >&2;}
2084 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002085esac
2086target=$ac_cv_target
2087ac_save_IFS=$IFS; IFS='-'
2088set x $ac_cv_target
2089shift
2090target_cpu=$1
2091target_vendor=$2
2092shift; shift
2093# Remember, the first character of IFS is used to create $*,
2094# except with old shells:
2095target_os=$*
2096IFS=$ac_save_IFS
2097case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2098
2099
2100# The aliases save the names the user supplied, while $host etc.
2101# will get canonicalized.
2102test -n "$target_alias" &&
2103 test "$program_prefix$program_suffix$program_transform_name" = \
2104 NONENONEs,x,x, &&
2105 program_prefix=${target_alias}-
2106
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002107{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2108echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2109if test "${llvm_cv_os_type+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002111else
2112 case $host in
2113 *-*-aix*)
2114 llvm_cv_link_all_option="-Wl,--whole-archive"
2115 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2116 llvm_cv_os_type="AIX"
2117 llvm_cv_platform_type="Unix" ;;
2118 *-*-irix*)
2119 llvm_cv_link_all_option="-Wl,--whole-archive"
2120 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2121 llvm_cv_os_type="IRIX"
2122 llvm_cv_platform_type="Unix" ;;
2123 *-*-cygwin*)
2124 llvm_cv_link_all_option="-Wl,--whole-archive"
2125 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2126 llvm_cv_os_type="Cygwin"
2127 llvm_cv_platform_type="Unix" ;;
2128 *-*-darwin*)
2129 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002130 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002131 llvm_cv_os_type="Darwin"
2132 llvm_cv_platform_type="Unix" ;;
2133 *-*-freebsd*)
2134 llvm_cv_link_all_option="-Wl,--whole-archive"
2135 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2136 llvm_cv_os_type="FreeBSD"
2137 llvm_cv_platform_type="Unix" ;;
2138 *-*-openbsd*)
2139 llvm_cv_link_all_option="-Wl,--whole-archive"
2140 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2141 llvm_cv_os_type="OpenBSD"
2142 llvm_cv_platform_type="Unix" ;;
2143 *-*-netbsd*)
2144 llvm_cv_link_all_option="-Wl,--whole-archive"
2145 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2146 llvm_cv_os_type="NetBSD"
2147 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002148 *-*-dragonfly*)
2149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151 llvm_cv_os_type="DragonFly"
2152 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002153 *-*-hpux*)
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="HP-UX"
2157 llvm_cv_platform_type="Unix" ;;
2158 *-*-interix*)
2159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161 llvm_cv_os_type="Interix"
2162 llvm_cv_platform_type="Unix" ;;
2163 *-*-linux*)
2164 llvm_cv_link_all_option="-Wl,--whole-archive"
2165 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2166 llvm_cv_os_type="Linux"
2167 llvm_cv_platform_type="Unix" ;;
2168 *-*-solaris*)
2169 llvm_cv_link_all_option="-Wl,-z,allextract"
2170 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2171 llvm_cv_os_type="SunOS"
2172 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002173 *-*-auroraux*)
2174 llvm_cv_link_all_option="-Wl,-z,allextract"
2175 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2176 llvm_cv_os_type="AuroraUX"
2177 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002178 *-*-win32*)
2179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2181 llvm_cv_os_type="Win32"
2182 llvm_cv_platform_type="Win32" ;;
2183 *-*-mingw*)
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="MingW"
2187 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002188 *-*-haiku*)
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="Haiku"
2192 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002193 *-unknown-eabi*)
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="Freestanding"
2197 llvm_cv_platform_type="Unix" ;;
2198 *-unknown-elf*)
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="Freestanding"
2202 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002203 *)
2204 llvm_cv_link_all_option=""
2205 llvm_cv_no_link_all_option=""
2206 llvm_cv_os_type="Unknown"
2207 llvm_cv_platform_type="Unknown" ;;
2208esac
2209fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002210{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2211echo "${ECHO_T}$llvm_cv_os_type" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002212
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002213{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2214echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2215if test "${llvm_cv_target_os_type+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002217else
2218 case $target in
2219 *-*-aix*)
2220 llvm_cv_target_os_type="AIX" ;;
2221 *-*-irix*)
2222 llvm_cv_target_os_type="IRIX" ;;
2223 *-*-cygwin*)
2224 llvm_cv_target_os_type="Cygwin" ;;
2225 *-*-darwin*)
2226 llvm_cv_target_os_type="Darwin" ;;
2227 *-*-freebsd*)
2228 llvm_cv_target_os_type="FreeBSD" ;;
2229 *-*-openbsd*)
2230 llvm_cv_target_os_type="OpenBSD" ;;
2231 *-*-netbsd*)
2232 llvm_cv_target_os_type="NetBSD" ;;
2233 *-*-dragonfly*)
2234 llvm_cv_target_os_type="DragonFly" ;;
2235 *-*-hpux*)
2236 llvm_cv_target_os_type="HP-UX" ;;
2237 *-*-interix*)
2238 llvm_cv_target_os_type="Interix" ;;
2239 *-*-linux*)
2240 llvm_cv_target_os_type="Linux" ;;
2241 *-*-solaris*)
2242 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002243 *-*-auroraux*)
2244 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002245 *-*-win32*)
2246 llvm_cv_target_os_type="Win32" ;;
2247 *-*-mingw*)
2248 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002249 *-*-haiku*)
2250 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002251 *-unknown-eabi*)
2252 llvm_cv_target_os_type="Freestanding" ;;
2253 *)
2254 llvm_cv_target_os_type="Unknown" ;;
2255esac
2256fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002257{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2258echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002259
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002260if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002261 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2262echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2263 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002264fi
2265
2266OS=$llvm_cv_os_type
2267
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002268HOST_OS=$llvm_cv_os_type
2269
2270TARGET_OS=$llvm_cv_target_os_type
2271
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002272
2273LINKALL=$llvm_cv_link_all_option
2274
2275NOLINKALL=$llvm_cv_no_link_all_option
2276
2277
2278case $llvm_cv_platform_type in
2279 Unix)
2280
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002281cat >>confdefs.h <<\_ACEOF
2282#define LLVM_ON_UNIX 1
2283_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002284
2285 LLVM_ON_UNIX=1
2286
2287 LLVM_ON_WIN32=0
2288
2289 ;;
2290 Win32)
2291
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002292cat >>confdefs.h <<\_ACEOF
2293#define LLVM_ON_WIN32 1
2294_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002295
2296 LLVM_ON_UNIX=0
2297
2298 LLVM_ON_WIN32=1
2299
2300 ;;
2301esac
2302
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002303{ echo "$as_me:$LINENO: checking target architecture" >&5
2304echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2305if test "${llvm_cv_target_arch+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002307else
2308 case $target in
2309 i?86-*) llvm_cv_target_arch="x86" ;;
2310 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2311 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2312 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2313 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002314 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002315 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002316 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002317 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002318 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00002319 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00002320 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002321 *) llvm_cv_target_arch="Unknown" ;;
2322esac
2323fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002324{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2325echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002326
2327if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002328 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2329echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002330fi
2331
Nick Lewyckyd2813d02009-09-29 05:48:51 +00002332# Determine the LLVM native architecture for the target
2333case "$llvm_cv_target_arch" in
2334 x86) LLVM_NATIVE_ARCH="X86" ;;
2335 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2336 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2337esac
2338
2339ARCH=$llvm_cv_target_arch
2340
2341
2342ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002343ac_cpp='$CPP $CPPFLAGS'
2344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2349set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352if test "${ac_cv_prog_CC+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002354else
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2357else
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 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 +00002365 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002367 break 2
2368 fi
2369done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002370done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002371IFS=$as_save_IFS
2372
2373fi
2374fi
2375CC=$ac_cv_prog_CC
2376if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002377 { echo "$as_me:$LINENO: result: $CC" >&5
2378echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002379else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002380 { echo "$as_me:$LINENO: result: no" >&5
2381echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002382fi
2383
2384
2385fi
2386if test -z "$ac_cv_prog_CC"; then
2387 ac_ct_CC=$CC
2388 # Extract the first word of "gcc", so it can be a program name with args.
2389set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002394else
2395 if test -n "$ac_ct_CC"; then
2396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2397else
2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 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 +00002405 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002407 break 2
2408 fi
2409done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002410done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002411IFS=$as_save_IFS
2412
2413fi
2414fi
2415ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002417 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2418echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002419else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002420 { echo "$as_me:$LINENO: result: no" >&5
2421echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002422fi
2423
2424 if test "x$ac_ct_CC" = x; then
2425 CC=""
2426 else
2427 case $cross_compiling:$ac_tool_warned in
2428yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002429{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430whose name does not start with the host triplet. If you think this
2431configuration is useful to you, please write to autoconf@gnu.org." >&5
2432echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433whose name does not start with the host triplet. If you think this
2434configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002435ac_tool_warned=yes ;;
2436esac
2437 CC=$ac_ct_CC
2438 fi
2439else
2440 CC="$ac_cv_prog_CC"
2441fi
2442
2443if test -z "$CC"; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2446set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449if test "${ac_cv_prog_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002451else
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2454else
2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 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 +00002462 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002464 break 2
2465 fi
2466done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002467done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002468IFS=$as_save_IFS
2469
2470fi
2471fi
2472CC=$ac_cv_prog_CC
2473if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002474 { echo "$as_me:$LINENO: result: $CC" >&5
2475echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002476else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002477 { echo "$as_me:$LINENO: result: no" >&5
2478echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002479fi
2480
2481
2482 fi
2483fi
2484if test -z "$CC"; then
2485 # Extract the first word of "cc", so it can be a program name with args.
2486set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489if test "${ac_cv_prog_CC+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002491else
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2494else
2495 ac_prog_rejected=no
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 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 +00002503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2504 ac_prog_rejected=yes
2505 continue
2506 fi
2507 ac_cv_prog_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002509 break 2
2510 fi
2511done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002512done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002513IFS=$as_save_IFS
2514
2515if test $ac_prog_rejected = yes; then
2516 # We found a bogon in the path, so make sure we never use it.
2517 set dummy $ac_cv_prog_CC
2518 shift
2519 if test $# != 0; then
2520 # We chose a different compiler from the bogus one.
2521 # However, it has the same basename, so the bogon will be chosen
2522 # first if we set CC to just the basename; use the full file name.
2523 shift
2524 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2525 fi
2526fi
2527fi
2528fi
2529CC=$ac_cv_prog_CC
2530if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002531 { echo "$as_me:$LINENO: result: $CC" >&5
2532echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002533else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002534 { echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002536fi
2537
2538
2539fi
2540if test -z "$CC"; then
2541 if test -n "$ac_tool_prefix"; then
2542 for ac_prog in cl.exe
2543 do
2544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2545set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2548if test "${ac_cv_prog_CC+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002550else
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2553else
2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 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 +00002561 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002563 break 2
2564 fi
2565done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002566done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002567IFS=$as_save_IFS
2568
2569fi
2570fi
2571CC=$ac_cv_prog_CC
2572if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002573 { echo "$as_me:$LINENO: result: $CC" >&5
2574echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002575else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002576 { echo "$as_me:$LINENO: result: no" >&5
2577echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002578fi
2579
2580
2581 test -n "$CC" && break
2582 done
2583fi
2584if test -z "$CC"; then
2585 ac_ct_CC=$CC
2586 for ac_prog in cl.exe
2587do
2588 # Extract the first word of "$ac_prog", so it can be a program name with args.
2589set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002594else
2595 if test -n "$ac_ct_CC"; then
2596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 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 +00002605 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002607 break 2
2608 fi
2609done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002610done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002611IFS=$as_save_IFS
2612
2613fi
2614fi
2615ac_ct_CC=$ac_cv_prog_ac_ct_CC
2616if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002617 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2618echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002619else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002620 { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002622fi
2623
2624
2625 test -n "$ac_ct_CC" && break
2626done
2627
2628 if test "x$ac_ct_CC" = x; then
2629 CC=""
2630 else
2631 case $cross_compiling:$ac_tool_warned in
2632yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002633{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2634whose name does not start with the host triplet. If you think this
2635configuration is useful to you, please write to autoconf@gnu.org." >&5
2636echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2637whose name does not start with the host triplet. If you think this
2638configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002639ac_tool_warned=yes ;;
2640esac
2641 CC=$ac_ct_CC
2642 fi
2643fi
2644
2645fi
2646
2647
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002648test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2649See \`config.log' for more details." >&5
2650echo "$as_me: error: no acceptable C compiler found in \$PATH
2651See \`config.log' for more details." >&2;}
2652 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002653
2654# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002655echo "$as_me:$LINENO: checking for C compiler version" >&5
2656ac_compiler=`set X $ac_compile; echo $2`
2657{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002658case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002664 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2667{ (ac_try="$ac_compiler -v >&5"
2668case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671esac
2672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compiler -v >&5") 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677{ (ac_try="$ac_compiler -V >&5"
2678case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681esac
2682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compiler -V >&5") 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002687
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002688cat >conftest.$ac_ext <<_ACEOF
2689/* confdefs.h. */
2690_ACEOF
2691cat confdefs.h >>conftest.$ac_ext
2692cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002693/* end confdefs.h. */
2694
2695int
2696main ()
2697{
2698
2699 ;
2700 return 0;
2701}
2702_ACEOF
2703ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002704ac_clean_files="$ac_clean_files a.out a.exe b.out"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002705# Try to create an executable without -o first, disregard a.out.
2706# It will help us diagnose broken compilers, and finding out an intuition
2707# of exeext.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002708{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2709echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2710ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2711#
2712# List of possible output files, starting from the most likely.
2713# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2714# only as a last resort. b.out is created by i960 compilers.
2715ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2716#
2717# The IRIX 6 linker writes into existing files which may not be
2718# executable, retaining their permissions. Remove them first so a
2719# subsequent execution test works.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002720ac_rmfiles=
2721for ac_file in $ac_files
2722do
2723 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2726 esac
2727done
2728rm -f $ac_rmfiles
2729
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002730if { (ac_try="$ac_link_default"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002731case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002736 (eval "$ac_link_default") 2>&5
2737 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002740 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2741# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2742# in a Makefile. We should not override ac_cv_exeext if it was cached,
2743# so that the user can short-circuit this test for compilers unknown to
2744# Autoconf.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002745for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002746do
2747 test -f "$ac_file" || continue
2748 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002750 ;;
2751 [ab].out )
2752 # We found the default executable, but exeext='' is most
2753 # certainly right.
2754 break;;
2755 *.* )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002756 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002757 then :; else
2758 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759 fi
2760 # We set ac_cv_exeext here because the later test for it is not
2761 # safe: cross compilers may not add the suffix if given an `-o'
2762 # argument, so we may need to know it at that point already.
2763 # Even if this section looks crufty: it has the advantage of
2764 # actually working.
2765 break;;
2766 * )
2767 break;;
2768 esac
2769done
2770test "$ac_cv_exeext" = no && ac_cv_exeext=
2771
2772else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002773 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002774sed 's/^/| /' conftest.$ac_ext >&5
2775
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002776{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2777See \`config.log' for more details." >&5
2778echo "$as_me: error: C compiler cannot create executables
2779See \`config.log' for more details." >&2;}
2780 { (exit 77); exit 77; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002781fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002782
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002783ac_exeext=$ac_cv_exeext
2784{ echo "$as_me:$LINENO: result: $ac_file" >&5
2785echo "${ECHO_T}$ac_file" >&6; }
2786
2787# Check that the compiler produces executables we can run. If not, either
2788# the compiler is broken, or we cross compile.
2789{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2790echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2791# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2792# If not cross compiling, check that we can run a simple program.
2793if test "$cross_compiling" != yes; then
2794 if { ac_try='./$ac_file'
2795 { (case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798esac
2799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_try") 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 cross_compiling=no
2805 else
2806 if test "$cross_compiling" = maybe; then
2807 cross_compiling=yes
2808 else
2809 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2810If you meant to cross compile, use \`--host'.
2811See \`config.log' for more details." >&5
2812echo "$as_me: error: cannot run C compiled programs.
2813If you meant to cross compile, use \`--host'.
2814See \`config.log' for more details." >&2;}
2815 { (exit 1); exit 1; }; }
2816 fi
2817 fi
2818fi
2819{ echo "$as_me:$LINENO: result: yes" >&5
2820echo "${ECHO_T}yes" >&6; }
2821
2822rm -f a.out a.exe conftest$ac_cv_exeext b.out
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002823ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002824# Check that the compiler produces executables we can run. If not, either
2825# the compiler is broken, or we cross compile.
2826{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2827echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2828{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2829echo "${ECHO_T}$cross_compiling" >&6; }
2830
2831{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2832echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2833if { (ac_try="$ac_link"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002834case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002839 (eval "$ac_link") 2>&5
2840 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002843 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2844# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2845# work properly (i.e., refer to `conftest.exe'), while it won't with
2846# `rm'.
2847for ac_file in conftest.exe conftest conftest.*; do
2848 test -f "$ac_file" || continue
2849 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002851 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 break;;
2853 * ) break;;
2854 esac
2855done
2856else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002857 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2860See \`config.log' for more details." >&2;}
2861 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002862fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002863
2864rm -f conftest$ac_cv_exeext
2865{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2866echo "${ECHO_T}$ac_cv_exeext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002867
2868rm -f conftest.$ac_ext
2869EXEEXT=$ac_cv_exeext
2870ac_exeext=$EXEEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002871{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2872echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2873if test "${ac_cv_objext+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00002875else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002876 cat >conftest.$ac_ext <<_ACEOF
2877/* confdefs.h. */
2878_ACEOF
2879cat confdefs.h >>conftest.$ac_ext
2880cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002881/* end confdefs.h. */
2882
2883int
2884main ()
2885{
2886
2887 ;
2888 return 0;
2889}
2890_ACEOF
2891rm -f conftest.o conftest.obj
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002892if { (ac_try="$ac_compile"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002898 (eval "$ac_compile") 2>&5
2899 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002902 for ac_file in conftest.o conftest.obj conftest.*; do
2903 test -f "$ac_file" || continue;
2904 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002906 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2907 break;;
2908 esac
2909done
2910else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002911 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002912sed 's/^/| /' conftest.$ac_ext >&5
2913
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002914{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2915See \`config.log' for more details." >&5
2916echo "$as_me: error: cannot compute suffix of object files: cannot compile
2917See \`config.log' for more details." >&2;}
2918 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002919fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002920
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002921rm -f conftest.$ac_cv_objext conftest.$ac_ext
2922fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002923{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2924echo "${ECHO_T}$ac_cv_objext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002925OBJEXT=$ac_cv_objext
2926ac_objext=$OBJEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002927{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2928echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2929if test "${ac_cv_c_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002931else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002932 cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942#ifndef __GNUC__
2943 choke me
2944#endif
2945
2946 ;
2947 return 0;
2948}
2949_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002950rm -f conftest.$ac_objext
2951if { (ac_try="$ac_compile"
2952case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002984 ac_compiler_gnu=yes
2985else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002986 echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002990fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002991
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993ac_cv_c_compiler_gnu=$ac_compiler_gnu
2994
2995fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002996{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2997echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2998GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002999ac_test_CFLAGS=${CFLAGS+set}
3000ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003001{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3002echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3003if test "${ac_cv_prog_cc_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003005else
3006 ac_save_c_werror_flag=$ac_c_werror_flag
3007 ac_c_werror_flag=yes
3008 ac_cv_prog_cc_g=no
3009 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003015/* end confdefs.h. */
3016
3017int
3018main ()
3019{
3020
3021 ;
3022 return 0;
3023}
3024_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003025rm -f conftest.$ac_objext
3026if { (ac_try="$ac_compile"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003059 ac_cv_prog_cc_g=yes
3060else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003061 echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 CFLAGS=""
3065 cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075
3076 ;
3077 return 0;
3078}
3079_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003080rm -f conftest.$ac_objext
3081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3114 :
Edwin Törökc27310c2010-01-26 08:50:50 +00003115else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003120 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003170 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003171else
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003176fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003177
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003180
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003183
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_c_werror_flag=$ac_save_c_werror_flag
3186fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003187{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3188echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003189if test "$ac_test_CFLAGS" = set; then
3190 CFLAGS=$ac_save_CFLAGS
3191elif test $ac_cv_prog_cc_g = yes; then
3192 if test "$GCC" = yes; then
3193 CFLAGS="-g -O2"
3194 else
3195 CFLAGS="-g"
3196 fi
3197else
3198 if test "$GCC" = yes; then
3199 CFLAGS="-O2"
3200 else
3201 CFLAGS=
3202 fi
3203fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003204{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3205echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3206if test "${ac_cv_prog_cc_c89+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003208else
3209 ac_cv_prog_cc_c89=no
3210ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003211cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003216/* end confdefs.h. */
3217#include <stdarg.h>
3218#include <stdio.h>
3219#include <sys/types.h>
3220#include <sys/stat.h>
3221/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3222struct buf { int x; };
3223FILE * (*rcsopen) (struct buf *, struct stat *, int);
3224static char *e (p, i)
3225 char **p;
3226 int i;
3227{
3228 return p[i];
3229}
3230static char *f (char * (*g) (char **, int), char **p, ...)
3231{
3232 char *s;
3233 va_list v;
3234 va_start (v,p);
3235 s = g (p, va_arg (v,int));
3236 va_end (v);
3237 return s;
3238}
3239
3240/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3241 function prototypes and stuff, but not '\xHH' hex character constants.
3242 These don't provoke an error unfortunately, instead are silently treated
3243 as 'x'. The following induces an error, until -std is added to get
3244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3245 array size at least. It's necessary to write '\x00'==0 to get something
3246 that's true only with -std. */
3247int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3248
3249/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3250 inside strings and character constants. */
3251#define FOO(x) 'x'
3252int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3253
3254int test (int i, double x);
3255struct s1 {int (*f) (int a);};
3256struct s2 {int (*f) (double a);};
3257int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3258int argc;
3259char **argv;
3260int
3261main ()
3262{
3263return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3264 ;
3265 return 0;
3266}
3267_ACEOF
3268for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3270do
3271 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003272 rm -f conftest.$ac_objext
3273if { (ac_try="$ac_compile"
3274case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277esac
3278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_compile") 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3287 { (case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_try") 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; } &&
3296 { ac_try='test -s conftest.$ac_objext'
3297 { (case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300esac
3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_try") 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003306 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003307else
3308 echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003312fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003313
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003314rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
3316done
3317rm -f conftest.$ac_ext
3318CC=$ac_save_CC
3319
3320fi
3321# AC_CACHE_VAL
3322case "x$ac_cv_prog_cc_c89" in
3323 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003324 { echo "$as_me:$LINENO: result: none needed" >&5
3325echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003326 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003327 { echo "$as_me:$LINENO: result: unsupported" >&5
3328echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003329 *)
3330 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3332echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003333esac
3334
3335
3336ac_ext=c
3337ac_cpp='$CPP $CPPFLAGS'
3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341
3342
3343ac_ext=c
3344ac_cpp='$CPP $CPPFLAGS'
3345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003348{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3349echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003350# On Suns, sometimes $CPP names a directory.
3351if test -n "$CPP" && test -d "$CPP"; then
3352 CPP=
3353fi
3354if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003355 if test "${ac_cv_prog_CPP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003357else
3358 # Double quotes because CPP needs to be expanded
3359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3360 do
3361 ac_preproc_ok=false
3362for ac_c_preproc_warn_flag in '' yes
3363do
3364 # Use a header file that comes with gcc, so configuring glibc
3365 # with a fresh cross-compiler works.
3366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3367 # <limits.h> exists even on freestanding compilers.
3368 # On the NeXT, cc -E runs the code through the compiler's parser,
3369 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003370 cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h. */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003375/* end confdefs.h. */
3376#ifdef __STDC__
3377# include <limits.h>
3378#else
3379# include <assert.h>
3380#endif
3381 Syntax error
3382_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003383if { (ac_try="$ac_cpp conftest.$ac_ext"
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3390 ac_status=$?
3391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } >/dev/null; then
3396 if test -s conftest.err; then
3397 ac_cpp_err=$ac_c_preproc_warn_flag
3398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3399 else
3400 ac_cpp_err=
3401 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003402else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003403 ac_cpp_err=yes
3404fi
3405if test -z "$ac_cpp_err"; then
3406 :
3407else
3408 echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003411 # Broken: fails on valid input.
3412continue
3413fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003414
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003415rm -f conftest.err conftest.$ac_ext
3416
3417 # OK, works on sane cases. Now check whether nonexistent headers
3418 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003419 cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003424/* end confdefs.h. */
3425#include <ac_nonexistent.h>
3426_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003427if { (ac_try="$ac_cpp conftest.$ac_ext"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 else
3444 ac_cpp_err=
3445 fi
3446else
3447 ac_cpp_err=yes
3448fi
3449if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003450 # Broken: success on invalid input.
3451continue
3452else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003453 echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003456 # Passes both tests.
3457ac_preproc_ok=:
3458break
3459fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003460
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003461rm -f conftest.err conftest.$ac_ext
3462
3463done
3464# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3465rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003466if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003467 break
3468fi
3469
3470 done
3471 ac_cv_prog_CPP=$CPP
3472
3473fi
3474 CPP=$ac_cv_prog_CPP
3475else
3476 ac_cv_prog_CPP=$CPP
3477fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003478{ echo "$as_me:$LINENO: result: $CPP" >&5
3479echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003480ac_preproc_ok=false
3481for ac_c_preproc_warn_flag in '' yes
3482do
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003489 cat >conftest.$ac_ext <<_ACEOF
3490/* confdefs.h. */
3491_ACEOF
3492cat confdefs.h >>conftest.$ac_ext
3493cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003494/* end confdefs.h. */
3495#ifdef __STDC__
3496# include <limits.h>
3497#else
3498# include <assert.h>
3499#endif
3500 Syntax error
3501_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003502if { (ac_try="$ac_cpp conftest.$ac_ext"
3503case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506esac
3507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null; then
3515 if test -s conftest.err; then
3516 ac_cpp_err=$ac_c_preproc_warn_flag
3517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518 else
3519 ac_cpp_err=
3520 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003521else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003522 ac_cpp_err=yes
3523fi
3524if test -z "$ac_cpp_err"; then
3525 :
3526else
3527 echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003530 # Broken: fails on valid input.
3531continue
3532fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003533
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003534rm -f conftest.err conftest.$ac_ext
3535
3536 # OK, works on sane cases. Now check whether nonexistent headers
3537 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003543/* end confdefs.h. */
3544#include <ac_nonexistent.h>
3545_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003546if { (ac_try="$ac_cpp conftest.$ac_ext"
3547case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550esac
3551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
3565else
3566 ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003569 # Broken: success on invalid input.
3570continue
3571else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003572 echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003575 # Passes both tests.
3576ac_preproc_ok=:
3577break
3578fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003579
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003580rm -f conftest.err conftest.$ac_ext
3581
3582done
3583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3584rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003585if $ac_preproc_ok; then
3586 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003587else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003588 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3589See \`config.log' for more details." >&5
3590echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3591See \`config.log' for more details." >&2;}
3592 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003593fi
3594
3595ac_ext=c
3596ac_cpp='$CPP $CPPFLAGS'
3597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600
3601
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003602{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3603echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3604if test "${ac_cv_path_GREP+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003606else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003607 # Extract the first word of "grep ggrep" to use in msg output
3608if test -z "$GREP"; then
3609set dummy grep ggrep; ac_prog_name=$2
3610if test "${ac_cv_path_GREP+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003613 ac_path_GREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003614# Loop through the user's path and test for each of PROGNAME-LIST
3615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003616for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3617do
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003620 for ac_prog in grep ggrep; do
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3623 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3624 # Check for GNU ac_path_GREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003625 # Check for GNU $ac_path_GREP
3626case `"$ac_path_GREP" --version 2>&1` in
3627*GNU*)
3628 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3629*)
3630 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003631 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003632 while :
3633 do
3634 cat "conftest.in" "conftest.in" >"conftest.tmp"
3635 mv "conftest.tmp" "conftest.in"
3636 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003637 echo 'GREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003638 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003640 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003641 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3642 # Best one so far, save it but keep looking for a better one
3643 ac_cv_path_GREP="$ac_path_GREP"
3644 ac_path_GREP_max=$ac_count
3645 fi
3646 # 10*(2^10) chars as input seems more than enough
3647 test $ac_count -gt 10 && break
3648 done
3649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3650esac
3651
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003652
3653 $ac_path_GREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003654 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003655done
3656
3657done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003658IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003659
3660
3661fi
3662
3663GREP="$ac_cv_path_GREP"
3664if test -z "$GREP"; then
3665 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3666echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3667 { (exit 1); exit 1; }; }
3668fi
3669
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003670else
3671 ac_cv_path_GREP=$GREP
3672fi
3673
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003674
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003675fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003676{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3677echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003678 GREP="$ac_cv_path_GREP"
3679
3680
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003681{ echo "$as_me:$LINENO: checking for egrep" >&5
3682echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3683if test "${ac_cv_path_EGREP+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003685else
3686 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3687 then ac_cv_path_EGREP="$GREP -E"
3688 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003689 # Extract the first word of "egrep" to use in msg output
3690if test -z "$EGREP"; then
3691set dummy egrep; ac_prog_name=$2
3692if test "${ac_cv_path_EGREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003695 ac_path_EGREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003696# Loop through the user's path and test for each of PROGNAME-LIST
3697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003698for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3699do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003702 for ac_prog in egrep; do
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3705 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3706 # Check for GNU ac_path_EGREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003707 # Check for GNU $ac_path_EGREP
3708case `"$ac_path_EGREP" --version 2>&1` in
3709*GNU*)
3710 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3711*)
3712 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003713 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003714 while :
3715 do
3716 cat "conftest.in" "conftest.in" >"conftest.tmp"
3717 mv "conftest.tmp" "conftest.in"
3718 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003719 echo 'EGREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003720 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003722 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003723 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3724 # Best one so far, save it but keep looking for a better one
3725 ac_cv_path_EGREP="$ac_path_EGREP"
3726 ac_path_EGREP_max=$ac_count
3727 fi
3728 # 10*(2^10) chars as input seems more than enough
3729 test $ac_count -gt 10 && break
3730 done
3731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3732esac
3733
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003734
3735 $ac_path_EGREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003736 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003737done
3738
3739done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003740IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003741
3742
3743fi
3744
3745EGREP="$ac_cv_path_EGREP"
3746if test -z "$EGREP"; then
3747 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3748echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3749 { (exit 1); exit 1; }; }
3750fi
3751
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003752else
3753 ac_cv_path_EGREP=$EGREP
3754fi
3755
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003756
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003757 fi
3758fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003759{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3760echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003761 EGREP="$ac_cv_path_EGREP"
3762
3763
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003764{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3765echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3766if test "${ac_cv_header_stdc+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003768else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003769 cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h. */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003774/* end confdefs.h. */
3775#include <stdlib.h>
3776#include <stdarg.h>
3777#include <string.h>
3778#include <float.h>
3779
3780int
3781main ()
3782{
3783
3784 ;
3785 return 0;
3786}
3787_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003788rm -f conftest.$ac_objext
3789if { (ac_try="$ac_compile"
3790case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793esac
3794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_compile") 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } &&
3802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3803 { (case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806esac
3807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_try") 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; } &&
3812 { ac_try='test -s conftest.$ac_objext'
3813 { (case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816esac
3817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_try") 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003822 ac_cv_header_stdc=yes
3823else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003824 echo "$as_me: failed program was:" >&5
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003828fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003829
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831
3832if test $ac_cv_header_stdc = yes; then
3833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003834 cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003839/* end confdefs.h. */
3840#include <string.h>
3841
3842_ACEOF
3843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003844 $EGREP "memchr" >/dev/null 2>&1; then
3845 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003846else
3847 ac_cv_header_stdc=no
3848fi
3849rm -f conftest*
3850
3851fi
3852
3853if test $ac_cv_header_stdc = yes; then
3854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003855 cat >conftest.$ac_ext <<_ACEOF
3856/* confdefs.h. */
3857_ACEOF
3858cat confdefs.h >>conftest.$ac_ext
3859cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003860/* end confdefs.h. */
3861#include <stdlib.h>
3862
3863_ACEOF
3864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003865 $EGREP "free" >/dev/null 2>&1; then
3866 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003867else
3868 ac_cv_header_stdc=no
3869fi
3870rm -f conftest*
3871
3872fi
3873
3874if test $ac_cv_header_stdc = yes; then
3875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003876 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003877 :
3878else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003879 cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h. */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003884/* end confdefs.h. */
3885#include <ctype.h>
3886#include <stdlib.h>
3887#if ((' ' & 0x0FF) == 0x020)
3888# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3889# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3890#else
3891# define ISLOWER(c) \
3892 (('a' <= (c) && (c) <= 'i') \
3893 || ('j' <= (c) && (c) <= 'r') \
3894 || ('s' <= (c) && (c) <= 'z'))
3895# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3896#endif
3897
3898#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3899int
3900main ()
3901{
3902 int i;
3903 for (i = 0; i < 256; i++)
3904 if (XOR (islower (i), ISLOWER (i))
3905 || toupper (i) != TOUPPER (i))
3906 return 2;
3907 return 0;
3908}
3909_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003910rm -f conftest$ac_exeext
3911if { (ac_try="$ac_link"
3912case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915esac
3916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_link") 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3921 { (case "(($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_try") 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003931else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003932 echo "$as_me: program exited with status $ac_status" >&5
3933echo "$as_me: failed program was:" >&5
3934sed 's/^/| /' conftest.$ac_ext >&5
3935
3936( exit $ac_status )
3937ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003938fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003939rm -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 +00003940fi
3941
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003942
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003943fi
3944fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003945{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3946echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003947if test $ac_cv_header_stdc = yes; then
3948
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003949cat >>confdefs.h <<\_ACEOF
3950#define STDC_HEADERS 1
3951_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003952
3953fi
3954
3955# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003956
3957
3958
3959
3960
3961
3962
3963
3964
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003965for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3966 inttypes.h stdint.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003967do
3968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3969{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974 cat >conftest.$ac_ext <<_ACEOF
3975/* confdefs.h. */
3976_ACEOF
3977cat confdefs.h >>conftest.$ac_ext
3978cat >>conftest.$ac_ext <<_ACEOF
3979/* end confdefs.h. */
3980$ac_includes_default
3981
3982#include <$ac_header>
3983_ACEOF
3984rm -f conftest.$ac_objext
3985if { (ac_try="$ac_compile"
3986case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989esac
3990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_compile") 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } &&
3998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3999 { (case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002esac
4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_try") 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012esac
4013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 eval "$as_ac_Header=yes"
4019else
4020 echo "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 eval "$as_ac_Header=no"
4024fi
4025
4026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027fi
4028ac_res=`eval echo '${'$as_ac_Header'}'`
4029 { echo "$as_me:$LINENO: result: $ac_res" >&5
4030echo "${ECHO_T}$ac_res" >&6; }
4031if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004032 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004034_ACEOF
4035
4036fi
4037
4038done
4039
4040
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004041{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4042echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4043if test "${ac_cv_c_bigendian+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004045else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004046 # See if sys/param.h defines the BYTE_ORDER macro.
4047cat >conftest.$ac_ext <<_ACEOF
4048/* confdefs.h. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004049_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004050cat confdefs.h >>conftest.$ac_ext
4051cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004052/* end confdefs.h. */
4053#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004054#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004055
4056int
4057main ()
4058{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004059#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4060 bogus endian macros
4061#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004062
4063 ;
4064 return 0;
4065}
4066_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004067rm -f conftest.$ac_objext
4068if { (ac_try="$ac_compile"
4069case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072esac
4073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082 { (case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_try") 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095esac
4096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004101 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004102cat >conftest.$ac_ext <<_ACEOF
4103/* confdefs.h. */
4104_ACEOF
4105cat confdefs.h >>conftest.$ac_ext
4106cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004107/* end confdefs.h. */
4108#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004109#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004110
4111int
4112main ()
4113{
4114#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004115 not big endian
4116#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004117
4118 ;
4119 return 0;
4120}
4121_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004122rm -f conftest.$ac_objext
4123if { (ac_try="$ac_compile"
4124case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_compile") 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest.$ac_objext'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004156 ac_cv_c_bigendian=yes
4157else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004158 echo "$as_me: failed program was:" >&5
4159sed 's/^/| /' conftest.$ac_ext >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00004160
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004161 ac_cv_c_bigendian=no
4162fi
4163
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165else
4166 echo "$as_me: failed program was:" >&5
4167sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 # It does not; compile a test program.
4170if test "$cross_compiling" = yes; then
4171 # try to guess the endianness by grepping values into an object file
4172 ac_cv_c_bigendian=unknown
4173 cat >conftest.$ac_ext <<_ACEOF
4174/* confdefs.h. */
4175_ACEOF
4176cat confdefs.h >>conftest.$ac_ext
4177cat >>conftest.$ac_ext <<_ACEOF
4178/* end confdefs.h. */
4179short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4180short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4181void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4182short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4183short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4184void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004185int
4186main ()
4187{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004188 _ascii (); _ebcdic ();
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004189 ;
4190 return 0;
4191}
4192_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004193rm -f conftest.$ac_objext
4194if { (ac_try="$ac_compile"
4195case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198esac
4199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_compile") 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4208 { (case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_try") 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; } &&
4217 { ac_try='test -s conftest.$ac_objext'
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_try") 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; }; then
4227 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004228 ac_cv_c_bigendian=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004229fi
4230if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4231 if test "$ac_cv_c_bigendian" = unknown; then
4232 ac_cv_c_bigendian=no
4233 else
4234 # finding both strings is unlikely to happen, but who knows?
4235 ac_cv_c_bigendian=unknown
4236 fi
4237fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004238else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004239 echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004241
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004242
Edwin Törökc27310c2010-01-26 08:50:50 +00004243fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004244
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004247 cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004252/* end confdefs.h. */
4253$ac_includes_default
4254int
4255main ()
4256{
4257
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004258 /* Are we little or big endian? From Harbison&Steele. */
4259 union
4260 {
4261 long int l;
4262 char c[sizeof (long int)];
4263 } u;
4264 u.l = 1;
4265 return u.c[sizeof (long int) - 1] == 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004266
4267 ;
4268 return 0;
4269}
4270_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004271rm -f conftest$ac_exeext
4272if { (ac_try="$ac_link"
4273case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_link") 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4282 { (case "(($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_try") 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004291 ac_cv_c_bigendian=no
4292else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004293 echo "$as_me: program exited with status $ac_status" >&5
4294echo "$as_me: failed program was:" >&5
4295sed 's/^/| /' conftest.$ac_ext >&5
4296
4297( exit $ac_status )
4298ac_cv_c_bigendian=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004299fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004300rm -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 +00004301fi
4302
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004303
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004304fi
4305
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307fi
4308{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4309echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4310case $ac_cv_c_bigendian in
4311 yes)
4312 ENDIAN=big
4313 ;;
4314 no)
4315 ENDIAN=little
4316 ;;
4317 *)
4318 { { echo "$as_me:$LINENO: error: unknown endianness
4319presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4320echo "$as_me: error: unknown endianness
4321presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4322 { (exit 1); exit 1; }; } ;;
4323esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004324
4325
4326if test "$cross_compiling" = yes; then
4327 LLVM_CROSS_COMPILING=1
4328
4329
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004330{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4331echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4332if test "${ac_cv_build_exeext+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004334else
4335 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4336 ac_cv_build_exeext=.exe
4337else
4338 ac_build_prefix=${build_alias}-
4339
4340 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4341set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4344if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004346else
4347 if test -n "$BUILD_CC"; then
4348 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4349else
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 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 +00004357 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004359 break 2
4360 fi
4361done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004362done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004363IFS=$as_save_IFS
4364
4365fi
4366fi
4367BUILD_CC=$ac_cv_prog_BUILD_CC
4368if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004369 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4370echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004371else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004372 { echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004374fi
4375
4376
4377 if test -z "$BUILD_CC"; then
4378 # Extract the first word of "gcc", so it can be a program name with args.
4379set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004384else
4385 if test -n "$BUILD_CC"; then
4386 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4387else
4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 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 +00004395 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004397 break 2
4398 fi
4399done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004400done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004401IFS=$as_save_IFS
4402
4403fi
4404fi
4405BUILD_CC=$ac_cv_prog_BUILD_CC
4406if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004407 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4408echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004409else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004410 { echo "$as_me:$LINENO: result: no" >&5
4411echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004412fi
4413
4414
4415 if test -z "$BUILD_CC"; then
4416 # Extract the first word of "cc", so it can be a program name with args.
4417set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004422else
4423 if test -n "$BUILD_CC"; then
4424 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4425else
4426 ac_prog_rejected=no
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 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 +00004434 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4435 ac_prog_rejected=yes
4436 continue
4437 fi
4438 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004440 break 2
4441 fi
4442done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004443done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004444IFS=$as_save_IFS
4445
4446if test $ac_prog_rejected = yes; then
4447 # We found a bogon in the path, so make sure we never use it.
4448 set dummy $ac_cv_prog_BUILD_CC
4449 shift
4450 if test $# != 0; then
4451 # We chose a different compiler from the bogus one.
4452 # However, it has the same basename, so the bogon will be chosen
4453 # first if we set BUILD_CC to just the basename; use the full file name.
4454 shift
4455 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4456 fi
4457fi
4458fi
4459fi
4460BUILD_CC=$ac_cv_prog_BUILD_CC
4461if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004462 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4463echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004464else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004465 { echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004467fi
4468
4469
4470 fi
4471 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004472 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4473echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4474 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004475 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4476 rm -f conftest*
4477 echo 'int main () { return 0; }' > conftest.$ac_ext
4478 ac_cv_build_exeext=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004479 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004480 (eval $ac_build_link) 2>&5
4481 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004484 for file in conftest.*; do
4485 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004486 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004487 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4488 esac
4489 done
4490 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004491 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4492echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4493 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004494 fi
4495 rm -f conftest*
4496 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4497fi
4498fi
4499
4500BUILD_EXEEXT=""
4501test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004502{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4503echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004504ac_build_exeext=$BUILD_EXEEXT
4505
Jim Grosbache4c032e2008-10-02 22:56:44 +00004506 ac_build_prefix=${build_alias}-
4507 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4508set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4511if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004513else
4514 if test -n "$BUILD_CXX"; then
4515 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4516else
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 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 +00004524 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004526 break 2
4527 fi
4528done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004529done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004530IFS=$as_save_IFS
4531
4532fi
4533fi
4534BUILD_CXX=$ac_cv_prog_BUILD_CXX
4535if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004536 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4537echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004538else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004539 { echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004541fi
4542
4543
4544 if test -z "$BUILD_CXX"; then
4545 # Extract the first word of "g++", so it can be a program name with args.
4546set dummy g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4549if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004551else
4552 if test -n "$BUILD_CXX"; then
4553 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 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 +00004562 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004564 break 2
4565 fi
4566done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004567done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004568IFS=$as_save_IFS
4569
4570fi
4571fi
4572BUILD_CXX=$ac_cv_prog_BUILD_CXX
4573if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004574 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4575echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004576else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004577 { echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004579fi
4580
4581
4582 if test -z "$BUILD_CXX"; then
4583 # Extract the first word of "c++", so it can be a program name with args.
4584set dummy c++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004589else
4590 if test -n "$BUILD_CXX"; then
4591 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4592else
4593 ac_prog_rejected=no
4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH
4596do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 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 +00004601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4602 ac_prog_rejected=yes
4603 continue
4604 fi
4605 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004607 break 2
4608 fi
4609done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004610done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004611IFS=$as_save_IFS
4612
4613if test $ac_prog_rejected = yes; then
4614 # We found a bogon in the path, so make sure we never use it.
4615 set dummy $ac_cv_prog_BUILD_CXX
4616 shift
4617 if test $# != 0; then
4618 # We chose a different compiler from the bogus one.
4619 # However, it has the same basename, so the bogon will be chosen
4620 # first if we set BUILD_CXX to just the basename; use the full file name.
4621 shift
4622 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4623 fi
4624fi
4625fi
4626fi
4627BUILD_CXX=$ac_cv_prog_BUILD_CXX
4628if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004629 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4630echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004631else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004632 { echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004634fi
4635
4636
4637 fi
4638 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004639else
4640 LLVM_CROSS_COMPILING=0
4641
4642fi
4643
Nick Lewycky45f0f822009-04-10 05:18:27 +00004644if 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 +00004645 cvsbuild="yes"
4646 optimize="no"
4647 CVSBUILD=CVSBUILD=1
4648
4649else
4650 cvsbuild="no"
4651 optimize="yes"
4652fi
4653
4654
4655# Check whether --enable-optimized was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004656if test "${enable_optimized+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004657 enableval=$enable_optimized;
4658else
4659 enableval=$optimize
4660fi
4661
4662if test ${enableval} = "no" ; then
4663 ENABLE_OPTIMIZED=
4664
4665else
4666 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4667
4668fi
4669
David Greene19b1cbd2009-04-17 14:50:39 +00004670# Check whether --enable-profiling was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004671if test "${enable_profiling+set}" = set; then
David Greene19b1cbd2009-04-17 14:50:39 +00004672 enableval=$enable_profiling;
4673else
4674 enableval="no"
4675fi
4676
4677if test ${enableval} = "no" ; then
4678 ENABLE_PROFILING=
4679
4680else
4681 ENABLE_PROFILING=ENABLE_PROFILING=1
4682
4683fi
4684
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004685# Check whether --enable-assertions was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004686if test "${enable_assertions+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004687 enableval=$enable_assertions;
4688else
4689 enableval="yes"
4690fi
4691
4692if test ${enableval} = "yes" ; then
4693 DISABLE_ASSERTIONS=
4694
4695else
4696 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4697
4698fi
4699
4700# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004701if test "${enable_expensive_checks+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004702 enableval=$enable_expensive_checks;
4703else
4704 enableval="no"
4705fi
4706
4707if test ${enableval} = "yes" ; then
4708 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4709
4710 EXPENSIVE_CHECKS=yes
4711
4712else
4713 ENABLE_EXPENSIVE_CHECKS=
4714
4715 EXPENSIVE_CHECKS=no
4716
4717fi
4718
4719# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004720if test "${enable_debug_runtime+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004721 enableval=$enable_debug_runtime;
4722else
4723 enableval=no
4724fi
4725
4726if test ${enableval} = "no" ; then
4727 DEBUG_RUNTIME=
4728
4729else
4730 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4731
4732fi
4733
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004734# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004735if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004736 enableval=$enable_debug_symbols;
4737else
4738 enableval=no
4739fi
4740
4741if test ${enableval} = "no" ; then
4742 DEBUG_SYMBOLS=
4743
4744else
4745 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4746
4747fi
4748
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004749# Check whether --enable-jit was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004750if test "${enable_jit+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004751 enableval=$enable_jit;
4752else
4753 enableval=default
4754fi
4755
4756if test ${enableval} = "no"
4757then
4758 JIT=
4759
4760else
4761 case "$llvm_cv_target_arch" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004762 x86) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004763 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004764 Sparc) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004765 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004766 PowerPC) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004767 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004768 x86_64) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004769 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004770 Alpha) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004771 ;;
Eric Christopher9ab1d2e2009-09-14 16:38:49 +00004772 ARM) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004773 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004774 Mips) TARGET_HAS_JIT=0
Tanya Lattner81915b12007-08-29 16:38:16 +00004775 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004776 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004777 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004778 XCore) TARGET_HAS_JIT=0
Richard Osborneab8167a2008-11-07 10:59:00 +00004779 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004780 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004781 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004782 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00004783 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004784 Blackfin) TARGET_HAS_JIT=0
4785 ;;
4786 *) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004787 ;;
4788 esac
4789fi
4790
4791# Check whether --enable-doxygen was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004792if test "${enable_doxygen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004793 enableval=$enable_doxygen;
4794else
4795 enableval=default
4796fi
4797
4798case "$enableval" in
4799 yes) ENABLE_DOXYGEN=1
4800 ;;
4801 no) ENABLE_DOXYGEN=0
4802 ;;
4803 default) ENABLE_DOXYGEN=0
4804 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004805 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4806echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4807 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004808esac
4809
4810# Check whether --enable-threads was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004811if test "${enable_threads+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004812 enableval=$enable_threads;
4813else
4814 enableval=default
4815fi
4816
4817case "$enableval" in
4818 yes) ENABLE_THREADS=1
4819 ;;
4820 no) ENABLE_THREADS=0
4821 ;;
4822 default) ENABLE_THREADS=1
4823 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004824 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4825echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4826 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004827esac
4828
Owen Anderson96237ec2009-05-19 22:18:56 +00004829cat >>confdefs.h <<_ACEOF
4830#define ENABLE_THREADS $ENABLE_THREADS
4831_ACEOF
4832
4833
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004834# Check whether --enable-pic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004835if test "${enable_pic+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004836 enableval=$enable_pic;
4837else
4838 enableval=default
4839fi
4840
4841case "$enableval" in
4842 yes) ENABLE_PIC=1
4843 ;;
4844 no) ENABLE_PIC=0
4845 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004846 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004847 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004848 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4849echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4850 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004851esac
4852
4853cat >>confdefs.h <<_ACEOF
4854#define ENABLE_PIC $ENABLE_PIC
4855_ACEOF
4856
4857
4858TARGETS_TO_BUILD=""
4859# Check whether --enable-targets was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004860if test "${enable_targets+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004861 enableval=$enable_targets;
4862else
4863 enableval=all
4864fi
4865
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004866if test "$enableval" = host-only ; then
4867 enableval=host
4868fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004869case "$enableval" in
Jakob Stoklund Olesenb62e9aa2009-08-02 17:32:37 +00004870 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 +00004871 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4872 case "$a_target" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004873 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4874 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4875 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4876 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4877 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4878 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4879 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4880 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4881 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4882 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4883 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4884 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4885 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4886 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4887 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4888 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004889 host) case "$llvm_cv_target_arch" in
4890 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4891 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4892 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4893 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4894 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4895 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4896 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4897 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4898 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4899 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4900 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikovc5cbb462010-01-05 20:45:43 +00004901 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004902 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004903 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4904echo "$as_me: error: Can not set target to build" >&2;}
4905 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004906 esac ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004907 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4908echo "$as_me: error: Unrecognized target $a_target" >&2;}
4909 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004910 esac
4911 done
4912 ;;
4913esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004914TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4915
4916
Douglas Gregor13e13882009-06-17 00:43:20 +00004917# Determine whether we are building LLVM support for the native architecture.
4918# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4919for a_target in $TARGETS_TO_BUILD; do
4920 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregor192d50e2009-06-23 17:22:05 +00004921 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor13e13882009-06-17 00:43:20 +00004922
4923cat >>confdefs.h <<_ACEOF
Douglas Gregor192d50e2009-06-23 17:22:05 +00004924#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor13e13882009-06-17 00:43:20 +00004925_ACEOF
4926
4927 fi
4928done
4929
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004930# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4931# target feature def files.
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004932LLVM_ENUM_TARGETS=""
4933LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004934LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004935LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004936for target_to_build in $TARGETS_TO_BUILD; do
4937 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4938 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4939 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4940 fi
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004941 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4942 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4943 fi
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004944 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4945 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4946 fi
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004947done
4948
4949
4950
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004951
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004952
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004953# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004954if test "${enable_cbe_printf_a+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004955 enableval=$enable_cbe_printf_a;
4956else
4957 enableval=default
4958fi
4959
4960case "$enableval" in
4961 yes) ENABLE_CBE_PRINTF_A=1
4962 ;;
4963 no) ENABLE_CBE_PRINTF_A=0
4964 ;;
4965 default) ENABLE_CBE_PRINTF_A=1
4966 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004967 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4968echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4969 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004970esac
4971
4972cat >>confdefs.h <<_ACEOF
4973#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4974_ACEOF
4975
4976
4977
4978# Check whether --with-llvmgccdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004979if test "${with_llvmgccdir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004980 withval=$with_llvmgccdir;
4981else
4982 withval=default
4983fi
4984
4985case "$withval" in
4986 default) WITH_LLVMGCCDIR=default ;;
4987 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004988 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4989echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4990 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004991esac
4992
4993
Devang Pateld84ba7b2007-12-04 22:54:47 +00004994# Check whether --with-llvmgcc was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004995if test "${with_llvmgcc+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00004996 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4997 WITH_LLVMGCCDIR=""
4998fi
4999
5000
5001
5002# Check whether --with-llvmgxx was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005003if test "${with_llvmgxx+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00005004 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5005 WITH_LLVMGCCDIR=""
5006fi
5007
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005008
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005009if test -n "$LLVMGCC"; then
5010 LLVMGCCCOMMAND="$LLVMGCC"
5011fi
5012
5013if test -n "$LLVMGXX"; then
5014 LLVMGXXCOMMAND="$LLVMGXX"
5015fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005016
5017if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005018 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5019echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5020 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005021fi
5022
5023if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005024 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5025echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5026 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005027fi
5028
5029
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005030# Check whether --with-optimize-option was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005031if test "${with_optimize_option+set}" = set; then
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005032 withval=$with_optimize_option;
5033else
5034 withval=default
5035fi
5036
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005037{ echo "$as_me:$LINENO: checking optimization flags" >&5
5038echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005039case "$withval" in
5040 default)
5041 case "$llvm_cv_os_type" in
5042 MingW) optimize_option=-O3 ;;
5043 *) optimize_option=-O2 ;;
5044 esac ;;
5045 *) optimize_option="$withval" ;;
5046esac
5047OPTIMIZE_OPTION=$optimize_option
5048
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005049{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5050echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005051
5052
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005053# Check whether --with-extra-options was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005054if test "${with_extra_options+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005055 withval=$with_extra_options;
5056else
5057 withval=default
5058fi
5059
5060case "$withval" in
5061 default) EXTRA_OPTIONS= ;;
5062 *) EXTRA_OPTIONS=$withval ;;
5063esac
5064EXTRA_OPTIONS=$EXTRA_OPTIONS
5065
5066
Gordon Henriksen016ec472007-10-02 09:50:32 +00005067# Check whether --enable-bindings was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005068if test "${enable_bindings+set}" = set; then
Gordon Henriksen016ec472007-10-02 09:50:32 +00005069 enableval=$enable_bindings;
5070else
5071 enableval=default
5072fi
5073
5074BINDINGS_TO_BUILD=""
5075case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005076 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005077 all ) BINDINGS_TO_BUILD="ocaml" ;;
5078 none | no) BINDINGS_TO_BUILD="" ;;
5079 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5080 case "$a_binding" in
5081 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005082 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5083echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5084 { (exit 1); exit 1; }; } ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005085 esac
5086 done
5087 ;;
5088esac
5089
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005090
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005091# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005092if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005093 withval=$with_ocaml_libdir;
5094else
5095 withval=auto
5096fi
5097
5098case "$withval" in
5099 auto) with_ocaml_libdir="$withval" ;;
5100 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005101 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5102echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5103 { (exit 1); exit 1; }; } ;;
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005104esac
5105
5106
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005107# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005108if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005109 withval=$with_c_include_dirs;
Rafael Espindola354924d2009-11-12 05:46:09 +00005110else
5111 withval=""
5112fi
5113
5114
5115cat >>confdefs.h <<_ACEOF
5116#define C_INCLUDE_DIRS "$withval"
5117_ACEOF
5118
5119
5120
Rafael Espindola3890bf02009-11-16 19:46:55 +00005121# Check whether --with-cxx-include-root was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005122if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005123 withval=$with_cxx_include_root;
5124else
5125 withval=""
5126fi
5127
5128
5129cat >>confdefs.h <<_ACEOF
5130#define CXX_INCLUDE_ROOT "$withval"
5131_ACEOF
5132
5133
5134
5135# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005136if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005137 withval=$with_cxx_include_arch;
5138else
5139 withval=""
5140fi
5141
5142
5143cat >>confdefs.h <<_ACEOF
5144#define CXX_INCLUDE_ARCH "$withval"
5145_ACEOF
5146
5147
5148
5149# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005150if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005151 withval=$with_cxx_include_32bit_dir;
5152else
5153 withval=""
5154fi
5155
5156
5157cat >>confdefs.h <<_ACEOF
5158#define CXX_INCLUDE_32BIT_DIR "$withval"
5159_ACEOF
5160
5161
5162
5163# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005164if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005165 withval=$with_cxx_include_64bit_dir;
5166else
5167 withval=""
5168fi
5169
5170
5171cat >>confdefs.h <<_ACEOF
5172#define CXX_INCLUDE_64BIT_DIR "$withval"
5173_ACEOF
5174
5175
5176
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005177# Check whether --with-binutils-include was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005178if test "${with_binutils_include+set}" = set; then
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005179 withval=$with_binutils_include;
5180else
5181 withval=default
5182fi
5183
5184case "$withval" in
5185 default) WITH_BINUTILS_INCDIR=default ;;
5186 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005187 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5188echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5189 { (exit 1); exit 1; }; } ;;
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005190esac
5191if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5192 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5193
5194 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5195 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005196 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5197echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5198 { (exit 1); exit 1; }; };
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005199 fi
5200fi
5201
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005202# Check whether --enable-libffi was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005203if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005204 enableval=$enable_libffi; case "$enableval" in
5205 yes) llvm_cv_enable_libffi="yes" ;;
5206 no) llvm_cv_enable_libffi="no" ;;
5207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005208echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005210 esac
5211else
5212 llvm_cv_enable_libffi=no
5213fi
5214
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005215
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005216if test "$llvm_cv_os_type" = "Win32" ; then
5217 llvmc_dynamic="yes"
5218else
5219 llvmc_dynamic="no"
5220fi
5221
5222# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005223if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005224 enableval=$enable_llvmc_dynamic;
5225else
5226 enableval=$llvmc_dynamic
5227fi
5228
5229if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5230 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5231
5232else
5233 ENABLE_LLVMC_DYNAMIC=
5234
5235fi
5236
5237# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005238if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005239 enableval=$enable_llvmc_dynamic_plugins;
5240else
5241 enableval=yes
5242fi
5243
5244if test ${enableval} = "yes" ; then
5245 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5246
5247else
5248 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5249
5250fi
5251
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005252
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005253ac_ext=c
5254ac_cpp='$CPP $CPPFLAGS'
5255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005258{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5259echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005260# On Suns, sometimes $CPP names a directory.
5261if test -n "$CPP" && test -d "$CPP"; then
5262 CPP=
5263fi
5264if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005265 if test "${ac_cv_prog_CPP+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005267else
5268 # Double quotes because CPP needs to be expanded
5269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5270 do
5271 ac_preproc_ok=false
5272for ac_c_preproc_warn_flag in '' yes
5273do
5274 # Use a header file that comes with gcc, so configuring glibc
5275 # with a fresh cross-compiler works.
5276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5277 # <limits.h> exists even on freestanding compilers.
5278 # On the NeXT, cc -E runs the code through the compiler's parser,
5279 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005280 cat >conftest.$ac_ext <<_ACEOF
5281/* confdefs.h. */
5282_ACEOF
5283cat confdefs.h >>conftest.$ac_ext
5284cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005285/* end confdefs.h. */
5286#ifdef __STDC__
5287# include <limits.h>
5288#else
5289# include <assert.h>
5290#endif
5291 Syntax error
5292_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005293if { (ac_try="$ac_cpp conftest.$ac_ext"
5294case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297esac
5298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5300 ac_status=$?
5301 grep -v '^ *+' conftest.er1 >conftest.err
5302 rm -f conftest.er1
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } >/dev/null; then
5306 if test -s conftest.err; then
5307 ac_cpp_err=$ac_c_preproc_warn_flag
5308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5309 else
5310 ac_cpp_err=
5311 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005312else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005313 ac_cpp_err=yes
5314fi
5315if test -z "$ac_cpp_err"; then
5316 :
5317else
5318 echo "$as_me: failed program was:" >&5
5319sed 's/^/| /' conftest.$ac_ext >&5
5320
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005321 # Broken: fails on valid input.
5322continue
5323fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005324
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005325rm -f conftest.err conftest.$ac_ext
5326
5327 # OK, works on sane cases. Now check whether nonexistent headers
5328 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005329 cat >conftest.$ac_ext <<_ACEOF
5330/* confdefs.h. */
5331_ACEOF
5332cat confdefs.h >>conftest.$ac_ext
5333cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005334/* end confdefs.h. */
5335#include <ac_nonexistent.h>
5336_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005337if { (ac_try="$ac_cpp conftest.$ac_ext"
5338case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341esac
5342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev/null; then
5350 if test -s conftest.err; then
5351 ac_cpp_err=$ac_c_preproc_warn_flag
5352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5353 else
5354 ac_cpp_err=
5355 fi
5356else
5357 ac_cpp_err=yes
5358fi
5359if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005360 # Broken: success on invalid input.
5361continue
5362else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005363 echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005366 # Passes both tests.
5367ac_preproc_ok=:
5368break
5369fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005370
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005371rm -f conftest.err conftest.$ac_ext
5372
5373done
5374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5375rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005376if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005377 break
5378fi
5379
5380 done
5381 ac_cv_prog_CPP=$CPP
5382
5383fi
5384 CPP=$ac_cv_prog_CPP
5385else
5386 ac_cv_prog_CPP=$CPP
5387fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005388{ echo "$as_me:$LINENO: result: $CPP" >&5
5389echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005390ac_preproc_ok=false
5391for ac_c_preproc_warn_flag in '' yes
5392do
5393 # Use a header file that comes with gcc, so configuring glibc
5394 # with a fresh cross-compiler works.
5395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5396 # <limits.h> exists even on freestanding compilers.
5397 # On the NeXT, cc -E runs the code through the compiler's parser,
5398 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005399 cat >conftest.$ac_ext <<_ACEOF
5400/* confdefs.h. */
5401_ACEOF
5402cat confdefs.h >>conftest.$ac_ext
5403cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005404/* end confdefs.h. */
5405#ifdef __STDC__
5406# include <limits.h>
5407#else
5408# include <assert.h>
5409#endif
5410 Syntax error
5411_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005412if { (ac_try="$ac_cpp conftest.$ac_ext"
5413case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null; then
5425 if test -s conftest.err; then
5426 ac_cpp_err=$ac_c_preproc_warn_flag
5427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5428 else
5429 ac_cpp_err=
5430 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005431else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005432 ac_cpp_err=yes
5433fi
5434if test -z "$ac_cpp_err"; then
5435 :
5436else
5437 echo "$as_me: failed program was:" >&5
5438sed 's/^/| /' conftest.$ac_ext >&5
5439
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005440 # Broken: fails on valid input.
5441continue
5442fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005443
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005444rm -f conftest.err conftest.$ac_ext
5445
5446 # OK, works on sane cases. Now check whether nonexistent headers
5447 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005448 cat >conftest.$ac_ext <<_ACEOF
5449/* confdefs.h. */
5450_ACEOF
5451cat confdefs.h >>conftest.$ac_ext
5452cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005453/* end confdefs.h. */
5454#include <ac_nonexistent.h>
5455_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005456if { (ac_try="$ac_cpp conftest.$ac_ext"
5457case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460esac
5461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } >/dev/null; then
5469 if test -s conftest.err; then
5470 ac_cpp_err=$ac_c_preproc_warn_flag
5471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5472 else
5473 ac_cpp_err=
5474 fi
5475else
5476 ac_cpp_err=yes
5477fi
5478if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005479 # Broken: success on invalid input.
5480continue
5481else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005482 echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005485 # Passes both tests.
5486ac_preproc_ok=:
5487break
5488fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005489
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005490rm -f conftest.err conftest.$ac_ext
5491
5492done
5493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5494rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005495if $ac_preproc_ok; then
5496 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005497else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005498 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5499See \`config.log' for more details." >&5
5500echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5501See \`config.log' for more details." >&2;}
5502 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005503fi
5504
5505ac_ext=c
5506ac_cpp='$CPP $CPPFLAGS'
5507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509ac_compiler_gnu=$ac_cv_c_compiler_gnu
5510
5511ac_ext=c
5512ac_cpp='$CPP $CPPFLAGS'
5513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516if test -n "$ac_tool_prefix"; then
5517 for ac_prog in gcc
5518 do
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523if test "${ac_cv_prog_CC+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005525else
5526 if test -n "$CC"; then
5527 ac_cv_prog_CC="$CC" # Let the user override the test.
5528else
5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 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 +00005536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005538 break 2
5539 fi
5540done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005541done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005542IFS=$as_save_IFS
5543
5544fi
5545fi
5546CC=$ac_cv_prog_CC
5547if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005548 { echo "$as_me:$LINENO: result: $CC" >&5
5549echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005550else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005551 { echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005553fi
5554
5555
5556 test -n "$CC" && break
5557 done
5558fi
5559if test -z "$CC"; then
5560 ac_ct_CC=$CC
5561 for ac_prog in gcc
5562do
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5567if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005569else
5570 if test -n "$ac_ct_CC"; then
5571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 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 +00005580 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005582 break 2
5583 fi
5584done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005585done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005586IFS=$as_save_IFS
5587
5588fi
5589fi
5590ac_ct_CC=$ac_cv_prog_ac_ct_CC
5591if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005592 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5593echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005594else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005595 { echo "$as_me:$LINENO: result: no" >&5
5596echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005597fi
5598
5599
5600 test -n "$ac_ct_CC" && break
5601done
5602
5603 if test "x$ac_ct_CC" = x; then
5604 CC=""
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005608{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5609whose name does not start with the host triplet. If you think this
5610configuration is useful to you, please write to autoconf@gnu.org." >&5
5611echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5612whose name does not start with the host triplet. If you think this
5613configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005614ac_tool_warned=yes ;;
5615esac
5616 CC=$ac_ct_CC
5617 fi
5618fi
5619
5620
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005621test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5622See \`config.log' for more details." >&5
5623echo "$as_me: error: no acceptable C compiler found in \$PATH
5624See \`config.log' for more details." >&2;}
5625 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005626
5627# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005628echo "$as_me:$LINENO: checking for C compiler version" >&5
5629ac_compiler=`set X $ac_compile; echo $2`
5630{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005631case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005637 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }
5640{ (ac_try="$ac_compiler -v >&5"
5641case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_compiler -v >&5") 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }
5650{ (ac_try="$ac_compiler -V >&5"
5651case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compiler -V >&5") 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005660
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005661{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5662echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5663if test "${ac_cv_c_compiler_gnu+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005665else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005666 cat >conftest.$ac_ext <<_ACEOF
5667/* confdefs.h. */
5668_ACEOF
5669cat confdefs.h >>conftest.$ac_ext
5670cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005671/* end confdefs.h. */
5672
5673int
5674main ()
5675{
5676#ifndef __GNUC__
5677 choke me
5678#endif
5679
5680 ;
5681 return 0;
5682}
5683_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005684rm -f conftest.$ac_objext
5685if { (ac_try="$ac_compile"
5686case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689esac
5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_compile") 2>conftest.er1
5692 ac_status=$?
5693 grep -v '^ *+' conftest.er1 >conftest.err
5694 rm -f conftest.er1
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5699 { (case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702esac
5703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_try") 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest.$ac_objext'
5709 { (case "(($ac_try" in
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5712esac
5713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_try") 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005718 ac_compiler_gnu=yes
5719else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005720 echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005724fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005725
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727ac_cv_c_compiler_gnu=$ac_compiler_gnu
5728
5729fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005730{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5731echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5732GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005733ac_test_CFLAGS=${CFLAGS+set}
5734ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005735{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5736echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5737if test "${ac_cv_prog_cc_g+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005739else
5740 ac_save_c_werror_flag=$ac_c_werror_flag
5741 ac_c_werror_flag=yes
5742 ac_cv_prog_cc_g=no
5743 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005744 cat >conftest.$ac_ext <<_ACEOF
5745/* confdefs.h. */
5746_ACEOF
5747cat confdefs.h >>conftest.$ac_ext
5748cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005749/* end confdefs.h. */
5750
5751int
5752main ()
5753{
5754
5755 ;
5756 return 0;
5757}
5758_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005759rm -f conftest.$ac_objext
5760if { (ac_try="$ac_compile"
5761case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764esac
5765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compile") 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5774 { (case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777esac
5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_try") 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 { (case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787esac
5788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_try") 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005793 ac_cv_prog_cc_g=yes
5794else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005795 echo "$as_me: failed program was:" >&5
5796sed 's/^/| /' conftest.$ac_ext >&5
5797
5798 CFLAGS=""
5799 cat >conftest.$ac_ext <<_ACEOF
5800/* confdefs.h. */
5801_ACEOF
5802cat confdefs.h >>conftest.$ac_ext
5803cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005804/* end confdefs.h. */
5805
5806int
5807main ()
5808{
5809
5810 ;
5811 return 0;
5812}
5813_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005814rm -f conftest.$ac_objext
5815if { (ac_try="$ac_compile"
5816case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832esac
5833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 :
Edwin Törökc27310c2010-01-26 08:50:50 +00005849else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005850 echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005854 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005855 cat >conftest.$ac_ext <<_ACEOF
5856/* confdefs.h. */
5857_ACEOF
5858cat confdefs.h >>conftest.$ac_ext
5859cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005860/* end confdefs.h. */
5861
5862int
5863main ()
5864{
5865
5866 ;
5867 return 0;
5868}
5869_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005870rm -f conftest.$ac_objext
5871if { (ac_try="$ac_compile"
5872case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875esac
5876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5885 { (case "(($ac_try" in
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5888esac
5889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_try") 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; } &&
5894 { ac_try='test -s conftest.$ac_objext'
5895 { (case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898esac
5899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_try") 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005904 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005910fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005911
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005914
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005917
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 ac_c_werror_flag=$ac_save_c_werror_flag
5920fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005921{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5922echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005923if test "$ac_test_CFLAGS" = set; then
5924 CFLAGS=$ac_save_CFLAGS
5925elif test $ac_cv_prog_cc_g = yes; then
5926 if test "$GCC" = yes; then
5927 CFLAGS="-g -O2"
5928 else
5929 CFLAGS="-g"
5930 fi
5931else
5932 if test "$GCC" = yes; then
5933 CFLAGS="-O2"
5934 else
5935 CFLAGS=
5936 fi
5937fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005938{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5939echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5940if test "${ac_cv_prog_cc_c89+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005942else
5943 ac_cv_prog_cc_c89=no
5944ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005945cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h. */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005950/* end confdefs.h. */
5951#include <stdarg.h>
5952#include <stdio.h>
5953#include <sys/types.h>
5954#include <sys/stat.h>
5955/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5956struct buf { int x; };
5957FILE * (*rcsopen) (struct buf *, struct stat *, int);
5958static char *e (p, i)
5959 char **p;
5960 int i;
5961{
5962 return p[i];
5963}
5964static char *f (char * (*g) (char **, int), char **p, ...)
5965{
5966 char *s;
5967 va_list v;
5968 va_start (v,p);
5969 s = g (p, va_arg (v,int));
5970 va_end (v);
5971 return s;
5972}
5973
5974/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5975 function prototypes and stuff, but not '\xHH' hex character constants.
5976 These don't provoke an error unfortunately, instead are silently treated
5977 as 'x'. The following induces an error, until -std is added to get
5978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5979 array size at least. It's necessary to write '\x00'==0 to get something
5980 that's true only with -std. */
5981int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5982
5983/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5984 inside strings and character constants. */
5985#define FOO(x) 'x'
5986int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5987
5988int test (int i, double x);
5989struct s1 {int (*f) (int a);};
5990struct s2 {int (*f) (double a);};
5991int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5992int argc;
5993char **argv;
5994int
5995main ()
5996{
5997return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5998 ;
5999 return 0;
6000}
6001_ACEOF
6002for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6004do
6005 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006006 rm -f conftest.$ac_objext
6007if { (ac_try="$ac_compile"
6008case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011esac
6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6021 { (case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024esac
6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_try") 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; } &&
6030 { ac_try='test -s conftest.$ac_objext'
6031 { (case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034esac
6035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_try") 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006040 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006041else
6042 echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006046fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006047
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006048rm -f core conftest.err conftest.$ac_objext
6049 test "x$ac_cv_prog_cc_c89" != "xno" && break
6050done
6051rm -f conftest.$ac_ext
6052CC=$ac_save_CC
6053
6054fi
6055# AC_CACHE_VAL
6056case "x$ac_cv_prog_cc_c89" in
6057 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006058 { echo "$as_me:$LINENO: result: none needed" >&5
6059echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006060 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006061 { echo "$as_me:$LINENO: result: unsupported" >&5
6062echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006063 *)
6064 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006065 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6066echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006067esac
6068
6069
6070ac_ext=c
6071ac_cpp='$CPP $CPPFLAGS'
6072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
6076ac_ext=cpp
6077ac_cpp='$CXXCPP $CPPFLAGS'
6078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6081if test -z "$CXX"; then
6082 if test -n "$CCC"; then
6083 CXX=$CCC
6084 else
6085 if test -n "$ac_tool_prefix"; then
6086 for ac_prog in g++
6087 do
6088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6089set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092if test "${ac_cv_prog_CXX+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006094else
6095 if test -n "$CXX"; then
6096 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 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 +00006105 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006107 break 2
6108 fi
6109done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006110done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006111IFS=$as_save_IFS
6112
6113fi
6114fi
6115CXX=$ac_cv_prog_CXX
6116if test -n "$CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006117 { echo "$as_me:$LINENO: result: $CXX" >&5
6118echo "${ECHO_T}$CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006119else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006120 { echo "$as_me:$LINENO: result: no" >&5
6121echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006122fi
6123
6124
6125 test -n "$CXX" && break
6126 done
6127fi
6128if test -z "$CXX"; then
6129 ac_ct_CXX=$CXX
6130 for ac_prog in g++
6131do
6132 # Extract the first word of "$ac_prog", so it can be a program name with args.
6133set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006138else
6139 if test -n "$ac_ct_CXX"; then
6140 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 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 +00006149 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006151 break 2
6152 fi
6153done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006154done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006155IFS=$as_save_IFS
6156
6157fi
6158fi
6159ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6160if test -n "$ac_ct_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006161 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6162echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006163else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006164 { echo "$as_me:$LINENO: result: no" >&5
6165echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006166fi
6167
6168
6169 test -n "$ac_ct_CXX" && break
6170done
6171
6172 if test "x$ac_ct_CXX" = x; then
6173 CXX="g++"
6174 else
6175 case $cross_compiling:$ac_tool_warned in
6176yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006177{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6178whose name does not start with the host triplet. If you think this
6179configuration is useful to you, please write to autoconf@gnu.org." >&5
6180echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6181whose name does not start with the host triplet. If you think this
6182configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006183ac_tool_warned=yes ;;
6184esac
6185 CXX=$ac_ct_CXX
6186 fi
6187fi
6188
6189 fi
6190fi
6191# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006192echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6193ac_compiler=`set X $ac_compile; echo $2`
6194{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006195case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006201 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }
6204{ (ac_try="$ac_compiler -v >&5"
6205case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208esac
6209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compiler -v >&5") 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }
6214{ (ac_try="$ac_compiler -V >&5"
6215case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218esac
6219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compiler -V >&5") 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006224
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006225{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6226echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6227if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006229else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006230 cat >conftest.$ac_ext <<_ACEOF
6231/* confdefs.h. */
6232_ACEOF
6233cat confdefs.h >>conftest.$ac_ext
6234cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006235/* end confdefs.h. */
6236
6237int
6238main ()
6239{
6240#ifndef __GNUC__
6241 choke me
6242#endif
6243
6244 ;
6245 return 0;
6246}
6247_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006248rm -f conftest.$ac_objext
6249if { (ac_try="$ac_compile"
6250case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253esac
6254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_compile") 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6263 { (case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266esac
6267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_try") 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; } &&
6272 { ac_try='test -s conftest.$ac_objext'
6273 { (case "(($ac_try" in
6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275 *) ac_try_echo=$ac_try;;
6276esac
6277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6278 (eval "$ac_try") 2>&5
6279 ac_status=$?
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006282 ac_compiler_gnu=yes
6283else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006284 echo "$as_me: failed program was:" >&5
6285sed 's/^/| /' conftest.$ac_ext >&5
6286
6287 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006288fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006289
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6292
6293fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006294{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6295echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6296GXX=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006297ac_test_CXXFLAGS=${CXXFLAGS+set}
6298ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006299{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6300echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6301if test "${ac_cv_prog_cxx_g+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006303else
6304 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6305 ac_cxx_werror_flag=yes
6306 ac_cv_prog_cxx_g=no
6307 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006308 cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h. */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006313/* end confdefs.h. */
6314
6315int
6316main ()
6317{
6318
6319 ;
6320 return 0;
6321}
6322_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006323rm -f conftest.$ac_objext
6324if { (ac_try="$ac_compile"
6325case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328esac
6329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_compile") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6338 { (case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_try") 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest.$ac_objext'
6348 { (case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6351esac
6352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_try") 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006357 ac_cv_prog_cxx_g=yes
6358else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006359 echo "$as_me: failed program was:" >&5
6360sed 's/^/| /' conftest.$ac_ext >&5
6361
6362 CXXFLAGS=""
6363 cat >conftest.$ac_ext <<_ACEOF
6364/* confdefs.h. */
6365_ACEOF
6366cat confdefs.h >>conftest.$ac_ext
6367cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006368/* end confdefs.h. */
6369
6370int
6371main ()
6372{
6373
6374 ;
6375 return 0;
6376}
6377_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006378rm -f conftest.$ac_objext
6379if { (ac_try="$ac_compile"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6393 { (case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396esac
6397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_try") 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406esac
6407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_try") 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 :
Edwin Törökc27310c2010-01-26 08:50:50 +00006413else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006414 echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006418 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006419 cat >conftest.$ac_ext <<_ACEOF
6420/* confdefs.h. */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006424/* end confdefs.h. */
6425
6426int
6427main ()
6428{
6429
6430 ;
6431 return 0;
6432}
6433_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006434rm -f conftest.$ac_objext
6435if { (ac_try="$ac_compile"
6436case "(($ac_try" in
6437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6438 *) ac_try_echo=$ac_try;;
6439esac
6440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6441 (eval "$ac_compile") 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6449 { (case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452esac
6453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_try") 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest.$ac_objext'
6459 { (case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462esac
6463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_try") 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006468 ac_cv_prog_cxx_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006469else
6470 echo "$as_me: failed program was:" >&5
6471sed 's/^/| /' conftest.$ac_ext >&5
6472
6473
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006474fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006475
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006478
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006481
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6484fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006485{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6486echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006487if test "$ac_test_CXXFLAGS" = set; then
6488 CXXFLAGS=$ac_save_CXXFLAGS
6489elif test $ac_cv_prog_cxx_g = yes; then
6490 if test "$GXX" = yes; then
6491 CXXFLAGS="-g -O2"
6492 else
6493 CXXFLAGS="-g"
6494 fi
6495else
6496 if test "$GXX" = yes; then
6497 CXXFLAGS="-O2"
6498 else
6499 CXXFLAGS=
6500 fi
6501fi
6502ac_ext=c
6503ac_cpp='$CPP $CPPFLAGS'
6504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506ac_compiler_gnu=$ac_cv_c_compiler_gnu
6507
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006508
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006509{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6510echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6511if test "${lt_cv_path_NM+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006513else
6514 if test -n "$NM"; then
6515 # Let the user override the test.
6516 lt_cv_path_NM="$NM"
6517else
6518 lt_nm_to_check="${ac_tool_prefix}nm"
6519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6520 lt_nm_to_check="$lt_nm_to_check nm"
6521 fi
6522 for lt_tmp_nm in $lt_nm_to_check; do
6523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6525 IFS="$lt_save_ifs"
6526 test -z "$ac_dir" && ac_dir=.
6527 tmp_nm="$ac_dir/$lt_tmp_nm"
6528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6529 # Check to see if the nm accepts a BSD-compat flag.
6530 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6531 # nm: unknown option "B" ignored
6532 # Tru64's nm complains that /dev/null is an invalid object file
6533 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6534 */dev/null* | *'Invalid file or object type'*)
6535 lt_cv_path_NM="$tmp_nm -B"
6536 break
6537 ;;
6538 *)
6539 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6540 */dev/null*)
6541 lt_cv_path_NM="$tmp_nm -p"
6542 break
6543 ;;
6544 *)
6545 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6546 continue # so that we can try to find one that supports BSD flags
6547 ;;
6548 esac
6549 ;;
6550 esac
6551 fi
6552 done
6553 IFS="$lt_save_ifs"
6554 done
6555 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6556fi
6557fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006558{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6559echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006560NM="$lt_cv_path_NM"
6561
6562
6563
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006564{ echo "$as_me:$LINENO: checking for GNU make" >&5
6565echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6566if test "${llvm_cv_gnu_make_command+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006568else
6569 llvm_cv_gnu_make_command=''
6570 for a in "$MAKE" make gmake gnumake ; do
6571 if test -z "$a" ; then continue ; fi ;
6572 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6573 then
6574 llvm_cv_gnu_make_command=$a ;
6575 break;
6576 fi
6577 done
6578fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006579{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6580echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006581 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6582 ifGNUmake='' ;
6583 else
6584 ifGNUmake='#' ;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006585 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6586echo "${ECHO_T}\"Not found\"" >&6; };
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006587 fi
6588
6589
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006590{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6591echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006592LN_S=$as_ln_s
6593if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006594 { echo "$as_me:$LINENO: result: yes" >&5
6595echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006596else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006597 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6598echo "${ECHO_T}no, using $LN_S" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006599fi
6600
6601# Extract the first word of "cmp", so it can be a program name with args.
6602set dummy cmp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6605if test "${ac_cv_path_CMP+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006607else
6608 case $CMP in
6609 [\\/]* | ?:[\\/]*)
6610 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6611 ;;
6612 *)
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 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 +00006620 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006622 break 2
6623 fi
6624done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006625done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006626IFS=$as_save_IFS
6627
6628 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6629 ;;
6630esac
6631fi
6632CMP=$ac_cv_path_CMP
6633if test -n "$CMP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006634 { echo "$as_me:$LINENO: result: $CMP" >&5
6635echo "${ECHO_T}$CMP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006636else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006637 { echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006639fi
6640
6641
6642# Extract the first word of "cp", so it can be a program name with args.
6643set dummy cp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646if test "${ac_cv_path_CP+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006648else
6649 case $CP in
6650 [\\/]* | ?:[\\/]*)
6651 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6652 ;;
6653 *)
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 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 +00006661 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006663 break 2
6664 fi
6665done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006666done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006667IFS=$as_save_IFS
6668
6669 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6670 ;;
6671esac
6672fi
6673CP=$ac_cv_path_CP
6674if test -n "$CP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006675 { echo "$as_me:$LINENO: result: $CP" >&5
6676echo "${ECHO_T}$CP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006677else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006678 { echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006680fi
6681
6682
6683# Extract the first word of "date", so it can be a program name with args.
6684set dummy date; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687if test "${ac_cv_path_DATE+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006689else
6690 case $DATE in
6691 [\\/]* | ?:[\\/]*)
6692 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6693 ;;
6694 *)
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 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 +00006702 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006704 break 2
6705 fi
6706done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006707done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006708IFS=$as_save_IFS
6709
6710 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6711 ;;
6712esac
6713fi
6714DATE=$ac_cv_path_DATE
6715if test -n "$DATE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006716 { echo "$as_me:$LINENO: result: $DATE" >&5
6717echo "${ECHO_T}$DATE" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006718else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006719 { echo "$as_me:$LINENO: result: no" >&5
6720echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006721fi
6722
6723
6724# Extract the first word of "find", so it can be a program name with args.
6725set dummy find; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728if test "${ac_cv_path_FIND+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006730else
6731 case $FIND in
6732 [\\/]* | ?:[\\/]*)
6733 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6734 ;;
6735 *)
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 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 +00006743 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006745 break 2
6746 fi
6747done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006748done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006749IFS=$as_save_IFS
6750
6751 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6752 ;;
6753esac
6754fi
6755FIND=$ac_cv_path_FIND
6756if test -n "$FIND"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006757 { echo "$as_me:$LINENO: result: $FIND" >&5
6758echo "${ECHO_T}$FIND" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006759else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006760 { echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006762fi
6763
6764
6765# Extract the first word of "grep", so it can be a program name with args.
6766set dummy grep; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769if test "${ac_cv_path_GREP+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006771else
6772 case $GREP in
6773 [\\/]* | ?:[\\/]*)
6774 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6775 ;;
6776 *)
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 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 +00006784 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006786 break 2
6787 fi
6788done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006789done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006790IFS=$as_save_IFS
6791
6792 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6793 ;;
6794esac
6795fi
6796GREP=$ac_cv_path_GREP
6797if test -n "$GREP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006798 { echo "$as_me:$LINENO: result: $GREP" >&5
6799echo "${ECHO_T}$GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006800else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006801 { echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006803fi
6804
6805
6806# Extract the first word of "mkdir", so it can be a program name with args.
6807set dummy mkdir; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810if test "${ac_cv_path_MKDIR+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006812else
6813 case $MKDIR in
6814 [\\/]* | ?:[\\/]*)
6815 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6816 ;;
6817 *)
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 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 +00006825 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006827 break 2
6828 fi
6829done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006830done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006831IFS=$as_save_IFS
6832
6833 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6834 ;;
6835esac
6836fi
6837MKDIR=$ac_cv_path_MKDIR
6838if test -n "$MKDIR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006839 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6840echo "${ECHO_T}$MKDIR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006841else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006842 { echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006844fi
6845
6846
6847# Extract the first word of "mv", so it can be a program name with args.
6848set dummy mv; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851if test "${ac_cv_path_MV+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006853else
6854 case $MV in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6857 ;;
6858 *)
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 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 +00006866 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006868 break 2
6869 fi
6870done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006871done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006872IFS=$as_save_IFS
6873
6874 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6875 ;;
6876esac
6877fi
6878MV=$ac_cv_path_MV
6879if test -n "$MV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006880 { echo "$as_me:$LINENO: result: $MV" >&5
6881echo "${ECHO_T}$MV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006882else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006883 { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006885fi
6886
6887
6888if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6890set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893if test "${ac_cv_prog_RANLIB+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006895else
6896 if test -n "$RANLIB"; then
6897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 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 +00006906 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006908 break 2
6909 fi
6910done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006911done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006912IFS=$as_save_IFS
6913
6914fi
6915fi
6916RANLIB=$ac_cv_prog_RANLIB
6917if test -n "$RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006918 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6919echo "${ECHO_T}$RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006920else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006921 { echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006923fi
6924
6925
6926fi
6927if test -z "$ac_cv_prog_RANLIB"; then
6928 ac_ct_RANLIB=$RANLIB
6929 # Extract the first word of "ranlib", so it can be a program name with args.
6930set dummy ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006935else
6936 if test -n "$ac_ct_RANLIB"; then
6937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 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 +00006946 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006948 break 2
6949 fi
6950done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006951done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006952IFS=$as_save_IFS
6953
6954fi
6955fi
6956ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6957if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006958 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6959echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006960else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006961 { echo "$as_me:$LINENO: result: no" >&5
6962echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006963fi
6964
6965 if test "x$ac_ct_RANLIB" = x; then
6966 RANLIB=":"
6967 else
6968 case $cross_compiling:$ac_tool_warned in
6969yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006970{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6971whose name does not start with the host triplet. If you think this
6972configuration is useful to you, please write to autoconf@gnu.org." >&5
6973echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6974whose name does not start with the host triplet. If you think this
6975configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006976ac_tool_warned=yes ;;
6977esac
6978 RANLIB=$ac_ct_RANLIB
6979 fi
6980else
6981 RANLIB="$ac_cv_prog_RANLIB"
6982fi
6983
Edwin Törökc27310c2010-01-26 08:50:50 +00006984if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6986set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989if test "${ac_cv_prog_AR+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00006991else
6992 if test -n "$AR"; then
6993 ac_cv_prog_AR="$AR" # Let the user override the test.
6994else
6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 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 +00007002 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007004 break 2
7005 fi
7006done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007007done
Edwin Törökc27310c2010-01-26 08:50:50 +00007008IFS=$as_save_IFS
7009
7010fi
7011fi
7012AR=$ac_cv_prog_AR
7013if test -n "$AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007014 { echo "$as_me:$LINENO: result: $AR" >&5
7015echo "${ECHO_T}$AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007016else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007017 { echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007019fi
7020
7021
7022fi
7023if test -z "$ac_cv_prog_AR"; then
7024 ac_ct_AR=$AR
7025 # Extract the first word of "ar", so it can be a program name with args.
7026set dummy ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00007031else
7032 if test -n "$ac_ct_AR"; then
7033 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7034else
7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 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 +00007042 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007044 break 2
7045 fi
7046done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007047done
Edwin Törökc27310c2010-01-26 08:50:50 +00007048IFS=$as_save_IFS
7049
7050fi
7051fi
7052ac_ct_AR=$ac_cv_prog_ac_ct_AR
7053if test -n "$ac_ct_AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007054 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7055echo "${ECHO_T}$ac_ct_AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007056else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007057 { echo "$as_me:$LINENO: result: no" >&5
7058echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007059fi
7060
7061 if test "x$ac_ct_AR" = x; then
7062 AR="false"
7063 else
7064 case $cross_compiling:$ac_tool_warned in
7065yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007066{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7067whose name does not start with the host triplet. If you think this
7068configuration is useful to you, please write to autoconf@gnu.org." >&5
7069echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7070whose name does not start with the host triplet. If you think this
7071configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Edwin Törökc27310c2010-01-26 08:50:50 +00007072ac_tool_warned=yes ;;
7073esac
7074 AR=$ac_ct_AR
7075 fi
7076else
7077 AR="$ac_cv_prog_AR"
7078fi
7079
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007080# Extract the first word of "rm", so it can be a program name with args.
7081set dummy rm; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084if test "${ac_cv_path_RM+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007086else
7087 case $RM in
7088 [\\/]* | ?:[\\/]*)
7089 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7090 ;;
7091 *)
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 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 +00007099 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007101 break 2
7102 fi
7103done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007104done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007105IFS=$as_save_IFS
7106
7107 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7108 ;;
7109esac
7110fi
7111RM=$ac_cv_path_RM
7112if test -n "$RM"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007113 { echo "$as_me:$LINENO: result: $RM" >&5
7114echo "${ECHO_T}$RM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007115else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007116 { echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007118fi
7119
7120
7121# Extract the first word of "sed", so it can be a program name with args.
7122set dummy sed; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125if test "${ac_cv_path_SED+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007127else
7128 case $SED in
7129 [\\/]* | ?:[\\/]*)
7130 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7131 ;;
7132 *)
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 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 +00007140 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007142 break 2
7143 fi
7144done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007145done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007146IFS=$as_save_IFS
7147
7148 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7149 ;;
7150esac
7151fi
7152SED=$ac_cv_path_SED
7153if test -n "$SED"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007154 { echo "$as_me:$LINENO: result: $SED" >&5
7155echo "${ECHO_T}$SED" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007156else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007157 { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007159fi
7160
7161
7162# Extract the first word of "tar", so it can be a program name with args.
7163set dummy tar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166if test "${ac_cv_path_TAR+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007168else
7169 case $TAR in
7170 [\\/]* | ?:[\\/]*)
7171 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7172 ;;
7173 *)
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 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 +00007181 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007183 break 2
7184 fi
7185done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007186done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007187IFS=$as_save_IFS
7188
7189 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7190 ;;
7191esac
7192fi
7193TAR=$ac_cv_path_TAR
7194if test -n "$TAR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007195 { echo "$as_me:$LINENO: result: $TAR" >&5
7196echo "${ECHO_T}$TAR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007197else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007198 { echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007200fi
7201
7202
7203# Extract the first word of "pwd", so it can be a program name with args.
7204set dummy pwd; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207if test "${ac_cv_path_BINPWD+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007209else
7210 case $BINPWD in
7211 [\\/]* | ?:[\\/]*)
7212 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7213 ;;
7214 *)
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 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 +00007222 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007224 break 2
7225 fi
7226done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007227done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007228IFS=$as_save_IFS
7229
7230 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7231 ;;
7232esac
7233fi
7234BINPWD=$ac_cv_path_BINPWD
7235if test -n "$BINPWD"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007236 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7237echo "${ECHO_T}$BINPWD" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007238else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007239 { echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007241fi
7242
7243
7244
7245# Extract the first word of "Graphviz", so it can be a program name with args.
7246set dummy Graphviz; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007251else
7252 case $GRAPHVIZ in
7253 [\\/]* | ?:[\\/]*)
7254 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7255 ;;
7256 *)
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007264 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007266 break 2
7267 fi
7268done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007269done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007270IFS=$as_save_IFS
7271
7272 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7273 ;;
7274esac
7275fi
7276GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7277if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007278 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7279echo "${ECHO_T}$GRAPHVIZ" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007280else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007281 { echo "$as_me:$LINENO: result: no" >&5
7282echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007283fi
7284
7285
7286if test "$GRAPHVIZ" != "echo Graphviz" ; then
7287
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007288cat >>confdefs.h <<\_ACEOF
7289#define HAVE_GRAPHVIZ 1
7290_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007291
7292 if test "$llvm_cv_os_type" = "MingW" ; then
7293 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7294 fi
7295
7296cat >>confdefs.h <<_ACEOF
7297#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7298_ACEOF
7299
7300fi
7301# Extract the first word of "dot", so it can be a program name with args.
7302set dummy dot; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305if test "${ac_cv_path_DOT+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007307else
7308 case $DOT in
7309 [\\/]* | ?:[\\/]*)
7310 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7311 ;;
7312 *)
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 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 +00007320 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007322 break 2
7323 fi
7324done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007325done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007326IFS=$as_save_IFS
7327
7328 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7329 ;;
7330esac
7331fi
7332DOT=$ac_cv_path_DOT
7333if test -n "$DOT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007334 { echo "$as_me:$LINENO: result: $DOT" >&5
7335echo "${ECHO_T}$DOT" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007336else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007337 { echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007339fi
7340
7341
7342if test "$DOT" != "echo dot" ; then
7343
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007344cat >>confdefs.h <<\_ACEOF
7345#define HAVE_DOT 1
7346_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007347
7348 if test "$llvm_cv_os_type" = "MingW" ; then
7349 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7350 fi
7351
7352cat >>confdefs.h <<_ACEOF
7353#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7354_ACEOF
7355
7356fi
David Greenedb740ef2009-07-09 17:16:26 +00007357# Extract the first word of "fdp", so it can be a program name with args.
7358set dummy fdp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361if test "${ac_cv_path_FDP+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007363else
7364 case $FDP in
7365 [\\/]* | ?:[\\/]*)
7366 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7367 ;;
7368 *)
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 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 +00007376 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007378 break 2
7379 fi
7380done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007381done
David Greenedb740ef2009-07-09 17:16:26 +00007382IFS=$as_save_IFS
7383
7384 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7385 ;;
7386esac
7387fi
7388FDP=$ac_cv_path_FDP
7389if test -n "$FDP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007390 { echo "$as_me:$LINENO: result: $FDP" >&5
7391echo "${ECHO_T}$FDP" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007392else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007393 { echo "$as_me:$LINENO: result: no" >&5
7394echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007395fi
7396
7397
7398if test "$FDP" != "echo fdp" ; then
7399
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007400cat >>confdefs.h <<\_ACEOF
7401#define HAVE_FDP 1
7402_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007403
7404 if test "$llvm_cv_os_type" = "MingW" ; then
7405 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7406 fi
7407
7408cat >>confdefs.h <<_ACEOF
7409#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7410_ACEOF
7411
7412fi
7413# Extract the first word of "neato", so it can be a program name with args.
7414set dummy neato; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417if test "${ac_cv_path_NEATO+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007419else
7420 case $NEATO in
7421 [\\/]* | ?:[\\/]*)
7422 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7423 ;;
7424 *)
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 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 +00007432 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007434 break 2
7435 fi
7436done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007437done
David Greenedb740ef2009-07-09 17:16:26 +00007438IFS=$as_save_IFS
7439
7440 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7441 ;;
7442esac
7443fi
7444NEATO=$ac_cv_path_NEATO
7445if test -n "$NEATO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007446 { echo "$as_me:$LINENO: result: $NEATO" >&5
7447echo "${ECHO_T}$NEATO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007448else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007449 { echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007451fi
7452
7453
7454if test "$NEATO" != "echo neato" ; then
7455
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007456cat >>confdefs.h <<\_ACEOF
7457#define HAVE_NEATO 1
7458_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007459
7460 if test "$llvm_cv_os_type" = "MingW" ; then
7461 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7462 fi
7463
7464cat >>confdefs.h <<_ACEOF
7465#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7466_ACEOF
7467
7468fi
7469# Extract the first word of "twopi", so it can be a program name with args.
7470set dummy twopi; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473if test "${ac_cv_path_TWOPI+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007475else
7476 case $TWOPI in
7477 [\\/]* | ?:[\\/]*)
7478 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7479 ;;
7480 *)
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 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 +00007488 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007490 break 2
7491 fi
7492done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007493done
David Greenedb740ef2009-07-09 17:16:26 +00007494IFS=$as_save_IFS
7495
7496 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7497 ;;
7498esac
7499fi
7500TWOPI=$ac_cv_path_TWOPI
7501if test -n "$TWOPI"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007502 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7503echo "${ECHO_T}$TWOPI" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007504else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007505 { echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007507fi
7508
7509
7510if test "$TWOPI" != "echo twopi" ; then
7511
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007512cat >>confdefs.h <<\_ACEOF
7513#define HAVE_TWOPI 1
7514_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007515
7516 if test "$llvm_cv_os_type" = "MingW" ; then
7517 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7518 fi
7519
7520cat >>confdefs.h <<_ACEOF
7521#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7522_ACEOF
7523
7524fi
7525# Extract the first word of "circo", so it can be a program name with args.
7526set dummy circo; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7529if test "${ac_cv_path_CIRCO+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007531else
7532 case $CIRCO in
7533 [\\/]* | ?:[\\/]*)
7534 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7535 ;;
7536 *)
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 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 +00007544 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007546 break 2
7547 fi
7548done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007549done
David Greenedb740ef2009-07-09 17:16:26 +00007550IFS=$as_save_IFS
7551
7552 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7553 ;;
7554esac
7555fi
7556CIRCO=$ac_cv_path_CIRCO
7557if test -n "$CIRCO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007558 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7559echo "${ECHO_T}$CIRCO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007560else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007561 { echo "$as_me:$LINENO: result: no" >&5
7562echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007563fi
7564
7565
7566if test "$CIRCO" != "echo circo" ; then
7567
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007568cat >>confdefs.h <<\_ACEOF
7569#define HAVE_CIRCO 1
7570_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007571
7572 if test "$llvm_cv_os_type" = "MingW" ; then
7573 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7574 fi
7575
7576cat >>confdefs.h <<_ACEOF
7577#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7578_ACEOF
7579
7580fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007581for ac_prog in gv gsview32
7582do
7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
7584set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587if test "${ac_cv_path_GV+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007589else
7590 case $GV in
7591 [\\/]* | ?:[\\/]*)
7592 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7593 ;;
7594 *)
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007602 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007604 break 2
7605 fi
7606done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007607done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007608IFS=$as_save_IFS
7609
7610 ;;
7611esac
7612fi
7613GV=$ac_cv_path_GV
7614if test -n "$GV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007615 { echo "$as_me:$LINENO: result: $GV" >&5
7616echo "${ECHO_T}$GV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007617else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007618 { echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007620fi
7621
7622
7623 test -n "$GV" && break
7624done
7625test -n "$GV" || GV="echo gv"
7626
7627if test "$GV" != "echo gv" ; then
7628
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007629cat >>confdefs.h <<\_ACEOF
7630#define HAVE_GV 1
7631_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007632
7633 if test "$llvm_cv_os_type" = "MingW" ; then
7634 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7635 fi
7636
7637cat >>confdefs.h <<_ACEOF
7638#define LLVM_PATH_GV "$GV${EXEEXT}"
7639_ACEOF
7640
7641fi
7642# Extract the first word of "dotty", so it can be a program name with args.
7643set dummy dotty; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646if test "${ac_cv_path_DOTTY+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007648else
7649 case $DOTTY in
7650 [\\/]* | ?:[\\/]*)
7651 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7652 ;;
7653 *)
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 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 +00007661 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007663 break 2
7664 fi
7665done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007666done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007667IFS=$as_save_IFS
7668
7669 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7670 ;;
7671esac
7672fi
7673DOTTY=$ac_cv_path_DOTTY
7674if test -n "$DOTTY"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007675 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7676echo "${ECHO_T}$DOTTY" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007677else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007678 { echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007680fi
7681
7682
7683if test "$DOTTY" != "echo dotty" ; then
7684
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007685cat >>confdefs.h <<\_ACEOF
7686#define HAVE_DOTTY 1
7687_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007688
7689 if test "$llvm_cv_os_type" = "MingW" ; then
7690 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7691 fi
7692
7693cat >>confdefs.h <<_ACEOF
7694#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7695_ACEOF
7696
7697fi
7698
7699
7700# Extract the first word of "perl", so it can be a program name with args.
7701set dummy perl; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704if test "${ac_cv_path_PERL+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007706else
7707 case $PERL in
7708 [\\/]* | ?:[\\/]*)
7709 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7710 ;;
7711 *)
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713for as_dir in $PATH
7714do
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 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 +00007719 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007721 break 2
7722 fi
7723done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007724done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007725IFS=$as_save_IFS
7726
7727 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7728 ;;
7729esac
7730fi
7731PERL=$ac_cv_path_PERL
7732if test -n "$PERL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007733 { echo "$as_me:$LINENO: result: $PERL" >&5
7734echo "${ECHO_T}$PERL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007735else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007736 { echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007738fi
7739
7740
7741if test "$PERL" != "none"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007742 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7743echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007744 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007745 { echo "$as_me:$LINENO: result: yes" >&5
7746echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007747 else
7748 PERL=none
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007749 { echo "$as_me:$LINENO: result: not found" >&5
7750echo "${ECHO_T}not found" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007751 fi
7752fi
7753
7754
7755if test x"$PERL" = xnone; then
7756 HAVE_PERL=0
7757
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007758 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7759echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7760 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007761else
7762 HAVE_PERL=1
7763
7764fi
7765
7766# Find a good install program. We prefer a C program (faster),
7767# so one script is as good as another. But avoid the broken or
7768# incompatible versions:
7769# SysV /etc/install, /usr/sbin/install
7770# SunOS /usr/etc/install
7771# IRIX /sbin/install
7772# AIX /bin/install
7773# AmigaOS /C/install, which installs bootblocks on floppy discs
7774# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7775# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7776# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7777# OS/2's system install, which has a completely different semantic
7778# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007779{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7780echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007781if test -z "$INSTALL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007782if test "${ac_cv_path_install+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007784else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007790 # Account for people who put trailing slashes in PATH elements.
7791case $as_dir/ in
7792 ./ | .// | /cC/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007793 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007794 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007795 /usr/ucb/* ) ;;
7796 *)
7797 # OSF1 and SCO ODT 3.0 have their own names for install.
7798 # Don't use installbsd from OSF since it installs stuff as root
7799 # by default.
7800 for ac_prog in ginstall scoinst install; do
7801 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007802 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 +00007803 if test $ac_prog = install &&
7804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7805 # AIX install. It has an incompatible calling convention.
7806 :
7807 elif test $ac_prog = install &&
7808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7809 # program-specific install script used by HP pwplus--don't use.
7810 :
7811 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007812 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7813 break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007814 fi
7815 fi
7816 done
7817 done
7818 ;;
7819esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007820done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007821IFS=$as_save_IFS
7822
7823
7824fi
7825 if test "${ac_cv_path_install+set}" = set; then
7826 INSTALL=$ac_cv_path_install
7827 else
7828 # As a last resort, use the slow shell script. Don't cache a
7829 # value for INSTALL within a source directory, because that will
7830 # break other packages using the cache if that directory is
7831 # removed, or if the value is a relative name.
7832 INSTALL=$ac_install_sh
7833 fi
7834fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007835{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7836echo "${ECHO_T}$INSTALL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007837
7838# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7839# It thinks the first close brace ends the variable substitution.
7840test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7841
7842test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7843
7844test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7845
7846
7847# Extract the first word of "bzip2", so it can be a program name with args.
7848set dummy bzip2; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851if test "${ac_cv_path_BZIP2+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007853else
7854 case $BZIP2 in
7855 [\\/]* | ?:[\\/]*)
7856 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7857 ;;
7858 *)
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 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 +00007866 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007868 break 2
7869 fi
7870done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007871done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007872IFS=$as_save_IFS
7873
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007874 ;;
7875esac
7876fi
7877BZIP2=$ac_cv_path_BZIP2
7878if test -n "$BZIP2"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007879 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7880echo "${ECHO_T}$BZIP2" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007881else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007882 { echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007884fi
7885
7886
7887# Extract the first word of "doxygen", so it can be a program name with args.
7888set dummy doxygen; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7891if test "${ac_cv_path_DOXYGEN+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007893else
7894 case $DOXYGEN in
7895 [\\/]* | ?:[\\/]*)
7896 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7897 ;;
7898 *)
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 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 +00007906 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007908 break 2
7909 fi
7910done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007911done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007912IFS=$as_save_IFS
7913
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007914 ;;
7915esac
7916fi
7917DOXYGEN=$ac_cv_path_DOXYGEN
7918if test -n "$DOXYGEN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007919 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7920echo "${ECHO_T}$DOXYGEN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007921else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007922 { echo "$as_me:$LINENO: result: no" >&5
7923echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007924fi
7925
7926
7927# Extract the first word of "groff", so it can be a program name with args.
7928set dummy groff; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931if test "${ac_cv_path_GROFF+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007933else
7934 case $GROFF in
7935 [\\/]* | ?:[\\/]*)
7936 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7937 ;;
7938 *)
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 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 +00007946 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007948 break 2
7949 fi
7950done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007951done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007952IFS=$as_save_IFS
7953
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007954 ;;
7955esac
7956fi
7957GROFF=$ac_cv_path_GROFF
7958if test -n "$GROFF"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007959 { echo "$as_me:$LINENO: result: $GROFF" >&5
7960echo "${ECHO_T}$GROFF" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007961else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007962 { echo "$as_me:$LINENO: result: no" >&5
7963echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007964fi
7965
7966
7967# Extract the first word of "gzip", so it can be a program name with args.
7968set dummy gzip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971if test "${ac_cv_path_GZIP+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007973else
7974 case $GZIP in
7975 [\\/]* | ?:[\\/]*)
7976 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7977 ;;
7978 *)
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980for as_dir in $PATH
7981do
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 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 +00007986 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007988 break 2
7989 fi
7990done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007991done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007992IFS=$as_save_IFS
7993
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007994 ;;
7995esac
7996fi
7997GZIP=$ac_cv_path_GZIP
7998if test -n "$GZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007999 { echo "$as_me:$LINENO: result: $GZIP" >&5
8000echo "${ECHO_T}$GZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008001else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008002 { echo "$as_me:$LINENO: result: no" >&5
8003echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008004fi
8005
8006
8007# Extract the first word of "pod2html", so it can be a program name with args.
8008set dummy pod2html; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8011if test "${ac_cv_path_POD2HTML+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008013else
8014 case $POD2HTML in
8015 [\\/]* | ?:[\\/]*)
8016 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8017 ;;
8018 *)
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020for as_dir in $PATH
8021do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 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 +00008026 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008028 break 2
8029 fi
8030done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008031done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008032IFS=$as_save_IFS
8033
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008034 ;;
8035esac
8036fi
8037POD2HTML=$ac_cv_path_POD2HTML
8038if test -n "$POD2HTML"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008039 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8040echo "${ECHO_T}$POD2HTML" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008041else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008042 { echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008044fi
8045
8046
8047# Extract the first word of "pod2man", so it can be a program name with args.
8048set dummy pod2man; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051if test "${ac_cv_path_POD2MAN+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008053else
8054 case $POD2MAN in
8055 [\\/]* | ?:[\\/]*)
8056 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8057 ;;
8058 *)
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 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 +00008066 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008068 break 2
8069 fi
8070done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008071done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008072IFS=$as_save_IFS
8073
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008074 ;;
8075esac
8076fi
8077POD2MAN=$ac_cv_path_POD2MAN
8078if test -n "$POD2MAN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008079 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8080echo "${ECHO_T}$POD2MAN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008081else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008082 { echo "$as_me:$LINENO: result: no" >&5
8083echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008084fi
8085
8086
8087# Extract the first word of "runtest", so it can be a program name with args.
8088set dummy runtest; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8091if test "${ac_cv_path_RUNTEST+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008093else
8094 case $RUNTEST in
8095 [\\/]* | ?:[\\/]*)
8096 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8097 ;;
8098 *)
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100for as_dir in $PATH
8101do
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 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 +00008106 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008108 break 2
8109 fi
8110done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008111done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008112IFS=$as_save_IFS
8113
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008114 ;;
8115esac
8116fi
8117RUNTEST=$ac_cv_path_RUNTEST
8118if test -n "$RUNTEST"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008119 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8120echo "${ECHO_T}$RUNTEST" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008121else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008122 { echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008124fi
8125
8126
8127
8128no_itcl=true
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008129{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8130echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008131
8132# Check whether --with-tclinclude was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008133if test "${with_tclinclude+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008134 withval=$with_tclinclude; with_tclinclude=${withval}
8135else
8136 with_tclinclude=''
8137fi
8138
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008139if test "${ac_cv_path_tclsh+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008141else
8142
8143if test x"${with_tclinclude}" != x ; then
8144 if test -f ${with_tclinclude}/tclsh ; then
8145 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8146 elif test -f ${with_tclinclude}/src/tclsh ; then
8147 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8148 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008149 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8150echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8151 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008152 fi
8153fi
Edwin Törökc27310c2010-01-26 08:50:50 +00008154fi
8155
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008156
8157if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008158 { echo "$as_me:$LINENO: result: none" >&5
8159echo "${ECHO_T}none" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008160 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
8161do
8162 # Extract the first word of "$ac_prog", so it can be a program name with args.
8163set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166if test "${ac_cv_path_TCLSH+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008168else
8169 case $TCLSH in
8170 [\\/]* | ?:[\\/]*)
8171 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8172 ;;
8173 *)
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175for as_dir in $PATH
8176do
8177 IFS=$as_save_IFS
8178 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 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 +00008181 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008183 break 2
8184 fi
8185done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008186done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008187IFS=$as_save_IFS
8188
8189 ;;
8190esac
8191fi
8192TCLSH=$ac_cv_path_TCLSH
8193if test -n "$TCLSH"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008194 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8195echo "${ECHO_T}$TCLSH" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008196else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008197 { echo "$as_me:$LINENO: result: no" >&5
8198echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008199fi
8200
8201
8202 test -n "$TCLSH" && break
8203done
8204
8205 if test x"${TCLSH}" = x ; then
8206 ac_cv_path_tclsh='';
8207 else
8208 ac_cv_path_tclsh="${TCLSH}";
8209 fi
8210else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008211 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8212echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008213 TCLSH="${ac_cv_path_tclsh}"
8214
8215fi
8216
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008217# Extract the first word of "zip", so it can be a program name with args.
8218set dummy zip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221if test "${ac_cv_path_ZIP+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008223else
8224 case $ZIP in
8225 [\\/]* | ?:[\\/]*)
8226 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8227 ;;
8228 *)
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 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 +00008236 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008238 break 2
8239 fi
8240done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008241done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008242IFS=$as_save_IFS
8243
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008244 ;;
8245esac
8246fi
8247ZIP=$ac_cv_path_ZIP
8248if test -n "$ZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008249 { echo "$as_me:$LINENO: result: $ZIP" >&5
8250echo "${ECHO_T}$ZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008251else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008252 { echo "$as_me:$LINENO: result: no" >&5
8253echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008254fi
8255
8256
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008257for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008258do
8259 # Extract the first word of "$ac_prog", so it can be a program name with args.
8260set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8263if test "${ac_cv_path_OCAMLC+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008265else
8266 case $OCAMLC in
8267 [\\/]* | ?:[\\/]*)
8268 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8269 ;;
8270 *)
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 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 +00008278 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008280 break 2
8281 fi
8282done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008283done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008284IFS=$as_save_IFS
8285
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008286 ;;
8287esac
8288fi
8289OCAMLC=$ac_cv_path_OCAMLC
8290if test -n "$OCAMLC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008291 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8292echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008293else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008294 { echo "$as_me:$LINENO: result: no" >&5
8295echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008296fi
8297
8298
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008299 test -n "$OCAMLC" && break
8300done
8301
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008302for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008303do
8304 # Extract the first word of "$ac_prog", so it can be a program name with args.
8305set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008310else
8311 case $OCAMLOPT in
8312 [\\/]* | ?:[\\/]*)
8313 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8314 ;;
8315 *)
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317for as_dir in $PATH
8318do
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 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 +00008323 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008325 break 2
8326 fi
8327done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008328done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008329IFS=$as_save_IFS
8330
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008331 ;;
8332esac
8333fi
8334OCAMLOPT=$ac_cv_path_OCAMLOPT
8335if test -n "$OCAMLOPT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008336 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8337echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008338else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008339 { echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008341fi
8342
8343
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008344 test -n "$OCAMLOPT" && break
8345done
8346
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008347for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008348do
8349 # Extract the first word of "$ac_prog", so it can be a program name with args.
8350set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8353if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008355else
8356 case $OCAMLDEP in
8357 [\\/]* | ?:[\\/]*)
8358 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8359 ;;
8360 *)
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 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 +00008368 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008370 break 2
8371 fi
8372done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008373done
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008374IFS=$as_save_IFS
8375
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008376 ;;
8377esac
8378fi
8379OCAMLDEP=$ac_cv_path_OCAMLDEP
8380if test -n "$OCAMLDEP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008381 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8382echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008383else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008384 { echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008386fi
8387
8388
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008389 test -n "$OCAMLDEP" && break
8390done
8391
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008392for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008393do
8394 # Extract the first word of "$ac_prog", so it can be a program name with args.
8395set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008400else
8401 case $OCAMLDOC in
8402 [\\/]* | ?:[\\/]*)
8403 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8404 ;;
8405 *)
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407for as_dir in $PATH
8408do
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 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 +00008413 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008415 break 2
8416 fi
8417done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008418done
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008419IFS=$as_save_IFS
8420
8421 ;;
8422esac
8423fi
8424OCAMLDOC=$ac_cv_path_OCAMLDOC
8425if test -n "$OCAMLDOC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008426 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8427echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008428else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008429 { echo "$as_me:$LINENO: result: no" >&5
8430echo "${ECHO_T}no" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008431fi
8432
8433
8434 test -n "$OCAMLDOC" && break
8435done
8436
Edwin Török20176752008-10-22 09:56:27 +00008437for ac_prog in gas as
8438do
8439 # Extract the first word of "$ac_prog", so it can be a program name with args.
8440set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8443if test "${ac_cv_path_GAS+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Török20176752008-10-22 09:56:27 +00008445else
8446 case $GAS in
8447 [\\/]* | ?:[\\/]*)
8448 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8449 ;;
8450 *)
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452for as_dir in $PATH
8453do
8454 IFS=$as_save_IFS
8455 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 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 +00008458 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Török20176752008-10-22 09:56:27 +00008460 break 2
8461 fi
8462done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008463done
Edwin Török20176752008-10-22 09:56:27 +00008464IFS=$as_save_IFS
8465
8466 ;;
8467esac
8468fi
8469GAS=$ac_cv_path_GAS
8470if test -n "$GAS"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008471 { echo "$as_me:$LINENO: result: $GAS" >&5
8472echo "${ECHO_T}$GAS" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008473else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008474 { echo "$as_me:$LINENO: result: no" >&5
8475echo "${ECHO_T}no" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008476fi
8477
8478
8479 test -n "$GAS" && break
8480done
8481
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008482
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008483{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8484echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8485if test "${llvm_cv_link_use_r+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008487else
8488 ac_ext=c
8489ac_cpp='$CPP $CPPFLAGS'
8490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492ac_compiler_gnu=$ac_cv_c_compiler_gnu
8493
8494 oldcflags="$CFLAGS"
8495 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008496 cat >conftest.$ac_ext <<_ACEOF
8497/* confdefs.h. */
8498_ACEOF
8499cat confdefs.h >>conftest.$ac_ext
8500cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008501/* end confdefs.h. */
8502
8503int
8504main ()
8505{
8506int main() { return 0; }
8507 ;
8508 return 0;
8509}
8510_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008511rm -f conftest.$ac_objext conftest$ac_exeext
8512if { (ac_try="$ac_link"
8513case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516esac
8517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_link") 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8526 { (case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529esac
8530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_try") 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8539esac
8540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_try") 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008545 llvm_cv_link_use_r=yes
8546else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008547 echo "$as_me: failed program was:" >&5
8548sed 's/^/| /' conftest.$ac_ext >&5
8549
8550 llvm_cv_link_use_r=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008551fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008552
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008553rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008554 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008555 CFLAGS="$oldcflags"
8556 ac_ext=c
8557ac_cpp='$CPP $CPPFLAGS'
8558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8560ac_compiler_gnu=$ac_cv_c_compiler_gnu
8561
8562
8563fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008564{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8565echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008566if test "$llvm_cv_link_use_r" = yes ; then
8567
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008568cat >>confdefs.h <<\_ACEOF
8569#define HAVE_LINK_R 1
8570_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008571
8572 fi
8573
8574
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008575{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8576echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8577if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky6eab6652009-03-05 08:20:44 +00008579else
8580 ac_ext=c
8581ac_cpp='$CPP $CPPFLAGS'
8582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584ac_compiler_gnu=$ac_cv_c_compiler_gnu
8585
8586 oldcflags="$CFLAGS"
8587 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008588 cat >conftest.$ac_ext <<_ACEOF
8589/* confdefs.h. */
8590_ACEOF
8591cat confdefs.h >>conftest.$ac_ext
8592cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008593/* end confdefs.h. */
8594
8595int
8596main ()
8597{
8598int main() { return 0; }
8599 ;
8600 return 0;
8601}
8602_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008603rm -f conftest.$ac_objext conftest$ac_exeext
8604if { (ac_try="$ac_link"
8605case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8608esac
8609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_link") 2>conftest.er1
8611 ac_status=$?
8612 grep -v '^ *+' conftest.er1 >conftest.err
8613 rm -f conftest.er1
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621esac
8622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631esac
8632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008637 llvm_cv_link_use_export_dynamic=yes
8638else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008639 echo "$as_me: failed program was:" >&5
8640sed 's/^/| /' conftest.$ac_ext >&5
8641
8642 llvm_cv_link_use_export_dynamic=no
Nick Lewycky6eab6652009-03-05 08:20:44 +00008643fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008644
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008645rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008646 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky6eab6652009-03-05 08:20:44 +00008647 CFLAGS="$oldcflags"
8648 ac_ext=c
8649ac_cpp='$CPP $CPPFLAGS'
8650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652ac_compiler_gnu=$ac_cv_c_compiler_gnu
8653
8654
8655fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008656{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8657echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky6eab6652009-03-05 08:20:44 +00008658if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8659
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008660cat >>confdefs.h <<\_ACEOF
8661#define HAVE_LINK_EXPORT_DYNAMIC 1
8662_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008663
8664 fi
8665
8666
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008667
8668
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008669{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8670echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8671if test "${ac_cv_c_const+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008673else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008674 cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008679/* end confdefs.h. */
8680
8681int
8682main ()
8683{
8684/* FIXME: Include the comments suggested by Paul. */
8685#ifndef __cplusplus
8686 /* Ultrix mips cc rejects this. */
8687 typedef int charset[2];
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008688 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008689 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008690 char const *const *ccp;
8691 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008692 /* NEC SVR4.0.2 mips cc rejects this. */
8693 struct point {int x, y;};
8694 static struct point const zero = {0,0};
8695 /* AIX XL C 1.02.0.0 rejects this.
8696 It does not let you subtract one const X* pointer from another in
8697 an arm of an if-expression whose if-part is not a constant
8698 expression */
8699 const char *g = "string";
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008700 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008701 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008702 ++ccp;
8703 p = (char**) ccp;
8704 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008705 { /* SCO 3.2v4 cc rejects this. */
8706 char *t;
8707 char const *s = 0 ? (char *) 0 : (char const *) 0;
8708
8709 *t++ = 0;
8710 if (s) return 0;
8711 }
8712 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8713 int x[] = {25, 17};
8714 const int *foo = &x[0];
8715 ++foo;
8716 }
8717 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8718 typedef const int *iptr;
8719 iptr p = 0;
8720 ++p;
8721 }
8722 { /* AIX XL C 1.02.0.0 rejects this saying
8723 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8724 struct s { int j; const int *ap[3]; };
8725 struct s *b; b->j = 5;
8726 }
8727 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8728 const int foo = 10;
8729 if (!foo) return 0;
8730 }
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008731 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008732#endif
8733
8734 ;
8735 return 0;
8736}
8737_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008738rm -f conftest.$ac_objext
8739if { (ac_try="$ac_compile"
8740case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743esac
8744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_compile") 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8753 { (case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8756esac
8757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_try") 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; } &&
8762 { ac_try='test -s conftest.$ac_objext'
8763 { (case "(($ac_try" in
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8766esac
8767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_try") 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008772 ac_cv_c_const=yes
8773else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008774 echo "$as_me: failed program was:" >&5
8775sed 's/^/| /' conftest.$ac_ext >&5
8776
8777 ac_cv_c_const=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008778fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008779
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008782{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8783echo "${ECHO_T}$ac_cv_c_const" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008784if test $ac_cv_c_const = no; then
8785
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008786cat >>confdefs.h <<\_ACEOF
8787#define const
8788_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008789
8790fi
8791
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008792
8793
8794
8795
8796
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008797ac_header_dirent=no
8798for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008799 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8800{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8801echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008804else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008805 cat >conftest.$ac_ext <<_ACEOF
8806/* confdefs.h. */
8807_ACEOF
8808cat confdefs.h >>conftest.$ac_ext
8809cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008810/* end confdefs.h. */
8811#include <sys/types.h>
8812#include <$ac_hdr>
8813
8814int
8815main ()
8816{
8817if ((DIR *) 0)
8818return 0;
8819 ;
8820 return 0;
8821}
8822_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008823rm -f conftest.$ac_objext
8824if { (ac_try="$ac_compile"
8825case "(($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_compile") 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8838 { (case "(($ac_try" in
8839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8841esac
8842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843 (eval "$ac_try") 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; } &&
8847 { ac_try='test -s conftest.$ac_objext'
8848 { (case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851esac
8852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_try") 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008857 eval "$as_ac_Header=yes"
8858else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008859 echo "$as_me: failed program was:" >&5
8860sed 's/^/| /' conftest.$ac_ext >&5
8861
8862 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008863fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008864
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008867ac_res=`eval echo '${'$as_ac_Header'}'`
8868 { echo "$as_me:$LINENO: result: $ac_res" >&5
8869echo "${ECHO_T}$ac_res" >&6; }
8870if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008871 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008872#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008873_ACEOF
8874
8875ac_header_dirent=$ac_hdr; break
8876fi
8877
8878done
8879# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8880if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008881 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8882echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8883if test "${ac_cv_search_opendir+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008885else
8886 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008887cat >conftest.$ac_ext <<_ACEOF
8888/* confdefs.h. */
8889_ACEOF
8890cat confdefs.h >>conftest.$ac_ext
8891cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008892/* end confdefs.h. */
8893
8894/* Override any GCC internal prototype to avoid an error.
8895 Use char because int might match the return type of a GCC
8896 builtin and then its argument prototype would still apply. */
8897#ifdef __cplusplus
8898extern "C"
8899#endif
8900char opendir ();
8901int
8902main ()
8903{
8904return opendir ();
8905 ;
8906 return 0;
8907}
8908_ACEOF
8909for ac_lib in '' dir; do
8910 if test -z "$ac_lib"; then
8911 ac_res="none required"
8912 else
8913 ac_res=-l$ac_lib
8914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8915 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008916 rm -f conftest.$ac_objext conftest$ac_exeext
8917if { (ac_try="$ac_link"
8918case "(($ac_try" in
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8921esac
8922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_link") 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931 { (case "(($ac_try" in
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933 *) ac_try_echo=$ac_try;;
8934esac
8935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936 (eval "$ac_try") 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest$ac_exeext'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944esac
8945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008950 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008951else
8952 echo "$as_me: failed program was:" >&5
8953sed 's/^/| /' conftest.$ac_ext >&5
8954
8955
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008956fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008957
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008958rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008959 conftest$ac_exeext
8960 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008961 break
8962fi
8963done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008964if test "${ac_cv_search_opendir+set}" = set; then
8965 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008966else
8967 ac_cv_search_opendir=no
8968fi
8969rm conftest.$ac_ext
8970LIBS=$ac_func_search_save_LIBS
8971fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008972{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8973echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008974ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008975if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8977
8978fi
8979
8980else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8982echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8983if test "${ac_cv_search_opendir+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008985else
8986 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008987cat >conftest.$ac_ext <<_ACEOF
8988/* confdefs.h. */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008992/* end confdefs.h. */
8993
8994/* Override any GCC internal prototype to avoid an error.
8995 Use char because int might match the return type of a GCC
8996 builtin and then its argument prototype would still apply. */
8997#ifdef __cplusplus
8998extern "C"
8999#endif
9000char opendir ();
9001int
9002main ()
9003{
9004return opendir ();
9005 ;
9006 return 0;
9007}
9008_ACEOF
9009for ac_lib in '' x; do
9010 if test -z "$ac_lib"; then
9011 ac_res="none required"
9012 else
9013 ac_res=-l$ac_lib
9014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9015 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009016 rm -f conftest.$ac_objext conftest$ac_exeext
9017if { (ac_try="$ac_link"
9018case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021esac
9022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_link") 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } &&
9030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9031 { (case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9034esac
9035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_try") 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; } &&
9040 { ac_try='test -s conftest$ac_exeext'
9041 { (case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9044esac
9045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_try") 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009050 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009051else
9052 echo "$as_me: failed program was:" >&5
9053sed 's/^/| /' conftest.$ac_ext >&5
9054
9055
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009056fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009057
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009058rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009059 conftest$ac_exeext
9060 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009061 break
9062fi
9063done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009064if test "${ac_cv_search_opendir+set}" = set; then
9065 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009066else
9067 ac_cv_search_opendir=no
9068fi
9069rm conftest.$ac_ext
9070LIBS=$ac_func_search_save_LIBS
9071fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009072{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9073echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009074ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009075if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9077
9078fi
9079
9080fi
9081
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009082
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009083for ac_header in dlfcn.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009084do
9085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091fi
9092ac_res=`eval echo '${'$as_ac_Header'}'`
9093 { echo "$as_me:$LINENO: result: $ac_res" >&5
9094echo "${ECHO_T}$ac_res" >&6; }
9095else
9096 # Is the header compilable?
9097{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9099cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h. */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h. */
9105$ac_includes_default
9106#include <$ac_header>
9107_ACEOF
9108rm -f conftest.$ac_objext
9109if { (ac_try="$ac_compile"
9110case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113esac
9114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_compile") 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9123 { (case "(($ac_try" in
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9126esac
9127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_try") 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest.$ac_objext'
9133 { (case "(($ac_try" in
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9136esac
9137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_try") 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 ac_header_compiler=yes
9143else
9144 echo "$as_me: failed program was:" >&5
9145sed 's/^/| /' conftest.$ac_ext >&5
9146
9147 ac_header_compiler=no
9148fi
9149
9150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9152echo "${ECHO_T}$ac_header_compiler" >&6; }
9153
9154# Is the header present?
9155{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9157cat >conftest.$ac_ext <<_ACEOF
9158/* confdefs.h. */
9159_ACEOF
9160cat confdefs.h >>conftest.$ac_ext
9161cat >>conftest.$ac_ext <<_ACEOF
9162/* end confdefs.h. */
9163#include <$ac_header>
9164_ACEOF
9165if { (ac_try="$ac_cpp conftest.$ac_ext"
9166case "(($ac_try" in
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9169esac
9170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9172 ac_status=$?
9173 grep -v '^ *+' conftest.er1 >conftest.err
9174 rm -f conftest.er1
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } >/dev/null; then
9178 if test -s conftest.err; then
9179 ac_cpp_err=$ac_c_preproc_warn_flag
9180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9181 else
9182 ac_cpp_err=
9183 fi
9184else
9185 ac_cpp_err=yes
9186fi
9187if test -z "$ac_cpp_err"; then
9188 ac_header_preproc=yes
9189else
9190 echo "$as_me: failed program was:" >&5
9191sed 's/^/| /' conftest.$ac_ext >&5
9192
9193 ac_header_preproc=no
9194fi
9195
9196rm -f conftest.err conftest.$ac_ext
9197{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9198echo "${ECHO_T}$ac_header_preproc" >&6; }
9199
9200# So? What about this header?
9201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9202 yes:no: )
9203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9207 ac_header_preproc=yes
9208 ;;
9209 no:yes:* )
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9213echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9217echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9222 ( cat <<\_ASBOX
9223## ----------------------------------- ##
9224## Report this to llvmbugs@cs.uiuc.edu ##
9225## ----------------------------------- ##
9226_ASBOX
9227 ) | sed "s/^/$as_me: WARNING: /" >&2
9228 ;;
9229esac
9230{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235 eval "$as_ac_Header=\$ac_header_preproc"
9236fi
9237ac_res=`eval echo '${'$as_ac_Header'}'`
9238 { echo "$as_me:$LINENO: result: $ac_res" >&5
9239echo "${ECHO_T}$ac_res" >&6; }
9240
9241fi
9242if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009243 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009245_ACEOF
9246
9247fi
9248
9249done
9250
9251# Check whether --enable-ltdl-install was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009252if test "${enable_ltdl_install+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009253 enableval=$enable_ltdl_install;
9254fi
9255
9256
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009257
9258
9259if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009260 INSTALL_LTDL_TRUE=
9261 INSTALL_LTDL_FALSE='#'
9262else
9263 INSTALL_LTDL_TRUE='#'
9264 INSTALL_LTDL_FALSE=
9265fi
9266
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009267
9268
9269if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009270 CONVENIENCE_LTDL_TRUE=
9271 CONVENIENCE_LTDL_FALSE='#'
9272else
9273 CONVENIENCE_LTDL_TRUE='#'
9274 CONVENIENCE_LTDL_FALSE=
9275fi
9276
9277
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009278{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9279echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009280library_names_spec=
9281libname_spec='lib$name'
9282soname_spec=
9283shrext_cmds=".so"
9284postinstall_cmds=
9285postuninstall_cmds=
9286finish_cmds=
9287finish_eval=
9288shlibpath_var=
9289shlibpath_overrides_runpath=unknown
9290version_type=none
9291dynamic_linker="$host_os ld.so"
9292sys_lib_dlsearch_path_spec="/lib /usr/lib"
9293if test "$GCC" = yes; then
9294 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9295 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9296 # if the path contains ";" then we assume it to be the separator
9297 # otherwise default to the standard path separator (i.e. ":") - it is
9298 # assumed that no part of a normal pathname contains ";" but that should
9299 # okay in the real world where ";" in dirpaths is itself problematic.
9300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9301 else
9302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9303 fi
9304else
9305 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9306fi
9307need_lib_prefix=unknown
9308hardcode_into_libs=no
9309
9310# when you set need_version to no, make sure it does not cause -set_version
9311# flags to be left without arguments
9312need_version=unknown
9313
9314case $host_os in
9315aix3*)
9316 version_type=linux
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9318 shlibpath_var=LIBPATH
9319
9320 # AIX 3 has no versioning support, so we append a major version to the name.
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 ;;
9323
9324aix4* | aix5*)
9325 version_type=linux
9326 need_lib_prefix=no
9327 need_version=no
9328 hardcode_into_libs=yes
9329 if test "$host_cpu" = ia64; then
9330 # AIX 5 supports IA64
9331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 else
9334 # With GCC up to 2.95.x, collect2 would create an import file
9335 # for dependence libraries. The import file would start with
9336 # the line `#! .'. This would cause the generated library to
9337 # depend on `.', always an invalid library. This was fixed in
9338 # development snapshots of GCC prior to 3.0.
9339 case $host_os in
9340 aix4 | aix4.[01] | aix4.[01].*)
9341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9342 echo ' yes '
9343 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9344 :
9345 else
9346 can_build_shared=no
9347 fi
9348 ;;
9349 esac
9350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9351 # soname into executable. Probably we can add versioning support to
9352 # collect2, so additional links can be useful in future.
9353 if test "$aix_use_runtimelinking" = yes; then
9354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9355 # instead of lib<name>.a to let people know that these are not
9356 # typical AIX shared libraries.
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358 else
9359 # We preserve .a as extension for shared libraries through AIX4.2
9360 # and later when we are not doing run time linking.
9361 library_names_spec='${libname}${release}.a $libname.a'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 fi
9364 shlibpath_var=LIBPATH
9365 fi
9366 ;;
9367
9368amigaos*)
9369 library_names_spec='$libname.ixlibrary $libname.a'
9370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9371 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'
9372 ;;
9373
9374beos*)
9375 library_names_spec='${libname}${shared_ext}'
9376 dynamic_linker="$host_os ld.so"
9377 shlibpath_var=LIBRARY_PATH
9378 ;;
9379
9380bsdi[45]*)
9381 version_type=linux
9382 need_version=no
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9389 # the default ld.so.conf also contains /usr/contrib/lib and
9390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9391 # libtool to hard-code these into programs
9392 ;;
9393
9394cygwin* | mingw* | pw32*)
9395 version_type=windows
9396 shrext_cmds=".dll"
9397 need_version=no
9398 need_lib_prefix=no
9399
9400 case $GCC,$host_os in
9401 yes,cygwin* | yes,mingw* | yes,pw32*)
9402 library_names_spec='$libname.dll.a'
9403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9404 postinstall_cmds='base_file=`basename \${file}`~
9405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9406 dldir=$destdir/`dirname \$dlpath`~
9407 test -d \$dldir || mkdir -p \$dldir~
9408 $install_prog $dir/$dlname \$dldir/$dlname~
9409 chmod a+x \$dldir/$dlname'
9410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9411 dlpath=$dir/\$dldll~
9412 $rm \$dlpath'
9413 shlibpath_overrides_runpath=yes
9414
9415 case $host_os in
9416 cygwin*)
9417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9419 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9420 ;;
9421 mingw*)
9422 # MinGW DLLs use traditional 'lib' prefix
9423 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9425 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9426 # It is most probably a Windows format PATH printed by
9427 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9428 # path with ; separators, and with drive letters. We can handle the
9429 # drive letters (cygwin fileutils understands them), so leave them,
9430 # especially as we might pass files found there to a mingw objdump,
9431 # which wouldn't understand a cygwinified path. Ahh.
9432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9433 else
9434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9435 fi
9436 ;;
9437 pw32*)
9438 # pw32 DLLs use 'pw' prefix rather than 'lib'
9439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9440 ;;
9441 esac
9442 ;;
9443
9444 *)
9445 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9446 ;;
9447 esac
9448 dynamic_linker='Win32 ld.exe'
9449 # FIXME: first we should search . and the directory the executable is in
9450 shlibpath_var=PATH
9451 ;;
9452
9453darwin* | rhapsody*)
9454 dynamic_linker="$host_os dyld"
9455 version_type=darwin
9456 need_lib_prefix=no
9457 need_version=no
9458 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9459 soname_spec='${libname}${release}${major}$shared_ext'
9460 shlibpath_overrides_runpath=yes
9461 shlibpath_var=DYLD_LIBRARY_PATH
9462 shrext_cmds='.dylib'
9463 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9464 if test "$GCC" = yes; then
9465 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"`
9466 else
9467 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9468 fi
9469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9470 ;;
9471
9472dgux*)
9473 version_type=linux
9474 need_lib_prefix=no
9475 need_version=no
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 ;;
9480
9481freebsd1*)
9482 dynamic_linker=no
9483 ;;
9484
9485kfreebsd*-gnu)
9486 version_type=linux
9487 need_lib_prefix=no
9488 need_version=no
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 shlibpath_overrides_runpath=no
9493 hardcode_into_libs=yes
9494 dynamic_linker='GNU ld.so'
9495 ;;
9496
9497freebsd* | dragonfly*)
9498 # DragonFly does not have aout. When/if they implement a new
9499 # versioning mechanism, adjust this.
9500 if test -x /usr/bin/objformat; then
9501 objformat=`/usr/bin/objformat`
9502 else
9503 case $host_os in
9504 freebsd[123]*) objformat=aout ;;
9505 *) objformat=elf ;;
9506 esac
9507 fi
9508 version_type=freebsd-$objformat
9509 case $version_type in
9510 freebsd-elf*)
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9512 need_version=no
9513 need_lib_prefix=no
9514 ;;
9515 freebsd-*)
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9517 need_version=yes
9518 ;;
9519 esac
9520 shlibpath_var=LD_LIBRARY_PATH
9521 case $host_os in
9522 freebsd2*)
9523 shlibpath_overrides_runpath=yes
9524 ;;
9525 freebsd3.[01]* | freebsdelf3.[01]*)
9526 shlibpath_overrides_runpath=yes
9527 hardcode_into_libs=yes
9528 ;;
9529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9531 shlibpath_overrides_runpath=no
9532 hardcode_into_libs=yes
9533 ;;
9534 freebsd*) # from 4.6 on
9535 shlibpath_overrides_runpath=yes
9536 hardcode_into_libs=yes
9537 ;;
9538 esac
9539 ;;
9540
9541gnu*)
9542 version_type=linux
9543 need_lib_prefix=no
9544 need_version=no
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 shlibpath_var=LD_LIBRARY_PATH
9548 hardcode_into_libs=yes
9549 ;;
9550
9551hpux9* | hpux10* | hpux11*)
9552 # Give a soname corresponding to the major version so that dld.sl refuses to
9553 # link against other versions.
9554 version_type=sunos
9555 need_lib_prefix=no
9556 need_version=no
9557 case $host_cpu in
9558 ia64*)
9559 shrext_cmds='.so'
9560 hardcode_into_libs=yes
9561 dynamic_linker="$host_os dld.so"
9562 shlibpath_var=LD_LIBRARY_PATH
9563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 if test "X$HPUX_IA64_MODE" = X32; then
9567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9568 else
9569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9570 fi
9571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9572 ;;
9573 hppa*64*)
9574 shrext_cmds='.sl'
9575 hardcode_into_libs=yes
9576 dynamic_linker="$host_os dld.sl"
9577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580 soname_spec='${libname}${release}${shared_ext}$major'
9581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9583 ;;
9584 *)
9585 shrext_cmds='.sl'
9586 dynamic_linker="$host_os dld.sl"
9587 shlibpath_var=SHLIB_PATH
9588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 ;;
9592 esac
9593 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9594 postinstall_cmds='chmod 555 $lib'
9595 ;;
9596
9597interix3*)
9598 version_type=linux
9599 need_lib_prefix=no
9600 need_version=no
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=no
9606 hardcode_into_libs=yes
9607 ;;
9608
9609irix5* | irix6* | nonstopux*)
9610 case $host_os in
9611 nonstopux*) version_type=nonstopux ;;
9612 *)
9613 if test "$lt_cv_prog_gnu_ld" = yes; then
9614 version_type=linux
9615 else
9616 version_type=irix
9617 fi ;;
9618 esac
9619 need_lib_prefix=no
9620 need_version=no
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9623 case $host_os in
9624 irix5* | nonstopux*)
9625 libsuff= shlibsuff=
9626 ;;
9627 *)
9628 case $LD in # libtool.m4 will add one of these switches to LD
9629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9630 libsuff= shlibsuff= libmagic=32-bit;;
9631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9632 libsuff=32 shlibsuff=N32 libmagic=N32;;
9633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9635 *) libsuff= shlibsuff= libmagic=never-match;;
9636 esac
9637 ;;
9638 esac
9639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9640 shlibpath_overrides_runpath=no
9641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9643 hardcode_into_libs=yes
9644 ;;
9645
9646# No shared lib support for Linux oldld, aout, or coff.
9647linux*oldld* | linux*aout* | linux*coff*)
9648 dynamic_linker=no
9649 ;;
9650
9651# This must be Linux ELF.
9652linux*)
9653 version_type=linux
9654 need_lib_prefix=no
9655 need_version=no
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9659 shlibpath_var=LD_LIBRARY_PATH
9660 shlibpath_overrides_runpath=no
9661 # This implies no fast_install, which is unacceptable.
9662 # Some rework will be needed to allow for fast_install
9663 # before this can be enabled.
9664 hardcode_into_libs=yes
9665
9666 # Append ld.so.conf contents to the search path
9667 if test -f /etc/ld.so.conf; then
9668 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' ' '`
9669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9670 fi
9671
9672 # We used to test for /lib/ld.so.1 and disable shared libraries on
9673 # powerpc, because MkLinux only supported shared libraries with the
9674 # GNU dynamic linker. Since this was broken with cross compilers,
9675 # most powerpc-linux boxes support dynamic linking these days and
9676 # people can always --disable-shared, the test was removed, and we
9677 # assume the GNU/Linux dynamic linker is in use.
9678 dynamic_linker='GNU/Linux ld.so'
9679 ;;
9680
9681knetbsd*-gnu)
9682 version_type=linux
9683 need_lib_prefix=no
9684 need_version=no
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 shlibpath_overrides_runpath=no
9689 hardcode_into_libs=yes
9690 dynamic_linker='GNU ld.so'
9691 ;;
9692
9693netbsd*)
9694 version_type=sunos
9695 need_lib_prefix=no
9696 need_version=no
9697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9700 dynamic_linker='NetBSD (a.out) ld.so'
9701 else
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 dynamic_linker='NetBSD ld.elf_so'
9705 fi
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=yes
9708 hardcode_into_libs=yes
9709 ;;
9710
9711newsos6)
9712 version_type=linux
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714 shlibpath_var=LD_LIBRARY_PATH
9715 shlibpath_overrides_runpath=yes
9716 ;;
9717
9718nto-qnx*)
9719 version_type=linux
9720 need_lib_prefix=no
9721 need_version=no
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 shlibpath_overrides_runpath=yes
9726 ;;
9727
9728openbsd*)
9729 version_type=sunos
9730 sys_lib_dlsearch_path_spec="/usr/lib"
9731 need_lib_prefix=no
9732 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9733 case $host_os in
9734 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9735 *) need_version=no ;;
9736 esac
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9739 shlibpath_var=LD_LIBRARY_PATH
9740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9741 case $host_os in
9742 openbsd2.[89] | openbsd2.[89].*)
9743 shlibpath_overrides_runpath=no
9744 ;;
9745 *)
9746 shlibpath_overrides_runpath=yes
9747 ;;
9748 esac
9749 else
9750 shlibpath_overrides_runpath=yes
9751 fi
9752 ;;
9753
9754os2*)
9755 libname_spec='$name'
9756 shrext_cmds=".dll"
9757 need_lib_prefix=no
9758 library_names_spec='$libname${shared_ext} $libname.a'
9759 dynamic_linker='OS/2 ld.exe'
9760 shlibpath_var=LIBPATH
9761 ;;
9762
9763osf3* | osf4* | osf5*)
9764 version_type=osf
9765 need_lib_prefix=no
9766 need_version=no
9767 soname_spec='${libname}${release}${shared_ext}$major'
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769 shlibpath_var=LD_LIBRARY_PATH
9770 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9771 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9772 ;;
9773
9774solaris*)
9775 version_type=linux
9776 need_lib_prefix=no
9777 need_version=no
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 shlibpath_var=LD_LIBRARY_PATH
9781 shlibpath_overrides_runpath=yes
9782 hardcode_into_libs=yes
9783 # ldd complains unless libraries are executable
9784 postinstall_cmds='chmod +x $lib'
9785 ;;
9786
9787sunos4*)
9788 version_type=sunos
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9791 shlibpath_var=LD_LIBRARY_PATH
9792 shlibpath_overrides_runpath=yes
9793 if test "$with_gnu_ld" = yes; then
9794 need_lib_prefix=no
9795 fi
9796 need_version=yes
9797 ;;
9798
9799sysv4 | sysv4.3*)
9800 version_type=linux
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 case $host_vendor in
9805 sni)
9806 shlibpath_overrides_runpath=no
9807 need_lib_prefix=no
9808 export_dynamic_flag_spec='${wl}-Blargedynsym'
9809 runpath_var=LD_RUN_PATH
9810 ;;
9811 siemens)
9812 need_lib_prefix=no
9813 ;;
9814 motorola)
9815 need_lib_prefix=no
9816 need_version=no
9817 shlibpath_overrides_runpath=no
9818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9819 ;;
9820 esac
9821 ;;
9822
9823sysv4*MP*)
9824 if test -d /usr/nec ;then
9825 version_type=linux
9826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9827 soname_spec='$libname${shared_ext}.$major'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 fi
9830 ;;
9831
9832sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9833 version_type=freebsd-elf
9834 need_lib_prefix=no
9835 need_version=no
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 hardcode_into_libs=yes
9840 if test "$with_gnu_ld" = yes; then
9841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9842 shlibpath_overrides_runpath=no
9843 else
9844 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9845 shlibpath_overrides_runpath=yes
9846 case $host_os in
9847 sco3.2v5*)
9848 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9849 ;;
9850 esac
9851 fi
9852 sys_lib_dlsearch_path_spec='/usr/lib'
9853 ;;
9854
9855uts4*)
9856 version_type=linux
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 shlibpath_var=LD_LIBRARY_PATH
9860 ;;
9861
9862*)
9863 dynamic_linker=no
9864 ;;
9865esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009866{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9867echo "${ECHO_T}$dynamic_linker" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009868test "$dynamic_linker" = no && can_build_shared=no
9869
9870variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9871if test "$GCC" = yes; then
9872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9873fi
9874
9875
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009876{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9877echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9878if test "${libltdl_cv_shlibext+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009880else
9881
9882module=yes
9883eval libltdl_cv_shlibext=$shrext_cmds
9884
9885fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009886{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9887echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009888if test -n "$libltdl_cv_shlibext"; then
9889
9890cat >>confdefs.h <<_ACEOF
9891#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9892_ACEOF
9893
9894fi
9895
9896
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009897{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9898echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9899if test "${libltdl_cv_shlibpath_var+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009901else
9902 libltdl_cv_shlibpath_var="$shlibpath_var"
9903fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009904{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9905echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009906if test -n "$libltdl_cv_shlibpath_var"; then
9907
9908cat >>confdefs.h <<_ACEOF
9909#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9910_ACEOF
9911
9912fi
9913
9914
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009915{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9916echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9917if test "${libltdl_cv_sys_search_path+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009919else
9920 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9921fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009922{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9923echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009924if test -n "$libltdl_cv_sys_search_path"; then
9925 sys_search_path=
9926 for dir in $libltdl_cv_sys_search_path; do
9927 if test -z "$sys_search_path"; then
9928 sys_search_path="$dir"
9929 else
9930 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9931 fi
9932 done
9933
9934cat >>confdefs.h <<_ACEOF
9935#define LTDL_SYSSEARCHPATH "$sys_search_path"
9936_ACEOF
9937
9938fi
9939
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009940{ echo "$as_me:$LINENO: checking for objdir" >&5
9941echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9942if test "${libltdl_cv_objdir+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009944else
9945 libltdl_cv_objdir="$objdir"
9946 if test -n "$objdir"; then
9947 :
9948 else
9949 rm -f .libs 2>/dev/null
9950 mkdir .libs 2>/dev/null
9951 if test -d .libs; then
9952 libltdl_cv_objdir=.libs
9953 else
9954 # MS-DOS does not allow filenames that begin with a dot.
9955 libltdl_cv_objdir=_libs
9956 fi
9957 rmdir .libs 2>/dev/null
9958 fi
9959
9960fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009961{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9962echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009963
9964cat >>confdefs.h <<_ACEOF
9965#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9966_ACEOF
9967
9968
9969
9970
9971
9972
9973# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009974{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9975echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9976if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009978else
9979
9980# These are sane defaults that work on at least a few old systems.
9981# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9982
9983# Character class describing NM global symbol codes.
9984symcode='[BCDEGRST]'
9985
9986# Regexp to match symbols that can be accessed directly from C.
9987sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9988
9989# Transform an extracted symbol line into a proper C declaration
9990lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9991
9992# Transform an extracted symbol line into symbol name and symbol address
9993lt_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'"
9994
9995# Define system-specific variables.
9996case $host_os in
9997aix*)
9998 symcode='[BCDT]'
9999 ;;
10000cygwin* | mingw* | pw32*)
10001 symcode='[ABCDGISTW]'
10002 ;;
10003hpux*) # Its linker distinguishes data from code symbols
10004 if test "$host_cpu" = ia64; then
10005 symcode='[ABCDEGRST]'
10006 fi
10007 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10008 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'"
10009 ;;
10010linux*)
10011 if test "$host_cpu" = ia64; then
10012 symcode='[ABCDGIRSTW]'
10013 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10014 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'"
10015 fi
10016 ;;
10017irix* | nonstopux*)
10018 symcode='[BCDEGRST]'
10019 ;;
10020osf*)
10021 symcode='[BCDEGQRST]'
10022 ;;
10023solaris*)
10024 symcode='[BDRT]'
10025 ;;
10026sco3.2v5*)
10027 symcode='[DT]'
10028 ;;
10029sysv4.2uw2*)
10030 symcode='[DT]'
10031 ;;
10032sysv5* | sco5v6* | unixware* | OpenUNIX*)
10033 symcode='[ABDT]'
10034 ;;
10035sysv4)
10036 symcode='[DFNSTU]'
10037 ;;
10038esac
10039
10040# Handle CRLF in mingw tool chain
10041opt_cr=
10042case $build_os in
10043mingw*)
10044 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10045 ;;
10046esac
10047
10048# If we're using GNU nm, then use its standard symbol codes.
10049case `$NM -V 2>&1` in
10050*GNU* | *'with BFD'*)
10051 symcode='[ABCDGIRSTW]' ;;
10052esac
10053
10054# Try without a prefix undercore, then with it.
10055for ac_symprfx in "" "_"; do
10056
10057 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10058 symxfrm="\\1 $ac_symprfx\\2 \\2"
10059
10060 # Write the raw and C identifiers.
10061 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10062
10063 # Check to see that the pipe works correctly.
10064 pipe_works=no
10065
10066 rm -f conftest*
10067 cat > conftest.$ac_ext <<EOF
10068#ifdef __cplusplus
10069extern "C" {
10070#endif
10071char nm_test_var;
10072void nm_test_func(){}
10073#ifdef __cplusplus
10074}
10075#endif
10076int main(){nm_test_var='a';nm_test_func();return(0);}
10077EOF
10078
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010080 (eval $ac_compile) 2>&5
10081 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010084 # Now try to grab the symbols.
10085 nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010086 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 +000010087 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10088 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } && test -s "$nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010091 # Try sorting and uniquifying the output.
10092 if sort "$nlist" | uniq > "$nlist"T; then
10093 mv -f "$nlist"T "$nlist"
10094 else
10095 rm -f "$nlist"T
10096 fi
10097
10098 # Make sure that we snagged all the symbols we need.
10099 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10100 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10101 cat <<EOF > conftest.$ac_ext
10102#ifdef __cplusplus
10103extern "C" {
10104#endif
10105
10106EOF
10107 # Now generate the symbol file.
10108 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10109
10110 cat <<EOF >> conftest.$ac_ext
10111#if defined (__STDC__) && __STDC__
10112# define lt_ptr_t void *
10113#else
10114# define lt_ptr_t char *
10115# define const
10116#endif
10117
10118/* The mapping between symbol names and symbols. */
10119const struct {
10120 const char *name;
10121 lt_ptr_t address;
10122}
10123lt_preloaded_symbols[] =
10124{
10125EOF
10126 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10127 cat <<\EOF >> conftest.$ac_ext
10128 {0, (lt_ptr_t) 0}
10129};
10130
10131#ifdef __cplusplus
10132}
10133#endif
10134EOF
10135 # Now try linking the two files.
10136 mv conftest.$ac_objext conftstm.$ac_objext
10137 lt_save_LIBS="$LIBS"
10138 lt_save_CFLAGS="$CFLAGS"
10139 LIBS="conftstm.$ac_objext"
10140 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010142 (eval $ac_link) 2>&5
10143 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010146 pipe_works=yes
10147 fi
10148 LIBS="$lt_save_LIBS"
10149 CFLAGS="$lt_save_CFLAGS"
10150 else
10151 echo "cannot find nm_test_func in $nlist" >&5
10152 fi
10153 else
10154 echo "cannot find nm_test_var in $nlist" >&5
10155 fi
10156 else
10157 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10158 fi
10159 else
10160 echo "$progname: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 fi
10163 rm -f conftest* conftst*
10164
10165 # Do not use the global_symbol_pipe unless it works.
10166 if test "$pipe_works" = yes; then
10167 break
10168 else
10169 lt_cv_sys_global_symbol_pipe=
10170 fi
10171done
10172
10173fi
10174
10175if test -z "$lt_cv_sys_global_symbol_pipe"; then
10176 lt_cv_sys_global_symbol_to_cdecl=
10177fi
10178if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010179 { echo "$as_me:$LINENO: result: failed" >&5
10180echo "${ECHO_T}failed" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010181else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010182 { echo "$as_me:$LINENO: result: ok" >&5
10183echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010184fi
10185
10186
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010187{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10188echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10189if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010191else
10192 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10193 libltdl_cv_preloaded_symbols=yes
10194 else
10195 libltdl_cv_preloaded_symbols=no
10196 fi
10197
10198fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010199{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10200echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010201if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10202
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010203cat >>confdefs.h <<\_ACEOF
10204#define HAVE_PRELOADED_SYMBOLS 1
10205_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010206
10207fi
10208
10209LIBADD_DL=
10210
10211ac_ext=c
10212ac_cpp='$CPP $CPPFLAGS'
10213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10215ac_compiler_gnu=$ac_cv_c_compiler_gnu
10216
10217
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010218{ echo "$as_me:$LINENO: checking for shl_load" >&5
10219echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10220if test "${ac_cv_func_shl_load+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222else
10223 cat >conftest.$ac_ext <<_ACEOF
10224/* confdefs.h. */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h. */
10229/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10231#define shl_load innocuous_shl_load
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010232
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010233/* System header to define __stub macros and hopefully few prototypes,
10234 which can conflict with char shl_load (); below.
10235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10236 <limits.h> exists even on freestanding compilers. */
10237
10238#ifdef __STDC__
10239# include <limits.h>
10240#else
10241# include <assert.h>
10242#endif
10243
10244#undef shl_load
10245
10246/* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10249#ifdef __cplusplus
10250extern "C"
10251#endif
10252char shl_load ();
10253/* The GNU C library defines this for functions which it implements
10254 to always fail with ENOSYS. Some functions are actually named
10255 something starting with __ and the normal name is an alias. */
10256#if defined __stub_shl_load || defined __stub___shl_load
10257choke me
10258#endif
10259
10260int
10261main ()
10262{
10263return shl_load ();
10264 ;
10265 return 0;
10266}
10267_ACEOF
10268rm -f conftest.$ac_objext conftest$ac_exeext
10269if { (ac_try="$ac_link"
10270case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273esac
10274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_link") 2>conftest.er1
10276 ac_status=$?
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286esac
10287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; } &&
10292 { ac_try='test -s conftest$ac_exeext'
10293 { (case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296esac
10297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_try") 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_cv_func_shl_load=yes
10303else
10304 echo "$as_me: failed program was:" >&5
10305sed 's/^/| /' conftest.$ac_ext >&5
10306
10307 ac_cv_func_shl_load=no
10308fi
10309
10310rm -f core conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
10312fi
10313{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10314echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10315if test $ac_cv_func_shl_load = yes; then
10316
10317cat >>confdefs.h <<\_ACEOF
10318#define HAVE_SHL_LOAD 1
10319_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010320
10321else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010322 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10323echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10324if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010326else
10327 ac_check_lib_save_LIBS=$LIBS
10328LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010329cat >conftest.$ac_ext <<_ACEOF
10330/* confdefs.h. */
10331_ACEOF
10332cat confdefs.h >>conftest.$ac_ext
10333cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010334/* end confdefs.h. */
10335
10336/* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10339#ifdef __cplusplus
10340extern "C"
10341#endif
10342char shl_load ();
10343int
10344main ()
10345{
10346return shl_load ();
10347 ;
10348 return 0;
10349}
10350_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010351rm -f conftest.$ac_objext conftest$ac_exeext
10352if { (ac_try="$ac_link"
10353case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356esac
10357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_link") 2>conftest.er1
10359 ac_status=$?
10360 grep -v '^ *+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10366 { (case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10369esac
10370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_try") 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; } &&
10375 { ac_try='test -s conftest$ac_exeext'
10376 { (case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10379esac
10380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_try") 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010385 ac_cv_lib_dld_shl_load=yes
10386else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010387 echo "$as_me: failed program was:" >&5
10388sed 's/^/| /' conftest.$ac_ext >&5
10389
10390 ac_cv_lib_dld_shl_load=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010391fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010392
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010393rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010394 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010395LIBS=$ac_check_lib_save_LIBS
10396fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010397{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10398echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10399if test $ac_cv_lib_dld_shl_load = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010400
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010401cat >>confdefs.h <<\_ACEOF
10402#define HAVE_SHL_LOAD 1
10403_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010404
10405 LIBADD_DL="$LIBADD_DL -ldld"
10406else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010407 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10408echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10409if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010411else
10412 ac_check_lib_save_LIBS=$LIBS
10413LIBS="-ldl $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010414cat >conftest.$ac_ext <<_ACEOF
10415/* confdefs.h. */
10416_ACEOF
10417cat confdefs.h >>conftest.$ac_ext
10418cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010419/* end confdefs.h. */
10420
10421/* Override any GCC internal prototype to avoid an error.
10422 Use char because int might match the return type of a GCC
10423 builtin and then its argument prototype would still apply. */
10424#ifdef __cplusplus
10425extern "C"
10426#endif
10427char dlopen ();
10428int
10429main ()
10430{
10431return dlopen ();
10432 ;
10433 return 0;
10434}
10435_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010436rm -f conftest.$ac_objext conftest$ac_exeext
10437if { (ac_try="$ac_link"
10438case "(($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_link") 2>conftest.er1
10444 ac_status=$?
10445 grep -v '^ *+' conftest.er1 >conftest.err
10446 rm -f conftest.er1
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10451 { (case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454esac
10455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_try") 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; } &&
10460 { ac_try='test -s conftest$ac_exeext'
10461 { (case "(($ac_try" in
10462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463 *) ac_try_echo=$ac_try;;
10464esac
10465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10466 (eval "$ac_try") 2>&5
10467 ac_status=$?
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010470 ac_cv_lib_dl_dlopen=yes
10471else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010472 echo "$as_me: failed program was:" >&5
10473sed 's/^/| /' conftest.$ac_ext >&5
10474
10475 ac_cv_lib_dl_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010476fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010477
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010478rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010479 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010480LIBS=$ac_check_lib_save_LIBS
10481fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010482{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10483echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10484if test $ac_cv_lib_dl_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010485
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010486cat >>confdefs.h <<\_ACEOF
10487#define HAVE_LIBDL 1
10488_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010489
10490 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10491else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010492 cat >conftest.$ac_ext <<_ACEOF
10493/* confdefs.h. */
10494_ACEOF
10495cat confdefs.h >>conftest.$ac_ext
10496cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010497/* end confdefs.h. */
10498#if HAVE_DLFCN_H
10499# include <dlfcn.h>
10500#endif
10501
10502int
10503main ()
10504{
10505dlopen(0, 0);
10506 ;
10507 return 0;
10508}
10509_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010510rm -f conftest.$ac_objext conftest$ac_exeext
10511if { (ac_try="$ac_link"
10512case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515esac
10516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>conftest.er1
10518 ac_status=$?
10519 grep -v '^ *+' conftest.er1 >conftest.err
10520 rm -f conftest.er1
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528esac
10529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_try") 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; } &&
10534 { ac_try='test -s conftest$ac_exeext'
10535 { (case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538esac
10539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_try") 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010544
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010545cat >>confdefs.h <<\_ACEOF
10546#define HAVE_LIBDL 1
10547_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010548 libltdl_cv_func_dlopen="yes"
10549else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010550 echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10554echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10555if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010557else
10558 ac_check_lib_save_LIBS=$LIBS
10559LIBS="-lsvld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010560cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010565/* end confdefs.h. */
10566
10567/* Override any GCC internal prototype to avoid an error.
10568 Use char because int might match the return type of a GCC
10569 builtin and then its argument prototype would still apply. */
10570#ifdef __cplusplus
10571extern "C"
10572#endif
10573char dlopen ();
10574int
10575main ()
10576{
10577return dlopen ();
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 ac_cv_lib_svld_dlopen=yes
10617else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010618 echo "$as_me: failed program was:" >&5
10619sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ac_cv_lib_svld_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010622fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010623
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010624rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010625 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010626LIBS=$ac_check_lib_save_LIBS
10627fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010628{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10629echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10630if test $ac_cv_lib_svld_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010631
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010632cat >>confdefs.h <<\_ACEOF
10633#define HAVE_LIBDL 1
10634_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010635
10636 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10637else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010638 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10639echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10640if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010642else
10643 ac_check_lib_save_LIBS=$LIBS
10644LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010645cat >conftest.$ac_ext <<_ACEOF
10646/* confdefs.h. */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010650/* end confdefs.h. */
10651
10652/* Override any GCC internal prototype to avoid an error.
10653 Use char because int might match the return type of a GCC
10654 builtin and then its argument prototype would still apply. */
10655#ifdef __cplusplus
10656extern "C"
10657#endif
10658char dld_link ();
10659int
10660main ()
10661{
10662return dld_link ();
10663 ;
10664 return 0;
10665}
10666_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010667rm -f conftest.$ac_objext conftest$ac_exeext
10668if { (ac_try="$ac_link"
10669case "(($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_link") 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10682 { (case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10685esac
10686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_try") 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; } &&
10691 { ac_try='test -s conftest$ac_exeext'
10692 { (case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695esac
10696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_try") 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010701 ac_cv_lib_dld_dld_link=yes
10702else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010703 echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&5
10705
10706 ac_cv_lib_dld_dld_link=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010707fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010708
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010709rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010710 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010711LIBS=$ac_check_lib_save_LIBS
10712fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010713{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10714echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10715if test $ac_cv_lib_dld_dld_link = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010716
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010717cat >>confdefs.h <<\_ACEOF
10718#define HAVE_DLD 1
10719_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010720
10721 LIBADD_DL="$LIBADD_DL -ldld"
10722else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010723 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10724echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10725if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728 cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10736#define _dyld_func_lookup innocuous__dyld_func_lookup
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010737
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010738/* System header to define __stub macros and hopefully few prototypes,
10739 which can conflict with char _dyld_func_lookup (); below.
10740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10741 <limits.h> exists even on freestanding compilers. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010742
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010743#ifdef __STDC__
10744# include <limits.h>
10745#else
10746# include <assert.h>
10747#endif
10748
10749#undef _dyld_func_lookup
10750
10751/* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10754#ifdef __cplusplus
10755extern "C"
10756#endif
10757char _dyld_func_lookup ();
10758/* The GNU C library defines this for functions which it implements
10759 to always fail with ENOSYS. Some functions are actually named
10760 something starting with __ and the normal name is an alias. */
10761#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10762choke me
10763#endif
10764
10765int
10766main ()
10767{
10768return _dyld_func_lookup ();
10769 ;
10770 return 0;
10771}
10772_ACEOF
10773rm -f conftest.$ac_objext conftest$ac_exeext
10774if { (ac_try="$ac_link"
10775case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778esac
10779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_link") 2>conftest.er1
10781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788 { (case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791esac
10792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest$ac_exeext'
10798 { (case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801esac
10802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_try") 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; }; then
10807 ac_cv_func__dyld_func_lookup=yes
10808else
10809 echo "$as_me: failed program was:" >&5
10810sed 's/^/| /' conftest.$ac_ext >&5
10811
10812 ac_cv_func__dyld_func_lookup=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010813fi
10814
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010815rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010816 conftest$ac_exeext conftest.$ac_ext
10817fi
10818{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10819echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10820if test $ac_cv_func__dyld_func_lookup = yes; then
10821
10822cat >>confdefs.h <<\_ACEOF
10823#define HAVE_DYLD 1
10824_ACEOF
10825
10826fi
10827
10828
10829fi
10830
10831
10832fi
10833
10834
10835fi
10836
10837rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010839
10840fi
10841
10842
10843fi
10844
10845
10846fi
10847
10848
10849if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10850then
10851 lt_save_LIBS="$LIBS"
10852 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010853
10854for ac_func in dlerror
10855do
10856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10857{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10859if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861else
10862 cat >conftest.$ac_ext <<_ACEOF
10863/* confdefs.h. */
10864_ACEOF
10865cat confdefs.h >>conftest.$ac_ext
10866cat >>conftest.$ac_ext <<_ACEOF
10867/* end confdefs.h. */
10868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10870#define $ac_func innocuous_$ac_func
10871
10872/* System header to define __stub macros and hopefully few prototypes,
10873 which can conflict with char $ac_func (); below.
10874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10875 <limits.h> exists even on freestanding compilers. */
10876
10877#ifdef __STDC__
10878# include <limits.h>
10879#else
10880# include <assert.h>
10881#endif
10882
10883#undef $ac_func
10884
10885/* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
10888#ifdef __cplusplus
10889extern "C"
10890#endif
10891char $ac_func ();
10892/* The GNU C library defines this for functions which it implements
10893 to always fail with ENOSYS. Some functions are actually named
10894 something starting with __ and the normal name is an alias. */
10895#if defined __stub_$ac_func || defined __stub___$ac_func
10896choke me
10897#endif
10898
10899int
10900main ()
10901{
10902return $ac_func ();
10903 ;
10904 return 0;
10905}
10906_ACEOF
10907rm -f conftest.$ac_objext conftest$ac_exeext
10908if { (ac_try="$ac_link"
10909case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912esac
10913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_link") 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10922 { (case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925esac
10926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_try") 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; } &&
10931 { ac_try='test -s conftest$ac_exeext'
10932 { (case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935esac
10936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_try") 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 eval "$as_ac_var=yes"
10942else
10943 echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 eval "$as_ac_var=no"
10947fi
10948
10949rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951fi
10952ac_res=`eval echo '${'$as_ac_var'}'`
10953 { echo "$as_me:$LINENO: result: $ac_res" >&5
10954echo "${ECHO_T}$ac_res" >&6; }
10955if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010956 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010958_ACEOF
10959
10960fi
10961done
10962
10963 LIBS="$lt_save_LIBS"
10964fi
10965ac_ext=c
10966ac_cpp='$CPP $CPPFLAGS'
10967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10969ac_compiler_gnu=$ac_cv_c_compiler_gnu
10970
10971
10972
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010973{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10974echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10975if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010977else
10978 ac_cv_sys_symbol_underscore=no
10979 cat > conftest.$ac_ext <<EOF
10980void nm_test_func(){}
10981int main(){nm_test_func;return 0;}
10982EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010984 (eval $ac_compile) 2>&5
10985 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010988 # Now try to grab the symbols.
10989 ac_nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010990 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 +000010991 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10992 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && test -s "$ac_nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010995 # See whether the symbols have a leading underscore.
10996 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10997 ac_cv_sys_symbol_underscore=yes
10998 else
10999 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11000 :
11001 else
11002 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11003 fi
11004 fi
11005 else
11006 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11007 fi
11008 else
11009 echo "configure: failed program was:" >&5
11010 cat conftest.c >&5
11011 fi
11012 rm -rf conftest*
11013
11014fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011015{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11016echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011017
11018
11019if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11020 if test x"$libltdl_cv_func_dlopen" = xyes ||
11021 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011022 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11023echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11024if test "${libltdl_cv_need_uscore+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011026else
11027 libltdl_cv_need_uscore=unknown
11028 save_LIBS="$LIBS"
11029 LIBS="$LIBS $LIBADD_DL"
11030 if test "$cross_compiling" = yes; then :
11031 libltdl_cv_need_uscore=cross
11032else
11033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11034 lt_status=$lt_dlunknown
11035 cat > conftest.$ac_ext <<EOF
Daniel Dunbar896f7b52010-02-23 07:56:31 +000011036#line 11036 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011037#include "confdefs.h"
11038
11039#if HAVE_DLFCN_H
11040#include <dlfcn.h>
11041#endif
11042
11043#include <stdio.h>
11044
11045#ifdef RTLD_GLOBAL
11046# define LT_DLGLOBAL RTLD_GLOBAL
11047#else
11048# ifdef DL_GLOBAL
11049# define LT_DLGLOBAL DL_GLOBAL
11050# else
11051# define LT_DLGLOBAL 0
11052# endif
11053#endif
11054
11055/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11056 find out it does not work in some platform. */
11057#ifndef LT_DLLAZY_OR_NOW
11058# ifdef RTLD_LAZY
11059# define LT_DLLAZY_OR_NOW RTLD_LAZY
11060# else
11061# ifdef DL_LAZY
11062# define LT_DLLAZY_OR_NOW DL_LAZY
11063# else
11064# ifdef RTLD_NOW
11065# define LT_DLLAZY_OR_NOW RTLD_NOW
11066# else
11067# ifdef DL_NOW
11068# define LT_DLLAZY_OR_NOW DL_NOW
11069# else
11070# define LT_DLLAZY_OR_NOW 0
11071# endif
11072# endif
11073# endif
11074# endif
11075#endif
11076
11077#ifdef __cplusplus
11078extern "C" void exit (int);
11079#endif
11080
11081void fnord() { int i=42;}
11082int main ()
11083{
11084 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11085 int status = $lt_dlunknown;
11086
11087 if (self)
11088 {
11089 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11090 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11091 /* dlclose (self); */
11092 }
11093 else
11094 puts (dlerror ());
11095
11096 exit (status);
11097}
11098EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011100 (eval $ac_link) 2>&5
11101 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011104 (./conftest; exit; ) >&5 2>/dev/null
11105 lt_status=$?
11106 case x$lt_status in
11107 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11108 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11109 x$lt_dlunknown|x*) ;;
11110 esac
11111 else :
11112 # compilation failed
11113
11114 fi
11115fi
11116rm -fr conftest*
11117
11118 LIBS="$save_LIBS"
11119
11120fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011121{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11122echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011123 fi
11124fi
11125
11126if test x"$libltdl_cv_need_uscore" = xyes; then
11127
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011128cat >>confdefs.h <<\_ACEOF
11129#define NEED_USCORE 1
11130_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011131
11132fi
11133
11134
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011135{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11136echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11137if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011139else
11140 # PORTME does your system automatically load deplibs for dlopen?
11141 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11142 # For now, we just catch OSes we know something about -- in the
11143 # future, we'll try test this programmatically.
11144 libltdl_cv_sys_dlopen_deplibs=unknown
11145 case "$host_os" in
11146 aix3*|aix4.1.*|aix4.2.*)
11147 # Unknown whether this is true for these versions of AIX, but
11148 # we want this `case' here to explicitly catch those versions.
11149 libltdl_cv_sys_dlopen_deplibs=unknown
11150 ;;
11151 aix[45]*)
11152 libltdl_cv_sys_dlopen_deplibs=yes
11153 ;;
11154 darwin*)
11155 # Assuming the user has installed a libdl from somewhere, this is true
11156 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11157 libltdl_cv_sys_dlopen_deplibs=yes
11158 ;;
11159 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11160 # GNU and its variants, using gnu ld.so (Glibc)
11161 libltdl_cv_sys_dlopen_deplibs=yes
11162 ;;
11163 hpux10*|hpux11*)
11164 libltdl_cv_sys_dlopen_deplibs=yes
11165 ;;
11166 interix*)
11167 libltdl_cv_sys_dlopen_deplibs=yes
11168 ;;
11169 irix[12345]*|irix6.[01]*)
11170 # Catch all versions of IRIX before 6.2, and indicate that we don't
11171 # know how it worked for any of those versions.
11172 libltdl_cv_sys_dlopen_deplibs=unknown
11173 ;;
11174 irix*)
11175 # The case above catches anything before 6.2, and it's known that
11176 # at 6.2 and later dlopen does load deplibs.
11177 libltdl_cv_sys_dlopen_deplibs=yes
11178 ;;
11179 netbsd*)
11180 libltdl_cv_sys_dlopen_deplibs=yes
11181 ;;
11182 openbsd*)
11183 libltdl_cv_sys_dlopen_deplibs=yes
11184 ;;
11185 osf[1234]*)
11186 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11187 # it did *not* use an RPATH in a shared library to find objects the
11188 # library depends on, so we explictly say `no'.
11189 libltdl_cv_sys_dlopen_deplibs=no
11190 ;;
11191 osf5.0|osf5.0a|osf5.1)
11192 # dlopen *does* load deplibs and with the right loader patch applied
11193 # it even uses RPATH in a shared library to search for shared objects
11194 # that the library depends on, but there's no easy way to know if that
11195 # patch is installed. Since this is the case, all we can really
11196 # say is unknown -- it depends on the patch being installed. If
11197 # it is, this changes to `yes'. Without it, it would be `no'.
11198 libltdl_cv_sys_dlopen_deplibs=unknown
11199 ;;
11200 osf*)
11201 # the two cases above should catch all versions of osf <= 5.1. Read
11202 # the comments above for what we know about them.
11203 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11204 # is used to find them so we can finally say `yes'.
11205 libltdl_cv_sys_dlopen_deplibs=yes
11206 ;;
11207 solaris*)
11208 libltdl_cv_sys_dlopen_deplibs=yes
11209 ;;
11210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11211 libltdl_cv_sys_dlopen_deplibs=yes
11212 ;;
11213 esac
11214
11215fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011216{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11217echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011218if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11219
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011220cat >>confdefs.h <<\_ACEOF
11221#define LTDL_DLOPEN_DEPLIBS 1
11222_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011223
11224fi
11225
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011226
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011227for ac_header in argz.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011228do
11229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235fi
11236ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238echo "${ECHO_T}$ac_res" >&6; }
11239else
11240 # Is the header compilable?
11241{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11243cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249$ac_includes_default
11250#include <$ac_header>
11251_ACEOF
11252rm -f conftest.$ac_objext
11253if { (ac_try="$ac_compile"
11254case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_header_compiler=yes
11287else
11288 echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_header_compiler=no
11292fi
11293
11294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296echo "${ECHO_T}$ac_header_compiler" >&6; }
11297
11298# Is the header present?
11299{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11301cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h. */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */
11307#include <$ac_header>
11308_ACEOF
11309if { (ac_try="$ac_cpp conftest.$ac_ext"
11310case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313esac
11314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11316 ac_status=$?
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } >/dev/null; then
11322 if test -s conftest.err; then
11323 ac_cpp_err=$ac_c_preproc_warn_flag
11324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11325 else
11326 ac_cpp_err=
11327 fi
11328else
11329 ac_cpp_err=yes
11330fi
11331if test -z "$ac_cpp_err"; then
11332 ac_header_preproc=yes
11333else
11334 echo "$as_me: failed program was:" >&5
11335sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 ac_header_preproc=no
11338fi
11339
11340rm -f conftest.err conftest.$ac_ext
11341{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342echo "${ECHO_T}$ac_header_preproc" >&6; }
11343
11344# So? What about this header?
11345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11346 yes:no: )
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351 ac_header_preproc=yes
11352 ;;
11353 no:yes:* )
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11366 ( cat <<\_ASBOX
11367## ----------------------------------- ##
11368## Report this to llvmbugs@cs.uiuc.edu ##
11369## ----------------------------------- ##
11370_ASBOX
11371 ) | sed "s/^/$as_me: WARNING: /" >&2
11372 ;;
11373esac
11374{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378else
11379 eval "$as_ac_Header=\$ac_header_preproc"
11380fi
11381ac_res=`eval echo '${'$as_ac_Header'}'`
11382 { echo "$as_me:$LINENO: result: $ac_res" >&5
11383echo "${ECHO_T}$ac_res" >&6; }
11384
11385fi
11386if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011387 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011389_ACEOF
11390
11391fi
11392
11393done
11394
11395
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011396{ echo "$as_me:$LINENO: checking for error_t" >&5
11397echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11398if test "${ac_cv_type_error_t+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400else
11401 cat >conftest.$ac_ext <<_ACEOF
11402/* confdefs.h. */
11403_ACEOF
11404cat confdefs.h >>conftest.$ac_ext
11405cat >>conftest.$ac_ext <<_ACEOF
11406/* end confdefs.h. */
11407#if HAVE_ARGZ_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011408# include <argz.h>
11409#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011410
11411typedef error_t ac__type_new_;
11412int
11413main ()
11414{
11415if ((ac__type_new_ *) 0)
11416 return 0;
11417if (sizeof (ac__type_new_))
11418 return 0;
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext
11424if { (ac_try="$ac_compile"
11425case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428esac
11429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_compile") 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11438 { (case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11441esac
11442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443 (eval "$ac_try") 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest.$ac_objext'
11448 { (case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11451esac
11452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_try") 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_cv_type_error_t=yes
11458else
11459 echo "$as_me: failed program was:" >&5
11460sed 's/^/| /' conftest.$ac_ext >&5
11461
11462 ac_cv_type_error_t=no
11463fi
11464
11465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466fi
11467{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11468echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11469if test $ac_cv_type_error_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011470
11471cat >>confdefs.h <<_ACEOF
11472#define HAVE_ERROR_T 1
11473_ACEOF
11474
11475
11476else
11477
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011478cat >>confdefs.h <<\_ACEOF
11479#define error_t int
11480_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011481
11482fi
11483
11484
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011485
11486
11487
11488
11489
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011490for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011491do
11492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11493{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11495if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498 cat >conftest.$ac_ext <<_ACEOF
11499/* confdefs.h. */
11500_ACEOF
11501cat confdefs.h >>conftest.$ac_ext
11502cat >>conftest.$ac_ext <<_ACEOF
11503/* end confdefs.h. */
11504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11506#define $ac_func innocuous_$ac_func
11507
11508/* System header to define __stub macros and hopefully few prototypes,
11509 which can conflict with char $ac_func (); below.
11510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511 <limits.h> exists even on freestanding compilers. */
11512
11513#ifdef __STDC__
11514# include <limits.h>
11515#else
11516# include <assert.h>
11517#endif
11518
11519#undef $ac_func
11520
11521/* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524#ifdef __cplusplus
11525extern "C"
11526#endif
11527char $ac_func ();
11528/* The GNU C library defines this for functions which it implements
11529 to always fail with ENOSYS. Some functions are actually named
11530 something starting with __ and the normal name is an alias. */
11531#if defined __stub_$ac_func || defined __stub___$ac_func
11532choke me
11533#endif
11534
11535int
11536main ()
11537{
11538return $ac_func ();
11539 ;
11540 return 0;
11541}
11542_ACEOF
11543rm -f conftest.$ac_objext conftest$ac_exeext
11544if { (ac_try="$ac_link"
11545case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548esac
11549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_link") 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } &&
11557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558 { (case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11561esac
11562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_try") 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest$ac_exeext'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571esac
11572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 eval "$as_ac_var=yes"
11578else
11579 echo "$as_me: failed program was:" >&5
11580sed 's/^/| /' conftest.$ac_ext >&5
11581
11582 eval "$as_ac_var=no"
11583fi
11584
11585rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587fi
11588ac_res=`eval echo '${'$as_ac_var'}'`
11589 { echo "$as_me:$LINENO: result: $ac_res" >&5
11590echo "${ECHO_T}$ac_res" >&6; }
11591if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011592 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011594_ACEOF
11595
11596fi
11597done
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011618
11619
11620
11621
11622
11623
11624
11625
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011626for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11627 stdio.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011628do
11629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635fi
11636ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result: $ac_res" >&5
11638echo "${ECHO_T}$ac_res" >&6; }
11639else
11640 # Is the header compilable?
11641{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11642echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11643cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649$ac_includes_default
11650#include <$ac_header>
11651_ACEOF
11652rm -f conftest.$ac_objext
11653if { (ac_try="$ac_compile"
11654case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657esac
11658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670esac
11671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11680esac
11681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_header_compiler=yes
11687else
11688 echo "$as_me: failed program was:" >&5
11689sed 's/^/| /' conftest.$ac_ext >&5
11690
11691 ac_header_compiler=no
11692fi
11693
11694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11696echo "${ECHO_T}$ac_header_compiler" >&6; }
11697
11698# Is the header present?
11699{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11701cat >conftest.$ac_ext <<_ACEOF
11702/* confdefs.h. */
11703_ACEOF
11704cat confdefs.h >>conftest.$ac_ext
11705cat >>conftest.$ac_ext <<_ACEOF
11706/* end confdefs.h. */
11707#include <$ac_header>
11708_ACEOF
11709if { (ac_try="$ac_cpp conftest.$ac_ext"
11710case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11713esac
11714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } >/dev/null; then
11722 if test -s conftest.err; then
11723 ac_cpp_err=$ac_c_preproc_warn_flag
11724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11725 else
11726 ac_cpp_err=
11727 fi
11728else
11729 ac_cpp_err=yes
11730fi
11731if test -z "$ac_cpp_err"; then
11732 ac_header_preproc=yes
11733else
11734 echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 ac_header_preproc=no
11738fi
11739
11740rm -f conftest.err conftest.$ac_ext
11741{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11742echo "${ECHO_T}$ac_header_preproc" >&6; }
11743
11744# So? What about this header?
11745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11746 yes:no: )
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11751 ac_header_preproc=yes
11752 ;;
11753 no:yes:* )
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11766 ( cat <<\_ASBOX
11767## ----------------------------------- ##
11768## Report this to llvmbugs@cs.uiuc.edu ##
11769## ----------------------------------- ##
11770_ASBOX
11771 ) | sed "s/^/$as_me: WARNING: /" >&2
11772 ;;
11773esac
11774{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11778else
11779 eval "$as_ac_Header=\$ac_header_preproc"
11780fi
11781ac_res=`eval echo '${'$as_ac_Header'}'`
11782 { echo "$as_me:$LINENO: result: $ac_res" >&5
11783echo "${ECHO_T}$ac_res" >&6; }
11784
11785fi
11786if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011787 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011789_ACEOF
11790
11791fi
11792
11793done
11794
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011795
11796
11797
11798
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011799for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011800do
11801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807fi
11808ac_res=`eval echo '${'$as_ac_Header'}'`
11809 { echo "$as_me:$LINENO: result: $ac_res" >&5
11810echo "${ECHO_T}$ac_res" >&6; }
11811else
11812 # Is the header compilable?
11813{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11815cat >conftest.$ac_ext <<_ACEOF
11816/* confdefs.h. */
11817_ACEOF
11818cat confdefs.h >>conftest.$ac_ext
11819cat >>conftest.$ac_ext <<_ACEOF
11820/* end confdefs.h. */
11821$ac_includes_default
11822#include <$ac_header>
11823_ACEOF
11824rm -f conftest.$ac_objext
11825if { (ac_try="$ac_compile"
11826case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11829esac
11830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_compile") 2>conftest.er1
11832 ac_status=$?
11833 grep -v '^ *+' conftest.er1 >conftest.err
11834 rm -f conftest.er1
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } &&
11838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11839 { (case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842esac
11843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_try") 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11852esac
11853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854 (eval "$ac_try") 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 ac_header_compiler=yes
11859else
11860 echo "$as_me: failed program was:" >&5
11861sed 's/^/| /' conftest.$ac_ext >&5
11862
11863 ac_header_compiler=no
11864fi
11865
11866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11868echo "${ECHO_T}$ac_header_compiler" >&6; }
11869
11870# Is the header present?
11871{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11872echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11873cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
11879#include <$ac_header>
11880_ACEOF
11881if { (ac_try="$ac_cpp conftest.$ac_ext"
11882case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } >/dev/null; then
11894 if test -s conftest.err; then
11895 ac_cpp_err=$ac_c_preproc_warn_flag
11896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11897 else
11898 ac_cpp_err=
11899 fi
11900else
11901 ac_cpp_err=yes
11902fi
11903if test -z "$ac_cpp_err"; then
11904 ac_header_preproc=yes
11905else
11906 echo "$as_me: failed program was:" >&5
11907sed 's/^/| /' conftest.$ac_ext >&5
11908
11909 ac_header_preproc=no
11910fi
11911
11912rm -f conftest.err conftest.$ac_ext
11913{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11914echo "${ECHO_T}$ac_header_preproc" >&6; }
11915
11916# So? What about this header?
11917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918 yes:no: )
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11923 ac_header_preproc=yes
11924 ;;
11925 no:yes:* )
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11929echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11931echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11933echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11938 ( cat <<\_ASBOX
11939## ----------------------------------- ##
11940## Report this to llvmbugs@cs.uiuc.edu ##
11941## ----------------------------------- ##
11942_ASBOX
11943 ) | sed "s/^/$as_me: WARNING: /" >&2
11944 ;;
11945esac
11946{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950else
11951 eval "$as_ac_Header=\$ac_header_preproc"
11952fi
11953ac_res=`eval echo '${'$as_ac_Header'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955echo "${ECHO_T}$ac_res" >&6; }
11956
11957fi
11958if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011959 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011961_ACEOF
11962
11963fi
11964
11965done
11966
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011967
11968
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011969for ac_header in string.h strings.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011970do
11971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977fi
11978ac_res=`eval echo '${'$as_ac_Header'}'`
11979 { echo "$as_me:$LINENO: result: $ac_res" >&5
11980echo "${ECHO_T}$ac_res" >&6; }
11981else
11982 # Is the header compilable?
11983{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11985cat >conftest.$ac_ext <<_ACEOF
11986/* confdefs.h. */
11987_ACEOF
11988cat confdefs.h >>conftest.$ac_ext
11989cat >>conftest.$ac_ext <<_ACEOF
11990/* end confdefs.h. */
11991$ac_includes_default
11992#include <$ac_header>
11993_ACEOF
11994rm -f conftest.$ac_objext
11995if { (ac_try="$ac_compile"
11996case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
11999esac
12000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_compile") 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12009 { (case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12012esac
12013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014 (eval "$ac_try") 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12022esac
12023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_try") 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_header_compiler=yes
12029else
12030 echo "$as_me: failed program was:" >&5
12031sed 's/^/| /' conftest.$ac_ext >&5
12032
12033 ac_header_compiler=no
12034fi
12035
12036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12038echo "${ECHO_T}$ac_header_compiler" >&6; }
12039
12040# Is the header present?
12041{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12042echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12043cat >conftest.$ac_ext <<_ACEOF
12044/* confdefs.h. */
12045_ACEOF
12046cat confdefs.h >>conftest.$ac_ext
12047cat >>conftest.$ac_ext <<_ACEOF
12048/* end confdefs.h. */
12049#include <$ac_header>
12050_ACEOF
12051if { (ac_try="$ac_cpp conftest.$ac_ext"
12052case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055esac
12056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } >/dev/null; then
12064 if test -s conftest.err; then
12065 ac_cpp_err=$ac_c_preproc_warn_flag
12066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12067 else
12068 ac_cpp_err=
12069 fi
12070else
12071 ac_cpp_err=yes
12072fi
12073if test -z "$ac_cpp_err"; then
12074 ac_header_preproc=yes
12075else
12076 echo "$as_me: failed program was:" >&5
12077sed 's/^/| /' conftest.$ac_ext >&5
12078
12079 ac_header_preproc=no
12080fi
12081
12082rm -f conftest.err conftest.$ac_ext
12083{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12084echo "${ECHO_T}$ac_header_preproc" >&6; }
12085
12086# So? What about this header?
12087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12088 yes:no: )
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12090echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12092echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12093 ac_header_preproc=yes
12094 ;;
12095 no:yes:* )
12096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12097echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12099echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12101echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12103echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12107echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12108 ( cat <<\_ASBOX
12109## ----------------------------------- ##
12110## Report this to llvmbugs@cs.uiuc.edu ##
12111## ----------------------------------- ##
12112_ASBOX
12113 ) | sed "s/^/$as_me: WARNING: /" >&2
12114 ;;
12115esac
12116{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12120else
12121 eval "$as_ac_Header=\$ac_header_preproc"
12122fi
12123ac_res=`eval echo '${'$as_ac_Header'}'`
12124 { echo "$as_me:$LINENO: result: $ac_res" >&5
12125echo "${ECHO_T}$ac_res" >&6; }
12126
12127fi
12128if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012129 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012130#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012131_ACEOF
12132 break
12133fi
12134
12135done
12136
12137
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012138
12139
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012140for ac_func in strchr index
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012141do
12142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147else
12148 cat >conftest.$ac_ext <<_ACEOF
12149/* confdefs.h. */
12150_ACEOF
12151cat confdefs.h >>conftest.$ac_ext
12152cat >>conftest.$ac_ext <<_ACEOF
12153/* end confdefs.h. */
12154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12156#define $ac_func innocuous_$ac_func
12157
12158/* System header to define __stub macros and hopefully few prototypes,
12159 which can conflict with char $ac_func (); below.
12160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12161 <limits.h> exists even on freestanding compilers. */
12162
12163#ifdef __STDC__
12164# include <limits.h>
12165#else
12166# include <assert.h>
12167#endif
12168
12169#undef $ac_func
12170
12171/* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
12174#ifdef __cplusplus
12175extern "C"
12176#endif
12177char $ac_func ();
12178/* The GNU C library defines this for functions which it implements
12179 to always fail with ENOSYS. Some functions are actually named
12180 something starting with __ and the normal name is an alias. */
12181#if defined __stub_$ac_func || defined __stub___$ac_func
12182choke me
12183#endif
12184
12185int
12186main ()
12187{
12188return $ac_func ();
12189 ;
12190 return 0;
12191}
12192_ACEOF
12193rm -f conftest.$ac_objext conftest$ac_exeext
12194if { (ac_try="$ac_link"
12195case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208 { (case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12211esac
12212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_try") 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest$ac_exeext'
12218 { (case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_try") 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 eval "$as_ac_var=yes"
12228else
12229 echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232 eval "$as_ac_var=no"
12233fi
12234
12235rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237fi
12238ac_res=`eval echo '${'$as_ac_var'}'`
12239 { echo "$as_me:$LINENO: result: $ac_res" >&5
12240echo "${ECHO_T}$ac_res" >&6; }
12241if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012242 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012244_ACEOF
12245 break
12246fi
12247done
12248
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012249
12250
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012251for ac_func in strrchr rindex
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012252do
12253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12254{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12256if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258else
12259 cat >conftest.$ac_ext <<_ACEOF
12260/* confdefs.h. */
12261_ACEOF
12262cat confdefs.h >>conftest.$ac_ext
12263cat >>conftest.$ac_ext <<_ACEOF
12264/* end confdefs.h. */
12265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12267#define $ac_func innocuous_$ac_func
12268
12269/* System header to define __stub macros and hopefully few prototypes,
12270 which can conflict with char $ac_func (); below.
12271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12272 <limits.h> exists even on freestanding compilers. */
12273
12274#ifdef __STDC__
12275# include <limits.h>
12276#else
12277# include <assert.h>
12278#endif
12279
12280#undef $ac_func
12281
12282/* Override any GCC internal prototype to avoid an error.
12283 Use char because int might match the return type of a GCC
12284 builtin and then its argument prototype would still apply. */
12285#ifdef __cplusplus
12286extern "C"
12287#endif
12288char $ac_func ();
12289/* The GNU C library defines this for functions which it implements
12290 to always fail with ENOSYS. Some functions are actually named
12291 something starting with __ and the normal name is an alias. */
12292#if defined __stub_$ac_func || defined __stub___$ac_func
12293choke me
12294#endif
12295
12296int
12297main ()
12298{
12299return $ac_func ();
12300 ;
12301 return 0;
12302}
12303_ACEOF
12304rm -f conftest.$ac_objext conftest$ac_exeext
12305if { (ac_try="$ac_link"
12306case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309esac
12310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_link") 2>conftest.er1
12312 ac_status=$?
12313 grep -v '^ *+' conftest.er1 >conftest.err
12314 rm -f conftest.er1
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12319 { (case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12322esac
12323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_try") 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
12328 { ac_try='test -s conftest$ac_exeext'
12329 { (case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12332esac
12333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_try") 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 eval "$as_ac_var=yes"
12339else
12340 echo "$as_me: failed program was:" >&5
12341sed 's/^/| /' conftest.$ac_ext >&5
12342
12343 eval "$as_ac_var=no"
12344fi
12345
12346rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348fi
12349ac_res=`eval echo '${'$as_ac_var'}'`
12350 { echo "$as_me:$LINENO: result: $ac_res" >&5
12351echo "${ECHO_T}$ac_res" >&6; }
12352if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012353 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012355_ACEOF
12356 break
12357fi
12358done
12359
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012360
12361
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012362for ac_func in memcpy bcopy
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012363do
12364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12365{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12367if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12369else
12370 cat >conftest.$ac_ext <<_ACEOF
12371/* confdefs.h. */
12372_ACEOF
12373cat confdefs.h >>conftest.$ac_ext
12374cat >>conftest.$ac_ext <<_ACEOF
12375/* end confdefs.h. */
12376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12378#define $ac_func innocuous_$ac_func
12379
12380/* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char $ac_func (); below.
12382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383 <limits.h> exists even on freestanding compilers. */
12384
12385#ifdef __STDC__
12386# include <limits.h>
12387#else
12388# include <assert.h>
12389#endif
12390
12391#undef $ac_func
12392
12393/* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12396#ifdef __cplusplus
12397extern "C"
12398#endif
12399char $ac_func ();
12400/* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403#if defined __stub_$ac_func || defined __stub___$ac_func
12404choke me
12405#endif
12406
12407int
12408main ()
12409{
12410return $ac_func ();
12411 ;
12412 return 0;
12413}
12414_ACEOF
12415rm -f conftest.$ac_objext conftest$ac_exeext
12416if { (ac_try="$ac_link"
12417case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420esac
12421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_link") 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12430 { (case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12433esac
12434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_try") 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; } &&
12439 { ac_try='test -s conftest$ac_exeext'
12440 { (case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12443esac
12444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445 (eval "$ac_try") 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 eval "$as_ac_var=yes"
12450else
12451 echo "$as_me: failed program was:" >&5
12452sed 's/^/| /' conftest.$ac_ext >&5
12453
12454 eval "$as_ac_var=no"
12455fi
12456
12457rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12459fi
12460ac_res=`eval echo '${'$as_ac_var'}'`
12461 { echo "$as_me:$LINENO: result: $ac_res" >&5
12462echo "${ECHO_T}$ac_res" >&6; }
12463if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012464 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012466_ACEOF
12467 break
12468fi
12469done
12470
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012471
12472
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012473for ac_func in memmove strcmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012474do
12475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12476{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12478if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480else
12481 cat >conftest.$ac_ext <<_ACEOF
12482/* confdefs.h. */
12483_ACEOF
12484cat confdefs.h >>conftest.$ac_ext
12485cat >>conftest.$ac_ext <<_ACEOF
12486/* end confdefs.h. */
12487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12489#define $ac_func innocuous_$ac_func
12490
12491/* System header to define __stub macros and hopefully few prototypes,
12492 which can conflict with char $ac_func (); below.
12493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12494 <limits.h> exists even on freestanding compilers. */
12495
12496#ifdef __STDC__
12497# include <limits.h>
12498#else
12499# include <assert.h>
12500#endif
12501
12502#undef $ac_func
12503
12504/* Override any GCC internal prototype to avoid an error.
12505 Use char because int might match the return type of a GCC
12506 builtin and then its argument prototype would still apply. */
12507#ifdef __cplusplus
12508extern "C"
12509#endif
12510char $ac_func ();
12511/* The GNU C library defines this for functions which it implements
12512 to always fail with ENOSYS. Some functions are actually named
12513 something starting with __ and the normal name is an alias. */
12514#if defined __stub_$ac_func || defined __stub___$ac_func
12515choke me
12516#endif
12517
12518int
12519main ()
12520{
12521return $ac_func ();
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext conftest$ac_exeext
12527if { (ac_try="$ac_link"
12528case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest$ac_exeext'
12551 { (case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554esac
12555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_try") 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 eval "$as_ac_var=yes"
12561else
12562 echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 eval "$as_ac_var=no"
12566fi
12567
12568rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570fi
12571ac_res=`eval echo '${'$as_ac_var'}'`
12572 { echo "$as_me:$LINENO: result: $ac_res" >&5
12573echo "${ECHO_T}$ac_res" >&6; }
12574if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012575 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012577_ACEOF
12578
12579fi
12580done
12581
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012582
12583
12584
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012585for ac_func in closedir opendir readdir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012586do
12587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12588{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12590if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592else
12593 cat >conftest.$ac_ext <<_ACEOF
12594/* confdefs.h. */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
12598/* end confdefs.h. */
12599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12601#define $ac_func innocuous_$ac_func
12602
12603/* System header to define __stub macros and hopefully few prototypes,
12604 which can conflict with char $ac_func (); below.
12605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12606 <limits.h> exists even on freestanding compilers. */
12607
12608#ifdef __STDC__
12609# include <limits.h>
12610#else
12611# include <assert.h>
12612#endif
12613
12614#undef $ac_func
12615
12616/* Override any GCC internal prototype to avoid an error.
12617 Use char because int might match the return type of a GCC
12618 builtin and then its argument prototype would still apply. */
12619#ifdef __cplusplus
12620extern "C"
12621#endif
12622char $ac_func ();
12623/* The GNU C library defines this for functions which it implements
12624 to always fail with ENOSYS. Some functions are actually named
12625 something starting with __ and the normal name is an alias. */
12626#if defined __stub_$ac_func || defined __stub___$ac_func
12627choke me
12628#endif
12629
12630int
12631main ()
12632{
12633return $ac_func ();
12634 ;
12635 return 0;
12636}
12637_ACEOF
12638rm -f conftest.$ac_objext conftest$ac_exeext
12639if { (ac_try="$ac_link"
12640case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643esac
12644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_link") 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12656esac
12657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try='test -s conftest$ac_exeext'
12663 { (case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12666esac
12667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_try") 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 eval "$as_ac_var=yes"
12673else
12674 echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 eval "$as_ac_var=no"
12678fi
12679
12680rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12682fi
12683ac_res=`eval echo '${'$as_ac_var'}'`
12684 { echo "$as_me:$LINENO: result: $ac_res" >&5
12685echo "${ECHO_T}$ac_res" >&6; }
12686if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012687 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012689_ACEOF
12690
12691fi
12692done
12693
12694
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000012695
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012696if test "$WITH_LLVMGCCDIR" = "default" ; then
12697 LLVMGCC="llvm-gcc${EXEEXT}"
12698 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012699 LLVMGCCCOMMAND="$LLVMGCC"
12700 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012701 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12702
12703 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12704
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012705 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12706set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12709if test "${ac_cv_path_LLVMGCC+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012711else
12712 case $LLVMGCC in
12713 [\\/]* | ?:[\\/]*)
12714 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12715 ;;
12716 *)
12717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718for as_dir in $PATH
12719do
12720 IFS=$as_save_IFS
12721 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012722 for ac_exec_ext in '' $ac_executable_extensions; do
12723 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 +000012724 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012726 break 2
12727 fi
12728done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012729done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012730IFS=$as_save_IFS
12731
12732 ;;
12733esac
12734fi
12735LLVMGCC=$ac_cv_path_LLVMGCC
12736if test -n "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012737 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12738echo "${ECHO_T}$LLVMGCC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012739else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012740 { echo "$as_me:$LINENO: result: no" >&5
12741echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012742fi
12743
12744
12745 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12746set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12749if test "${ac_cv_path_LLVMGXX+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012751else
12752 case $LLVMGXX in
12753 [\\/]* | ?:[\\/]*)
12754 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12755 ;;
12756 *)
12757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758for as_dir in $PATH
12759do
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 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 +000012764 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012766 break 2
12767 fi
12768done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012769done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012770IFS=$as_save_IFS
12771
12772 ;;
12773esac
12774fi
12775LLVMGXX=$ac_cv_path_LLVMGXX
12776if test -n "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012777 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12778echo "${ECHO_T}$LLVMGXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012779else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012780 { echo "$as_me:$LINENO: result: no" >&5
12781echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012782fi
12783
12784
12785else
Devang Pateld84ba7b2007-12-04 22:54:47 +000012786 if test -z "$LLVMGCC"; then
12787 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012788 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000012789 fi
12790 if test -z "$LLVMGXX"; then
12791 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012792 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000012793 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012794
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012795 LLVMGCC=$LLVMGCC
12796
12797 LLVMGXX=$LLVMGXX
12798
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012799 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12800
12801 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12802
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012803fi
12804
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012805
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012806{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12807echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012808
12809ICC=no
12810IXX=no
12811case $CC in
12812 icc*|icpc*)
12813 ICC=yes
12814 IXX=yes
12815 ;;
12816 *)
12817 ;;
12818esac
12819
12820if test "$GCC" != "yes" && test "$ICC" != "yes"
12821then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012822 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12823echo "$as_me: error: gcc|icc required but not found" >&2;}
12824 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012825fi
12826
12827if test "$GXX" != "yes" && test "$IXX" != "yes"
12828then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012829 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12830echo "$as_me: error: g++|icc required but not found" >&2;}
12831 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012832fi
12833
12834if test "$GCC" = "yes"
12835then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012836 cat >conftest.$ac_ext <<_ACEOF
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012837#if !defined(__GNUC__) || __GNUC__ < 3
12838#error Unsupported GCC version
12839#endif
12840
12841_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012842rm -f conftest.$ac_objext
12843if { (ac_try="$ac_compile"
12844case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847esac
12848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_compile") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860esac
12861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest.$ac_objext'
12867 { (case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870esac
12871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_try") 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 :
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012877else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012878 echo "$as_me: failed program was:" >&5
12879sed 's/^/| /' conftest.$ac_ext >&5
12880
12881 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12882echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12883 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012884fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012885
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012887fi
12888
12889if test -z "$llvm_cv_gnu_make_command"
12890then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012891 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12892echo "$as_me: error: GNU Make required but not found" >&2;}
12893 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012894fi
12895
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012896{ echo "$as_me:$LINENO: result: ok" >&5
12897echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012898
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012899{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12900echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000012901NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12902
12903NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12904
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012905{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12906echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000012907
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000012908
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012909
12910{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12911echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12912if test "${ac_cv_lib_m_sin+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012914else
12915 ac_check_lib_save_LIBS=$LIBS
12916LIBS="-lm $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012917cat >conftest.$ac_ext <<_ACEOF
12918/* confdefs.h. */
12919_ACEOF
12920cat confdefs.h >>conftest.$ac_ext
12921cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012922/* end confdefs.h. */
12923
12924/* Override any GCC internal prototype to avoid an error.
12925 Use char because int might match the return type of a GCC
12926 builtin and then its argument prototype would still apply. */
12927#ifdef __cplusplus
12928extern "C"
12929#endif
12930char sin ();
12931int
12932main ()
12933{
12934return sin ();
12935 ;
12936 return 0;
12937}
12938_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012939rm -f conftest.$ac_objext conftest$ac_exeext
12940if { (ac_try="$ac_link"
12941case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12944esac
12945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_link") 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12954 { (case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_try") 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; } &&
12963 { ac_try='test -s conftest$ac_exeext'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012973 ac_cv_lib_m_sin=yes
12974else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012975 echo "$as_me: failed program was:" >&5
12976sed 's/^/| /' conftest.$ac_ext >&5
12977
12978 ac_cv_lib_m_sin=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012979fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012980
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012981rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012982 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012983LIBS=$ac_check_lib_save_LIBS
12984fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012985{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12986echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12987if test $ac_cv_lib_m_sin = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012988 cat >>confdefs.h <<_ACEOF
12989#define HAVE_LIBM 1
12990_ACEOF
12991
12992 LIBS="-lm $LIBS"
12993
12994fi
12995
12996if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012997
12998{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12999echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13000if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013002else
13003 ac_check_lib_save_LIBS=$LIBS
13004LIBS="-limagehlp $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013005cat >conftest.$ac_ext <<_ACEOF
13006/* confdefs.h. */
13007_ACEOF
13008cat confdefs.h >>conftest.$ac_ext
13009cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013010/* end confdefs.h. */
13011
13012
13013int
13014main ()
13015{
13016return main ();
13017 ;
13018 return 0;
13019}
13020_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013021rm -f conftest.$ac_objext conftest$ac_exeext
13022if { (ac_try="$ac_link"
13023case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13026esac
13027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_link") 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13036 { (case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13039esac
13040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_try") 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; } &&
13045 { ac_try='test -s conftest$ac_exeext'
13046 { (case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049esac
13050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_try") 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013055 ac_cv_lib_imagehlp_main=yes
13056else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013057 echo "$as_me: failed program was:" >&5
13058sed 's/^/| /' conftest.$ac_ext >&5
13059
13060 ac_cv_lib_imagehlp_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013061fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013062
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013063rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013064 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013065LIBS=$ac_check_lib_save_LIBS
13066fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013067{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13068echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13069if test $ac_cv_lib_imagehlp_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013070 cat >>confdefs.h <<_ACEOF
13071#define HAVE_LIBIMAGEHLP 1
13072_ACEOF
13073
13074 LIBS="-limagehlp $LIBS"
13075
13076fi
13077
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013078
13079{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13080echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13081if test "${ac_cv_lib_psapi_main+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013083else
13084 ac_check_lib_save_LIBS=$LIBS
13085LIBS="-lpsapi $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013086cat >conftest.$ac_ext <<_ACEOF
13087/* confdefs.h. */
13088_ACEOF
13089cat confdefs.h >>conftest.$ac_ext
13090cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013091/* end confdefs.h. */
13092
13093
13094int
13095main ()
13096{
13097return main ();
13098 ;
13099 return 0;
13100}
13101_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013102rm -f conftest.$ac_objext conftest$ac_exeext
13103if { (ac_try="$ac_link"
13104case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13107esac
13108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_link") 2>conftest.er1
13110 ac_status=$?
13111 grep -v '^ *+' conftest.er1 >conftest.err
13112 rm -f conftest.er1
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13120esac
13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_try") 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; } &&
13126 { ac_try='test -s conftest$ac_exeext'
13127 { (case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130esac
13131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_try") 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013136 ac_cv_lib_psapi_main=yes
13137else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013138 echo "$as_me: failed program was:" >&5
13139sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 ac_cv_lib_psapi_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013142fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013143
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013144rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013145 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013146LIBS=$ac_check_lib_save_LIBS
13147fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013148{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13149echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13150if test $ac_cv_lib_psapi_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013151 cat >>confdefs.h <<_ACEOF
13152#define HAVE_LIBPSAPI 1
13153_ACEOF
13154
13155 LIBS="-lpsapi $LIBS"
13156
13157fi
13158
13159fi
13160
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013161{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13162echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13163if test "${ac_cv_search_dlopen+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013165else
13166 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013167cat >conftest.$ac_ext <<_ACEOF
13168/* confdefs.h. */
13169_ACEOF
13170cat confdefs.h >>conftest.$ac_ext
13171cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013172/* end confdefs.h. */
13173
13174/* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13177#ifdef __cplusplus
13178extern "C"
13179#endif
13180char dlopen ();
13181int
13182main ()
13183{
13184return dlopen ();
13185 ;
13186 return 0;
13187}
13188_ACEOF
13189for ac_lib in '' dl; do
13190 if test -z "$ac_lib"; then
13191 ac_res="none required"
13192 else
13193 ac_res=-l$ac_lib
13194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13195 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013196 rm -f conftest.$ac_objext conftest$ac_exeext
13197if { (ac_try="$ac_link"
13198case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13201esac
13202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_link") 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211 { (case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214esac
13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_try") 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest$ac_exeext'
13221 { (case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224esac
13225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_try") 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013230 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013231else
13232 echo "$as_me: failed program was:" >&5
13233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013236fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013237
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013238rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013239 conftest$ac_exeext
13240 if test "${ac_cv_search_dlopen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013241 break
13242fi
13243done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013244if test "${ac_cv_search_dlopen+set}" = set; then
13245 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013246else
13247 ac_cv_search_dlopen=no
13248fi
13249rm conftest.$ac_ext
13250LIBS=$ac_func_search_save_LIBS
13251fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013252{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13253echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013254ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013255if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13257
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013258cat >>confdefs.h <<\_ACEOF
13259#define HAVE_DLOPEN 1
13260_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013261
13262else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013263 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13264echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013265fi
13266
13267
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013268if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013269 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13270echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13271if test "${ac_cv_search_ffi_call+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky0235b622009-02-04 06:27:44 +000013273else
Nick Lewycky6c58a402009-04-13 04:26:27 +000013274 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013275cat >conftest.$ac_ext <<_ACEOF
13276/* confdefs.h. */
13277_ACEOF
13278cat confdefs.h >>conftest.$ac_ext
13279cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000013280/* end confdefs.h. */
13281
13282/* Override any GCC internal prototype to avoid an error.
13283 Use char because int might match the return type of a GCC
13284 builtin and then its argument prototype would still apply. */
13285#ifdef __cplusplus
13286extern "C"
13287#endif
13288char ffi_call ();
13289int
13290main ()
13291{
13292return ffi_call ();
13293 ;
13294 return 0;
13295}
13296_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013297for ac_lib in '' ffi; do
13298 if test -z "$ac_lib"; then
13299 ac_res="none required"
13300 else
13301 ac_res=-l$ac_lib
13302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13303 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013304 rm -f conftest.$ac_objext conftest$ac_exeext
13305if { (ac_try="$ac_link"
13306case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13309esac
13310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_link") 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13319 { (case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322esac
13323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_try") 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; } &&
13328 { ac_try='test -s conftest$ac_exeext'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332esac
13333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013338 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013339else
13340 echo "$as_me: failed program was:" >&5
13341sed 's/^/| /' conftest.$ac_ext >&5
13342
13343
Nick Lewycky0235b622009-02-04 06:27:44 +000013344fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013345
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013346rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013347 conftest$ac_exeext
13348 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013349 break
Nick Lewycky0235b622009-02-04 06:27:44 +000013350fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000013351done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013352if test "${ac_cv_search_ffi_call+set}" = set; then
13353 :
Nick Lewycky6c58a402009-04-13 04:26:27 +000013354else
13355 ac_cv_search_ffi_call=no
13356fi
13357rm conftest.$ac_ext
13358LIBS=$ac_func_search_save_LIBS
13359fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013360{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13361echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky6c58a402009-04-13 04:26:27 +000013362ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013363if test "$ac_res" != no; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13365
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013366cat >>confdefs.h <<\_ACEOF
13367#define HAVE_FFI_CALL 1
13368_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013369
Nick Lewycky0235b622009-02-04 06:27:44 +000013370else
Jeffrey Yasskin260af332010-02-09 23:03:44 +000013371 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13372echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13373 { (exit 1); exit 1; }; }
Nick Lewycky0235b622009-02-04 06:27:44 +000013374fi
13375
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013376fi
Nick Lewycky0235b622009-02-04 06:27:44 +000013377
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013378{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13379echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13380if test "${ac_cv_search_mallinfo+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013382else
13383 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013384cat >conftest.$ac_ext <<_ACEOF
13385/* confdefs.h. */
13386_ACEOF
13387cat confdefs.h >>conftest.$ac_ext
13388cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013389/* end confdefs.h. */
13390
13391/* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13394#ifdef __cplusplus
13395extern "C"
13396#endif
13397char mallinfo ();
13398int
13399main ()
13400{
13401return mallinfo ();
13402 ;
13403 return 0;
13404}
13405_ACEOF
13406for ac_lib in '' malloc; do
13407 if test -z "$ac_lib"; then
13408 ac_res="none required"
13409 else
13410 ac_res=-l$ac_lib
13411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13412 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013413 rm -f conftest.$ac_objext conftest$ac_exeext
13414if { (ac_try="$ac_link"
13415case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418esac
13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_link") 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431esac
13432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest$ac_exeext'
13438 { (case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441esac
13442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_try") 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013447 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013448else
13449 echo "$as_me: failed program was:" >&5
13450sed 's/^/| /' conftest.$ac_ext >&5
13451
13452
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013453fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013454
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013455rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013456 conftest$ac_exeext
13457 if test "${ac_cv_search_mallinfo+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013458 break
13459fi
13460done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013461if test "${ac_cv_search_mallinfo+set}" = set; then
13462 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013463else
13464 ac_cv_search_mallinfo=no
13465fi
13466rm conftest.$ac_ext
13467LIBS=$ac_func_search_save_LIBS
13468fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013469{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13470echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013471ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013472if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13474
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013475cat >>confdefs.h <<\_ACEOF
13476#define HAVE_MALLINFO 1
13477_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013478
13479fi
13480
13481
13482if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013483
13484{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13485echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13486if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013488else
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013489 ac_check_lib_save_LIBS=$LIBS
13490LIBS="-lpthread $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013491cat >conftest.$ac_ext <<_ACEOF
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013496/* end confdefs.h. */
13497
13498/* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13501#ifdef __cplusplus
13502extern "C"
13503#endif
13504char pthread_mutex_init ();
13505int
13506main ()
13507{
13508return pthread_mutex_init ();
13509 ;
13510 return 0;
13511}
13512_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013513rm -f conftest.$ac_objext conftest$ac_exeext
13514if { (ac_try="$ac_link"
13515case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518esac
13519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_link") 2>conftest.er1
13521 ac_status=$?
13522 grep -v '^ *+' conftest.er1 >conftest.err
13523 rm -f conftest.er1
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13528 { (case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13531esac
13532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest$ac_exeext'
13538 { (case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13541esac
13542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_try") 2>&5
13544 ac_status=$?
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013547 ac_cv_lib_pthread_pthread_mutex_init=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013548else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013549 echo "$as_me: failed program was:" >&5
13550sed 's/^/| /' conftest.$ac_ext >&5
13551
13552 ac_cv_lib_pthread_pthread_mutex_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013553fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013554
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013555rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013556 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013557LIBS=$ac_check_lib_save_LIBS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013558fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013559{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13560echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13561if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013562 cat >>confdefs.h <<_ACEOF
13563#define HAVE_LIBPTHREAD 1
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +000013564_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013565
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013566 LIBS="-lpthread $LIBS"
13567
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013568fi
13569
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013570 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13571echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13572if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013574else
13575 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013576cat >conftest.$ac_ext <<_ACEOF
13577/* confdefs.h. */
13578_ACEOF
13579cat confdefs.h >>conftest.$ac_ext
13580cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013581/* end confdefs.h. */
13582
13583/* Override any GCC internal prototype to avoid an error.
13584 Use char because int might match the return type of a GCC
13585 builtin and then its argument prototype would still apply. */
13586#ifdef __cplusplus
13587extern "C"
13588#endif
13589char pthread_mutex_lock ();
13590int
13591main ()
13592{
13593return pthread_mutex_lock ();
13594 ;
13595 return 0;
13596}
13597_ACEOF
13598for ac_lib in '' pthread; do
13599 if test -z "$ac_lib"; then
13600 ac_res="none required"
13601 else
13602 ac_res=-l$ac_lib
13603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13604 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013605 rm -f conftest.$ac_objext conftest$ac_exeext
13606if { (ac_try="$ac_link"
13607case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610esac
13611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_link") 2>conftest.er1
13613 ac_status=$?
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13620 { (case "(($ac_try" in
13621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13623esac
13624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625 (eval "$ac_try") 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013639 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013640else
13641 echo "$as_me: failed program was:" >&5
13642sed 's/^/| /' conftest.$ac_ext >&5
13643
13644
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013645fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013646
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013647rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013648 conftest$ac_exeext
13649 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013650 break
13651fi
13652done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013653if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13654 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013655else
13656 ac_cv_search_pthread_mutex_lock=no
13657fi
13658rm conftest.$ac_ext
13659LIBS=$ac_func_search_save_LIBS
13660fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013661{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13662echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013663ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013664if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13666
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013667cat >>confdefs.h <<\_ACEOF
13668#define HAVE_PTHREAD_MUTEX_LOCK 1
13669_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013670
13671fi
13672
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013673 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13674echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13675if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson23c36602009-06-16 18:20:20 +000013677else
13678 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013679cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000013684/* end confdefs.h. */
13685
13686/* Override any GCC internal prototype to avoid an error.
13687 Use char because int might match the return type of a GCC
13688 builtin and then its argument prototype would still apply. */
13689#ifdef __cplusplus
13690extern "C"
13691#endif
13692char pthread_rwlock_init ();
13693int
13694main ()
13695{
13696return pthread_rwlock_init ();
13697 ;
13698 return 0;
13699}
13700_ACEOF
13701for ac_lib in '' pthread; do
13702 if test -z "$ac_lib"; then
13703 ac_res="none required"
13704 else
13705 ac_res=-l$ac_lib
13706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13707 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013708 rm -f conftest.$ac_objext conftest$ac_exeext
13709if { (ac_try="$ac_link"
13710case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_link") 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13723 { (case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13726esac
13727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_try") 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest$ac_exeext'
13733 { (case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13736esac
13737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738 (eval "$ac_try") 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
Owen Anderson23c36602009-06-16 18:20:20 +000013742 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013743else
13744 echo "$as_me: failed program was:" >&5
13745sed 's/^/| /' conftest.$ac_ext >&5
13746
13747
Owen Anderson23c36602009-06-16 18:20:20 +000013748fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013749
Owen Anderson23c36602009-06-16 18:20:20 +000013750rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013751 conftest$ac_exeext
13752 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Anderson23c36602009-06-16 18:20:20 +000013753 break
13754fi
13755done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013756if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13757 :
Owen Anderson23c36602009-06-16 18:20:20 +000013758else
13759 ac_cv_search_pthread_rwlock_init=no
13760fi
13761rm conftest.$ac_ext
13762LIBS=$ac_func_search_save_LIBS
13763fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013764{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13765echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Anderson23c36602009-06-16 18:20:20 +000013766ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013767if test "$ac_res" != no; then
Owen Anderson23c36602009-06-16 18:20:20 +000013768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13769
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013770cat >>confdefs.h <<\_ACEOF
13771#define HAVE_PTHREAD_RWLOCK_INIT 1
13772_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000013773
13774fi
13775
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013776 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13777echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13778if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersoncc135af2009-06-25 23:10:26 +000013780else
13781 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013782cat >conftest.$ac_ext <<_ACEOF
13783/* confdefs.h. */
13784_ACEOF
13785cat confdefs.h >>conftest.$ac_ext
13786cat >>conftest.$ac_ext <<_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000013787/* end confdefs.h. */
13788
13789/* Override any GCC internal prototype to avoid an error.
13790 Use char because int might match the return type of a GCC
13791 builtin and then its argument prototype would still apply. */
13792#ifdef __cplusplus
13793extern "C"
13794#endif
13795char pthread_getspecific ();
13796int
13797main ()
13798{
13799return pthread_getspecific ();
13800 ;
13801 return 0;
13802}
13803_ACEOF
13804for ac_lib in '' pthread; do
13805 if test -z "$ac_lib"; then
13806 ac_res="none required"
13807 else
13808 ac_res=-l$ac_lib
13809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13810 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013811 rm -f conftest.$ac_objext conftest$ac_exeext
13812if { (ac_try="$ac_link"
13813case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13816esac
13817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_link") 2>conftest.er1
13819 ac_status=$?
13820 grep -v '^ *+' conftest.er1 >conftest.err
13821 rm -f conftest.er1
13822 cat conftest.err >&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } &&
13825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13826 { (case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13829esac
13830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_try") 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest$ac_exeext'
13836 { (case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13839esac
13840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_try") 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013845 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013846else
13847 echo "$as_me: failed program was:" >&5
13848sed 's/^/| /' conftest.$ac_ext >&5
13849
13850
Owen Andersoncc135af2009-06-25 23:10:26 +000013851fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013852
Owen Andersoncc135af2009-06-25 23:10:26 +000013853rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013854 conftest$ac_exeext
13855 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013856 break
13857fi
13858done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013859if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13860 :
Owen Andersoncc135af2009-06-25 23:10:26 +000013861else
13862 ac_cv_search_pthread_getspecific=no
13863fi
13864rm conftest.$ac_ext
13865LIBS=$ac_func_search_save_LIBS
13866fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013867{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13868echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Andersoncc135af2009-06-25 23:10:26 +000013869ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013870if test "$ac_res" != no; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13872
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013873cat >>confdefs.h <<\_ACEOF
13874#define HAVE_PTHREAD_GETSPECIFIC 1
13875_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000013876
13877fi
13878
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013879fi
13880
13881
13882# Check whether --with-udis86 was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013883if test "${with_udis86+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013884 withval=$with_udis86;
13885 USE_UDIS86=1
13886
13887 case "$withval" in
13888 /usr/lib|yes) ;;
13889 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13890 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013891
13892{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13893echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13894if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013896else
13897 ac_check_lib_save_LIBS=$LIBS
13898LIBS="-ludis86 $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013899cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013904/* end confdefs.h. */
13905
13906/* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
13909#ifdef __cplusplus
13910extern "C"
13911#endif
13912char ud_init ();
13913int
13914main ()
13915{
13916return ud_init ();
13917 ;
13918 return 0;
13919}
13920_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013921rm -f conftest.$ac_objext conftest$ac_exeext
13922if { (ac_try="$ac_link"
13923case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13926esac
13927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_link") 2>conftest.er1
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest$ac_exeext'
13946 { (case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_try") 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013955 ac_cv_lib_udis86_ud_init=yes
13956else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013957 echo "$as_me: failed program was:" >&5
13958sed 's/^/| /' conftest.$ac_ext >&5
13959
13960 ac_cv_lib_udis86_ud_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013961fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013962
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013963rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013964 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013965LIBS=$ac_check_lib_save_LIBS
13966fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013967{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13968echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13969if test $ac_cv_lib_udis86_ud_init = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013970 cat >>confdefs.h <<_ACEOF
13971#define HAVE_LIBUDIS86 1
13972_ACEOF
13973
13974 LIBS="-ludis86 $LIBS"
13975
13976else
13977
13978 echo "Error! You need to have libudis86 around."
13979 exit -1
13980
13981fi
13982
13983
13984else
13985 USE_UDIS86=0
13986
13987fi
13988
13989
13990cat >>confdefs.h <<_ACEOF
13991#define USE_UDIS86 $USE_UDIS86
13992_ACEOF
13993
13994
13995
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000013996# Check whether --with-oprofile was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013997if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000013998 withval=$with_oprofile;
13999 USE_OPROFILE=1
14000
14001 case "$withval" in
14002 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014003 no) llvm_cv_oppath=
14004 USE_OPROFILE=0
14005 ;;
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014006 *) llvm_cv_oppath="${withval}/lib/oprofile"
14007 CPPFLAGS="-I${withval}/include";;
14008 esac
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014009 if test -n "$llvm_cv_oppath" ; then
14010 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014011 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14012echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14013if test "${ac_cv_search_bfd_init+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014015else
14016 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014017cat >conftest.$ac_ext <<_ACEOF
14018/* confdefs.h. */
14019_ACEOF
14020cat confdefs.h >>conftest.$ac_ext
14021cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014022/* end confdefs.h. */
14023
14024/* Override any GCC internal prototype to avoid an error.
14025 Use char because int might match the return type of a GCC
14026 builtin and then its argument prototype would still apply. */
14027#ifdef __cplusplus
14028extern "C"
14029#endif
14030char bfd_init ();
14031int
14032main ()
14033{
14034return bfd_init ();
14035 ;
14036 return 0;
14037}
14038_ACEOF
14039for ac_lib in '' bfd; do
14040 if test -z "$ac_lib"; then
14041 ac_res="none required"
14042 else
14043 ac_res=-l$ac_lib
14044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14045 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014046 rm -f conftest.$ac_objext conftest$ac_exeext
14047if { (ac_try="$ac_link"
14048case "(($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_link") 2>conftest.er1
14054 ac_status=$?
14055 grep -v '^ *+' conftest.er1 >conftest.err
14056 rm -f conftest.er1
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
14060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14061 { (case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14064esac
14065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_try") 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest$ac_exeext'
14071 { (case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074esac
14075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_try") 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014080 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014081else
14082 echo "$as_me: failed program was:" >&5
14083sed 's/^/| /' conftest.$ac_ext >&5
14084
14085
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014086fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014087
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014088rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014089 conftest$ac_exeext
14090 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014091 break
14092fi
14093done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014094if test "${ac_cv_search_bfd_init+set}" = set; then
14095 :
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014096else
14097 ac_cv_search_bfd_init=no
14098fi
14099rm conftest.$ac_ext
14100LIBS=$ac_func_search_save_LIBS
14101fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014102{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14103echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014104ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014105if test "$ac_res" != no; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14107
14108fi
14109
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014110 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14111echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14112if test "${ac_cv_search_op_open_agent+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014114else
14115 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014116cat >conftest.$ac_ext <<_ACEOF
14117/* confdefs.h. */
14118_ACEOF
14119cat confdefs.h >>conftest.$ac_ext
14120cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014121/* end confdefs.h. */
14122
14123/* Override any GCC internal prototype to avoid an error.
14124 Use char because int might match the return type of a GCC
14125 builtin and then its argument prototype would still apply. */
14126#ifdef __cplusplus
14127extern "C"
14128#endif
14129char op_open_agent ();
14130int
14131main ()
14132{
14133return op_open_agent ();
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138for ac_lib in '' opagent; do
14139 if test -z "$ac_lib"; then
14140 ac_res="none required"
14141 else
14142 ac_res=-l$ac_lib
14143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14144 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014145 rm -f conftest.$ac_objext conftest$ac_exeext
14146if { (ac_try="$ac_link"
14147case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14150esac
14151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_link") 2>conftest.er1
14153 ac_status=$?
14154 grep -v '^ *+' conftest.er1 >conftest.err
14155 rm -f conftest.er1
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
14159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14160 { (case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14163esac
14164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_try") 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; } &&
14169 { ac_try='test -s conftest$ac_exeext'
14170 { (case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14173esac
14174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_try") 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014179 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014180else
14181 echo "$as_me: failed program was:" >&5
14182sed 's/^/| /' conftest.$ac_ext >&5
14183
14184
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014185fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014186
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014187rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014188 conftest$ac_exeext
14189 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014190 break
14191fi
14192done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014193if test "${ac_cv_search_op_open_agent+set}" = set; then
14194 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014195else
14196 ac_cv_search_op_open_agent=no
14197fi
14198rm conftest.$ac_ext
14199LIBS=$ac_func_search_save_LIBS
14200fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014201{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14202echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014203ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014204if test "$ac_res" != no; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14206
14207else
14208
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014209 echo "Error! You need to have libopagent around."
14210 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014211
14212fi
14213
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014214 if test "${ac_cv_header_opagent_h+set}" = set; then
14215 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14216echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14217if test "${ac_cv_header_opagent_h+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219fi
14220{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14221echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14222else
14223 # Is the header compilable?
14224{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14225echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14226cat >conftest.$ac_ext <<_ACEOF
14227/* confdefs.h. */
14228_ACEOF
14229cat confdefs.h >>conftest.$ac_ext
14230cat >>conftest.$ac_ext <<_ACEOF
14231/* end confdefs.h. */
14232$ac_includes_default
14233#include <opagent.h>
14234_ACEOF
14235rm -f conftest.$ac_objext
14236if { (ac_try="$ac_compile"
14237case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240esac
14241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_compile") 2>conftest.er1
14243 ac_status=$?
14244 grep -v '^ *+' conftest.er1 >conftest.err
14245 rm -f conftest.er1
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14250 { (case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14253esac
14254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_try") 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; } &&
14259 { ac_try='test -s conftest.$ac_objext'
14260 { (case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14263esac
14264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_try") 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_header_compiler=yes
14270else
14271 echo "$as_me: failed program was:" >&5
14272sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014273
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014274 ac_header_compiler=no
14275fi
14276
14277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14279echo "${ECHO_T}$ac_header_compiler" >&6; }
14280
14281# Is the header present?
14282{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14283echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14284cat >conftest.$ac_ext <<_ACEOF
14285/* confdefs.h. */
14286_ACEOF
14287cat confdefs.h >>conftest.$ac_ext
14288cat >>conftest.$ac_ext <<_ACEOF
14289/* end confdefs.h. */
14290#include <opagent.h>
14291_ACEOF
14292if { (ac_try="$ac_cpp conftest.$ac_ext"
14293case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14296esac
14297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } >/dev/null; then
14305 if test -s conftest.err; then
14306 ac_cpp_err=$ac_c_preproc_warn_flag
14307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14308 else
14309 ac_cpp_err=
14310 fi
14311else
14312 ac_cpp_err=yes
14313fi
14314if test -z "$ac_cpp_err"; then
14315 ac_header_preproc=yes
14316else
14317 echo "$as_me: failed program was:" >&5
14318sed 's/^/| /' conftest.$ac_ext >&5
14319
14320 ac_header_preproc=no
14321fi
14322
14323rm -f conftest.err conftest.$ac_ext
14324{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14325echo "${ECHO_T}$ac_header_preproc" >&6; }
14326
14327# So? What about this header?
14328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14329 yes:no: )
14330 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14331echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14333echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14334 ac_header_preproc=yes
14335 ;;
14336 no:yes:* )
14337 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14338echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14340echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14342echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14343 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14344echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14345 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14346echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14348echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14349 ( cat <<\_ASBOX
14350## ----------------------------------- ##
14351## Report this to llvmbugs@cs.uiuc.edu ##
14352## ----------------------------------- ##
14353_ASBOX
14354 ) | sed "s/^/$as_me: WARNING: /" >&2
14355 ;;
14356esac
14357{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14358echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14359if test "${ac_cv_header_opagent_h+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14361else
14362 ac_cv_header_opagent_h=$ac_header_preproc
14363fi
14364{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14365echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14366
14367fi
14368if test $ac_cv_header_opagent_h = yes; then
14369 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014370else
14371
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014372 echo "Error! You need to have opagent.h around."
14373 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014374
14375fi
14376
14377
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014378 fi
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014379
14380else
14381
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014382 USE_OPROFILE=0
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014383
14384
14385fi
14386
14387
14388cat >>confdefs.h <<_ACEOF
14389#define USE_OPROFILE $USE_OPROFILE
14390_ACEOF
14391
14392
14393
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014394
14395
14396
14397
14398
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014399ac_header_dirent=no
14400for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014401 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14402{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14403echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014406else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014407 cat >conftest.$ac_ext <<_ACEOF
14408/* confdefs.h. */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014412/* end confdefs.h. */
14413#include <sys/types.h>
14414#include <$ac_hdr>
14415
14416int
14417main ()
14418{
14419if ((DIR *) 0)
14420return 0;
14421 ;
14422 return 0;
14423}
14424_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014425rm -f conftest.$ac_objext
14426if { (ac_try="$ac_compile"
14427case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14430esac
14431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_compile") 2>conftest.er1
14433 ac_status=$?
14434 grep -v '^ *+' conftest.er1 >conftest.err
14435 rm -f conftest.er1
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } &&
14439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14440 { (case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14443esac
14444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_try") 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; } &&
14449 { ac_try='test -s conftest.$ac_objext'
14450 { (case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14453esac
14454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455 (eval "$ac_try") 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014459 eval "$as_ac_Header=yes"
14460else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014461 echo "$as_me: failed program was:" >&5
14462sed 's/^/| /' conftest.$ac_ext >&5
14463
14464 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014465fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014466
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014469ac_res=`eval echo '${'$as_ac_Header'}'`
14470 { echo "$as_me:$LINENO: result: $ac_res" >&5
14471echo "${ECHO_T}$ac_res" >&6; }
14472if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014473 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014474#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014475_ACEOF
14476
14477ac_header_dirent=$ac_hdr; break
14478fi
14479
14480done
14481# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14482if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014483 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14484echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14485if test "${ac_cv_search_opendir+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014487else
14488 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014489cat >conftest.$ac_ext <<_ACEOF
14490/* confdefs.h. */
14491_ACEOF
14492cat confdefs.h >>conftest.$ac_ext
14493cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014494/* end confdefs.h. */
14495
14496/* Override any GCC internal prototype to avoid an error.
14497 Use char because int might match the return type of a GCC
14498 builtin and then its argument prototype would still apply. */
14499#ifdef __cplusplus
14500extern "C"
14501#endif
14502char opendir ();
14503int
14504main ()
14505{
14506return opendir ();
14507 ;
14508 return 0;
14509}
14510_ACEOF
14511for ac_lib in '' dir; do
14512 if test -z "$ac_lib"; then
14513 ac_res="none required"
14514 else
14515 ac_res=-l$ac_lib
14516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14517 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014518 rm -f conftest.$ac_objext conftest$ac_exeext
14519if { (ac_try="$ac_link"
14520case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523esac
14524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_link") 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14533 { (case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536esac
14537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_try") 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try='test -s conftest$ac_exeext'
14543 { (case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546esac
14547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_try") 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014552 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014553else
14554 echo "$as_me: failed program was:" >&5
14555sed 's/^/| /' conftest.$ac_ext >&5
14556
14557
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014558fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014559
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014560rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014561 conftest$ac_exeext
14562 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014563 break
14564fi
14565done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014566if test "${ac_cv_search_opendir+set}" = set; then
14567 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014568else
14569 ac_cv_search_opendir=no
14570fi
14571rm conftest.$ac_ext
14572LIBS=$ac_func_search_save_LIBS
14573fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014574{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14575echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014576ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014577if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14579
14580fi
14581
14582else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014583 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14584echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14585if test "${ac_cv_search_opendir+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014587else
14588 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014589cat >conftest.$ac_ext <<_ACEOF
14590/* confdefs.h. */
14591_ACEOF
14592cat confdefs.h >>conftest.$ac_ext
14593cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014594/* end confdefs.h. */
14595
14596/* Override any GCC internal prototype to avoid an error.
14597 Use char because int might match the return type of a GCC
14598 builtin and then its argument prototype would still apply. */
14599#ifdef __cplusplus
14600extern "C"
14601#endif
14602char opendir ();
14603int
14604main ()
14605{
14606return opendir ();
14607 ;
14608 return 0;
14609}
14610_ACEOF
14611for ac_lib in '' x; do
14612 if test -z "$ac_lib"; then
14613 ac_res="none required"
14614 else
14615 ac_res=-l$ac_lib
14616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14617 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014618 rm -f conftest.$ac_objext conftest$ac_exeext
14619if { (ac_try="$ac_link"
14620case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14623esac
14624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_link") 2>conftest.er1
14626 ac_status=$?
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14633 { (case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636esac
14637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_try") 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try='test -s conftest$ac_exeext'
14643 { (case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14646esac
14647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_try") 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014652 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014653else
14654 echo "$as_me: failed program was:" >&5
14655sed 's/^/| /' conftest.$ac_ext >&5
14656
14657
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014658fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014659
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014660rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014661 conftest$ac_exeext
14662 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014663 break
14664fi
14665done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014666if test "${ac_cv_search_opendir+set}" = set; then
14667 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014668else
14669 ac_cv_search_opendir=no
14670fi
14671rm conftest.$ac_ext
14672LIBS=$ac_func_search_save_LIBS
14673fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014674{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14675echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014676ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014677if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14679
14680fi
14681
14682fi
14683
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014684{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14685echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14686if test "${ac_cv_header_mmap_anon+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014688else
14689 ac_ext=c
14690ac_cpp='$CPP $CPPFLAGS'
14691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14693ac_compiler_gnu=$ac_cv_c_compiler_gnu
14694
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014695 cat >conftest.$ac_ext <<_ACEOF
14696/* confdefs.h. */
14697_ACEOF
14698cat confdefs.h >>conftest.$ac_ext
14699cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014700/* end confdefs.h. */
14701#include <sys/mman.h>
14702#include <unistd.h>
14703#include <fcntl.h>
14704int
14705main ()
14706{
14707mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14708 ;
14709 return 0;
14710}
14711_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014712rm -f conftest.$ac_objext
14713if { (ac_try="$ac_compile"
14714case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14717esac
14718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_compile") 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14727 { (case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730esac
14731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_try") 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14740esac
14741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_try") 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014746 ac_cv_header_mmap_anon=yes
14747else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014748 echo "$as_me: failed program was:" >&5
14749sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 ac_cv_header_mmap_anon=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014752fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014753
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755 ac_ext=c
14756ac_cpp='$CPP $CPPFLAGS'
14757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14759ac_compiler_gnu=$ac_cv_c_compiler_gnu
14760
14761
14762fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014763{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14764echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014765if test "$ac_cv_header_mmap_anon" = yes; then
14766
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014767cat >>confdefs.h <<\_ACEOF
14768#define HAVE_MMAP_ANONYMOUS 1
14769_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014770
14771fi
14772
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014773{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14774echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14775if test "${ac_cv_header_stat_broken+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014777else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014778 cat >conftest.$ac_ext <<_ACEOF
14779/* confdefs.h. */
14780_ACEOF
14781cat confdefs.h >>conftest.$ac_ext
14782cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014783/* end confdefs.h. */
14784#include <sys/types.h>
14785#include <sys/stat.h>
14786
14787#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014788# if S_ISBLK (S_IFDIR)
14789You lose.
14790# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014791#endif
14792
14793#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014794# if S_ISBLK (S_IFCHR)
14795You lose.
14796# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014797#endif
14798
14799#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014800# if S_ISLNK (S_IFREG)
14801You lose.
14802# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014803#endif
14804
14805#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014806# if S_ISSOCK (S_IFREG)
14807You lose.
14808# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014809#endif
14810
14811_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14813 $EGREP "You lose" >/dev/null 2>&1; then
Edwin Törökc27310c2010-01-26 08:50:50 +000014814 ac_cv_header_stat_broken=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014815else
14816 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000014817fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014818rm -f conftest*
14819
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014820fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014821{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14822echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014823if test $ac_cv_header_stat_broken = yes; then
14824
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014825cat >>confdefs.h <<\_ACEOF
14826#define STAT_MACROS_BROKEN 1
14827_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014828
14829fi
14830
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014831{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14832echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14833if test "${ac_cv_header_stdc+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014835else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014836 cat >conftest.$ac_ext <<_ACEOF
14837/* confdefs.h. */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014841/* end confdefs.h. */
14842#include <stdlib.h>
14843#include <stdarg.h>
14844#include <string.h>
14845#include <float.h>
14846
14847int
14848main ()
14849{
14850
14851 ;
14852 return 0;
14853}
14854_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014855rm -f conftest.$ac_objext
14856if { (ac_try="$ac_compile"
14857case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860esac
14861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_compile") 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14873esac
14874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883esac
14884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014889 ac_cv_header_stdc=yes
14890else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014891 echo "$as_me: failed program was:" >&5
14892sed 's/^/| /' conftest.$ac_ext >&5
14893
14894 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014895fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014896
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898
14899if test $ac_cv_header_stdc = yes; then
14900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014901 cat >conftest.$ac_ext <<_ACEOF
14902/* confdefs.h. */
14903_ACEOF
14904cat confdefs.h >>conftest.$ac_ext
14905cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014906/* end confdefs.h. */
14907#include <string.h>
14908
14909_ACEOF
14910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014911 $EGREP "memchr" >/dev/null 2>&1; then
14912 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014913else
14914 ac_cv_header_stdc=no
14915fi
14916rm -f conftest*
14917
14918fi
14919
14920if test $ac_cv_header_stdc = yes; then
14921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014922 cat >conftest.$ac_ext <<_ACEOF
14923/* confdefs.h. */
14924_ACEOF
14925cat confdefs.h >>conftest.$ac_ext
14926cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014927/* end confdefs.h. */
14928#include <stdlib.h>
14929
14930_ACEOF
14931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014932 $EGREP "free" >/dev/null 2>&1; then
14933 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014934else
14935 ac_cv_header_stdc=no
14936fi
14937rm -f conftest*
14938
14939fi
14940
14941if test $ac_cv_header_stdc = yes; then
14942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014943 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014944 :
14945else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014946 cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014951/* end confdefs.h. */
14952#include <ctype.h>
14953#include <stdlib.h>
14954#if ((' ' & 0x0FF) == 0x020)
14955# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14956# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14957#else
14958# define ISLOWER(c) \
14959 (('a' <= (c) && (c) <= 'i') \
14960 || ('j' <= (c) && (c) <= 'r') \
14961 || ('s' <= (c) && (c) <= 'z'))
14962# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14963#endif
14964
14965#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14966int
14967main ()
14968{
14969 int i;
14970 for (i = 0; i < 256; i++)
14971 if (XOR (islower (i), ISLOWER (i))
14972 || toupper (i) != TOUPPER (i))
14973 return 2;
14974 return 0;
14975}
14976_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014977rm -f conftest$ac_exeext
14978if { (ac_try="$ac_link"
14979case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982esac
14983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_link") 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14988 { (case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991esac
14992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_try") 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014998else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014999 echo "$as_me: program exited with status $ac_status" >&5
15000echo "$as_me: failed program was:" >&5
15001sed 's/^/| /' conftest.$ac_ext >&5
15002
15003( exit $ac_status )
15004ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015005fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015006rm -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 +000015007fi
15008
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015009
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015010fi
15011fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015012{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15013echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015014if test $ac_cv_header_stdc = yes; then
15015
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015016cat >>confdefs.h <<\_ACEOF
15017#define STDC_HEADERS 1
15018_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015019
15020fi
15021
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015022{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15023echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15024if test "${ac_cv_header_sys_wait_h+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015026else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015027 cat >conftest.$ac_ext <<_ACEOF
15028/* confdefs.h. */
15029_ACEOF
15030cat confdefs.h >>conftest.$ac_ext
15031cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015032/* end confdefs.h. */
15033#include <sys/types.h>
15034#include <sys/wait.h>
15035#ifndef WEXITSTATUS
15036# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15037#endif
15038#ifndef WIFEXITED
15039# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15040#endif
15041
15042int
15043main ()
15044{
15045 int s;
15046 wait (&s);
15047 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15048 ;
15049 return 0;
15050}
15051_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015052rm -f conftest.$ac_objext
15053if { (ac_try="$ac_compile"
15054case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15057esac
15058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_compile") 2>conftest.er1
15060 ac_status=$?
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15067 { (case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070esac
15071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_try") 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; } &&
15076 { ac_try='test -s conftest.$ac_objext'
15077 { (case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15080esac
15081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_try") 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015086 ac_cv_header_sys_wait_h=yes
15087else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015088 echo "$as_me: failed program was:" >&5
15089sed 's/^/| /' conftest.$ac_ext >&5
15090
15091 ac_cv_header_sys_wait_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015092fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015093
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015096{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15097echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015098if test $ac_cv_header_sys_wait_h = yes; then
15099
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015100cat >>confdefs.h <<\_ACEOF
15101#define HAVE_SYS_WAIT_H 1
15102_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015103
15104fi
15105
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015106{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15107echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15108if test "${ac_cv_header_time+set}" = set; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015110else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015111 cat >conftest.$ac_ext <<_ACEOF
15112/* confdefs.h. */
15113_ACEOF
15114cat confdefs.h >>conftest.$ac_ext
15115cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015116/* end confdefs.h. */
15117#include <sys/types.h>
15118#include <sys/time.h>
15119#include <time.h>
15120
15121int
15122main ()
15123{
15124if ((struct tm *) 0)
15125return 0;
15126 ;
15127 return 0;
15128}
15129_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015130rm -f conftest.$ac_objext
15131if { (ac_try="$ac_compile"
15132case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135esac
15136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_compile") 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145 { (case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148esac
15149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_try") 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15158esac
15159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_try") 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015164 ac_cv_header_time=yes
15165else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015166 echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_cv_header_time=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015170fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015171
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015174{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15175echo "${ECHO_T}$ac_cv_header_time" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015176if test $ac_cv_header_time = yes; then
15177
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015178cat >>confdefs.h <<\_ACEOF
15179#define TIME_WITH_SYS_TIME 1
15180_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015181
15182fi
15183
15184
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015185
15186
15187
15188
15189
15190
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015191for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015192do
15193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199fi
15200ac_res=`eval echo '${'$as_ac_Header'}'`
15201 { echo "$as_me:$LINENO: result: $ac_res" >&5
15202echo "${ECHO_T}$ac_res" >&6; }
15203else
15204 # Is the header compilable?
15205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15207cat >conftest.$ac_ext <<_ACEOF
15208/* confdefs.h. */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h. */
15213$ac_includes_default
15214#include <$ac_header>
15215_ACEOF
15216rm -f conftest.$ac_objext
15217if { (ac_try="$ac_compile"
15218case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221esac
15222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_compile") 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15231 { (case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_try") 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest.$ac_objext'
15241 { (case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15244esac
15245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_try") 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_header_compiler=yes
15251else
15252 echo "$as_me: failed program was:" >&5
15253sed 's/^/| /' conftest.$ac_ext >&5
15254
15255 ac_header_compiler=no
15256fi
15257
15258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15260echo "${ECHO_T}$ac_header_compiler" >&6; }
15261
15262# Is the header present?
15263{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15265cat >conftest.$ac_ext <<_ACEOF
15266/* confdefs.h. */
15267_ACEOF
15268cat confdefs.h >>conftest.$ac_ext
15269cat >>conftest.$ac_ext <<_ACEOF
15270/* end confdefs.h. */
15271#include <$ac_header>
15272_ACEOF
15273if { (ac_try="$ac_cpp conftest.$ac_ext"
15274case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
15278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } >/dev/null; then
15286 if test -s conftest.err; then
15287 ac_cpp_err=$ac_c_preproc_warn_flag
15288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15289 else
15290 ac_cpp_err=
15291 fi
15292else
15293 ac_cpp_err=yes
15294fi
15295if test -z "$ac_cpp_err"; then
15296 ac_header_preproc=yes
15297else
15298 echo "$as_me: failed program was:" >&5
15299sed 's/^/| /' conftest.$ac_ext >&5
15300
15301 ac_header_preproc=no
15302fi
15303
15304rm -f conftest.err conftest.$ac_ext
15305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15306echo "${ECHO_T}$ac_header_preproc" >&6; }
15307
15308# So? What about this header?
15309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15310 yes:no: )
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15315 ac_header_preproc=yes
15316 ;;
15317 no:yes:* )
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15321echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15325echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15330 ( cat <<\_ASBOX
15331## ----------------------------------- ##
15332## Report this to llvmbugs@cs.uiuc.edu ##
15333## ----------------------------------- ##
15334_ASBOX
15335 ) | sed "s/^/$as_me: WARNING: /" >&2
15336 ;;
15337esac
15338{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15342else
15343 eval "$as_ac_Header=\$ac_header_preproc"
15344fi
15345ac_res=`eval echo '${'$as_ac_Header'}'`
15346 { echo "$as_me:$LINENO: result: $ac_res" >&5
15347echo "${ECHO_T}$ac_res" >&6; }
15348
15349fi
15350if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015351 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015353_ACEOF
15354
15355fi
15356
15357done
15358
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015359
15360
15361
15362
15363
15364
Douglas Gregor6230bee2009-05-18 17:21:34 +000015365for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015366do
15367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373fi
15374ac_res=`eval echo '${'$as_ac_Header'}'`
15375 { echo "$as_me:$LINENO: result: $ac_res" >&5
15376echo "${ECHO_T}$ac_res" >&6; }
15377else
15378 # Is the header compilable?
15379{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15381cat >conftest.$ac_ext <<_ACEOF
15382/* confdefs.h. */
15383_ACEOF
15384cat confdefs.h >>conftest.$ac_ext
15385cat >>conftest.$ac_ext <<_ACEOF
15386/* end confdefs.h. */
15387$ac_includes_default
15388#include <$ac_header>
15389_ACEOF
15390rm -f conftest.$ac_objext
15391if { (ac_try="$ac_compile"
15392case "(($ac_try" in
15393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394 *) ac_try_echo=$ac_try;;
15395esac
15396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397 (eval "$ac_compile") 2>conftest.er1
15398 ac_status=$?
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
15404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408esac
15409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest.$ac_objext'
15415 { (case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418esac
15419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_try") 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_header_compiler=yes
15425else
15426 echo "$as_me: failed program was:" >&5
15427sed 's/^/| /' conftest.$ac_ext >&5
15428
15429 ac_header_compiler=no
15430fi
15431
15432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15434echo "${ECHO_T}$ac_header_compiler" >&6; }
15435
15436# Is the header present?
15437{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15438echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15439cat >conftest.$ac_ext <<_ACEOF
15440/* confdefs.h. */
15441_ACEOF
15442cat confdefs.h >>conftest.$ac_ext
15443cat >>conftest.$ac_ext <<_ACEOF
15444/* end confdefs.h. */
15445#include <$ac_header>
15446_ACEOF
15447if { (ac_try="$ac_cpp conftest.$ac_ext"
15448case "(($ac_try" in
15449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15451esac
15452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15454 ac_status=$?
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } >/dev/null; then
15460 if test -s conftest.err; then
15461 ac_cpp_err=$ac_c_preproc_warn_flag
15462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15463 else
15464 ac_cpp_err=
15465 fi
15466else
15467 ac_cpp_err=yes
15468fi
15469if test -z "$ac_cpp_err"; then
15470 ac_header_preproc=yes
15471else
15472 echo "$as_me: failed program was:" >&5
15473sed 's/^/| /' conftest.$ac_ext >&5
15474
15475 ac_header_preproc=no
15476fi
15477
15478rm -f conftest.err conftest.$ac_ext
15479{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15480echo "${ECHO_T}$ac_header_preproc" >&6; }
15481
15482# So? What about this header?
15483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15484 yes:no: )
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15489 ac_header_preproc=yes
15490 ;;
15491 no:yes:* )
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15504 ( cat <<\_ASBOX
15505## ----------------------------------- ##
15506## Report this to llvmbugs@cs.uiuc.edu ##
15507## ----------------------------------- ##
15508_ASBOX
15509 ) | sed "s/^/$as_me: WARNING: /" >&2
15510 ;;
15511esac
15512{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516else
15517 eval "$as_ac_Header=\$ac_header_preproc"
15518fi
15519ac_res=`eval echo '${'$as_ac_Header'}'`
15520 { echo "$as_me:$LINENO: result: $ac_res" >&5
15521echo "${ECHO_T}$ac_res" >&6; }
15522
15523fi
15524if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015525 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015527_ACEOF
15528
15529fi
15530
15531done
15532
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015533
15534
Douglas Gregor6230bee2009-05-18 17:21:34 +000015535for ac_header in utime.h windows.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015536do
15537as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543fi
15544ac_res=`eval echo '${'$as_ac_Header'}'`
15545 { echo "$as_me:$LINENO: result: $ac_res" >&5
15546echo "${ECHO_T}$ac_res" >&6; }
15547else
15548 # Is the header compilable?
15549{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15550echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15551cat >conftest.$ac_ext <<_ACEOF
15552/* confdefs.h. */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h. */
15557$ac_includes_default
15558#include <$ac_header>
15559_ACEOF
15560rm -f conftest.$ac_objext
15561if { (ac_try="$ac_compile"
15562case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565esac
15566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_compile") 2>conftest.er1
15568 ac_status=$?
15569 grep -v '^ *+' conftest.er1 >conftest.err
15570 rm -f conftest.er1
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } &&
15574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578esac
15579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest.$ac_objext'
15585 { (case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588esac
15589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_try") 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15594 ac_header_compiler=yes
15595else
15596 echo "$as_me: failed program was:" >&5
15597sed 's/^/| /' conftest.$ac_ext >&5
15598
15599 ac_header_compiler=no
15600fi
15601
15602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15604echo "${ECHO_T}$ac_header_compiler" >&6; }
15605
15606# Is the header present?
15607{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15609cat >conftest.$ac_ext <<_ACEOF
15610/* confdefs.h. */
15611_ACEOF
15612cat confdefs.h >>conftest.$ac_ext
15613cat >>conftest.$ac_ext <<_ACEOF
15614/* end confdefs.h. */
15615#include <$ac_header>
15616_ACEOF
15617if { (ac_try="$ac_cpp conftest.$ac_ext"
15618case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15621esac
15622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15624 ac_status=$?
15625 grep -v '^ *+' conftest.er1 >conftest.err
15626 rm -f conftest.er1
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } >/dev/null; then
15630 if test -s conftest.err; then
15631 ac_cpp_err=$ac_c_preproc_warn_flag
15632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15633 else
15634 ac_cpp_err=
15635 fi
15636else
15637 ac_cpp_err=yes
15638fi
15639if test -z "$ac_cpp_err"; then
15640 ac_header_preproc=yes
15641else
15642 echo "$as_me: failed program was:" >&5
15643sed 's/^/| /' conftest.$ac_ext >&5
15644
15645 ac_header_preproc=no
15646fi
15647
15648rm -f conftest.err conftest.$ac_ext
15649{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15650echo "${ECHO_T}$ac_header_preproc" >&6; }
15651
15652# So? What about this header?
15653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15654 yes:no: )
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15656echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15658echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15659 ac_header_preproc=yes
15660 ;;
15661 no:yes:* )
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15663echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15665echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15667echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15669echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15673echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15674 ( cat <<\_ASBOX
15675## ----------------------------------- ##
15676## Report this to llvmbugs@cs.uiuc.edu ##
15677## ----------------------------------- ##
15678_ASBOX
15679 ) | sed "s/^/$as_me: WARNING: /" >&2
15680 ;;
15681esac
15682{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15686else
15687 eval "$as_ac_Header=\$ac_header_preproc"
15688fi
15689ac_res=`eval echo '${'$as_ac_Header'}'`
15690 { echo "$as_me:$LINENO: result: $ac_res" >&5
15691echo "${ECHO_T}$ac_res" >&6; }
15692
15693fi
15694if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000015695 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000015697_ACEOF
15698
15699fi
15700
15701done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015702
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015703
15704
15705
15706
Reid Spencer096a8142007-08-17 05:45:26 +000015707for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015708do
15709as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15715fi
15716ac_res=`eval echo '${'$as_ac_Header'}'`
15717 { echo "$as_me:$LINENO: result: $ac_res" >&5
15718echo "${ECHO_T}$ac_res" >&6; }
15719else
15720 # Is the header compilable?
15721{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15722echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15723cat >conftest.$ac_ext <<_ACEOF
15724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
15729$ac_includes_default
15730#include <$ac_header>
15731_ACEOF
15732rm -f conftest.$ac_objext
15733if { (ac_try="$ac_compile"
15734case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737esac
15738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_compile") 2>conftest.er1
15740 ac_status=$?
15741 grep -v '^ *+' conftest.er1 >conftest.err
15742 rm -f conftest.er1
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15747 { (case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15750esac
15751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_try") 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest.$ac_objext'
15757 { (case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15760esac
15761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_try") 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 ac_header_compiler=yes
15767else
15768 echo "$as_me: failed program was:" >&5
15769sed 's/^/| /' conftest.$ac_ext >&5
15770
15771 ac_header_compiler=no
15772fi
15773
15774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15776echo "${ECHO_T}$ac_header_compiler" >&6; }
15777
15778# Is the header present?
15779{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15781cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787#include <$ac_header>
15788_ACEOF
15789if { (ac_try="$ac_cpp conftest.$ac_ext"
15790case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15793esac
15794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15796 ac_status=$?
15797 grep -v '^ *+' conftest.er1 >conftest.err
15798 rm -f conftest.er1
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } >/dev/null; then
15802 if test -s conftest.err; then
15803 ac_cpp_err=$ac_c_preproc_warn_flag
15804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15805 else
15806 ac_cpp_err=
15807 fi
15808else
15809 ac_cpp_err=yes
15810fi
15811if test -z "$ac_cpp_err"; then
15812 ac_header_preproc=yes
15813else
15814 echo "$as_me: failed program was:" >&5
15815sed 's/^/| /' conftest.$ac_ext >&5
15816
15817 ac_header_preproc=no
15818fi
15819
15820rm -f conftest.err conftest.$ac_ext
15821{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15822echo "${ECHO_T}$ac_header_preproc" >&6; }
15823
15824# So? What about this header?
15825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15826 yes:no: )
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15831 ac_header_preproc=yes
15832 ;;
15833 no:yes:* )
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15841echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15846 ( cat <<\_ASBOX
15847## ----------------------------------- ##
15848## Report this to llvmbugs@cs.uiuc.edu ##
15849## ----------------------------------- ##
15850_ASBOX
15851 ) | sed "s/^/$as_me: WARNING: /" >&2
15852 ;;
15853esac
15854{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15858else
15859 eval "$as_ac_Header=\$ac_header_preproc"
15860fi
15861ac_res=`eval echo '${'$as_ac_Header'}'`
15862 { echo "$as_me:$LINENO: result: $ac_res" >&5
15863echo "${ECHO_T}$ac_res" >&6; }
15864
15865fi
15866if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015867 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015869_ACEOF
15870
15871fi
15872
15873done
15874
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015875
15876
15877
15878
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000015879for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015880do
15881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15887fi
15888ac_res=`eval echo '${'$as_ac_Header'}'`
15889 { echo "$as_me:$LINENO: result: $ac_res" >&5
15890echo "${ECHO_T}$ac_res" >&6; }
15891else
15892 # Is the header compilable?
15893{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15894echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15895cat >conftest.$ac_ext <<_ACEOF
15896/* confdefs.h. */
15897_ACEOF
15898cat confdefs.h >>conftest.$ac_ext
15899cat >>conftest.$ac_ext <<_ACEOF
15900/* end confdefs.h. */
15901$ac_includes_default
15902#include <$ac_header>
15903_ACEOF
15904rm -f conftest.$ac_objext
15905if { (ac_try="$ac_compile"
15906case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15909esac
15910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_compile") 2>conftest.er1
15912 ac_status=$?
15913 grep -v '^ *+' conftest.er1 >conftest.err
15914 rm -f conftest.er1
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } &&
15918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15919 { (case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15922esac
15923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924 (eval "$ac_try") 2>&5
15925 ac_status=$?
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } &&
15928 { ac_try='test -s conftest.$ac_objext'
15929 { (case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932esac
15933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_try") 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 ac_header_compiler=yes
15939else
15940 echo "$as_me: failed program was:" >&5
15941sed 's/^/| /' conftest.$ac_ext >&5
15942
15943 ac_header_compiler=no
15944fi
15945
15946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15947{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15948echo "${ECHO_T}$ac_header_compiler" >&6; }
15949
15950# Is the header present?
15951{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15953cat >conftest.$ac_ext <<_ACEOF
15954/* confdefs.h. */
15955_ACEOF
15956cat confdefs.h >>conftest.$ac_ext
15957cat >>conftest.$ac_ext <<_ACEOF
15958/* end confdefs.h. */
15959#include <$ac_header>
15960_ACEOF
15961if { (ac_try="$ac_cpp conftest.$ac_ext"
15962case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965esac
15966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15968 ac_status=$?
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } >/dev/null; then
15974 if test -s conftest.err; then
15975 ac_cpp_err=$ac_c_preproc_warn_flag
15976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15977 else
15978 ac_cpp_err=
15979 fi
15980else
15981 ac_cpp_err=yes
15982fi
15983if test -z "$ac_cpp_err"; then
15984 ac_header_preproc=yes
15985else
15986 echo "$as_me: failed program was:" >&5
15987sed 's/^/| /' conftest.$ac_ext >&5
15988
15989 ac_header_preproc=no
15990fi
15991
15992rm -f conftest.err conftest.$ac_ext
15993{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15994echo "${ECHO_T}$ac_header_preproc" >&6; }
15995
15996# So? What about this header?
15997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15998 yes:no: )
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16000echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16002echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16003 ac_header_preproc=yes
16004 ;;
16005 no:yes:* )
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16009echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16011echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16013echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16017echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16018 ( cat <<\_ASBOX
16019## ----------------------------------- ##
16020## Report this to llvmbugs@cs.uiuc.edu ##
16021## ----------------------------------- ##
16022_ASBOX
16023 ) | sed "s/^/$as_me: WARNING: /" >&2
16024 ;;
16025esac
16026{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16030else
16031 eval "$as_ac_Header=\$ac_header_preproc"
16032fi
16033ac_res=`eval echo '${'$as_ac_Header'}'`
16034 { echo "$as_me:$LINENO: result: $ac_res" >&5
16035echo "${ECHO_T}$ac_res" >&6; }
16036
16037fi
16038if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016039 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016041_ACEOF
16042
16043fi
16044
16045done
16046
16047if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016048
16049for ac_header in pthread.h
16050do
16051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057fi
16058ac_res=`eval echo '${'$as_ac_Header'}'`
16059 { echo "$as_me:$LINENO: result: $ac_res" >&5
16060echo "${ECHO_T}$ac_res" >&6; }
16061else
16062 # Is the header compilable?
16063{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16065cat >conftest.$ac_ext <<_ACEOF
16066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
16071$ac_includes_default
16072#include <$ac_header>
16073_ACEOF
16074rm -f conftest.$ac_objext
16075if { (ac_try="$ac_compile"
16076case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16079esac
16080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_compile") 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16092esac
16093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try='test -s conftest.$ac_objext'
16099 { (case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16102esac
16103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_try") 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
16108 ac_header_compiler=yes
16109else
16110 echo "$as_me: failed program was:" >&5
16111sed 's/^/| /' conftest.$ac_ext >&5
16112
16113 ac_header_compiler=no
16114fi
16115
16116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118echo "${ECHO_T}$ac_header_compiler" >&6; }
16119
16120# Is the header present?
16121{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16123cat >conftest.$ac_ext <<_ACEOF
16124/* confdefs.h. */
16125_ACEOF
16126cat confdefs.h >>conftest.$ac_ext
16127cat >>conftest.$ac_ext <<_ACEOF
16128/* end confdefs.h. */
16129#include <$ac_header>
16130_ACEOF
16131if { (ac_try="$ac_cpp conftest.$ac_ext"
16132case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16138 ac_status=$?
16139 grep -v '^ *+' conftest.er1 >conftest.err
16140 rm -f conftest.er1
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } >/dev/null; then
16144 if test -s conftest.err; then
16145 ac_cpp_err=$ac_c_preproc_warn_flag
16146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16147 else
16148 ac_cpp_err=
16149 fi
16150else
16151 ac_cpp_err=yes
16152fi
16153if test -z "$ac_cpp_err"; then
16154 ac_header_preproc=yes
16155else
16156 echo "$as_me: failed program was:" >&5
16157sed 's/^/| /' conftest.$ac_ext >&5
16158
16159 ac_header_preproc=no
16160fi
16161
16162rm -f conftest.err conftest.$ac_ext
16163{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16164echo "${ECHO_T}$ac_header_preproc" >&6; }
16165
16166# So? What about this header?
16167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16168 yes:no: )
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16173 ac_header_preproc=yes
16174 ;;
16175 no:yes:* )
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16188 ( cat <<\_ASBOX
16189## ----------------------------------- ##
16190## Report this to llvmbugs@cs.uiuc.edu ##
16191## ----------------------------------- ##
16192_ASBOX
16193 ) | sed "s/^/$as_me: WARNING: /" >&2
16194 ;;
16195esac
16196{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200else
16201 eval "$as_ac_Header=\$ac_header_preproc"
16202fi
16203ac_res=`eval echo '${'$as_ac_Header'}'`
16204 { echo "$as_me:$LINENO: result: $ac_res" >&5
16205echo "${ECHO_T}$ac_res" >&6; }
16206
16207fi
16208if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000016209 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000016211_ACEOF
16212 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016213
16214else
16215 HAVE_PTHREAD=0
16216
16217fi
16218
Reid Spencer096a8142007-08-17 05:45:26 +000016219done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016220
16221else
16222 HAVE_PTHREAD=0
16223
16224fi
16225
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016226if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016227
16228
16229for ac_header in ffi.h ffi/ffi.h
16230do
16231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16237fi
16238ac_res=`eval echo '${'$as_ac_Header'}'`
16239 { echo "$as_me:$LINENO: result: $ac_res" >&5
16240echo "${ECHO_T}$ac_res" >&6; }
16241else
16242 # Is the header compilable?
16243{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16245cat >conftest.$ac_ext <<_ACEOF
16246/* confdefs.h. */
16247_ACEOF
16248cat confdefs.h >>conftest.$ac_ext
16249cat >>conftest.$ac_ext <<_ACEOF
16250/* end confdefs.h. */
16251$ac_includes_default
16252#include <$ac_header>
16253_ACEOF
16254rm -f conftest.$ac_objext
16255if { (ac_try="$ac_compile"
16256case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259esac
16260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_compile") 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269 { (case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16272esac
16273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_try") 2>&5
16275 ac_status=$?
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest.$ac_objext'
16279 { (case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16282esac
16283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_try") 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_header_compiler=yes
16289else
16290 echo "$as_me: failed program was:" >&5
16291sed 's/^/| /' conftest.$ac_ext >&5
16292
16293 ac_header_compiler=no
16294fi
16295
16296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16297{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16298echo "${ECHO_T}$ac_header_compiler" >&6; }
16299
16300# Is the header present?
16301{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16303cat >conftest.$ac_ext <<_ACEOF
16304/* confdefs.h. */
16305_ACEOF
16306cat confdefs.h >>conftest.$ac_ext
16307cat >>conftest.$ac_ext <<_ACEOF
16308/* end confdefs.h. */
16309#include <$ac_header>
16310_ACEOF
16311if { (ac_try="$ac_cpp conftest.$ac_ext"
16312case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16315esac
16316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16318 ac_status=$?
16319 grep -v '^ *+' conftest.er1 >conftest.err
16320 rm -f conftest.er1
16321 cat conftest.err >&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } >/dev/null; then
16324 if test -s conftest.err; then
16325 ac_cpp_err=$ac_c_preproc_warn_flag
16326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16327 else
16328 ac_cpp_err=
16329 fi
16330else
16331 ac_cpp_err=yes
16332fi
16333if test -z "$ac_cpp_err"; then
16334 ac_header_preproc=yes
16335else
16336 echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339 ac_header_preproc=no
16340fi
16341
16342rm -f conftest.err conftest.$ac_ext
16343{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16344echo "${ECHO_T}$ac_header_preproc" >&6; }
16345
16346# So? What about this header?
16347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16348 yes:no: )
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16353 ac_header_preproc=yes
16354 ;;
16355 no:yes:* )
16356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16368 ( cat <<\_ASBOX
16369## ----------------------------------- ##
16370## Report this to llvmbugs@cs.uiuc.edu ##
16371## ----------------------------------- ##
16372_ASBOX
16373 ) | sed "s/^/$as_me: WARNING: /" >&2
16374 ;;
16375esac
16376{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16380else
16381 eval "$as_ac_Header=\$ac_header_preproc"
16382fi
16383ac_res=`eval echo '${'$as_ac_Header'}'`
16384 { echo "$as_me:$LINENO: result: $ac_res" >&5
16385echo "${ECHO_T}$ac_res" >&6; }
16386
16387fi
16388if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky0235b622009-02-04 06:27:44 +000016389 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky0235b622009-02-04 06:27:44 +000016391_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000016392
16393fi
16394
16395done
16396
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016397fi
Nick Lewycky0235b622009-02-04 06:27:44 +000016398
Nick Lewycky5d713ec2009-01-20 00:52:24 +000016399
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016400
Edwin Törökc27310c2010-01-26 08:50:50 +000016401
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016402 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16403echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16404if test "${ac_cv_huge_val_sanity+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016406else
16407
16408 ac_ext=cpp
16409ac_cpp='$CXXCPP $CPPFLAGS'
16410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16413
16414 CXXFLAGS=-pedantic
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016415 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016416 ac_cv_huge_val_sanity=yes
16417else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016418 cat >conftest.$ac_ext <<_ACEOF
16419/* confdefs.h. */
16420_ACEOF
16421cat confdefs.h >>conftest.$ac_ext
16422cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016423/* end confdefs.h. */
16424#include <math.h>
16425int
16426main ()
16427{
16428double x = HUGE_VAL; return x != x;
16429 ;
16430 return 0;
16431}
16432_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016433rm -f conftest$ac_exeext
16434if { (ac_try="$ac_link"
16435case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16438esac
16439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_link") 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16444 { (case "(($ac_try" in
16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446 *) ac_try_echo=$ac_try;;
16447esac
16448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449 (eval "$ac_try") 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016453 ac_cv_huge_val_sanity=yes
16454else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016455 echo "$as_me: program exited with status $ac_status" >&5
16456echo "$as_me: failed program was:" >&5
16457sed 's/^/| /' conftest.$ac_ext >&5
16458
16459( exit $ac_status )
16460ac_cv_huge_val_sanity=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016461fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016462rm -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 +000016463fi
16464
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016465
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016466 ac_ext=c
16467ac_cpp='$CPP $CPPFLAGS'
16468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16470ac_compiler_gnu=$ac_cv_c_compiler_gnu
16471
16472
16473fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016474{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16475echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016476 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16477
16478
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016479{ echo "$as_me:$LINENO: checking for pid_t" >&5
16480echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16481if test "${ac_cv_type_pid_t+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483else
16484 cat >conftest.$ac_ext <<_ACEOF
16485/* confdefs.h. */
16486_ACEOF
16487cat confdefs.h >>conftest.$ac_ext
16488cat >>conftest.$ac_ext <<_ACEOF
16489/* end confdefs.h. */
16490$ac_includes_default
16491typedef pid_t ac__type_new_;
16492int
16493main ()
16494{
16495if ((ac__type_new_ *) 0)
16496 return 0;
16497if (sizeof (ac__type_new_))
16498 return 0;
16499 ;
16500 return 0;
16501}
16502_ACEOF
16503rm -f conftest.$ac_objext
16504if { (ac_try="$ac_compile"
16505case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508esac
16509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_compile") 2>conftest.er1
16511 ac_status=$?
16512 grep -v '^ *+' conftest.er1 >conftest.err
16513 rm -f conftest.er1
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16518 { (case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521esac
16522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_try") 2>&5
16524 ac_status=$?
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; } &&
16527 { ac_try='test -s conftest.$ac_objext'
16528 { (case "(($ac_try" in
16529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16531esac
16532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_try") 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16537 ac_cv_type_pid_t=yes
16538else
16539 echo "$as_me: failed program was:" >&5
16540sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016541
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016542 ac_cv_type_pid_t=no
16543fi
16544
16545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546fi
16547{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16548echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16549if test $ac_cv_type_pid_t = yes; then
16550 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016551else
16552
16553cat >>confdefs.h <<_ACEOF
16554#define pid_t int
16555_ACEOF
16556
16557fi
16558
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016559{ echo "$as_me:$LINENO: checking for size_t" >&5
16560echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16561if test "${ac_cv_type_size_t+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16563else
16564 cat >conftest.$ac_ext <<_ACEOF
16565/* confdefs.h. */
16566_ACEOF
16567cat confdefs.h >>conftest.$ac_ext
16568cat >>conftest.$ac_ext <<_ACEOF
16569/* end confdefs.h. */
16570$ac_includes_default
16571typedef size_t ac__type_new_;
16572int
16573main ()
16574{
16575if ((ac__type_new_ *) 0)
16576 return 0;
16577if (sizeof (ac__type_new_))
16578 return 0;
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (ac_try="$ac_compile"
16585case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588esac
16589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16601esac
16602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611esac
16612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_cv_type_size_t=yes
16618else
16619 echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016621
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016622 ac_cv_type_size_t=no
16623fi
16624
16625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626fi
16627{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16628echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16629if test $ac_cv_type_size_t = yes; then
16630 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016631else
16632
16633cat >>confdefs.h <<_ACEOF
16634#define size_t unsigned int
16635_ACEOF
16636
16637fi
16638
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016639
16640cat >>confdefs.h <<_ACEOF
Edwin Törökc27310c2010-01-26 08:50:50 +000016641#define RETSIGTYPE void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016642_ACEOF
16643
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016644{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16645echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16646if test "${ac_cv_struct_tm+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016648else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016649 cat >conftest.$ac_ext <<_ACEOF
16650/* confdefs.h. */
16651_ACEOF
16652cat confdefs.h >>conftest.$ac_ext
16653cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016654/* end confdefs.h. */
16655#include <sys/types.h>
16656#include <time.h>
16657
16658int
16659main ()
16660{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016661struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016662 ;
16663 return 0;
16664}
16665_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016666rm -f conftest.$ac_objext
16667if { (ac_try="$ac_compile"
16668case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16671esac
16672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673 (eval "$ac_compile") 2>conftest.er1
16674 ac_status=$?
16675 grep -v '^ *+' conftest.er1 >conftest.err
16676 rm -f conftest.er1
16677 cat conftest.err >&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16681 { (case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684esac
16685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_try") 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest.$ac_objext'
16691 { (case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16694esac
16695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_try") 2>&5
16697 ac_status=$?
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016700 ac_cv_struct_tm=time.h
16701else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016702 echo "$as_me: failed program was:" >&5
16703sed 's/^/| /' conftest.$ac_ext >&5
16704
16705 ac_cv_struct_tm=sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016706fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016707
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016710{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16711echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016712if test $ac_cv_struct_tm = sys/time.h; then
16713
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016714cat >>confdefs.h <<\_ACEOF
16715#define TM_IN_SYS_TIME 1
16716_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016717
16718fi
16719
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016720{ echo "$as_me:$LINENO: checking for int64_t" >&5
16721echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16722if test "${ac_cv_type_int64_t+set}" = set; then
16723 echo $ECHO_N "(cached) $ECHO_C" >&6
16724else
16725 cat >conftest.$ac_ext <<_ACEOF
16726/* confdefs.h. */
16727_ACEOF
16728cat confdefs.h >>conftest.$ac_ext
16729cat >>conftest.$ac_ext <<_ACEOF
16730/* end confdefs.h. */
16731$ac_includes_default
16732typedef int64_t ac__type_new_;
16733int
16734main ()
16735{
16736if ((ac__type_new_ *) 0)
16737 return 0;
16738if (sizeof (ac__type_new_))
16739 return 0;
16740 ;
16741 return 0;
16742}
16743_ACEOF
16744rm -f conftest.$ac_objext
16745if { (ac_try="$ac_compile"
16746case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16749esac
16750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_compile") 2>conftest.er1
16752 ac_status=$?
16753 grep -v '^ *+' conftest.er1 >conftest.err
16754 rm -f conftest.er1
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16759 { (case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16762esac
16763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764 (eval "$ac_try") 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; } &&
16768 { ac_try='test -s conftest.$ac_objext'
16769 { (case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16772esac
16773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_try") 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 ac_cv_type_int64_t=yes
16779else
16780 echo "$as_me: failed program was:" >&5
16781sed 's/^/| /' conftest.$ac_ext >&5
16782
16783 ac_cv_type_int64_t=no
16784fi
16785
16786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787fi
16788{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16789echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16790if test $ac_cv_type_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016791
16792cat >>confdefs.h <<_ACEOF
16793#define HAVE_INT64_T 1
16794_ACEOF
16795
16796
16797else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016798 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16799echo "$as_me: error: Type int64_t required but not found" >&2;}
16800 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016801fi
16802
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016803{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16804echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16805if test "${ac_cv_type_uint64_t+set}" = set; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16807else
16808 cat >conftest.$ac_ext <<_ACEOF
16809/* confdefs.h. */
16810_ACEOF
16811cat confdefs.h >>conftest.$ac_ext
16812cat >>conftest.$ac_ext <<_ACEOF
16813/* end confdefs.h. */
16814$ac_includes_default
16815typedef uint64_t ac__type_new_;
16816int
16817main ()
16818{
16819if ((ac__type_new_ *) 0)
16820 return 0;
16821if (sizeof (ac__type_new_))
16822 return 0;
16823 ;
16824 return 0;
16825}
16826_ACEOF
16827rm -f conftest.$ac_objext
16828if { (ac_try="$ac_compile"
16829case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16832esac
16833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834 (eval "$ac_compile") 2>conftest.er1
16835 ac_status=$?
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16842 { (case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16845esac
16846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_try") 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
16852 { (case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855esac
16856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_try") 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_type_uint64_t=yes
16862else
16863 echo "$as_me: failed program was:" >&5
16864sed 's/^/| /' conftest.$ac_ext >&5
16865
16866 ac_cv_type_uint64_t=no
16867fi
16868
16869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870fi
16871{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16872echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16873if test $ac_cv_type_uint64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016874
16875cat >>confdefs.h <<_ACEOF
16876#define HAVE_UINT64_T 1
16877_ACEOF
16878
16879
16880else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016881 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16882echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16883if test "${ac_cv_type_u_int64_t+set}" = set; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885else
16886 cat >conftest.$ac_ext <<_ACEOF
16887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
16892$ac_includes_default
16893typedef u_int64_t ac__type_new_;
16894int
16895main ()
16896{
16897if ((ac__type_new_ *) 0)
16898 return 0;
16899if (sizeof (ac__type_new_))
16900 return 0;
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
16906if { (ac_try="$ac_compile"
16907case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16910esac
16911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_compile") 2>conftest.er1
16913 ac_status=$?
16914 grep -v '^ *+' conftest.er1 >conftest.err
16915 rm -f conftest.er1
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16920 { (case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16923esac
16924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_try") 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try='test -s conftest.$ac_objext'
16930 { (case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16933esac
16934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_try") 2>&5
16936 ac_status=$?
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_type_u_int64_t=yes
16940else
16941 echo "$as_me: failed program was:" >&5
16942sed 's/^/| /' conftest.$ac_ext >&5
16943
16944 ac_cv_type_u_int64_t=no
16945fi
16946
16947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948fi
16949{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16950echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16951if test $ac_cv_type_u_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016952
16953cat >>confdefs.h <<_ACEOF
16954#define HAVE_U_INT64_T 1
16955_ACEOF
16956
16957
16958else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016959 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16960echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16961 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016962fi
16963
16964fi
16965
16966
16967
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016968
16969
16970
16971
16972
16973
16974
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016975for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016976do
16977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16978{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16980if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16982else
16983 cat >conftest.$ac_ext <<_ACEOF
16984/* confdefs.h. */
16985_ACEOF
16986cat confdefs.h >>conftest.$ac_ext
16987cat >>conftest.$ac_ext <<_ACEOF
16988/* end confdefs.h. */
16989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16991#define $ac_func innocuous_$ac_func
16992
16993/* System header to define __stub macros and hopefully few prototypes,
16994 which can conflict with char $ac_func (); below.
16995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16996 <limits.h> exists even on freestanding compilers. */
16997
16998#ifdef __STDC__
16999# include <limits.h>
17000#else
17001# include <assert.h>
17002#endif
17003
17004#undef $ac_func
17005
17006/* Override any GCC internal prototype to avoid an error.
17007 Use char because int might match the return type of a GCC
17008 builtin and then its argument prototype would still apply. */
17009#ifdef __cplusplus
17010extern "C"
17011#endif
17012char $ac_func ();
17013/* The GNU C library defines this for functions which it implements
17014 to always fail with ENOSYS. Some functions are actually named
17015 something starting with __ and the normal name is an alias. */
17016#if defined __stub_$ac_func || defined __stub___$ac_func
17017choke me
17018#endif
17019
17020int
17021main ()
17022{
17023return $ac_func ();
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext conftest$ac_exeext
17029if { (ac_try="$ac_link"
17030case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033esac
17034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043 { (case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17046esac
17047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_try") 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest$ac_exeext'
17053 { (case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17056esac
17057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_try") 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 eval "$as_ac_var=yes"
17063else
17064 echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 eval "$as_ac_var=no"
17068fi
17069
17070rm -f core conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext conftest.$ac_ext
17072fi
17073ac_res=`eval echo '${'$as_ac_var'}'`
17074 { echo "$as_me:$LINENO: result: $ac_res" >&5
17075echo "${ECHO_T}$ac_res" >&6; }
17076if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017077 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017079_ACEOF
17080
17081fi
17082done
17083
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017084
17085
17086
17087
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017088for ac_func in powf fmodf strtof round
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017089do
17090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17091{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17095else
17096 cat >conftest.$ac_ext <<_ACEOF
17097/* confdefs.h. */
17098_ACEOF
17099cat confdefs.h >>conftest.$ac_ext
17100cat >>conftest.$ac_ext <<_ACEOF
17101/* end confdefs.h. */
17102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17104#define $ac_func innocuous_$ac_func
17105
17106/* System header to define __stub macros and hopefully few prototypes,
17107 which can conflict with char $ac_func (); below.
17108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17109 <limits.h> exists even on freestanding compilers. */
17110
17111#ifdef __STDC__
17112# include <limits.h>
17113#else
17114# include <assert.h>
17115#endif
17116
17117#undef $ac_func
17118
17119/* Override any GCC internal prototype to avoid an error.
17120 Use char because int might match the return type of a GCC
17121 builtin and then its argument prototype would still apply. */
17122#ifdef __cplusplus
17123extern "C"
17124#endif
17125char $ac_func ();
17126/* The GNU C library defines this for functions which it implements
17127 to always fail with ENOSYS. Some functions are actually named
17128 something starting with __ and the normal name is an alias. */
17129#if defined __stub_$ac_func || defined __stub___$ac_func
17130choke me
17131#endif
17132
17133int
17134main ()
17135{
17136return $ac_func ();
17137 ;
17138 return 0;
17139}
17140_ACEOF
17141rm -f conftest.$ac_objext conftest$ac_exeext
17142if { (ac_try="$ac_link"
17143case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17146esac
17147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_link") 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156 { (case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159esac
17160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_try") 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest$ac_exeext'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169esac
17170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 eval "$as_ac_var=yes"
17176else
17177 echo "$as_me: failed program was:" >&5
17178sed 's/^/| /' conftest.$ac_ext >&5
17179
17180 eval "$as_ac_var=no"
17181fi
17182
17183rm -f core conftest.err conftest.$ac_objext \
17184 conftest$ac_exeext conftest.$ac_ext
17185fi
17186ac_res=`eval echo '${'$as_ac_var'}'`
17187 { echo "$as_me:$LINENO: result: $ac_res" >&5
17188echo "${ECHO_T}$ac_res" >&6; }
17189if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017190 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017192_ACEOF
17193
17194fi
17195done
17196
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017197
17198
17199
17200
17201
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017202for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017203do
17204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17205{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17207if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209else
17210 cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17218#define $ac_func innocuous_$ac_func
17219
17220/* System header to define __stub macros and hopefully few prototypes,
17221 which can conflict with char $ac_func (); below.
17222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17223 <limits.h> exists even on freestanding compilers. */
17224
17225#ifdef __STDC__
17226# include <limits.h>
17227#else
17228# include <assert.h>
17229#endif
17230
17231#undef $ac_func
17232
17233/* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17236#ifdef __cplusplus
17237extern "C"
17238#endif
17239char $ac_func ();
17240/* The GNU C library defines this for functions which it implements
17241 to always fail with ENOSYS. Some functions are actually named
17242 something starting with __ and the normal name is an alias. */
17243#if defined __stub_$ac_func || defined __stub___$ac_func
17244choke me
17245#endif
17246
17247int
17248main ()
17249{
17250return $ac_func ();
17251 ;
17252 return 0;
17253}
17254_ACEOF
17255rm -f conftest.$ac_objext conftest$ac_exeext
17256if { (ac_try="$ac_link"
17257case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17260esac
17261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_link") 2>conftest.er1
17263 ac_status=$?
17264 grep -v '^ *+' conftest.er1 >conftest.err
17265 rm -f conftest.er1
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273esac
17274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest$ac_exeext'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17283esac
17284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 eval "$as_ac_var=yes"
17290else
17291 echo "$as_me: failed program was:" >&5
17292sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 eval "$as_ac_var=no"
17295fi
17296
17297rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17299fi
17300ac_res=`eval echo '${'$as_ac_var'}'`
17301 { echo "$as_me:$LINENO: result: $ac_res" >&5
17302echo "${ECHO_T}$ac_res" >&6; }
17303if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017304 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017306_ACEOF
17307
17308fi
17309done
17310
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017311
17312
17313
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017314for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017315do
17316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17317{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17319if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17321else
17322 cat >conftest.$ac_ext <<_ACEOF
17323/* confdefs.h. */
17324_ACEOF
17325cat confdefs.h >>conftest.$ac_ext
17326cat >>conftest.$ac_ext <<_ACEOF
17327/* end confdefs.h. */
17328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17330#define $ac_func innocuous_$ac_func
17331
17332/* System header to define __stub macros and hopefully few prototypes,
17333 which can conflict with char $ac_func (); below.
17334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17335 <limits.h> exists even on freestanding compilers. */
17336
17337#ifdef __STDC__
17338# include <limits.h>
17339#else
17340# include <assert.h>
17341#endif
17342
17343#undef $ac_func
17344
17345/* Override any GCC internal prototype to avoid an error.
17346 Use char because int might match the return type of a GCC
17347 builtin and then its argument prototype would still apply. */
17348#ifdef __cplusplus
17349extern "C"
17350#endif
17351char $ac_func ();
17352/* The GNU C library defines this for functions which it implements
17353 to always fail with ENOSYS. Some functions are actually named
17354 something starting with __ and the normal name is an alias. */
17355#if defined __stub_$ac_func || defined __stub___$ac_func
17356choke me
17357#endif
17358
17359int
17360main ()
17361{
17362return $ac_func ();
17363 ;
17364 return 0;
17365}
17366_ACEOF
17367rm -f conftest.$ac_objext conftest$ac_exeext
17368if { (ac_try="$ac_link"
17369case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17372esac
17373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_link") 2>conftest.er1
17375 ac_status=$?
17376 grep -v '^ *+' conftest.er1 >conftest.err
17377 rm -f conftest.er1
17378 cat conftest.err >&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } &&
17381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17391 { ac_try='test -s conftest$ac_exeext'
17392 { (case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17395esac
17396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_try") 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17401 eval "$as_ac_var=yes"
17402else
17403 echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
17406 eval "$as_ac_var=no"
17407fi
17408
17409rm -f core conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext conftest.$ac_ext
17411fi
17412ac_res=`eval echo '${'$as_ac_var'}'`
17413 { echo "$as_me:$LINENO: result: $ac_res" >&5
17414echo "${ECHO_T}$ac_res" >&6; }
17415if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017416 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017418_ACEOF
17419
17420fi
17421done
17422
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017423
17424
17425
17426
17427
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017428for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017429do
17430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17431{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17433if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17435else
17436 cat >conftest.$ac_ext <<_ACEOF
17437/* confdefs.h. */
17438_ACEOF
17439cat confdefs.h >>conftest.$ac_ext
17440cat >>conftest.$ac_ext <<_ACEOF
17441/* end confdefs.h. */
17442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17444#define $ac_func innocuous_$ac_func
17445
17446/* System header to define __stub macros and hopefully few prototypes,
17447 which can conflict with char $ac_func (); below.
17448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17449 <limits.h> exists even on freestanding compilers. */
17450
17451#ifdef __STDC__
17452# include <limits.h>
17453#else
17454# include <assert.h>
17455#endif
17456
17457#undef $ac_func
17458
17459/* Override any GCC internal prototype to avoid an error.
17460 Use char because int might match the return type of a GCC
17461 builtin and then its argument prototype would still apply. */
17462#ifdef __cplusplus
17463extern "C"
17464#endif
17465char $ac_func ();
17466/* The GNU C library defines this for functions which it implements
17467 to always fail with ENOSYS. Some functions are actually named
17468 something starting with __ and the normal name is an alias. */
17469#if defined __stub_$ac_func || defined __stub___$ac_func
17470choke me
17471#endif
17472
17473int
17474main ()
17475{
17476return $ac_func ();
17477 ;
17478 return 0;
17479}
17480_ACEOF
17481rm -f conftest.$ac_objext conftest$ac_exeext
17482if { (ac_try="$ac_link"
17483case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486esac
17487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_link") 2>conftest.er1
17489 ac_status=$?
17490 grep -v '^ *+' conftest.er1 >conftest.err
17491 rm -f conftest.er1
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
17495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499esac
17500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest$ac_exeext'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509esac
17510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 eval "$as_ac_var=yes"
17516else
17517 echo "$as_me: failed program was:" >&5
17518sed 's/^/| /' conftest.$ac_ext >&5
17519
17520 eval "$as_ac_var=no"
17521fi
17522
17523rm -f core conftest.err conftest.$ac_objext \
17524 conftest$ac_exeext conftest.$ac_ext
17525fi
17526ac_res=`eval echo '${'$as_ac_var'}'`
17527 { echo "$as_me:$LINENO: result: $ac_res" >&5
17528echo "${ECHO_T}$ac_res" >&6; }
17529if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017530 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017532_ACEOF
17533
17534fi
17535done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017536
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017537
17538
17539
17540
Jeffrey Yasskin41a338b2009-09-25 21:07:20 +000017541for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017542do
17543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17544{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17546if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17548else
17549 cat >conftest.$ac_ext <<_ACEOF
17550/* confdefs.h. */
17551_ACEOF
17552cat confdefs.h >>conftest.$ac_ext
17553cat >>conftest.$ac_ext <<_ACEOF
17554/* end confdefs.h. */
17555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17557#define $ac_func innocuous_$ac_func
17558
17559/* System header to define __stub macros and hopefully few prototypes,
17560 which can conflict with char $ac_func (); below.
17561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17562 <limits.h> exists even on freestanding compilers. */
17563
17564#ifdef __STDC__
17565# include <limits.h>
17566#else
17567# include <assert.h>
17568#endif
17569
17570#undef $ac_func
17571
17572/* Override any GCC internal prototype to avoid an error.
17573 Use char because int might match the return type of a GCC
17574 builtin and then its argument prototype would still apply. */
17575#ifdef __cplusplus
17576extern "C"
17577#endif
17578char $ac_func ();
17579/* The GNU C library defines this for functions which it implements
17580 to always fail with ENOSYS. Some functions are actually named
17581 something starting with __ and the normal name is an alias. */
17582#if defined __stub_$ac_func || defined __stub___$ac_func
17583choke me
17584#endif
17585
17586int
17587main ()
17588{
17589return $ac_func ();
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594rm -f conftest.$ac_objext conftest$ac_exeext
17595if { (ac_try="$ac_link"
17596case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17599esac
17600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_link") 2>conftest.er1
17602 ac_status=$?
17603 grep -v '^ *+' conftest.er1 >conftest.err
17604 rm -f conftest.er1
17605 cat conftest.err >&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } &&
17608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612esac
17613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest$ac_exeext'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622esac
17623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 eval "$as_ac_var=yes"
17629else
17630 echo "$as_me: failed program was:" >&5
17631sed 's/^/| /' conftest.$ac_ext >&5
17632
17633 eval "$as_ac_var=no"
17634fi
17635
17636rm -f core conftest.err conftest.$ac_objext \
17637 conftest$ac_exeext conftest.$ac_ext
17638fi
17639ac_res=`eval echo '${'$as_ac_var'}'`
17640 { echo "$as_me:$LINENO: result: $ac_res" >&5
17641echo "${ECHO_T}$ac_res" >&6; }
17642if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017643 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017645_ACEOF
17646
17647fi
17648done
17649
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017650
17651
17652
17653
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017654for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017655do
17656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17657{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17659if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17661else
17662 cat >conftest.$ac_ext <<_ACEOF
17663/* confdefs.h. */
17664_ACEOF
17665cat confdefs.h >>conftest.$ac_ext
17666cat >>conftest.$ac_ext <<_ACEOF
17667/* end confdefs.h. */
17668/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17670#define $ac_func innocuous_$ac_func
17671
17672/* System header to define __stub macros and hopefully few prototypes,
17673 which can conflict with char $ac_func (); below.
17674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17675 <limits.h> exists even on freestanding compilers. */
17676
17677#ifdef __STDC__
17678# include <limits.h>
17679#else
17680# include <assert.h>
17681#endif
17682
17683#undef $ac_func
17684
17685/* Override any GCC internal prototype to avoid an error.
17686 Use char because int might match the return type of a GCC
17687 builtin and then its argument prototype would still apply. */
17688#ifdef __cplusplus
17689extern "C"
17690#endif
17691char $ac_func ();
17692/* The GNU C library defines this for functions which it implements
17693 to always fail with ENOSYS. Some functions are actually named
17694 something starting with __ and the normal name is an alias. */
17695#if defined __stub_$ac_func || defined __stub___$ac_func
17696choke me
17697#endif
17698
17699int
17700main ()
17701{
17702return $ac_func ();
17703 ;
17704 return 0;
17705}
17706_ACEOF
17707rm -f conftest.$ac_objext conftest$ac_exeext
17708if { (ac_try="$ac_link"
17709case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17712esac
17713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_link") 2>conftest.er1
17715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725esac
17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest$ac_exeext'
17732 { (case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735esac
17736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_try") 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 eval "$as_ac_var=yes"
17742else
17743 echo "$as_me: failed program was:" >&5
17744sed 's/^/| /' conftest.$ac_ext >&5
17745
17746 eval "$as_ac_var=no"
17747fi
17748
17749rm -f core conftest.err conftest.$ac_objext \
17750 conftest$ac_exeext conftest.$ac_ext
17751fi
17752ac_res=`eval echo '${'$as_ac_var'}'`
17753 { echo "$as_me:$LINENO: result: $ac_res" >&5
17754echo "${ECHO_T}$ac_res" >&6; }
17755if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017756 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017758_ACEOF
17759
17760fi
17761done
17762
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017763
17764
17765
17766
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017767for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017768do
17769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17770{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17772if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774else
17775 cat >conftest.$ac_ext <<_ACEOF
17776/* confdefs.h. */
17777_ACEOF
17778cat confdefs.h >>conftest.$ac_ext
17779cat >>conftest.$ac_ext <<_ACEOF
17780/* end confdefs.h. */
17781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17783#define $ac_func innocuous_$ac_func
17784
17785/* System header to define __stub macros and hopefully few prototypes,
17786 which can conflict with char $ac_func (); below.
17787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17788 <limits.h> exists even on freestanding compilers. */
17789
17790#ifdef __STDC__
17791# include <limits.h>
17792#else
17793# include <assert.h>
17794#endif
17795
17796#undef $ac_func
17797
17798/* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17801#ifdef __cplusplus
17802extern "C"
17803#endif
17804char $ac_func ();
17805/* The GNU C library defines this for functions which it implements
17806 to always fail with ENOSYS. Some functions are actually named
17807 something starting with __ and the normal name is an alias. */
17808#if defined __stub_$ac_func || defined __stub___$ac_func
17809choke me
17810#endif
17811
17812int
17813main ()
17814{
17815return $ac_func ();
17816 ;
17817 return 0;
17818}
17819_ACEOF
17820rm -f conftest.$ac_objext conftest$ac_exeext
17821if { (ac_try="$ac_link"
17822case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825esac
17826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_link") 2>conftest.er1
17828 ac_status=$?
17829 grep -v '^ *+' conftest.er1 >conftest.err
17830 rm -f conftest.er1
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838esac
17839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest$ac_exeext'
17845 { (case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848esac
17849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_try") 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 eval "$as_ac_var=yes"
17855else
17856 echo "$as_me: failed program was:" >&5
17857sed 's/^/| /' conftest.$ac_ext >&5
17858
17859 eval "$as_ac_var=no"
17860fi
17861
17862rm -f core conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17864fi
17865ac_res=`eval echo '${'$as_ac_var'}'`
17866 { echo "$as_me:$LINENO: result: $ac_res" >&5
17867echo "${ECHO_T}$ac_res" >&6; }
17868if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017869 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017871_ACEOF
17872
17873fi
17874done
17875
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017876{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17877echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17878if test "${llvm_cv_c_printf_a+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017880else
17881 ac_ext=c
17882ac_cpp='$CPP $CPPFLAGS'
17883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17885ac_compiler_gnu=$ac_cv_c_compiler_gnu
17886
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017887 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017888 llvmac_cv_c_printf_a=no
17889else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017890 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017891
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017892 /* confdefs.h. */
17893_ACEOF
17894cat confdefs.h >>conftest.$ac_ext
17895cat >>conftest.$ac_ext <<_ACEOF
17896/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000017897
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017898#include <stdio.h>
17899#include <stdlib.h>
17900
17901int
17902main ()
17903{
17904
17905volatile double A, B;
17906char Buffer[100];
17907A = 1;
17908A /= 10.0;
17909sprintf(Buffer, "%a", A);
17910B = atof(Buffer);
17911if (A != B)
17912 return (1);
17913if (A != 0x1.999999999999ap-4)
17914 return (1);
17915return (0);
17916 ;
17917 return 0;
17918}
17919_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017920rm -f conftest$ac_exeext
17921if { (ac_try="$ac_link"
17922case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17925esac
17926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_link") 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17931 { (case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17934esac
17935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_try") 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017940 llvm_cv_c_printf_a=yes
17941else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017942 echo "$as_me: program exited with status $ac_status" >&5
17943echo "$as_me: failed program was:" >&5
17944sed 's/^/| /' conftest.$ac_ext >&5
17945
17946( exit $ac_status )
17947llvmac_cv_c_printf_a=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017948fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017949rm -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 +000017950fi
17951
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017952
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017953 ac_ext=c
17954ac_cpp='$CPP $CPPFLAGS'
17955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957ac_compiler_gnu=$ac_cv_c_compiler_gnu
17958
17959fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017960{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17961echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017962 if test "$llvm_cv_c_printf_a" = "yes"; then
17963
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017964cat >>confdefs.h <<\_ACEOF
17965#define HAVE_PRINTF_A 1
17966_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017967
17968 fi
17969
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017970
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017971{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17972echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17973if test "${ac_cv_func_rand48+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017975else
17976 ac_ext=cpp
17977ac_cpp='$CXXCPP $CPPFLAGS'
17978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17981
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017982 cat >conftest.$ac_ext <<_ACEOF
17983/* confdefs.h. */
17984_ACEOF
17985cat confdefs.h >>conftest.$ac_ext
17986cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017987/* end confdefs.h. */
17988#include <stdlib.h>
17989int
17990main ()
17991{
17992srand48(0);lrand48();drand48();
17993 ;
17994 return 0;
17995}
17996_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017997rm -f conftest.$ac_objext
17998if { (ac_try="$ac_compile"
17999case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002esac
18003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_compile") 2>conftest.er1
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015esac
18016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest.$ac_objext'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18025esac
18026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018031 ac_cv_func_rand48=yes
18032else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018033 echo "$as_me: failed program was:" >&5
18034sed 's/^/| /' conftest.$ac_ext >&5
18035
18036 ac_cv_func_rand48=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018037fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018038
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18040 ac_ext=c
18041ac_cpp='$CPP $CPPFLAGS'
18042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18044ac_compiler_gnu=$ac_cv_c_compiler_gnu
18045
18046fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018047{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18048echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018049
18050if test "$ac_cv_func_rand48" = "yes" ; then
18051
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018052cat >>confdefs.h <<\_ACEOF
18053#define HAVE_RAND48 1
18054_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018055
18056fi
18057
18058
Edwin Törökc27310c2010-01-26 08:50:50 +000018059
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018060{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18061echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18062if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018064else
18065 ac_ext=cpp
18066ac_cpp='$CXXCPP $CPPFLAGS'
18067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18070
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018071 cat >conftest.$ac_ext <<_ACEOF
18072/* confdefs.h. */
18073_ACEOF
18074cat confdefs.h >>conftest.$ac_ext
18075cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018076/* end confdefs.h. */
18077#include <math.h>
18078int
18079main ()
18080{
18081float f; isnan(f);
18082 ;
18083 return 0;
18084}
18085_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018086rm -f conftest.$ac_objext
18087if { (ac_try="$ac_compile"
18088case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091esac
18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_compile") 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18101 { (case "(($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_try") 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest.$ac_objext'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18114esac
18115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018120 ac_cv_func_isnan_in_math_h=yes
18121else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018122 echo "$as_me: failed program was:" >&5
18123sed 's/^/| /' conftest.$ac_ext >&5
18124
18125 ac_cv_func_isnan_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018126fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018127
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129 ac_ext=c
18130ac_cpp='$CPP $CPPFLAGS'
18131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133ac_compiler_gnu=$ac_cv_c_compiler_gnu
18134
18135fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018136{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18137echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018138
18139
18140if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18141
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018142cat >>confdefs.h <<\_ACEOF
18143#define HAVE_ISNAN_IN_MATH_H 1
18144_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018145
18146fi
18147
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018148{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18149echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18150if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018152else
18153 ac_ext=cpp
18154ac_cpp='$CXXCPP $CPPFLAGS'
18155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18158
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018159 cat >conftest.$ac_ext <<_ACEOF
18160/* confdefs.h. */
18161_ACEOF
18162cat confdefs.h >>conftest.$ac_ext
18163cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018164/* end confdefs.h. */
18165#include <cmath>
18166int
18167main ()
18168{
18169float f; isnan(f);
18170 ;
18171 return 0;
18172}
18173_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018174rm -f conftest.$ac_objext
18175if { (ac_try="$ac_compile"
18176case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179esac
18180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_compile") 2>conftest.er1
18182 ac_status=$?
18183 grep -v '^ *+' conftest.er1 >conftest.err
18184 rm -f conftest.er1
18185 cat conftest.err >&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } &&
18188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18189 { (case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18192esac
18193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_try") 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; } &&
18198 { ac_try='test -s conftest.$ac_objext'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18202esac
18203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018208 ac_cv_func_isnan_in_cmath=yes
18209else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018210 echo "$as_me: failed program was:" >&5
18211sed 's/^/| /' conftest.$ac_ext >&5
18212
18213 ac_cv_func_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018214fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018215
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217 ac_ext=c
18218ac_cpp='$CPP $CPPFLAGS'
18219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18221ac_compiler_gnu=$ac_cv_c_compiler_gnu
18222
18223fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018224{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18225echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018226
18227if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18228
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018229cat >>confdefs.h <<\_ACEOF
18230#define HAVE_ISNAN_IN_CMATH 1
18231_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018232
18233fi
18234
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018235{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18236echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18237if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018239else
18240 ac_ext=cpp
18241ac_cpp='$CXXCPP $CPPFLAGS'
18242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18245
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018246 cat >conftest.$ac_ext <<_ACEOF
18247/* confdefs.h. */
18248_ACEOF
18249cat confdefs.h >>conftest.$ac_ext
18250cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018251/* end confdefs.h. */
18252#include <cmath>
18253int
18254main ()
18255{
18256float f; std::isnan(f);
18257 ;
18258 return 0;
18259}
18260_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018261rm -f conftest.$ac_objext
18262if { (ac_try="$ac_compile"
18263case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18266esac
18267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_compile") 2>conftest.er1
18269 ac_status=$?
18270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18276 { (case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18279esac
18280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_try") 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest.$ac_objext'
18286 { (case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289esac
18290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_try") 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018295 ac_cv_func_std_isnan_in_cmath=yes
18296else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018297 echo "$as_me: failed program was:" >&5
18298sed 's/^/| /' conftest.$ac_ext >&5
18299
18300 ac_cv_func_std_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018301fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018302
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304 ac_ext=c
18305ac_cpp='$CPP $CPPFLAGS'
18306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18308ac_compiler_gnu=$ac_cv_c_compiler_gnu
18309
18310fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018311{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18312echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018313
18314if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18315
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018316cat >>confdefs.h <<\_ACEOF
18317#define HAVE_STD_ISNAN_IN_CMATH 1
18318_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018319
18320fi
18321
18322
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018323{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18324echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18325if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018327else
18328 ac_ext=cpp
18329ac_cpp='$CXXCPP $CPPFLAGS'
18330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18333
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018334 cat >conftest.$ac_ext <<_ACEOF
18335/* confdefs.h. */
18336_ACEOF
18337cat confdefs.h >>conftest.$ac_ext
18338cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018339/* end confdefs.h. */
18340#include <math.h>
18341int
18342main ()
18343{
18344float f; isinf(f);
18345 ;
18346 return 0;
18347}
18348_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018349rm -f conftest.$ac_objext
18350if { (ac_try="$ac_compile"
18351case "(($ac_try" in
18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353 *) ac_try_echo=$ac_try;;
18354esac
18355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18356 (eval "$ac_compile") 2>conftest.er1
18357 ac_status=$?
18358 grep -v '^ *+' conftest.er1 >conftest.err
18359 rm -f conftest.er1
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18364 { (case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18367esac
18368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_try") 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest.$ac_objext'
18374 { (case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377esac
18378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_try") 2>&5
18380 ac_status=$?
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018383 ac_cv_func_isinf_in_math_h=yes
18384else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018385 echo "$as_me: failed program was:" >&5
18386sed 's/^/| /' conftest.$ac_ext >&5
18387
18388 ac_cv_func_isinf_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018389fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018390
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18392 ac_ext=c
18393ac_cpp='$CPP $CPPFLAGS'
18394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18396ac_compiler_gnu=$ac_cv_c_compiler_gnu
18397
18398fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018399{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18400echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018401
18402if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18403
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018404cat >>confdefs.h <<\_ACEOF
18405#define HAVE_ISINF_IN_MATH_H 1
18406_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018407
18408fi
18409
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018410{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18411echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18412if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018414else
18415 ac_ext=cpp
18416ac_cpp='$CXXCPP $CPPFLAGS'
18417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18420
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018421 cat >conftest.$ac_ext <<_ACEOF
18422/* confdefs.h. */
18423_ACEOF
18424cat confdefs.h >>conftest.$ac_ext
18425cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018426/* end confdefs.h. */
18427#include <cmath>
18428int
18429main ()
18430{
18431float f; isinf(f);
18432 ;
18433 return 0;
18434}
18435_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018436rm -f conftest.$ac_objext
18437if { (ac_try="$ac_compile"
18438case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18441esac
18442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_compile") 2>conftest.er1
18444 ac_status=$?
18445 grep -v '^ *+' conftest.er1 >conftest.err
18446 rm -f conftest.er1
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } &&
18450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18451 { (case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18454esac
18455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456 (eval "$ac_try") 2>&5
18457 ac_status=$?
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest.$ac_objext'
18461 { (case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18464esac
18465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_try") 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018470 ac_cv_func_isinf_in_cmath=yes
18471else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018472 echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475 ac_cv_func_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018476fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018477
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479 ac_ext=c
18480ac_cpp='$CPP $CPPFLAGS'
18481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18483ac_compiler_gnu=$ac_cv_c_compiler_gnu
18484
18485fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018486{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18487echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018488
18489if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18490
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018491cat >>confdefs.h <<\_ACEOF
18492#define HAVE_ISINF_IN_CMATH 1
18493_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018494
18495fi
18496
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018497{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18498echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18499if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018501else
18502 ac_ext=cpp
18503ac_cpp='$CXXCPP $CPPFLAGS'
18504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18507
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018508 cat >conftest.$ac_ext <<_ACEOF
18509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018513/* end confdefs.h. */
18514#include <cmath>
18515int
18516main ()
18517{
18518float f; std::isinf(f)}
18519 ;
18520 return 0;
18521}
18522_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018523rm -f conftest.$ac_objext
18524if { (ac_try="$ac_compile"
18525case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528esac
18529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_compile") 2>conftest.er1
18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541esac
18542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18551esac
18552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018557 ac_cv_func_std_isinf_in_cmath=yes
18558else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018559 echo "$as_me: failed program was:" >&5
18560sed 's/^/| /' conftest.$ac_ext >&5
18561
18562 ac_cv_func_std_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018563fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018564
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18566 ac_ext=c
18567ac_cpp='$CPP $CPPFLAGS'
18568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570ac_compiler_gnu=$ac_cv_c_compiler_gnu
18571
18572fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018573{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18574echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018575
18576if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18577
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018578cat >>confdefs.h <<\_ACEOF
18579#define HAVE_STD_ISINF_IN_CMATH 1
18580_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018581
18582fi
18583
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018584{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18585echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18586if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018588else
18589 ac_ext=cpp
18590ac_cpp='$CXXCPP $CPPFLAGS'
18591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18594
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018595 cat >conftest.$ac_ext <<_ACEOF
18596/* confdefs.h. */
18597_ACEOF
18598cat confdefs.h >>conftest.$ac_ext
18599cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018600/* end confdefs.h. */
18601#include <ieeefp.h>
18602int
18603main ()
18604{
18605float f; finite(f);
18606 ;
18607 return 0;
18608}
18609_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018610rm -f conftest.$ac_objext
18611if { (ac_try="$ac_compile"
18612case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615esac
18616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_compile") 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628esac
18629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest.$ac_objext'
18635 { (case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18638esac
18639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_try") 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018644 ac_cv_func_finite_in_ieeefp_h=yes
18645else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018646 echo "$as_me: failed program was:" >&5
18647sed 's/^/| /' conftest.$ac_ext >&5
18648
18649 ac_cv_func_finite_in_ieeefp_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018650fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018651
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18653 ac_ext=c
18654ac_cpp='$CPP $CPPFLAGS'
18655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18657ac_compiler_gnu=$ac_cv_c_compiler_gnu
18658
18659fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018660{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18661echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018662
18663if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18664
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018665cat >>confdefs.h <<\_ACEOF
18666#define HAVE_FINITE_IN_IEEEFP_H 1
18667_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018668
18669fi
18670
18671
18672
18673if test "$llvm_cv_platform_type" = "Unix" ; then
18674
18675
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018676for ac_header in stdlib.h unistd.h
18677do
18678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18684fi
18685ac_res=`eval echo '${'$as_ac_Header'}'`
18686 { echo "$as_me:$LINENO: result: $ac_res" >&5
18687echo "${ECHO_T}$ac_res" >&6; }
18688else
18689 # Is the header compilable?
18690{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18692cat >conftest.$ac_ext <<_ACEOF
18693/* confdefs.h. */
18694_ACEOF
18695cat confdefs.h >>conftest.$ac_ext
18696cat >>conftest.$ac_ext <<_ACEOF
18697/* end confdefs.h. */
18698$ac_includes_default
18699#include <$ac_header>
18700_ACEOF
18701rm -f conftest.$ac_objext
18702if { (ac_try="$ac_compile"
18703case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18706esac
18707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_compile") 2>conftest.er1
18709 ac_status=$?
18710 grep -v '^ *+' conftest.er1 >conftest.err
18711 rm -f conftest.er1
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719esac
18720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest.$ac_objext'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729esac
18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_header_compiler=yes
18736else
18737 echo "$as_me: failed program was:" >&5
18738sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018739
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018740 ac_header_compiler=no
18741fi
18742
18743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18745echo "${ECHO_T}$ac_header_compiler" >&6; }
18746
18747# Is the header present?
18748{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18750cat >conftest.$ac_ext <<_ACEOF
18751/* confdefs.h. */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h. */
18756#include <$ac_header>
18757_ACEOF
18758if { (ac_try="$ac_cpp conftest.$ac_ext"
18759case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18762esac
18763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18765 ac_status=$?
18766 grep -v '^ *+' conftest.er1 >conftest.err
18767 rm -f conftest.er1
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } >/dev/null; then
18771 if test -s conftest.err; then
18772 ac_cpp_err=$ac_c_preproc_warn_flag
18773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18774 else
18775 ac_cpp_err=
18776 fi
18777else
18778 ac_cpp_err=yes
18779fi
18780if test -z "$ac_cpp_err"; then
18781 ac_header_preproc=yes
18782else
18783 echo "$as_me: failed program was:" >&5
18784sed 's/^/| /' conftest.$ac_ext >&5
18785
18786 ac_header_preproc=no
18787fi
18788
18789rm -f conftest.err conftest.$ac_ext
18790{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18791echo "${ECHO_T}$ac_header_preproc" >&6; }
18792
18793# So? What about this header?
18794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18795 yes:no: )
18796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18797echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18799echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18800 ac_header_preproc=yes
18801 ;;
18802 no:yes:* )
18803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18804echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18806echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18808echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18810echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18812echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18814echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18815 ( cat <<\_ASBOX
18816## ----------------------------------- ##
18817## Report this to llvmbugs@cs.uiuc.edu ##
18818## ----------------------------------- ##
18819_ASBOX
18820 ) | sed "s/^/$as_me: WARNING: /" >&2
18821 ;;
18822esac
18823{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827else
18828 eval "$as_ac_Header=\$ac_header_preproc"
18829fi
18830ac_res=`eval echo '${'$as_ac_Header'}'`
18831 { echo "$as_me:$LINENO: result: $ac_res" >&5
18832echo "${ECHO_T}$ac_res" >&6; }
18833
18834fi
18835if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018836 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018838_ACEOF
18839
18840fi
18841
18842done
18843
18844
18845for ac_func in getpagesize
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018846do
18847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18848{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18850if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852else
18853 cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
18859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18861#define $ac_func innocuous_$ac_func
18862
18863/* System header to define __stub macros and hopefully few prototypes,
18864 which can conflict with char $ac_func (); below.
18865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18866 <limits.h> exists even on freestanding compilers. */
18867
18868#ifdef __STDC__
18869# include <limits.h>
18870#else
18871# include <assert.h>
18872#endif
18873
18874#undef $ac_func
18875
18876/* Override any GCC internal prototype to avoid an error.
18877 Use char because int might match the return type of a GCC
18878 builtin and then its argument prototype would still apply. */
18879#ifdef __cplusplus
18880extern "C"
18881#endif
18882char $ac_func ();
18883/* The GNU C library defines this for functions which it implements
18884 to always fail with ENOSYS. Some functions are actually named
18885 something starting with __ and the normal name is an alias. */
18886#if defined __stub_$ac_func || defined __stub___$ac_func
18887choke me
18888#endif
18889
18890int
18891main ()
18892{
18893return $ac_func ();
18894 ;
18895 return 0;
18896}
18897_ACEOF
18898rm -f conftest.$ac_objext conftest$ac_exeext
18899if { (ac_try="$ac_link"
18900case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18903esac
18904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_link") 2>conftest.er1
18906 ac_status=$?
18907 grep -v '^ *+' conftest.er1 >conftest.err
18908 rm -f conftest.er1
18909 cat conftest.err >&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } &&
18912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18913 { (case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916esac
18917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_try") 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest$ac_exeext'
18923 { (case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18926esac
18927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_try") 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 eval "$as_ac_var=yes"
18933else
18934 echo "$as_me: failed program was:" >&5
18935sed 's/^/| /' conftest.$ac_ext >&5
18936
18937 eval "$as_ac_var=no"
18938fi
18939
18940rm -f core conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
18942fi
18943ac_res=`eval echo '${'$as_ac_var'}'`
18944 { echo "$as_me:$LINENO: result: $ac_res" >&5
18945echo "${ECHO_T}$ac_res" >&6; }
18946if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018947 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018949_ACEOF
18950
18951fi
18952done
18953
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018954{ echo "$as_me:$LINENO: checking for working mmap" >&5
18955echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18956if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018958else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018959 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018960 ac_cv_func_mmap_fixed_mapped=no
18961else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018962 cat >conftest.$ac_ext <<_ACEOF
18963/* confdefs.h. */
18964_ACEOF
18965cat confdefs.h >>conftest.$ac_ext
18966cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018967/* end confdefs.h. */
18968$ac_includes_default
18969/* malloc might have been renamed as rpl_malloc. */
18970#undef malloc
18971
18972/* Thanks to Mike Haertel and Jim Avera for this test.
18973 Here is a matrix of mmap possibilities:
18974 mmap private not fixed
18975 mmap private fixed at somewhere currently unmapped
18976 mmap private fixed at somewhere already mapped
18977 mmap shared not fixed
18978 mmap shared fixed at somewhere currently unmapped
18979 mmap shared fixed at somewhere already mapped
18980 For private mappings, we should verify that changes cannot be read()
18981 back from the file, nor mmap's back from the file at a different
18982 address. (There have been systems where private was not correctly
18983 implemented like the infamous i386 svr4.0, and systems where the
18984 VM page cache was not coherent with the file system buffer cache
18985 like early versions of FreeBSD and possibly contemporary NetBSD.)
18986 For shared mappings, we should conversely verify that changes get
18987 propagated back to all the places they're supposed to be.
18988
18989 Grep wants private fixed already mapped.
18990 The main things grep needs to know about mmap are:
18991 * does it exist and is it safe to write into the mmap'd area
18992 * how to use it (BSD variants) */
18993
18994#include <fcntl.h>
18995#include <sys/mman.h>
18996
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018997#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018998char *malloc ();
18999#endif
19000
19001/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019002#if !HAVE_GETPAGESIZE
19003/* Assume that all systems that can run configure have sys/param.h. */
19004# if !HAVE_SYS_PARAM_H
19005# define HAVE_SYS_PARAM_H 1
19006# endif
19007
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019008# ifdef _SC_PAGESIZE
19009# define getpagesize() sysconf(_SC_PAGESIZE)
19010# else /* no _SC_PAGESIZE */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019011# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019012# include <sys/param.h>
19013# ifdef EXEC_PAGESIZE
19014# define getpagesize() EXEC_PAGESIZE
19015# else /* no EXEC_PAGESIZE */
19016# ifdef NBPG
19017# define getpagesize() NBPG * CLSIZE
19018# ifndef CLSIZE
19019# define CLSIZE 1
19020# endif /* no CLSIZE */
19021# else /* no NBPG */
19022# ifdef NBPC
19023# define getpagesize() NBPC
19024# else /* no NBPC */
19025# ifdef PAGESIZE
19026# define getpagesize() PAGESIZE
19027# endif /* PAGESIZE */
19028# endif /* no NBPC */
19029# endif /* no NBPG */
19030# endif /* no EXEC_PAGESIZE */
19031# else /* no HAVE_SYS_PARAM_H */
19032# define getpagesize() 8192 /* punt totally */
19033# endif /* no HAVE_SYS_PARAM_H */
19034# endif /* no _SC_PAGESIZE */
19035
19036#endif /* no HAVE_GETPAGESIZE */
19037
19038int
19039main ()
19040{
19041 char *data, *data2, *data3;
19042 int i, pagesize;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019043 int fd;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019044
19045 pagesize = getpagesize ();
19046
19047 /* First, make a file with some known garbage in it. */
19048 data = (char *) malloc (pagesize);
19049 if (!data)
19050 return 1;
19051 for (i = 0; i < pagesize; ++i)
19052 *(data + i) = rand ();
19053 umask (0);
19054 fd = creat ("conftest.mmap", 0600);
19055 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019056 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019057 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019058 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019059 close (fd);
19060
19061 /* Next, try to mmap the file at a fixed address which already has
19062 something else allocated at it. If we can, also make sure that
19063 we see the same garbage. */
19064 fd = open ("conftest.mmap", O_RDWR);
19065 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019066 return 1;
19067 data2 = (char *) malloc (2 * pagesize);
19068 if (!data2)
19069 return 1;
19070 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019071 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19072 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019073 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019074 for (i = 0; i < pagesize; ++i)
19075 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019076 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019077
19078 /* Finally, make sure that changes to the mapped area do not
19079 percolate back to the file as seen by read(). (This is a bug on
19080 some variants of i386 svr4.0.) */
19081 for (i = 0; i < pagesize; ++i)
19082 *(data2 + i) = *(data2 + i) + 1;
19083 data3 = (char *) malloc (pagesize);
19084 if (!data3)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019085 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019086 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019087 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019088 for (i = 0; i < pagesize; ++i)
19089 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019090 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019091 close (fd);
19092 return 0;
19093}
19094_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019095rm -f conftest$ac_exeext
19096if { (ac_try="$ac_link"
19097case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_link") 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19106 { (case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19109esac
19110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_try") 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019115 ac_cv_func_mmap_fixed_mapped=yes
19116else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019117 echo "$as_me: program exited with status $ac_status" >&5
19118echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121( exit $ac_status )
19122ac_cv_func_mmap_fixed_mapped=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019123fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019124rm -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 +000019125fi
19126
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019127
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019128fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019129{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19130echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019131if test $ac_cv_func_mmap_fixed_mapped = yes; then
19132
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019133cat >>confdefs.h <<\_ACEOF
19134#define HAVE_MMAP 1
19135_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019136
19137fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019138rm -f conftest.mmap
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019139
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019140 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19141echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19142if test "${ac_cv_func_mmap_file+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019144else
19145 ac_ext=c
19146ac_cpp='$CPP $CPPFLAGS'
19147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19149ac_compiler_gnu=$ac_cv_c_compiler_gnu
19150
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019151 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019152 ac_cv_func_mmap_file=no
19153else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019154 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019155
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019156 /* confdefs.h. */
19157_ACEOF
19158cat confdefs.h >>conftest.$ac_ext
19159cat >>conftest.$ac_ext <<_ACEOF
19160/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000019161
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019162#include <sys/types.h>
19163#include <sys/mman.h>
19164#include <fcntl.h>
19165
19166int
19167main ()
19168{
19169
19170 int fd;
19171 fd = creat ("foo",0777);
19172 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19173 unlink ("foo");
19174 return (fd != (int) MAP_FAILED);
19175 ;
19176 return 0;
19177}
19178_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019179rm -f conftest$ac_exeext
19180if { (ac_try="$ac_link"
19181case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184esac
19185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_link") 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193esac
19194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019199 ac_cv_func_mmap_file=yes
19200else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019201 echo "$as_me: program exited with status $ac_status" >&5
19202echo "$as_me: failed program was:" >&5
19203sed 's/^/| /' conftest.$ac_ext >&5
19204
19205( exit $ac_status )
19206ac_cv_func_mmap_file=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019207fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019208rm -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 +000019209fi
19210
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019211
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019212 ac_ext=c
19213ac_cpp='$CPP $CPPFLAGS'
19214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19216ac_compiler_gnu=$ac_cv_c_compiler_gnu
19217
19218
19219fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019220{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19221echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019222if test "$ac_cv_func_mmap_file" = yes; then
19223
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019224cat >>confdefs.h <<\_ACEOF
19225#define HAVE_MMAP_FILE
19226_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019227
19228 MMAP_FILE=yes
19229
19230fi
19231
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019232 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19233echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19234if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019236else
19237 if test "$llvm_cv_os_type" = "Interix" ; then
19238 ac_cv_need_dev_zero_for_mmap=yes
19239 else
19240 ac_cv_need_dev_zero_for_mmap=no
19241 fi
19242
19243fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019244{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19245echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019246if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19247
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019248cat >>confdefs.h <<\_ACEOF
19249#define NEED_DEV_ZERO_FOR_MMAP 1
19250_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019251
19252fi
19253
19254 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19255 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019256 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19257echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019258 fi
19259 if test "$ac_cv_func_mmap_file" = "no"
19260 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019261 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19262echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019263 fi
19264fi
19265
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019266{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19267echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19268cat >conftest.$ac_ext <<_ACEOF
19269/* confdefs.h. */
19270_ACEOF
19271cat confdefs.h >>conftest.$ac_ext
19272cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000019273/* end confdefs.h. */
19274int main() {
Owen Anderson96237ec2009-05-19 22:18:56 +000019275 volatile unsigned long val = 1;
19276 __sync_synchronize();
19277 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson465fa532009-06-17 00:13:00 +000019278 __sync_add_and_fetch(&val, 1);
19279 __sync_sub_and_fetch(&val, 1);
Owen Anderson96237ec2009-05-19 22:18:56 +000019280 return 0;
19281 }
Owen Andersonff0f88e2009-05-18 23:58:51 +000019282
19283_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019284rm -f conftest.$ac_objext conftest$ac_exeext
19285if { (ac_try="$ac_link"
19286case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19289esac
19290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_link") 2>conftest.er1
19292 ac_status=$?
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
19298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19299 { (case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19302esac
19303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304 (eval "$ac_try") 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; } &&
19308 { ac_try='test -s conftest$ac_exeext'
19309 { (case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19312esac
19313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_try") 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 { echo "$as_me:$LINENO: result: yes" >&5
19319echo "${ECHO_T}yes" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000019320
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019321cat >>confdefs.h <<\_ACEOF
19322#define LLVM_MULTITHREADED 1
19323_ACEOF
Owen Anderson96237ec2009-05-19 22:18:56 +000019324
Owen Andersonff0f88e2009-05-18 23:58:51 +000019325else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019326 echo "$as_me: failed program was:" >&5
19327sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000019328
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019329 { echo "$as_me:$LINENO: result: no" >&5
19330echo "${ECHO_T}no" >&6; }
Owen Andersonff0f88e2009-05-18 23:58:51 +000019331
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019332cat >>confdefs.h <<\_ACEOF
19333#define LLVM_MULTITHREADED 0
19334_ACEOF
19335
19336 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19337echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersonff0f88e2009-05-18 23:58:51 +000019338fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019339
Owen Andersonff0f88e2009-05-18 23:58:51 +000019340rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019341 conftest$ac_exeext conftest.$ac_ext
Owen Andersonff0f88e2009-05-18 23:58:51 +000019342
19343
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019344
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019345if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019346 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19347echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19348if test "${llvm_cv_linux_mixed+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019350else
19351 ac_ext=c
19352ac_cpp='$CPP $CPPFLAGS'
19353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355ac_compiler_gnu=$ac_cv_c_compiler_gnu
19356
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019357 cat >conftest.$ac_ext <<_ACEOF
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019362/* end confdefs.h. */
19363#ifndef __x86_64__
19364 error: Not x86-64 even if uname says so!
19365 #endif
19366
19367int
19368main ()
19369{
19370
19371 ;
19372 return 0;
19373}
19374_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019375rm -f conftest.$ac_objext
19376if { (ac_try="$ac_compile"
19377case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19380esac
19381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_compile") 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19390 { (case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19393esac
19394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_try") 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; } &&
19399 { ac_try='test -s conftest.$ac_objext'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19403esac
19404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019409 llvm_cv_linux_mixed=no
19410else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019411 echo "$as_me: failed program was:" >&5
19412sed 's/^/| /' conftest.$ac_ext >&5
19413
19414 llvm_cv_linux_mixed=yes
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019415fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019416
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 ac_ext=c
19419ac_cpp='$CPP $CPPFLAGS'
19420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422ac_compiler_gnu=$ac_cv_c_compiler_gnu
19423
19424
19425fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019426{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19427echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019428
19429 if test "$llvm_cv_linux_mixed" = "yes"; then
19430 llvm_cv_target_arch="x86"
19431 ARCH="x86"
19432 fi
19433fi
19434
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019435
Reid Spencer59c09b32007-07-30 20:13:24 +000019436for ac_func in __dso_handle
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019437do
19438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19439{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19441if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19443else
19444 cat >conftest.$ac_ext <<_ACEOF
19445/* confdefs.h. */
19446_ACEOF
19447cat confdefs.h >>conftest.$ac_ext
19448cat >>conftest.$ac_ext <<_ACEOF
19449/* end confdefs.h. */
19450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19452#define $ac_func innocuous_$ac_func
19453
19454/* System header to define __stub macros and hopefully few prototypes,
19455 which can conflict with char $ac_func (); below.
19456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19457 <limits.h> exists even on freestanding compilers. */
19458
19459#ifdef __STDC__
19460# include <limits.h>
19461#else
19462# include <assert.h>
19463#endif
19464
19465#undef $ac_func
19466
19467/* Override any GCC internal prototype to avoid an error.
19468 Use char because int might match the return type of a GCC
19469 builtin and then its argument prototype would still apply. */
19470#ifdef __cplusplus
19471extern "C"
19472#endif
19473char $ac_func ();
19474/* The GNU C library defines this for functions which it implements
19475 to always fail with ENOSYS. Some functions are actually named
19476 something starting with __ and the normal name is an alias. */
19477#if defined __stub_$ac_func || defined __stub___$ac_func
19478choke me
19479#endif
19480
19481int
19482main ()
19483{
19484return $ac_func ();
19485 ;
19486 return 0;
19487}
19488_ACEOF
19489rm -f conftest.$ac_objext conftest$ac_exeext
19490if { (ac_try="$ac_link"
19491case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19494esac
19495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_link") 2>conftest.er1
19497 ac_status=$?
19498 grep -v '^ *+' conftest.er1 >conftest.err
19499 rm -f conftest.er1
19500 cat conftest.err >&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } &&
19503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19504 { (case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19507esac
19508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_try") 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; } &&
19513 { ac_try='test -s conftest$ac_exeext'
19514 { (case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517esac
19518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_try") 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 eval "$as_ac_var=yes"
19524else
19525 echo "$as_me: failed program was:" >&5
19526sed 's/^/| /' conftest.$ac_ext >&5
19527
19528 eval "$as_ac_var=no"
19529fi
19530
19531rm -f core conftest.err conftest.$ac_objext \
19532 conftest$ac_exeext conftest.$ac_ext
19533fi
19534ac_res=`eval echo '${'$as_ac_var'}'`
19535 { echo "$as_me:$LINENO: result: $ac_res" >&5
19536echo "${ECHO_T}$ac_res" >&6; }
19537if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer59c09b32007-07-30 20:13:24 +000019538 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer59c09b32007-07-30 20:13:24 +000019540_ACEOF
19541
19542fi
19543done
19544
19545
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019546{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19547echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19548if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019550else
19551 llvm_cv_llvmgcc_sanity="no"
19552if test -x "$LLVMGCC" ; then
19553 cp /dev/null conftest.c
19554 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19555 grep 'target datalayout =' > /dev/null 2>&1
19556 if test $? -eq 0 ; then
19557 llvm_cv_llvmgcc_sanity="yes"
19558 fi
19559 rm conftest.c
19560fi
19561fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019562{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19563echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019564
19565if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019566 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19567echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019568 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19569 LLVMCC1=$llvmcc1path
19570
19571 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19572 LLVMCC1PLUS=$llvmcc1pluspath
19573
19574 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19575 LLVMGCCDIR=$llvmgccdir
19576
19577 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
19578 LLVMGCCLIBEXEC=$llvmgcclibexec
19579
Tanya Lattner9894c2c2008-10-07 22:21:03 +000019580 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019581 LLVMGCC_LANGS=$llvmgcclangs
19582
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019583 { echo "$as_me:$LINENO: result: ok" >&5
19584echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019585fi
19586
19587SHLIBEXT=$libltdl_cv_shlibext
19588
19589
19590# Translate the various configuration directories and other basic
19591# information into substitutions that will end up in Makefile.config.in
19592# that these configured values can be used by the makefiles
19593if test "${prefix}" = "NONE" ; then
19594 prefix="/usr/local"
19595fi
19596eval LLVM_PREFIX="${prefix}";
19597eval LLVM_BINDIR="${prefix}/bin";
19598eval LLVM_LIBDIR="${prefix}/lib";
19599eval LLVM_DATADIR="${prefix}/share/llvm";
19600eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19601eval LLVM_ETCDIR="${prefix}/etc/llvm";
19602eval LLVM_INCLUDEDIR="${prefix}/include";
19603eval LLVM_INFODIR="${prefix}/info";
19604eval LLVM_MANDIR="${prefix}/man";
19605LLVM_CONFIGTIME=`date`
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617# Place the various directores into the config.h file as #defines so that we
19618# can know about the installation paths within LLVM.
19619
19620cat >>confdefs.h <<_ACEOF
19621#define LLVM_PREFIX "$LLVM_PREFIX"
19622_ACEOF
19623
19624
19625cat >>confdefs.h <<_ACEOF
19626#define LLVM_BINDIR "$LLVM_BINDIR"
19627_ACEOF
19628
19629
19630cat >>confdefs.h <<_ACEOF
19631#define LLVM_LIBDIR "$LLVM_LIBDIR"
19632_ACEOF
19633
19634
19635cat >>confdefs.h <<_ACEOF
19636#define LLVM_DATADIR "$LLVM_DATADIR"
19637_ACEOF
19638
19639
19640cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000019641#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019642_ACEOF
19643
19644
19645cat >>confdefs.h <<_ACEOF
19646#define LLVM_ETCDIR "$LLVM_ETCDIR"
19647_ACEOF
19648
19649
19650cat >>confdefs.h <<_ACEOF
19651#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19652_ACEOF
19653
19654
19655cat >>confdefs.h <<_ACEOF
19656#define LLVM_INFODIR "$LLVM_INFODIR"
19657_ACEOF
19658
19659
19660cat >>confdefs.h <<_ACEOF
19661#define LLVM_MANDIR "$LLVM_MANDIR"
19662_ACEOF
19663
19664
19665cat >>confdefs.h <<_ACEOF
19666#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19667_ACEOF
19668
19669
Eric Christopher8b274472007-12-01 00:34:39 +000019670cat >>confdefs.h <<_ACEOF
19671#define LLVM_HOSTTRIPLE "$host"
19672_ACEOF
19673
19674
Gordon Henriksen016ec472007-10-02 09:50:32 +000019675# Determine which bindings to build.
19676if test "$BINDINGS_TO_BUILD" = auto ; then
19677 BINDINGS_TO_BUILD=""
19678 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19679 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19680 fi
19681fi
19682BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19683
19684
19685# This isn't really configurey, but it avoids having to repeat the list in
19686# other files.
19687ALL_BINDINGS=ocaml
19688
19689
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019690# Do any work necessary to ensure that bindings have what they need.
19691binding_prereqs_failed=0
19692for a_binding in $BINDINGS_TO_BUILD ; do
19693 case "$a_binding" in
19694 ocaml)
19695 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019696 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19697echo "$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 +000019698 binding_prereqs_failed=1
19699 fi
19700 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019701 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19702echo "$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 +000019703 binding_prereqs_failed=1
19704 fi
19705 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019706 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19707echo "$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 +000019708 fi
19709 if test "x$with_ocaml_libdir" != xauto ; then
19710 OCAML_LIBDIR=$with_ocaml_libdir
19711
19712 else
19713 ocaml_stdlib="`"$OCAMLC" -where`"
19714 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19715 then
19716 # ocaml stdlib is beneath our prefix; use stdlib
19717 OCAML_LIBDIR=$ocaml_stdlib
19718
19719 else
19720 # ocaml stdlib is outside our prefix; use libdir/ocaml
19721 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19722
19723 fi
19724 fi
19725 ;;
19726 esac
19727done
19728if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019729 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19730echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19731 { (exit 1); exit 1; }; }
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019732fi
19733
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019734{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19735echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19736if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019738else
19739 ac_ext=cpp
19740ac_cpp='$CXXCPP $CPPFLAGS'
19741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19744
19745 oldcxxflags="$CXXFLAGS"
19746 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019747 cat >conftest.$ac_ext <<_ACEOF
19748/* confdefs.h. */
19749_ACEOF
19750cat confdefs.h >>conftest.$ac_ext
19751cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019752/* end confdefs.h. */
19753
19754int
19755main ()
19756{
19757
19758 ;
19759 return 0;
19760}
19761_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019762rm -f conftest.$ac_objext
19763if { (ac_try="$ac_compile"
19764case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19767esac
19768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19780esac
19781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019796 llvm_cv_cxx_visibility_inlines_hidden=yes
19797else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019798 echo "$as_me: failed program was:" >&5
19799sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019802fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019803
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19805 CXXFLAGS="$oldcxxflags"
19806 ac_ext=c
19807ac_cpp='$CPP $CPPFLAGS'
19808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19810ac_compiler_gnu=$ac_cv_c_compiler_gnu
19811
19812
19813fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019814{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19815echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019816if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19817 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19818
19819else
19820 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19821
19822fi
19823
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019824
Nick Lewycky6eab6652009-03-05 08:20:44 +000019825if test "$llvm_cv_link_use_r" = "yes" ; then
19826 RPATH="-Wl,-R"
19827else
19828 RPATH="-Wl,-rpath"
19829fi
19830
19831
19832if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19833 RDYNAMIC="-Wl,-export-dynamic"
19834else
19835 RDYNAMIC=""
19836fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000019837
19838
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019839
19840ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19841
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000019842ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19843
19844ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19845
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000019846ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19847
Daniel Dunbar0e18f262009-11-25 04:37:28 +000019848ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19849
Chandler Carruth1ec7df12009-10-26 01:35:46 +000019850ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019851
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019852
19853ac_config_files="$ac_config_files Makefile.config"
19854
19855
19856ac_config_files="$ac_config_files llvm.spec"
19857
19858
19859ac_config_files="$ac_config_files docs/doxygen.cfg"
19860
19861
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000019862ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19863
19864
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019865ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19866
19867
19868ac_config_commands="$ac_config_commands setup"
19869
19870ac_config_commands="$ac_config_commands Makefile"
19871
19872
19873ac_config_commands="$ac_config_commands Makefile.common"
19874
19875
19876ac_config_commands="$ac_config_commands examples/Makefile"
19877
19878
19879ac_config_commands="$ac_config_commands lib/Makefile"
19880
19881
19882ac_config_commands="$ac_config_commands runtime/Makefile"
19883
19884
19885ac_config_commands="$ac_config_commands test/Makefile"
19886
19887
19888ac_config_commands="$ac_config_commands test/Makefile.tests"
19889
19890
Bill Wendling9b9833f2009-01-04 23:12:30 +000019891ac_config_commands="$ac_config_commands unittests/Makefile"
19892
19893
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019894ac_config_commands="$ac_config_commands tools/Makefile"
19895
19896
19897ac_config_commands="$ac_config_commands utils/Makefile"
19898
19899
19900ac_config_commands="$ac_config_commands projects/Makefile"
19901
19902
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000019903ac_config_commands="$ac_config_commands bindings/Makefile"
19904
19905
19906ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19907
19908
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019909
19910cat >confcache <<\_ACEOF
19911# This file is a shell script that caches the results of configure
19912# tests run on this system so they can be shared between configure
19913# scripts and configure runs, see configure's option --config-cache.
19914# It is not useful on other systems. If it contains results you don't
19915# want to keep, you may remove or edit it.
19916#
19917# config.status only pays attention to the cache file if you give it
19918# the --recheck option to rerun configure.
19919#
19920# `ac_cv_env_foo' variables (set or unset) will be overridden when
19921# loading this file, other *unset* `ac_cv_foo' will be assigned the
19922# following values.
19923
19924_ACEOF
19925
19926# The following way of writing the cache mishandles newlines in values,
19927# but we know of no workaround that is simple, portable, and efficient.
19928# So, we kill variables containing newlines.
19929# Ultrix sh set writes to stderr and can't be redirected directly,
19930# and sets the high bit in the cache file unless we assign to the vars.
19931(
19932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19933 eval ac_val=\$$ac_var
19934 case $ac_val in #(
19935 *${as_nl}*)
19936 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019937 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19938echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019939 esac
19940 case $ac_var in #(
19941 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019942 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019943 esac ;;
19944 esac
19945 done
19946
19947 (set) 2>&1 |
19948 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19949 *${as_nl}ac_space=\ *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019950 # `set' does not quote correctly, so add quotes (double-quote
19951 # substitution turns \\\\ into \\, and sed turns \\ into \).
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019952 sed -n \
19953 "s/'/'\\\\''/g;
19954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19955 ;; #(
19956 *)
19957 # `set' quotes correctly as required by POSIX, so do not add quotes.
19958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19959 ;;
19960 esac |
19961 sort
19962) |
19963 sed '
19964 /^ac_cv_env_/b end
19965 t clear
19966 :clear
19967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19968 t end
19969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19970 :end' >>confcache
19971if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19972 if test -w "$cache_file"; then
19973 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019974 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19975echo "$as_me: updating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019976 cat confcache >$cache_file
19977 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019978 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19979echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019980 fi
19981fi
19982rm -f confcache
19983
19984test "x$prefix" = xNONE && prefix=$ac_default_prefix
19985# Let make expand exec_prefix.
19986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19987
19988DEFS=-DHAVE_CONFIG_H
19989
19990ac_libobjs=
19991ac_ltlibobjs=
19992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19993 # 1. Remove the extension, and $U if already installed.
19994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019995 ac_i=`echo "$ac_i" | sed "$ac_script"`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19997 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019998 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19999 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020000done
20001LIBOBJS=$ac_libobjs
20002
20003LTLIBOBJS=$ac_ltlibobjs
20004
20005
20006if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020007 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20008Usually this means the macro was only invoked conditionally." >&5
20009echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20010Usually this means the macro was only invoked conditionally." >&2;}
20011 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020012fi
20013if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020014 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20015Usually this means the macro was only invoked conditionally." >&5
20016echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20017Usually this means the macro was only invoked conditionally." >&2;}
20018 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020019fi
20020
20021: ${CONFIG_STATUS=./config.status}
20022ac_clean_files_save=$ac_clean_files
20023ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020024{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20025echo "$as_me: creating $CONFIG_STATUS" >&6;}
20026cat >$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020027#! $SHELL
20028# Generated by $as_me.
20029# Run this file to recreate the current configuration.
20030# Compiler output produced by configure, useful for debugging
20031# configure, is in config.log if it exists.
20032
20033debug=false
20034ac_cs_recheck=false
20035ac_cs_silent=false
20036SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020037_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020038
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020039cat >>$CONFIG_STATUS <<\_ACEOF
20040## --------------------- ##
20041## M4sh Initialization. ##
20042## --------------------- ##
20043
20044# Be Bourne compatible
20045if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020046 emulate sh
20047 NULLCMD=:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020049 # is contrary to our usage. Disable this feature.
20050 alias -g '${1+"$@"}'='"$@"'
20051 setopt NO_GLOB_SUBST
20052else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020053 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020054fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020055BIN_SH=xpg4; export BIN_SH # for Tru64
20056DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020057
20058
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020059# PATH needs CR
20060# Avoid depending upon Character Ranges.
20061as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20062as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20063as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20064as_cr_digits='0123456789'
20065as_cr_alnum=$as_cr_Letters$as_cr_digits
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020066
20067# The user is always right.
20068if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020069 echo "#! /bin/sh" >conf$$.sh
20070 echo "exit 0" >>conf$$.sh
20071 chmod +x conf$$.sh
20072 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20073 PATH_SEPARATOR=';'
20074 else
20075 PATH_SEPARATOR=:
20076 fi
20077 rm -f conf$$.sh
20078fi
20079
20080# Support unset when possible.
20081if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20082 as_unset=unset
20083else
20084 as_unset=false
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020085fi
20086
20087
20088# IFS
20089# We need space, tab and new line, in precisely that order. Quoting is
20090# there to prevent editors from complaining about space-tab.
20091# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20092# splitting by setting IFS to empty value.)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020093as_nl='
20094'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020095IFS=" "" $as_nl"
20096
20097# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020098case $0 in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020099 *[\\/]* ) as_myself=$0 ;;
20100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20101for as_dir in $PATH
20102do
20103 IFS=$as_save_IFS
20104 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20106done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020107IFS=$as_save_IFS
20108
20109 ;;
20110esac
20111# We did not find ourselves, most probably we were run as `sh COMMAND'
20112# in which case we are not to be found in the path.
20113if test "x$as_myself" = x; then
20114 as_myself=$0
20115fi
20116if test ! -f "$as_myself"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020117 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20118 { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020119fi
20120
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020121# Work around bugs in pre-3.0 UWIN ksh.
20122for as_var in ENV MAIL MAILPATH
20123do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020124done
20125PS1='$ '
20126PS2='> '
20127PS4='+ '
20128
20129# NLS nuisances.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020130for as_var in \
20131 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20132 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20133 LC_TELEPHONE LC_TIME
20134do
20135 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20136 eval $as_var=C; export $as_var
20137 else
20138 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Edwin Törökc27310c2010-01-26 08:50:50 +000020139 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020140done
Edwin Törökc27310c2010-01-26 08:50:50 +000020141
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020142# Required to use basename.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020143if expr a : '\(a\)' >/dev/null 2>&1 &&
20144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20145 as_expr=expr
20146else
20147 as_expr=false
20148fi
20149
20150if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20151 as_basename=basename
20152else
20153 as_basename=false
20154fi
20155
20156
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020157# Name of the executable.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020158as_me=`$as_basename -- "$0" ||
20159$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20160 X"$0" : 'X\(//\)$' \| \
20161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020162echo X/"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020163 sed '/^.*\/\([^/][^/]*\)\/*$/{
20164 s//\1/
20165 q
20166 }
20167 /^X\/\(\/\/\)$/{
20168 s//\1/
20169 q
20170 }
20171 /^X\/\(\/\).*/{
20172 s//\1/
20173 q
20174 }
20175 s/.*/./; q'`
20176
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020177# CDPATH.
20178$as_unset CDPATH
20179
20180
20181
20182 as_lineno_1=$LINENO
20183 as_lineno_2=$LINENO
20184 test "x$as_lineno_1" != "x$as_lineno_2" &&
20185 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20186
20187 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20188 # uniformly replaced by the line number. The first 'sed' inserts a
20189 # line-number line after each line using $LINENO; the second 'sed'
20190 # does the real work. The second script uses 'N' to pair each
20191 # line-number line with the line containing $LINENO, and appends
20192 # trailing '-' during substitution so that $LINENO is not a special
20193 # case at line end.
20194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20195 # scripts with optimization help from Paolo Bonzini. Blame Lee
20196 # E. McMahon (1931-1989) for sed's syntax. :-)
20197 sed -n '
20198 p
20199 /[$]LINENO/=
20200 ' <$as_myself |
20201 sed '
20202 s/[$]LINENO.*/&-/
20203 t lineno
20204 b
20205 :lineno
20206 N
20207 :loop
20208 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20209 t loop
20210 s/-\n.*//
20211 ' >$as_me.lineno &&
20212 chmod +x "$as_me.lineno" ||
20213 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20214 { (exit 1); exit 1; }; }
20215
20216 # Don't try to exec as it changes $[0], causing all sort of problems
20217 # (the dirname of $[0] is not the place where we might find the
20218 # original and so on. Autoconf is especially sensitive to this).
20219 . "./$as_me.lineno"
20220 # Exit status is that of the last command.
20221 exit
20222}
20223
20224
20225if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20226 as_dirname=dirname
20227else
20228 as_dirname=false
20229fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020230
20231ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020232case `echo -n x` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020233-n*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020234 case `echo 'x\c'` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020235 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020236 *) ECHO_C='\c';;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020237 esac;;
20238*)
20239 ECHO_N='-n';;
20240esac
20241
Jeffrey Yasskinb6450492010-02-03 02:11:49 +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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020249rm -f conf$$ conf$$.exe conf$$.file
20250if test -d conf$$.dir; then
20251 rm -f conf$$.dir/conf$$.file
20252else
20253 rm -f conf$$.dir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020254 mkdir conf$$.dir
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020255fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020256echo >conf$$.file
20257if ln -s conf$$.file conf$$ 2>/dev/null; then
20258 as_ln_s='ln -s'
20259 # ... but there are two gotchas:
20260 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20261 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20262 # In both cases, we have to default to `cp -p'.
20263 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020264 as_ln_s='cp -p'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020265elif ln conf$$.file conf$$ 2>/dev/null; then
20266 as_ln_s=ln
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020267else
20268 as_ln_s='cp -p'
20269fi
20270rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20271rmdir conf$$.dir 2>/dev/null
20272
20273if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020274 as_mkdir_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020275else
20276 test -d ./-p && rmdir ./-p
20277 as_mkdir_p=false
20278fi
20279
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020280# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20281# systems may use methods other than mode bits to determine executability.
20282cat >conf$$.file <<_ASEOF
20283#! /bin/sh
20284exit 0
20285_ASEOF
20286chmod +x conf$$.file
20287if test -x conf$$.file >/dev/null 2>&1; then
20288 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020289else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020290 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020291fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020292rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020293
20294# Sed expression to map a string onto a valid CPP name.
20295as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20296
20297# Sed expression to map a string onto a valid variable name.
20298as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20299
20300
20301exec 6>&1
20302
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020303# Save the log message, to keep $[0] and so on meaningful, and to
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020304# report actual input values of CONFIG_FILES etc. instead of their
20305# values after options handling.
20306ac_log="
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000020307This file was extended by llvm $as_me 2.7svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020308generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020309
20310 CONFIG_FILES = $CONFIG_FILES
20311 CONFIG_HEADERS = $CONFIG_HEADERS
20312 CONFIG_LINKS = $CONFIG_LINKS
20313 CONFIG_COMMANDS = $CONFIG_COMMANDS
20314 $ $0 $@
20315
20316on `(hostname || uname -n) 2>/dev/null | sed 1q`
20317"
20318
20319_ACEOF
20320
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020321cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020322# Files that config.status was made for.
20323config_files="$ac_config_files"
20324config_headers="$ac_config_headers"
20325config_commands="$ac_config_commands"
20326
20327_ACEOF
20328
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020329cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020330ac_cs_usage="\
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020331\`$as_me' instantiates files from templates according to the
20332current configuration.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020333
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020334Usage: $0 [OPTIONS] [FILE]...
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020335
20336 -h, --help print this help, then exit
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020337 -V, --version print version number, then exit
20338 -q, --quiet do not print progress messages
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020339 -d, --debug don't remove temporary files
20340 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020341 --file=FILE[:TEMPLATE]
20342 instantiate the configuration file FILE
20343 --header=FILE[:TEMPLATE]
20344 instantiate the configuration header FILE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020345
20346Configuration files:
20347$config_files
20348
20349Configuration headers:
20350$config_headers
20351
20352Configuration commands:
20353$config_commands
20354
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020355Report bugs to <bug-autoconf@gnu.org>."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020356
20357_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020358cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020359ac_cs_version="\\
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000020360llvm config.status 2.7svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020361configured by $0, generated by GNU Autoconf 2.60,
20362 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020363
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020364Copyright (C) 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020365This config.status script is free software; the Free Software Foundation
20366gives unlimited permission to copy, distribute and modify it."
20367
20368ac_pwd='$ac_pwd'
20369srcdir='$srcdir'
20370INSTALL='$INSTALL'
20371_ACEOF
20372
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020373cat >>$CONFIG_STATUS <<\_ACEOF
20374# If no file are specified by the user, then we need to provide default
20375# value. By we need to know if files were specified by the user.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020376ac_need_defaults=:
20377while test $# != 0
20378do
20379 case $1 in
20380 --*=*)
20381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20382 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20383 ac_shift=:
20384 ;;
20385 *)
20386 ac_option=$1
20387 ac_optarg=$2
20388 ac_shift=shift
20389 ;;
20390 esac
20391
20392 case $ac_option in
20393 # Handling of the options.
20394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20395 ac_cs_recheck=: ;;
20396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020397 echo "$ac_cs_version"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020398 --debug | --debu | --deb | --de | --d | -d )
20399 debug=: ;;
20400 --file | --fil | --fi | --f )
20401 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020402 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020403 ac_need_defaults=false;;
20404 --header | --heade | --head | --hea )
20405 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020406 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020407 ac_need_defaults=false;;
20408 --he | --h)
20409 # Conflict between --help and --header
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020410 { echo "$as_me: error: ambiguous option: $1
20411Try \`$0 --help' for more information." >&2
20412 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020413 --help | --hel | -h )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020414 echo "$ac_cs_usage"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20416 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20417 ac_cs_silent=: ;;
20418
20419 # This is an error.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020420 -*) { echo "$as_me: error: unrecognized option: $1
20421Try \`$0 --help' for more information." >&2
20422 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020423
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020424 *) ac_config_targets="$ac_config_targets $1"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020425 ac_need_defaults=false ;;
20426
20427 esac
20428 shift
20429done
20430
20431ac_configure_extra_args=
20432
20433if $ac_cs_silent; then
20434 exec 6>/dev/null
20435 ac_configure_extra_args="$ac_configure_extra_args --silent"
20436fi
20437
20438_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020439cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020440if \$ac_cs_recheck; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020441 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20442 CONFIG_SHELL=$SHELL
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020443 export CONFIG_SHELL
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020444 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020445fi
20446
20447_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020448cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020449exec 5>>config.log
20450{
20451 echo
20452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20453## Running $as_me. ##
20454_ASBOX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020455 echo "$ac_log"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020456} >&5
20457
20458_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020459cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020460#
20461# INIT-COMMANDS
20462#
20463llvm_src="${srcdir}"
20464
20465_ACEOF
20466
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020467cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020468
20469# Handling of arguments.
20470for ac_config_target in $ac_config_targets
20471do
20472 case $ac_config_target in
20473 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000020474 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20475 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000020476 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar0e18f262009-11-25 04:37:28 +000020477 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth1ec7df12009-10-26 01:35:46 +000020478 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020479 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20480 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20481 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000020482 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020483 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20484 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20485 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20486 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20487 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20488 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20489 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20490 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20491 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000020492 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020493 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20494 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20495 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000020496 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20497 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020498
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20500echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20501 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020502 esac
20503done
20504
20505
20506# If the user did not use the arguments to specify the items to instantiate,
20507# then the envvar interface is used. Set only those that are not.
20508# We use the long form for the default assignment because of an extremely
20509# bizarre bug on SunOS 4.1.3.
20510if $ac_need_defaults; then
20511 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20512 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20513 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20514fi
20515
20516# Have a temporary directory for convenience. Make it in the build tree
20517# simply because there is no reason against having it here, and in addition,
20518# creating and moving files from /tmp can sometimes cause problems.
20519# Hook for its removal unless debugging.
20520# Note that there is a small window in which the directory will not be cleaned:
20521# after its creation but before its name has been assigned to `$tmp'.
20522$debug ||
20523{
20524 tmp=
20525 trap 'exit_status=$?
20526 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20527' 0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020528 trap '{ (exit 1); exit 1; }' 1 2 13 15
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020529}
20530# Create a (secure) tmp directory for tmp files.
20531
20532{
20533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20534 test -n "$tmp" && test -d "$tmp"
20535} ||
20536{
20537 tmp=./conf$$-$RANDOM
20538 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020539} ||
20540{
20541 echo "$me: cannot create a temporary directory in ." >&2
20542 { (exit 1); exit 1; }
20543}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020544
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020545#
20546# Set up the sed scripts for CONFIG_FILES section.
20547#
20548
20549# No need to generate the scripts if there are no CONFIG_FILES.
20550# This happens for instance when ./config.status config.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020551if test -n "$CONFIG_FILES"; then
20552
20553_ACEOF
20554
20555
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020556
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020557ac_delim='%!_!# '
20558for ac_last_try in false false false false false :; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020559 cat >conf$$subs.sed <<_ACEOF
20560SHELL!$SHELL$ac_delim
20561PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20562PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20563PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20564PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20565PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20566PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20567exec_prefix!$exec_prefix$ac_delim
20568prefix!$prefix$ac_delim
20569program_transform_name!$program_transform_name$ac_delim
20570bindir!$bindir$ac_delim
20571sbindir!$sbindir$ac_delim
20572libexecdir!$libexecdir$ac_delim
20573datarootdir!$datarootdir$ac_delim
20574datadir!$datadir$ac_delim
20575sysconfdir!$sysconfdir$ac_delim
20576sharedstatedir!$sharedstatedir$ac_delim
20577localstatedir!$localstatedir$ac_delim
20578includedir!$includedir$ac_delim
20579oldincludedir!$oldincludedir$ac_delim
20580docdir!$docdir$ac_delim
20581infodir!$infodir$ac_delim
20582htmldir!$htmldir$ac_delim
20583dvidir!$dvidir$ac_delim
20584pdfdir!$pdfdir$ac_delim
20585psdir!$psdir$ac_delim
20586libdir!$libdir$ac_delim
20587localedir!$localedir$ac_delim
20588mandir!$mandir$ac_delim
20589DEFS!$DEFS$ac_delim
20590ECHO_C!$ECHO_C$ac_delim
20591ECHO_N!$ECHO_N$ac_delim
20592ECHO_T!$ECHO_T$ac_delim
20593LIBS!$LIBS$ac_delim
20594build_alias!$build_alias$ac_delim
20595host_alias!$host_alias$ac_delim
20596target_alias!$target_alias$ac_delim
20597LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20598subdirs!$subdirs$ac_delim
20599build!$build$ac_delim
20600build_cpu!$build_cpu$ac_delim
20601build_vendor!$build_vendor$ac_delim
20602build_os!$build_os$ac_delim
20603host!$host$ac_delim
20604host_cpu!$host_cpu$ac_delim
20605host_vendor!$host_vendor$ac_delim
20606host_os!$host_os$ac_delim
20607target!$target$ac_delim
20608target_cpu!$target_cpu$ac_delim
20609target_vendor!$target_vendor$ac_delim
20610target_os!$target_os$ac_delim
20611OS!$OS$ac_delim
20612HOST_OS!$HOST_OS$ac_delim
20613TARGET_OS!$TARGET_OS$ac_delim
20614LINKALL!$LINKALL$ac_delim
20615NOLINKALL!$NOLINKALL$ac_delim
20616LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20617LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20618ARCH!$ARCH$ac_delim
20619ENDIAN!$ENDIAN$ac_delim
20620CC!$CC$ac_delim
20621CFLAGS!$CFLAGS$ac_delim
20622LDFLAGS!$LDFLAGS$ac_delim
20623CPPFLAGS!$CPPFLAGS$ac_delim
20624ac_ct_CC!$ac_ct_CC$ac_delim
20625EXEEXT!$EXEEXT$ac_delim
20626OBJEXT!$OBJEXT$ac_delim
20627CPP!$CPP$ac_delim
20628GREP!$GREP$ac_delim
20629EGREP!$EGREP$ac_delim
20630LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20631BUILD_CC!$BUILD_CC$ac_delim
20632BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20633BUILD_CXX!$BUILD_CXX$ac_delim
20634CVSBUILD!$CVSBUILD$ac_delim
20635ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20636ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20637DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20638ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20639EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20640DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20641DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20642JIT!$JIT$ac_delim
20643TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20644ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20645ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20646ENABLE_PIC!$ENABLE_PIC$ac_delim
20647TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20648LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20649LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20650LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20651LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20652ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20653OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20654EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20655BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin30f2e642010-02-18 04:43:02 +000020656ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020657_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020658
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020659 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020660 break
20661 elif $ac_last_try; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020662 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20663echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20664 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020665 else
20666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20667 fi
20668done
20669
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020670ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20671if test -n "$ac_eof"; then
20672 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20673 ac_eof=`expr $ac_eof + 1`
20674fi
20675
20676cat >>$CONFIG_STATUS <<_ACEOF
20677cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020679_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020680sed '
20681s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20682s/^/s,@/; s/!/@,|#_!!_#|/
20683:n
20684t n
20685s/'"$ac_delim"'$/,g/; t
20686s/$/\\/; p
20687N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20688' >>$CONFIG_STATUS <conf$$subs.sed
20689rm -f conf$$subs.sed
20690cat >>$CONFIG_STATUS <<_ACEOF
20691CEOF$ac_eof
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020692_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020693
20694
20695ac_delim='%!_!# '
20696for ac_last_try in false false false false false :; do
20697 cat >conf$$subs.sed <<_ACEOF
20698ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20699CXX!$CXX$ac_delim
20700CXXFLAGS!$CXXFLAGS$ac_delim
20701ac_ct_CXX!$ac_ct_CXX$ac_delim
20702NM!$NM$ac_delim
20703ifGNUmake!$ifGNUmake$ac_delim
20704LN_S!$LN_S$ac_delim
20705CMP!$CMP$ac_delim
20706CP!$CP$ac_delim
20707DATE!$DATE$ac_delim
20708FIND!$FIND$ac_delim
20709MKDIR!$MKDIR$ac_delim
20710MV!$MV$ac_delim
20711RANLIB!$RANLIB$ac_delim
20712AR!$AR$ac_delim
20713RM!$RM$ac_delim
20714SED!$SED$ac_delim
20715TAR!$TAR$ac_delim
20716BINPWD!$BINPWD$ac_delim
20717GRAPHVIZ!$GRAPHVIZ$ac_delim
20718DOT!$DOT$ac_delim
20719FDP!$FDP$ac_delim
20720NEATO!$NEATO$ac_delim
20721TWOPI!$TWOPI$ac_delim
20722CIRCO!$CIRCO$ac_delim
20723GV!$GV$ac_delim
20724DOTTY!$DOTTY$ac_delim
20725PERL!$PERL$ac_delim
20726HAVE_PERL!$HAVE_PERL$ac_delim
20727INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20728INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20729INSTALL_DATA!$INSTALL_DATA$ac_delim
20730BZIP2!$BZIP2$ac_delim
20731DOXYGEN!$DOXYGEN$ac_delim
20732GROFF!$GROFF$ac_delim
20733GZIP!$GZIP$ac_delim
20734POD2HTML!$POD2HTML$ac_delim
20735POD2MAN!$POD2MAN$ac_delim
20736RUNTEST!$RUNTEST$ac_delim
20737TCLSH!$TCLSH$ac_delim
20738ZIP!$ZIP$ac_delim
20739OCAMLC!$OCAMLC$ac_delim
20740OCAMLOPT!$OCAMLOPT$ac_delim
20741OCAMLDEP!$OCAMLDEP$ac_delim
20742OCAMLDOC!$OCAMLDOC$ac_delim
20743GAS!$GAS$ac_delim
20744INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20745INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20746CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20747CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20748LIBADD_DL!$LIBADD_DL$ac_delim
20749LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20750LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20751LLVMGCC!$LLVMGCC$ac_delim
20752LLVMGXX!$LLVMGXX$ac_delim
20753NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20754NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20755USE_UDIS86!$USE_UDIS86$ac_delim
20756USE_OPROFILE!$USE_OPROFILE$ac_delim
20757HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20758HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20759MMAP_FILE!$MMAP_FILE$ac_delim
20760LLVMCC1!$LLVMCC1$ac_delim
20761LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20762LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20763LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020764LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20765SHLIBEXT!$SHLIBEXT$ac_delim
20766LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20767LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20768LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20769LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20770LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20771LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20772LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20773LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20774LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20775LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20776BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20777ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20778OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20779ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20780RPATH!$RPATH$ac_delim
20781RDYNAMIC!$RDYNAMIC$ac_delim
20782LIBOBJS!$LIBOBJS$ac_delim
20783LTLIBOBJS!$LTLIBOBJS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020784_ACEOF
20785
Daniel Dunbar896f7b52010-02-23 07:56:31 +000020786 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020787 break
20788 elif $ac_last_try; then
20789 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20790echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20791 { (exit 1); exit 1; }; }
20792 else
20793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20794 fi
20795done
20796
20797ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20798if test -n "$ac_eof"; then
20799 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20800 ac_eof=`expr $ac_eof + 1`
20801fi
20802
20803cat >>$CONFIG_STATUS <<_ACEOF
20804cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20805/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20806_ACEOF
20807sed '
20808s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20809s/^/s,@/; s/!/@,|#_!!_#|/
20810:n
20811t n
20812s/'"$ac_delim"'$/,g/; t
20813s/$/\\/; p
20814N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20815' >>$CONFIG_STATUS <conf$$subs.sed
20816rm -f conf$$subs.sed
20817cat >>$CONFIG_STATUS <<_ACEOF
20818:end
20819s/|#_!!_#|//g
20820CEOF$ac_eof
20821_ACEOF
20822
20823
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020824# VPATH may cause trouble with some makes, so we remove $(srcdir),
20825# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20826# trailing colons and then remove the whole line if VPATH becomes empty
20827# (actually we leave an empty line to preserve line numbers).
20828if test "x$srcdir" = x.; then
20829 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20830s/:*\$(srcdir):*/:/
20831s/:*\${srcdir}:*/:/
20832s/:*@srcdir@:*/:/
20833s/^\([^=]*=[ ]*\):*/\1/
20834s/:*$//
20835s/^[^=]*=[ ]*$//
20836}'
20837fi
20838
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020839cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020840fi # test -n "$CONFIG_FILES"
20841
20842
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020843for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020844do
20845 case $ac_tag in
20846 :[FHLC]) ac_mode=$ac_tag; continue;;
20847 esac
20848 case $ac_mode$ac_tag in
20849 :[FHL]*:*);;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020850 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20851echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20852 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020853 :[FH]-) ac_tag=-:-;;
20854 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20855 esac
20856 ac_save_IFS=$IFS
20857 IFS=:
20858 set x $ac_tag
20859 IFS=$ac_save_IFS
20860 shift
20861 ac_file=$1
20862 shift
20863
20864 case $ac_mode in
20865 :L) ac_source=$1;;
20866 :[FH])
20867 ac_file_inputs=
20868 for ac_f
20869 do
20870 case $ac_f in
20871 -) ac_f="$tmp/stdin";;
20872 *) # Look for the file first in the build tree, then in the source tree
20873 # (if the path is not absolute). The absolute path cannot be DOS-style,
20874 # because $ac_f cannot contain `:'.
20875 test -f "$ac_f" ||
20876 case $ac_f in
20877 [\\/$]*) false;;
20878 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20879 esac ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020880 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20881echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20882 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020883 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020884 ac_file_inputs="$ac_file_inputs $ac_f"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020885 done
20886
20887 # Let's still pretend it is `configure' which instantiates (i.e., don't
20888 # use $as_me), people would be surprised to read:
20889 # /* config.h. Generated by config.status. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020890 configure_input="Generated from "`IFS=:
20891 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020892 if test x"$ac_file" != x-; then
20893 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020894 { echo "$as_me:$LINENO: creating $ac_file" >&5
20895echo "$as_me: creating $ac_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020896 fi
20897
20898 case $ac_tag in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020899 *:-:* | *:-) cat >"$tmp/stdin";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020900 esac
20901 ;;
20902 esac
20903
20904 ac_dir=`$as_dirname -- "$ac_file" ||
20905$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20906 X"$ac_file" : 'X\(//\)[^/]' \| \
20907 X"$ac_file" : 'X\(//\)$' \| \
20908 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020909echo X"$ac_file" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20911 s//\1/
20912 q
20913 }
20914 /^X\(\/\/\)[^/].*/{
20915 s//\1/
20916 q
20917 }
20918 /^X\(\/\/\)$/{
20919 s//\1/
20920 q
20921 }
20922 /^X\(\/\).*/{
20923 s//\1/
20924 q
20925 }
20926 s/.*/./; q'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020927 { as_dir="$ac_dir"
20928 case $as_dir in #(
20929 -*) as_dir=./$as_dir;;
20930 esac
20931 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20932 as_dirs=
20933 while :; do
20934 case $as_dir in #(
20935 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20936 *) as_qdir=$as_dir;;
20937 esac
20938 as_dirs="'$as_qdir' $as_dirs"
20939 as_dir=`$as_dirname -- "$as_dir" ||
20940$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20941 X"$as_dir" : 'X\(//\)[^/]' \| \
20942 X"$as_dir" : 'X\(//\)$' \| \
20943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20944echo X"$as_dir" |
20945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20946 s//\1/
20947 q
20948 }
20949 /^X\(\/\/\)[^/].*/{
20950 s//\1/
20951 q
20952 }
20953 /^X\(\/\/\)$/{
20954 s//\1/
20955 q
20956 }
20957 /^X\(\/\).*/{
20958 s//\1/
20959 q
20960 }
20961 s/.*/./; q'`
20962 test -d "$as_dir" && break
20963 done
20964 test -z "$as_dirs" || eval "mkdir $as_dirs"
20965 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20966echo "$as_me: error: cannot create directory $as_dir" >&2;}
20967 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020968 ac_builddir=.
20969
20970case "$ac_dir" in
20971.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20972*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020974 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020975 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020976 case $ac_top_builddir_sub in
20977 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20978 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20979 esac ;;
20980esac
20981ac_abs_top_builddir=$ac_pwd
20982ac_abs_builddir=$ac_pwd$ac_dir_suffix
20983# for backward compatibility:
20984ac_top_builddir=$ac_top_build_prefix
20985
20986case $srcdir in
20987 .) # We are building in place.
20988 ac_srcdir=.
20989 ac_top_srcdir=$ac_top_builddir_sub
20990 ac_abs_top_srcdir=$ac_pwd ;;
20991 [\\/]* | ?:[\\/]* ) # Absolute name.
20992 ac_srcdir=$srcdir$ac_dir_suffix;
20993 ac_top_srcdir=$srcdir
20994 ac_abs_top_srcdir=$srcdir ;;
20995 *) # Relative name.
20996 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20997 ac_top_srcdir=$ac_top_build_prefix$srcdir
20998 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20999esac
21000ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21001
21002
21003 case $ac_mode in
21004 :F)
21005 #
21006 # CONFIG_FILE
21007 #
21008
21009 case $INSTALL in
21010 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21011 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21012 esac
21013_ACEOF
21014
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021015cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021016# If the template does not know about datarootdir, expand it.
21017# FIXME: This hack should be removed a few years after 2.60.
21018ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021019
21020case `sed -n '/datarootdir/ {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021021 p
21022 q
21023}
21024/@datadir@/p
21025/@docdir@/p
21026/@infodir@/p
21027/@localedir@/p
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021028/@mandir@/p
21029' $ac_file_inputs` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021030*datarootdir*) ac_datarootdir_seen=yes;;
21031*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021032 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21033echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021034_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021035cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021036 ac_datarootdir_hack='
21037 s&@datadir@&$datadir&g
21038 s&@docdir@&$docdir&g
21039 s&@infodir@&$infodir&g
21040 s&@localedir@&$localedir&g
21041 s&@mandir@&$mandir&g
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021042 s&\\\${datarootdir}&$datarootdir&g' ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021043esac
21044_ACEOF
21045
21046# Neutralize VPATH when `$srcdir' = `.'.
21047# Shell code in configure.ac might set extrasub.
21048# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021049cat >>$CONFIG_STATUS <<_ACEOF
21050 sed "$ac_vpsub
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021051$extrasub
21052_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021053cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021054:t
21055/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021056s&@configure_input@&$configure_input&;t t
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021057s&@top_builddir@&$ac_top_builddir_sub&;t t
21058s&@srcdir@&$ac_srcdir&;t t
21059s&@abs_srcdir@&$ac_abs_srcdir&;t t
21060s&@top_srcdir@&$ac_top_srcdir&;t t
21061s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21062s&@builddir@&$ac_builddir&;t t
21063s&@abs_builddir@&$ac_abs_builddir&;t t
21064s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21065s&@INSTALL@&$ac_INSTALL&;t t
21066$ac_datarootdir_hack
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021067" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021068
21069test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21070 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21071 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021072 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021073which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021074echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021075which seems to be undefined. Please make sure it is defined." >&2;}
21076
21077 rm -f "$tmp/stdin"
21078 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021079 -) cat "$tmp/out"; rm -f "$tmp/out";;
21080 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21081 esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021082 ;;
21083 :H)
21084 #
21085 # CONFIG_HEADER
21086 #
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021087_ACEOF
21088
21089# Transform confdefs.h into a sed script `conftest.defines', that
21090# substitutes the proper values into config.h.in to produce config.h.
21091rm -f conftest.defines conftest.tail
21092# First, append a space to every undef/define line, to ease matching.
21093echo 's/$/ /' >conftest.defines
21094# Then, protect against being on the right side of a sed subst, or in
21095# an unquoted here document, in config.status. If some macros were
21096# called several times there might be several #defines for the same
21097# symbol, which is useless. But do not sort them, since the last
21098# AC_DEFINE must be honored.
21099ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21100# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21101# NAME is the cpp macro being defined, VALUE is the value it is being given.
21102# PARAMS is the parameter list in the macro definition--in most cases, it's
21103# just an empty string.
21104ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21105ac_dB='\\)[ (].*,\\1define\\2'
21106ac_dC=' '
21107ac_dD=' ,'
21108
21109uniq confdefs.h |
21110 sed -n '
21111 t rset
21112 :rset
21113 s/^[ ]*#[ ]*define[ ][ ]*//
21114 t ok
21115 d
21116 :ok
21117 s/[\\&,]/\\&/g
21118 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21119 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21120 ' >>conftest.defines
21121
21122# Remove the space that was appended to ease matching.
21123# Then replace #undef with comments. This is necessary, for
21124# example, in the case of _POSIX_SOURCE, which is predefined and required
21125# on some systems where configure will not decide to define it.
21126# (The regexp can be short, since the line contains either #define or #undef.)
21127echo 's/ $//
21128s,^[ #]*u.*,/* & */,' >>conftest.defines
21129
21130# Break up conftest.defines:
21131ac_max_sed_lines=50
21132
21133# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21134# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21135# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21136# et cetera.
21137ac_in='$ac_file_inputs'
21138ac_out='"$tmp/out1"'
21139ac_nxt='"$tmp/out2"'
21140
21141while :
21142do
21143 # Write a here document:
21144 cat >>$CONFIG_STATUS <<_ACEOF
21145 # First, check the format of the line:
21146 cat >"\$tmp/defines.sed" <<\\CEOF
21147/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21148/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21149b
21150:def
21151_ACEOF
21152 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21153 echo 'CEOF
21154 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21155 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21156 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21157 grep . conftest.tail >/dev/null || break
21158 rm -f conftest.defines
21159 mv conftest.tail conftest.defines
21160done
21161rm -f conftest.defines conftest.tail
21162
21163echo "ac_result=$ac_in" >>$CONFIG_STATUS
21164cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021165 if test x"$ac_file" != x-; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021166 echo "/* $configure_input */" >"$tmp/config.h"
21167 cat "$ac_result" >>"$tmp/config.h"
21168 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21169 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21170echo "$as_me: $ac_file is unchanged" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021171 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021172 rm -f $ac_file
21173 mv "$tmp/config.h" $ac_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021174 fi
21175 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021176 echo "/* $configure_input */"
21177 cat "$ac_result"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021178 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021179 rm -f "$tmp/out12"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021180 ;;
21181
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021182 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21183echo "$as_me: executing $ac_file commands" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021184 ;;
21185 esac
21186
21187
21188 case $ac_file$ac_mode in
21189 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021190 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021191 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Edwin Törökab4193b2009-08-28 16:12:48 +000021192 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021193 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021194 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021195 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021196 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021197 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021198 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021199 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021200 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021201 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Edwin Törökab4193b2009-08-28 16:12:48 +000021202 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000021203 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021204 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021205 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021206 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021207 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021208 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021209 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021210 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021211 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021212 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021213 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Edwin Törökab4193b2009-08-28 16:12:48 +000021214 ${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 +000021215
21216 esac
21217done # for ac_tag
21218
21219
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021220{ (exit 0); exit 0; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021221_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021222chmod +x $CONFIG_STATUS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021223ac_clean_files=$ac_clean_files_save
21224
21225
21226# configure is writing to config.log, and then calls config.status.
21227# config.status does its own redirection, appending to config.log.
21228# Unfortunately, on DOS this fails, as config.log is still kept open
21229# by configure, so config.status won't be able to write to it; its
21230# output is simply discarded. So we exec the FD to /dev/null,
21231# effectively closing config.log, so it can be properly (re)opened and
21232# appended to by config.status. When coming back to configure, we
21233# need to make the FD available again.
21234if test "$no_create" != yes; then
21235 ac_cs_success=:
21236 ac_config_status_args=
21237 test "$silent" = yes &&
21238 ac_config_status_args="$ac_config_status_args --quiet"
21239 exec 5>/dev/null
21240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21241 exec 5>>config.log
21242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21243 # would make configure fail if this is the last instruction.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021244 $ac_cs_success || { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021245fi
21246
21247#
21248# CONFIG_SUBDIRS section.
21249#
21250if test "$no_recursion" != yes; then
21251
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021252 # Remove --cache-file and --srcdir arguments so they do not pile up.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021253 ac_sub_configure_args=
21254 ac_prev=
21255 eval "set x $ac_configure_args"
21256 shift
21257 for ac_arg
21258 do
21259 if test -n "$ac_prev"; then
21260 ac_prev=
21261 continue
21262 fi
21263 case $ac_arg in
21264 -cache-file | --cache-file | --cache-fil | --cache-fi \
21265 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21266 ac_prev=cache_file ;;
21267 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21268 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21269 | --c=*)
21270 ;;
21271 --config-cache | -C)
21272 ;;
21273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21274 ac_prev=srcdir ;;
21275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21276 ;;
21277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21278 ac_prev=prefix ;;
21279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21280 ;;
21281 *)
21282 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021283 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021284 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021285 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021286 esac
21287 done
21288
21289 # Always prepend --prefix to ensure using the same prefix
21290 # in subdir configurations.
21291 ac_arg="--prefix=$prefix"
21292 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021293 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021294 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021295 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021296
21297 ac_popdir=`pwd`
21298 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21299
21300 # Do not complain, so a configure script can configure whichever
21301 # parts of a large source tree are present.
21302 test -d "$srcdir/$ac_dir" || continue
21303
21304 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021305 echo "$as_me:$LINENO: $ac_msg" >&5
21306 echo "$ac_msg" >&6
21307 { as_dir="$ac_dir"
21308 case $as_dir in #(
21309 -*) as_dir=./$as_dir;;
21310 esac
21311 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21312 as_dirs=
21313 while :; do
21314 case $as_dir in #(
21315 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21316 *) as_qdir=$as_dir;;
21317 esac
21318 as_dirs="'$as_qdir' $as_dirs"
21319 as_dir=`$as_dirname -- "$as_dir" ||
21320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21321 X"$as_dir" : 'X\(//\)[^/]' \| \
21322 X"$as_dir" : 'X\(//\)$' \| \
21323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21324echo X"$as_dir" |
21325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21326 s//\1/
21327 q
21328 }
21329 /^X\(\/\/\)[^/].*/{
21330 s//\1/
21331 q
21332 }
21333 /^X\(\/\/\)$/{
21334 s//\1/
21335 q
21336 }
21337 /^X\(\/\).*/{
21338 s//\1/
21339 q
21340 }
21341 s/.*/./; q'`
21342 test -d "$as_dir" && break
21343 done
21344 test -z "$as_dirs" || eval "mkdir $as_dirs"
21345 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21346echo "$as_me: error: cannot create directory $as_dir" >&2;}
21347 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021348 ac_builddir=.
21349
21350case "$ac_dir" in
21351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21352*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021354 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021356 case $ac_top_builddir_sub in
21357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21359 esac ;;
21360esac
21361ac_abs_top_builddir=$ac_pwd
21362ac_abs_builddir=$ac_pwd$ac_dir_suffix
21363# for backward compatibility:
21364ac_top_builddir=$ac_top_build_prefix
21365
21366case $srcdir in
21367 .) # We are building in place.
21368 ac_srcdir=.
21369 ac_top_srcdir=$ac_top_builddir_sub
21370 ac_abs_top_srcdir=$ac_pwd ;;
21371 [\\/]* | ?:[\\/]* ) # Absolute name.
21372 ac_srcdir=$srcdir$ac_dir_suffix;
21373 ac_top_srcdir=$srcdir
21374 ac_abs_top_srcdir=$srcdir ;;
21375 *) # Relative name.
21376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21377 ac_top_srcdir=$ac_top_build_prefix$srcdir
21378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21379esac
21380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21381
21382
21383 cd "$ac_dir"
21384
21385 # Check for guested configure; otherwise get Cygnus style configure.
21386 if test -f "$ac_srcdir/configure.gnu"; then
21387 ac_sub_configure=$ac_srcdir/configure.gnu
21388 elif test -f "$ac_srcdir/configure"; then
21389 ac_sub_configure=$ac_srcdir/configure
21390 elif test -f "$ac_srcdir/configure.in"; then
21391 # This should be Cygnus configure.
21392 ac_sub_configure=$ac_aux_dir/configure
21393 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021394 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21395echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021396 ac_sub_configure=
21397 fi
21398
21399 # The recursion is here.
21400 if test -n "$ac_sub_configure"; then
21401 # Make the cache file name correct relative to the subdirectory.
21402 case $cache_file in
21403 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21404 *) # Relative name.
21405 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21406 esac
21407
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021408 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21409echo "$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 +000021410 # The eval makes quoting arguments work.
21411 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21412 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021413 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21414echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21415 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021416 fi
21417
21418 cd "$ac_popdir"
21419 done
21420fi
21421