blob: ad89e896d89d05725909df017ceff8b34d3e1d08 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebc2fc12011-03-08 03:00:02 +00003# Generated by GNU Autoconf 2.60 for llvm 3.0svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Bill Wendlingebc2fc12011-03-08 03:00:02 +0000564PACKAGE_VERSION='3.0svn'
565PACKAGE_STRING='llvm 3.0svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000644ENABLE_POLLY
645LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000646build
647build_cpu
648build_vendor
649build_os
650host
651host_cpu
652host_vendor
653host_os
654target
655target_cpu
656target_vendor
657target_os
658OS
659HOST_OS
660TARGET_OS
661LINKALL
662NOLINKALL
663LLVM_ON_UNIX
664LLVM_ON_WIN32
665ARCH
666ENDIAN
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LLVM_CROSS_COMPILING
678BUILD_CC
679BUILD_EXEEXT
680BUILD_CXX
681CVSBUILD
682ENABLE_OPTIMIZED
683ENABLE_PROFILING
684DISABLE_ASSERTIONS
685ENABLE_EXPENSIVE_CHECKS
686EXPENSIVE_CHECKS
687DEBUG_RUNTIME
688DEBUG_SYMBOLS
689JIT
690TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000691ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_DOXYGEN
693ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000694ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000696ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000697ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000698ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699TARGETS_TO_BUILD
700LLVM_ENUM_TARGETS
701LLVM_ENUM_ASM_PRINTERS
702LLVM_ENUM_ASM_PARSERS
703LLVM_ENUM_DISASSEMBLERS
704ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000705CLANGPATH
706CLANGXXPATH
707ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712CXX
713CXXFLAGS
714ac_ct_CXX
715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
766LLVMGCCCOMMAND
767LLVMGXXCOMMAND
768LLVMGCC
769LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000770LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771NO_VARIADIC_MACROS
772NO_MISSING_FIELD_INITIALIZERS
773USE_UDIS86
774USE_OPROFILE
775HAVE_PTHREAD
776HUGE_VAL_SANITY
777MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000778LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVMCC1
780LLVMCC1PLUS
781LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000782LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000783LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000784LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000785SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000786SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000787LLVM_PREFIX
788LLVM_BINDIR
789LLVM_LIBDIR
790LLVM_DATADIR
791LLVM_DOCSDIR
792LLVM_ETCDIR
793LLVM_INCLUDEDIR
794LLVM_INFODIR
795LLVM_MANDIR
796LLVM_CONFIGTIME
797BINDINGS_TO_BUILD
798ALL_BINDINGS
799OCAML_LIBDIR
800ENABLE_VISIBILITY_INLINES_HIDDEN
801RPATH
802RDYNAMIC
803LIBOBJS
804LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000805ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812CPPFLAGS
813CPP
814CXX
815CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000816CCC'
John Criswell0157f502010-03-19 21:31:39 +0000817ac_subdirs_all='projects/llvm-gcc
818projects/test-suite
819projects/llvm-test
820projects/poolalloc
821projects/llvm-poolalloc
822projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000824projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000825projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000826projects/llvm-java
827projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000828projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000829projects/llvm-kernel
830tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000857# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000866includedir='${prefix}/include'
867oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000877
878ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000879ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000880for ac_option
881do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000884 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000885 ac_prev=
886 continue
887 fi
888
Reid Spencera773bd52006-08-04 18:18:08 +0000889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
John Criswell7a73b802003-06-30 21:59:07 +0000893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
Reid Spencera773bd52006-08-04 18:18:08 +0000896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
Reid Spencera773bd52006-08-04 18:18:08 +0000920 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000921 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000923 datadir=$ac_optarg ;;
924
Reid Spencera773bd52006-08-04 18:18:08 +0000925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
John Criswell7a73b802003-06-30 21:59:07 +0000932 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000934 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000953 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
Reid Spencera773bd52006-08-04 18:18:08 +0000985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
John Criswell7a73b802003-06-30 21:59:07 +0000991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
Reid Spencera773bd52006-08-04 18:18:08 +00001015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
John Criswell7a73b802003-06-30 21:59:07 +00001020 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001021 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
Reid Spencera773bd52006-08-04 18:18:08 +00001089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
John Criswell7a73b802003-06-30 21:59:07 +00001099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001159 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001195 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001213fi
1214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001220do
Reid Spencera773bd52006-08-04 18:18:08 +00001221 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001222 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001225 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
Reid Spencera773bd52006-08-04 18:18:08 +00001254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001262
1263
John Criswell7a73b802003-06-30 21:59:07 +00001264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001267 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001268 ac_confdir=`$as_dirname -- "$0" ||
1269$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001291 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001292 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
Reid Spencera773bd52006-08-04 18:18:08 +00001298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001302fi
Reid Spencera773bd52006-08-04 18:18:08 +00001303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001332\`configure' configures llvm 3.0svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001405 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1409 YES)
David Greenea696d242007-06-28 19:36:08 +00001410 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001417 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001418 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001419 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001420 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001421 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001422 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001423 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001424 --enable-shared Build a shared library and link tools against it
1425 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001428 --enable-timestamps Enable embedding timestamp information in build
1429 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001439 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001440 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001441
1442Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001447 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 searches PATH)
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001451 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang)
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001457 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001458 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1463 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001464 --with-c-include-dirs Colon separated list of directories clang will
1465 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001474 --with-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001476 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001479 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001482
1483Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001484 CC C compiler command
1485 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001489 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001490 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
1497Report bugs to <llvmbugs@cs.uiuc.edu>.
1498_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001499ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001505 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_builddir=.
1507
Reid Spencera773bd52006-08-04 18:18:08 +00001508case "$ac_dir" in
1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001512 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518esac
1519ac_abs_top_builddir=$ac_pwd
1520ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521# for backward compatibility:
1522ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001523
1524case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001525 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001526 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001530 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001537esac
Reid Spencera773bd52006-08-04 18:18:08 +00001538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001539
Reid Spencera773bd52006-08-04 18:18:08 +00001540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001548 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001552 done
1553fi
1554
Reid Spencera773bd52006-08-04 18:18:08 +00001555test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001556if $ac_init_version; then
1557 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001558llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001561Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001566Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001567_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001568 exit
John Criswell7a73b802003-06-30 21:59:07 +00001569fi
Reid Spencera773bd52006-08-04 18:18:08 +00001570cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001571This file contains any messages produced by compilers while
1572running configure, to aid debugging if configure makes a mistake.
1573
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001574It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001575generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001576
1577 $ $0 $@
1578
1579_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001580exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001581{
1582cat <<_ASUNAME
1583## --------- ##
1584## Platform. ##
1585## --------- ##
1586
1587hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1595
1596/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001599/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001600/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1603
1604_ASUNAME
1605
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001611 echo "PATH: $as_dir"
1612done
Reid Spencera773bd52006-08-04 18:18:08 +00001613IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001614
1615} >&5
1616
1617cat >&5 <<_ACEOF
1618
1619
1620## ----------- ##
1621## Core tests. ##
1622## ----------- ##
1623
1624_ACEOF
1625
1626
1627# Keep a trace of the command line.
1628# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001630# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001631# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001632ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001633ac_configure_args0=
1634ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001635ac_must_keep_next=false
1636for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001637do
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 for ac_arg
1639 do
1640 case $ac_arg in
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1644 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001645 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 esac
1648 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001653 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001654 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001655 case $ac_arg in
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 esac
1663 ;;
1664 -* ) ac_must_keep_next=true ;;
1665 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001667 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ;;
1669 esac
1670 done
John Criswell7a73b802003-06-30 21:59:07 +00001671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001674
1675# When interrupted or exit'd, cleanup temporary files, and complete
1676# config.log. We remove comments because anyway the quotes in there
1677# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001678# WARNING: Use '\'' to represent an apostrophe within the trap.
1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001680trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1682 {
1683 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001684
John Criswell7a73b802003-06-30 21:59:07 +00001685 cat <<\_ASBOX
1686## ---------------- ##
1687## Cache variables. ##
1688## ---------------- ##
1689_ASBOX
1690 echo
1691 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001692(
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in #(
1696 *${as_nl}*)
1697 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001700 esac
1701 case $ac_var in #(
1702 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001703 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001704 esac ;;
1705 esac
1706 done
John Criswell7a73b802003-06-30 21:59:07 +00001707 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001710 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001714 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001717 esac |
1718 sort
1719)
John Criswell7a73b802003-06-30 21:59:07 +00001720 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001721
1722 cat <<\_ASBOX
1723## ----------------- ##
1724## Output variables. ##
1725## ----------------- ##
1726_ASBOX
1727 echo
1728 for ac_var in $ac_subst_vars
1729 do
Reid Spencera773bd52006-08-04 18:18:08 +00001730 eval ac_val=\$$ac_var
1731 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001733 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001734 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001735 done | sort
1736 echo
1737
1738 if test -n "$ac_subst_files"; then
1739 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001740## ------------------- ##
1741## File substitutions. ##
1742## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001743_ASBOX
1744 echo
1745 for ac_var in $ac_subst_files
1746 do
Reid Spencera773bd52006-08-04 18:18:08 +00001747 eval ac_val=\$$ac_var
1748 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001750 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 done | sort
1753 echo
1754 fi
1755
John Criswell7a73b802003-06-30 21:59:07 +00001756 if test -s confdefs.h; then
1757 cat <<\_ASBOX
1758## ----------- ##
1759## confdefs.h. ##
1760## ----------- ##
1761_ASBOX
1762 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001763 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001764 echo
1765 fi
1766 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001769 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001772 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001773' 0
John Criswell7a73b802003-06-30 21:59:07 +00001774for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001776done
1777ac_signal=0
1778
1779# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001780rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001781
1782# Predefined preprocessor variables.
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_NAME "$PACKAGE_NAME"
1786_ACEOF
1787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791_ACEOF
1792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793
John Criswell7a73b802003-06-30 21:59:07 +00001794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_VERSION "$PACKAGE_VERSION"
1796_ACEOF
1797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798
John Criswell7a73b802003-06-30 21:59:07 +00001799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_STRING "$PACKAGE_STRING"
1801_ACEOF
1802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803
John Criswell7a73b802003-06-30 21:59:07 +00001804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806_ACEOF
1807
1808
1809# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001811if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001813elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001819shift
1820for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001821do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001825 sed 's/^/| /' "$ac_site_file" >&5
1826 . "$ac_site_file"
1827 fi
1828done
1829
1830if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001839 esac
1840 fi
1841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001844 >$cache_file
1845fi
1846
1847# Check that the precious variables saved in the cache have kept the same
1848# value.
1849ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001850for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001855 case $ac_old_set,$ac_new_set in
1856 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001859 ac_cache_corrupted=: ;;
1860 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001863 ac_cache_corrupted=: ;;
1864 ,);;
1865 *)
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001874 fi;;
1875 esac
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1878 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001880 *) ac_arg=$ac_var=$ac_new_val ;;
1881 esac
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001885 esac
1886 fi
1887done
1888if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
Reid Spencera773bd52006-08-04 18:18:08 +00001919
John Criswell7a73b802003-06-30 21:59:07 +00001920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001928LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001929
1930
1931
1932
1933
1934
1935
John Criswell7a73b802003-06-30 21:59:07 +00001936ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001937for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001938 if test -f "$ac_dir/install-sh"; then
1939 ac_aux_dir=$ac_dir
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1941 break
1942 elif test -f "$ac_dir/install.sh"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1945 break
1946 elif test -f "$ac_dir/shtool"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 break
1950 fi
John Criswell7a73b802003-06-30 21:59:07 +00001951done
1952if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001956fi
Reid Spencera773bd52006-08-04 18:18:08 +00001957
1958# These three variables are undocumented and unsupported,
1959# and are intended to be withdrawn in a future Autoconf release.
1960# They can cause serious problems if a builder's source tree is in a directory
1961# whose full name contains unusual characters.
1962ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1965
John Criswell7a73b802003-06-30 21:59:07 +00001966
John Criswell392aaa32003-07-22 19:18:09 +00001967
Reid Spencer2706f8c2004-09-19 23:53:36 +00001968if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001973 fi
John Criswell93e1c722003-09-15 17:04:06 +00001974fi
1975
John Criswell0157f502010-03-19 21:31:39 +00001976
1977
1978if test -d ${srcdir}/projects/llvm-gcc ; then
1979 subdirs="$subdirs projects/llvm-gcc"
1980
1981fi
1982
1983if test -d ${srcdir}/projects/test-suite ; then
1984 subdirs="$subdirs projects/test-suite"
1985
1986fi
1987
1988if test -d ${srcdir}/projects/llvm-test ; then
1989 subdirs="$subdirs projects/llvm-test"
1990
1991fi
1992
1993if test -d ${srcdir}/projects/poolalloc ; then
1994 subdirs="$subdirs projects/poolalloc"
1995
1996fi
1997
1998if test -d ${srcdir}/projects/llvm-poolalloc ; then
1999 subdirs="$subdirs projects/llvm-poolalloc"
2000
2001fi
2002
John Criswell33a911a2003-11-25 20:36:46 +00002003for i in `ls ${srcdir}/projects`
2004do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002005 if test -d ${srcdir}/projects/${i} ; then
2006 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002008 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002009 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002010 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002011 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002012 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002013 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002014;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002015 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002016 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002017 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002018 ;;
John Criswell7def2932010-02-25 22:57:19 +00002019 safecode) subdirs="$subdirs projects/safecode"
2020 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002021 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002022 ;;
John Criswell52c02862010-03-25 13:59:09 +00002023 llvm-gcc) ;;
2024 test-suite) ;;
2025 llvm-test) ;;
2026 poolalloc) ;;
2027 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002028 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002029 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2030echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002031 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002032 esac
John Criswell33a911a2003-11-25 20:36:46 +00002033 fi
2034done
John Criswell559a6c12003-09-30 16:31:48 +00002035
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002036# Check whether --enable-polly was given.
2037if test "${enable_polly+set}" = set; then
2038 enableval=$enable_polly;
2039else
2040 enableval=default
2041fi
2042
2043case "$enableval" in
2044 yes) ENABLE_POLLY=1
2045 ;;
2046 no) ENABLE_POLLY=0
2047 ;;
2048 default) ENABLE_POLLY=1
2049 ;;
2050 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2051echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2052 { (exit 1); exit 1; }; } ;;
2053esac
2054
2055
2056if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2057 LLVM_HAS_POLLY=1
2058
2059 subdirs="$subdirs tools/polly"
2060
2061fi
2062
John Criswell7a73b802003-06-30 21:59:07 +00002063
2064# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002065$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002066 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070{ echo "$as_me:$LINENO: checking build system type" >&5
2071echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2072if test "${ac_cv_build+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002074else
Reid Spencera773bd52006-08-04 18:18:08 +00002075 ac_build_alias=$build_alias
2076test "x$ac_build_alias" = x &&
2077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002082ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002086
2087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002090case $ac_cv_build in
2091*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002092*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093echo "$as_me: error: invalid value of canonical build" >&2;}
2094 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002095esac
John Criswell7a73b802003-06-30 21:59:07 +00002096build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002097ac_save_IFS=$IFS; IFS='-'
2098set x $ac_cv_build
2099shift
2100build_cpu=$1
2101build_vendor=$2
2102shift; shift
2103# Remember, the first character of IFS is used to create $*,
2104# except with old shells:
2105build_os=$*
2106IFS=$ac_save_IFS
2107case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002108
2109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002110{ echo "$as_me:$LINENO: checking host system type" >&5
2111echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2112if test "${ac_cv_host+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002114else
Reid Spencera773bd52006-08-04 18:18:08 +00002115 if test "x$host_alias" = x; then
2116 ac_cv_host=$ac_cv_build
2117else
2118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002119 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002122fi
John Criswell7a73b802003-06-30 21:59:07 +00002123
2124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002125{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002127case $ac_cv_host in
2128*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002129*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130echo "$as_me: error: invalid value of canonical host" >&2;}
2131 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002132esac
John Criswell7a73b802003-06-30 21:59:07 +00002133host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002134ac_save_IFS=$IFS; IFS='-'
2135set x $ac_cv_host
2136shift
2137host_cpu=$1
2138host_vendor=$2
2139shift; shift
2140# Remember, the first character of IFS is used to create $*,
2141# except with old shells:
2142host_os=$*
2143IFS=$ac_save_IFS
2144case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002145
2146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002147{ echo "$as_me:$LINENO: checking target system type" >&5
2148echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2149if test "${ac_cv_target+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002151else
Reid Spencera773bd52006-08-04 18:18:08 +00002152 if test "x$target_alias" = x; then
2153 ac_cv_target=$ac_cv_host
2154else
2155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002156 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2157echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2158 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002159fi
John Criswell7a73b802003-06-30 21:59:07 +00002160
2161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2163echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002164case $ac_cv_target in
2165*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2167echo "$as_me: error: invalid value of canonical target" >&2;}
2168 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002169esac
John Criswell7a73b802003-06-30 21:59:07 +00002170target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002171ac_save_IFS=$IFS; IFS='-'
2172set x $ac_cv_target
2173shift
2174target_cpu=$1
2175target_vendor=$2
2176shift; shift
2177# Remember, the first character of IFS is used to create $*,
2178# except with old shells:
2179target_os=$*
2180IFS=$ac_save_IFS
2181case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002182
2183
2184# The aliases save the names the user supplied, while $host etc.
2185# will get canonicalized.
2186test -n "$target_alias" &&
2187 test "$program_prefix$program_suffix$program_transform_name" = \
2188 NONENONEs,x,x, &&
2189 program_prefix=${target_alias}-
2190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002191{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2192echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2193if test "${llvm_cv_os_type+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002195else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002196 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002197 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002200 llvm_cv_os_type="AIX"
2201 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002202 *-*-irix*)
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="IRIX"
2206 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002207 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002210 llvm_cv_os_type="Cygwin"
2211 llvm_cv_platform_type="Unix" ;;
2212 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002213 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002214 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002215 llvm_cv_os_type="Darwin"
2216 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002217 *-*-minix*)
2218 llvm_cv_link_all_option="-Wl,-all_load"
2219 llvm_cv_no_link_all_option="-Wl,-noall_load"
2220 llvm_cv_os_type="Minix"
2221 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002225 llvm_cv_os_type="FreeBSD"
2226 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002227 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002230 llvm_cv_os_type="OpenBSD"
2231 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002232 *-*-netbsd*)
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="NetBSD"
2236 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002237 *-*-dragonfly*)
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="DragonFly"
2241 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002242 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002245 llvm_cv_os_type="HP-UX"
2246 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002250 llvm_cv_os_type="Interix"
2251 llvm_cv_platform_type="Unix" ;;
2252 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002255 llvm_cv_os_type="Linux"
2256 llvm_cv_platform_type="Unix" ;;
2257 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002258 llvm_cv_link_all_option="-Wl,-z,allextract"
2259 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 llvm_cv_os_type="SunOS"
2261 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002262 *-*-auroraux*)
2263 llvm_cv_link_all_option="-Wl,-z,allextract"
2264 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2265 llvm_cv_os_type="AuroraUX"
2266 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002270 llvm_cv_os_type="Win32"
2271 llvm_cv_platform_type="Win32" ;;
2272 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="MingW"
2276 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002277 *-*-haiku*)
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="Haiku"
2281 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002282 *-unknown-eabi*)
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Freestanding"
2286 llvm_cv_platform_type="Unix" ;;
2287 *-unknown-elf*)
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="Freestanding"
2291 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002293 llvm_cv_link_all_option=""
2294 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295 llvm_cv_os_type="Unknown"
2296 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002297esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2300echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002302{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2303echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2304if test "${llvm_cv_target_os_type+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002306else
2307 case $target in
2308 *-*-aix*)
2309 llvm_cv_target_os_type="AIX" ;;
2310 *-*-irix*)
2311 llvm_cv_target_os_type="IRIX" ;;
2312 *-*-cygwin*)
2313 llvm_cv_target_os_type="Cygwin" ;;
2314 *-*-darwin*)
2315 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002316 *-*-minix*)
2317 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002318 *-*-freebsd*)
2319 llvm_cv_target_os_type="FreeBSD" ;;
2320 *-*-openbsd*)
2321 llvm_cv_target_os_type="OpenBSD" ;;
2322 *-*-netbsd*)
2323 llvm_cv_target_os_type="NetBSD" ;;
2324 *-*-dragonfly*)
2325 llvm_cv_target_os_type="DragonFly" ;;
2326 *-*-hpux*)
2327 llvm_cv_target_os_type="HP-UX" ;;
2328 *-*-interix*)
2329 llvm_cv_target_os_type="Interix" ;;
2330 *-*-linux*)
2331 llvm_cv_target_os_type="Linux" ;;
2332 *-*-solaris*)
2333 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002334 *-*-auroraux*)
2335 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002336 *-*-win32*)
2337 llvm_cv_target_os_type="Win32" ;;
2338 *-*-mingw*)
2339 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002340 *-*-haiku*)
2341 llvm_cv_target_os_type="Haiku" ;;
Douglas Gregor6ced1d12011-07-01 22:41:06 +00002342 *-*-rtems*)
2343 llvm_cv_target_os_type="RTEMS" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002344 *-unknown-eabi*)
2345 llvm_cv_target_os_type="Freestanding" ;;
2346 *)
2347 llvm_cv_target_os_type="Unknown" ;;
2348esac
2349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002350{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2351echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2356 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002357fi
2358
Reid Spencer7b3e8512004-12-24 06:29:05 +00002359OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002360
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002361HOST_OS=$llvm_cv_os_type
2362
2363TARGET_OS=$llvm_cv_target_os_type
2364
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002365
Reid Spencera773bd52006-08-04 18:18:08 +00002366LINKALL=$llvm_cv_link_all_option
2367
2368NOLINKALL=$llvm_cv_no_link_all_option
2369
2370
Reid Spencer7b3e8512004-12-24 06:29:05 +00002371case $llvm_cv_platform_type in
2372 Unix)
2373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002374cat >>confdefs.h <<\_ACEOF
2375#define LLVM_ON_UNIX 1
2376_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002377
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002378 LLVM_ON_UNIX=1
2379
2380 LLVM_ON_WIN32=0
2381
Reid Spencer7b3e8512004-12-24 06:29:05 +00002382 ;;
2383 Win32)
2384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002385cat >>confdefs.h <<\_ACEOF
2386#define LLVM_ON_WIN32 1
2387_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002388
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002389 LLVM_ON_UNIX=0
2390
2391 LLVM_ON_WIN32=1
2392
Reid Spencer7b3e8512004-12-24 06:29:05 +00002393 ;;
2394esac
2395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002396{ echo "$as_me:$LINENO: checking target architecture" >&5
2397echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2398if test "${llvm_cv_target_arch+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400else
2401 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002402 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002403 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002404 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2405 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002406 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002407 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002408 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002409 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002410 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002411 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002412 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002413 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002414 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002415 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002416esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002418{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2419echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002420
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2423echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424fi
John Criswell76595452003-07-01 22:07:39 +00002425
Nick Lewycky83fc4472009-09-29 05:48:51 +00002426# Determine the LLVM native architecture for the target
2427case "$llvm_cv_target_arch" in
2428 x86) LLVM_NATIVE_ARCH="X86" ;;
2429 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2430 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2431esac
2432
2433ARCH=$llvm_cv_target_arch
2434
2435
2436ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437ac_cpp='$CPP $CPPFLAGS'
2438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002441if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2443set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461 break 2
2462 fi
2463done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002464done
Reid Spencera773bd52006-08-04 18:18:08 +00002465IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466
2467fi
2468fi
2469CC=$ac_cv_prog_CC
2470if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002471 { echo "$as_me:$LINENO: result: $CC" >&5
2472echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002474 { echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476fi
2477
Reid Spencera773bd52006-08-04 18:18:08 +00002478
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479fi
2480if test -z "$ac_cv_prog_CC"; then
2481 ac_ct_CC=$CC
2482 # Extract the first word of "gcc", so it can be a program name with args.
2483set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488else
2489 if test -n "$ac_ct_CC"; then
2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501 break 2
2502 fi
2503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504done
Reid Spencera773bd52006-08-04 18:18:08 +00002505IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506
2507fi
2508fi
2509ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002511 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002514 { echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002516fi
2517
Reid Spencera773bd52006-08-04 18:18:08 +00002518 if test "x$ac_ct_CC" = x; then
2519 CC=""
2520 else
2521 case $cross_compiling:$ac_tool_warned in
2522yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002523{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2524whose name does not start with the host triplet. If you think this
2525configuration is useful to you, please write to autoconf@gnu.org." >&5
2526echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2527whose name does not start with the host triplet. If you think this
2528configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002529ac_tool_warned=yes ;;
2530esac
2531 CC=$ac_ct_CC
2532 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533else
2534 CC="$ac_cv_prog_CC"
2535fi
2536
2537if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545else
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548else
2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558 break 2
2559 fi
2560done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002561done
Reid Spencera773bd52006-08-04 18:18:08 +00002562IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563
2564fi
2565fi
2566CC=$ac_cv_prog_CC
2567if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002568 { echo "$as_me:$LINENO: result: $CC" >&5
2569echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002571 { echo "$as_me:$LINENO: result: no" >&5
2572echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573fi
2574
Reid Spencera773bd52006-08-04 18:18:08 +00002575
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002577fi
2578if test -z "$CC"; then
2579 # Extract the first word of "cc", so it can be a program name with args.
2580set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002585else
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2588else
2589 ac_prog_rejected=no
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2598 ac_prog_rejected=yes
2599 continue
2600 fi
2601 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603 break 2
2604 fi
2605done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606done
Reid Spencera773bd52006-08-04 18:18:08 +00002607IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608
2609if test $ac_prog_rejected = yes; then
2610 # We found a bogon in the path, so make sure we never use it.
2611 set dummy $ac_cv_prog_CC
2612 shift
2613 if test $# != 0; then
2614 # We chose a different compiler from the bogus one.
2615 # However, it has the same basename, so the bogon will be chosen
2616 # first if we set CC to just the basename; use the full file name.
2617 shift
2618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2619 fi
2620fi
2621fi
2622fi
2623CC=$ac_cv_prog_CC
2624if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002625 { echo "$as_me:$LINENO: result: $CC" >&5
2626echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002628 { echo "$as_me:$LINENO: result: no" >&5
2629echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630fi
2631
Reid Spencera773bd52006-08-04 18:18:08 +00002632
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633fi
2634if test -z "$CC"; then
2635 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002636 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002637 do
2638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2639set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002644else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002657 break 2
2658 fi
2659done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002660done
Reid Spencera773bd52006-08-04 18:18:08 +00002661IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002662
2663fi
2664fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665CC=$ac_cv_prog_CC
2666if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002667 { echo "$as_me:$LINENO: result: $CC" >&5
2668echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002670 { echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002672fi
2673
Reid Spencera773bd52006-08-04 18:18:08 +00002674
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002676 done
2677fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678if test -z "$CC"; then
2679 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002680 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002681do
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002688else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002701 break 2
2702 fi
2703done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002704done
Reid Spencera773bd52006-08-04 18:18:08 +00002705IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002706
2707fi
2708fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002711 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002714 { echo "$as_me:$LINENO: result: no" >&5
2715echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002716fi
2717
Reid Spencera773bd52006-08-04 18:18:08 +00002718
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002719 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002720done
John Criswell7a73b802003-06-30 21:59:07 +00002721
Reid Spencera773bd52006-08-04 18:18:08 +00002722 if test "x$ac_ct_CC" = x; then
2723 CC=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002727{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2728whose name does not start with the host triplet. If you think this
2729configuration is useful to you, please write to autoconf@gnu.org." >&5
2730echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2731whose name does not start with the host triplet. If you think this
2732configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002733ac_tool_warned=yes ;;
2734esac
2735 CC=$ac_ct_CC
2736 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002737fi
2738
John Criswell7a73b802003-06-30 21:59:07 +00002739fi
2740
2741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002742test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2743See \`config.log' for more details." >&5
2744echo "$as_me: error: no acceptable C compiler found in \$PATH
2745See \`config.log' for more details." >&2;}
2746 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002747
John Criswell7a73b802003-06-30 21:59:07 +00002748# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749echo "$as_me:$LINENO: checking for C compiler version" >&5
2750ac_compiler=`set X $ac_compile; echo $2`
2751{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002758 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2761{ (ac_try="$ac_compiler -v >&5"
2762case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765esac
2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compiler -v >&5") 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2771{ (ac_try="$ac_compiler -V >&5"
2772case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compiler -V >&5") 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002782cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h. */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002788
John Criswell7a73b802003-06-30 21:59:07 +00002789int
2790main ()
2791{
2792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002798ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002799# Try to create an executable without -o first, disregard a.out.
2800# It will help us diagnose broken compilers, and finding out an intuition
2801# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002802{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2803echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2804ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2805#
2806# List of possible output files, starting from the most likely.
2807# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2808# only as a last resort. b.out is created by i960 compilers.
2809ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2810#
2811# The IRIX 6 linker writes into existing files which may not be
2812# executable, retaining their permissions. Remove them first so a
2813# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002814ac_rmfiles=
2815for ac_file in $ac_files
2816do
2817 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002819 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2820 esac
2821done
2822rm -f $ac_rmfiles
2823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002824if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002825case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002830 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002831 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836# in a Makefile. We should not override ac_cv_exeext if it was cached,
2837# so that the user can short-circuit this test for compilers unknown to
2838# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002839for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002840do
2841 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002842 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002844 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002845 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002846 # We found the default executable, but exeext='' is most
2847 # certainly right.
2848 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002849 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002851 then :; else
2852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853 fi
2854 # We set ac_cv_exeext here because the later test for it is not
2855 # safe: cross compilers may not add the suffix if given an `-o'
2856 # argument, so we may need to know it at that point already.
2857 # Even if this section looks crufty: it has the advantage of
2858 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002859 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002860 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002861 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002862 esac
2863done
Reid Spencera773bd52006-08-04 18:18:08 +00002864test "$ac_cv_exeext" = no && ac_cv_exeext=
2865
John Criswell7a73b802003-06-30 21:59:07 +00002866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002868sed 's/^/| /' conftest.$ac_ext >&5
2869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002870{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2871See \`config.log' for more details." >&5
2872echo "$as_me: error: C compiler cannot create executables
2873See \`config.log' for more details." >&2;}
2874 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002875fi
John Criswell7a73b802003-06-30 21:59:07 +00002876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002877ac_exeext=$ac_cv_exeext
2878{ echo "$as_me:$LINENO: result: $ac_file" >&5
2879echo "${ECHO_T}$ac_file" >&6; }
2880
2881# Check that the compiler produces executables we can run. If not, either
2882# the compiler is broken, or we cross compile.
2883{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2885# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886# If not cross compiling, check that we can run a simple program.
2887if test "$cross_compiling" != yes; then
2888 if { ac_try='./$ac_file'
2889 { (case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_try") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2898 cross_compiling=no
2899 else
2900 if test "$cross_compiling" = maybe; then
2901 cross_compiling=yes
2902 else
2903 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904If you meant to cross compile, use \`--host'.
2905See \`config.log' for more details." >&5
2906echo "$as_me: error: cannot run C compiled programs.
2907If you meant to cross compile, use \`--host'.
2908See \`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2910 fi
2911 fi
2912fi
2913{ echo "$as_me:$LINENO: result: yes" >&5
2914echo "${ECHO_T}yes" >&6; }
2915
2916rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002917ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002918# Check that the compiler produces executables we can run. If not, either
2919# the compiler is broken, or we cross compile.
2920{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2921echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2922{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2923echo "${ECHO_T}$cross_compiling" >&6; }
2924
2925{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2926echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2927if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002928case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002933 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002934 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002937 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2938# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2939# work properly (i.e., refer to `conftest.exe'), while it won't with
2940# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002941for ac_file in conftest.exe conftest conftest.*; do
2942 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002943 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002945 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002946 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002947 * ) break;;
2948 esac
2949done
2950else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002951 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2952See \`config.log' for more details." >&5
2953echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2954See \`config.log' for more details." >&2;}
2955 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002957
2958rm -f conftest$ac_cv_exeext
2959{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2960echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002961
2962rm -f conftest.$ac_ext
2963EXEEXT=$ac_cv_exeext
2964ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002965{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2966echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2967if test "${ac_cv_objext+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002970 cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h. */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002975/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002976
John Criswell7a73b802003-06-30 21:59:07 +00002977int
2978main ()
2979{
2980
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002986if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002992 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002993 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002996 for ac_file in conftest.o conftest.obj conftest.*; do
2997 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002998 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3001 break;;
3002 esac
3003done
3004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003006sed 's/^/| /' conftest.$ac_ext >&5
3007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003008{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3009See \`config.log' for more details." >&5
3010echo "$as_me: error: cannot compute suffix of object files: cannot compile
3011See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003014
John Criswell7a73b802003-06-30 21:59:07 +00003015rm -f conftest.$ac_cv_objext conftest.$ac_ext
3016fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003017{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3018echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003019OBJEXT=$ac_cv_objext
3020ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003021{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3023if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003026 cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h. */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003032
John Criswell7a73b802003-06-30 21:59:07 +00003033int
3034main ()
3035{
3036#ifndef __GNUC__
3037 choke me
3038#endif
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003044rm -f conftest.$ac_objext
3045if { (ac_try="$ac_compile"
3046case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003078 ac_compiler_gnu=yes
3079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003080 echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003085
Reid Spencera773bd52006-08-04 18:18:08 +00003086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003087ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003088
3089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003090{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3091echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3092GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003093ac_test_CFLAGS=${CFLAGS+set}
3094ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003095{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3096echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3097if test "${ac_cv_prog_cc_g+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003099else
Reid Spencera773bd52006-08-04 18:18:08 +00003100 ac_save_c_werror_flag=$ac_c_werror_flag
3101 ac_c_werror_flag=yes
3102 ac_cv_prog_cc_g=no
3103 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003104 cat >conftest.$ac_ext <<_ACEOF
3105/* confdefs.h. */
3106_ACEOF
3107cat confdefs.h >>conftest.$ac_ext
3108cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003110
John Criswell7a73b802003-06-30 21:59:07 +00003111int
3112main ()
3113{
3114
3115 ;
3116 return 0;
3117}
3118_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003119rm -f conftest.$ac_objext
3120if { (ac_try="$ac_compile"
3121case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3127 ac_status=$?
3128 grep -v '^ *+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003153 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003154else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 CFLAGS=""
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003164/* end confdefs.h. */
3165
3166int
3167main ()
3168{
3169
3170 ;
3171 return 0;
3172}
3173_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003174rm -f conftest.$ac_objext
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 :
Torok Edwin871384f2010-01-26 08:50:50 +00003209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003214 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003215 cat >conftest.$ac_ext <<_ACEOF
3216/* confdefs.h. */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003220/* end confdefs.h. */
3221
3222int
3223main ()
3224{
3225
3226 ;
3227 return 0;
3228}
3229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230rm -f conftest.$ac_objext
3231if { (ac_try="$ac_compile"
3232case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235esac
3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3245 { (case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248esac
3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_try") 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
3259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_try") 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003264 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003265else
3266 echo "$as_me: failed program was:" >&5
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
3269
John Criswell7a73b802003-06-30 21:59:07 +00003270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271
Reid Spencera773bd52006-08-04 18:18:08 +00003272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003274
Reid Spencera773bd52006-08-04 18:18:08 +00003275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003277
Reid Spencera773bd52006-08-04 18:18:08 +00003278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 ac_c_werror_flag=$ac_save_c_werror_flag
3280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003281{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3282echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283if test "$ac_test_CFLAGS" = set; then
3284 CFLAGS=$ac_save_CFLAGS
3285elif test $ac_cv_prog_cc_g = yes; then
3286 if test "$GCC" = yes; then
3287 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003288 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003290 fi
3291else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292 if test "$GCC" = yes; then
3293 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003294 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003295 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003296 fi
3297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003298{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3299echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3300if test "${ac_cv_prog_cc_c89+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302else
Reid Spencera773bd52006-08-04 18:18:08 +00003303 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003305cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003310/* end confdefs.h. */
3311#include <stdarg.h>
3312#include <stdio.h>
3313#include <sys/types.h>
3314#include <sys/stat.h>
3315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316struct buf { int x; };
3317FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318static char *e (p, i)
3319 char **p;
3320 int i;
3321{
3322 return p[i];
3323}
3324static char *f (char * (*g) (char **, int), char **p, ...)
3325{
3326 char *s;
3327 va_list v;
3328 va_start (v,p);
3329 s = g (p, va_arg (v,int));
3330 va_end (v);
3331 return s;
3332}
3333
3334/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335 function prototypes and stuff, but not '\xHH' hex character constants.
3336 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003337 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003340 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3342
Reid Spencera773bd52006-08-04 18:18:08 +00003343/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344 inside strings and character constants. */
3345#define FOO(x) 'x'
3346int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3347
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348int test (int i, double x);
3349struct s1 {int (*f) (int a);};
3350struct s2 {int (*f) (double a);};
3351int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352int argc;
3353char **argv;
3354int
3355main ()
3356{
3357return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3358 ;
3359 return 0;
3360}
3361_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003362for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364do
3365 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003366 rm -f conftest.$ac_objext
3367if { (ac_try="$ac_compile"
3368case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371esac
3372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_compile") 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
3385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394esac
3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_try") 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003400 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003401else
3402 echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003407
Reid Spencera773bd52006-08-04 18:18:08 +00003408rm -f core conftest.err conftest.$ac_objext
3409 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410done
Reid Spencera773bd52006-08-04 18:18:08 +00003411rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412CC=$ac_save_CC
3413
3414fi
Reid Spencera773bd52006-08-04 18:18:08 +00003415# AC_CACHE_VAL
3416case "x$ac_cv_prog_cc_c89" in
3417 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003418 { echo "$as_me:$LINENO: result: none needed" >&5
3419echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003420 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003421 { echo "$as_me:$LINENO: result: unsupported" >&5
3422echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003424 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003425 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3426echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427esac
3428
John Criswell0c38eaf2003-09-10 15:17:25 +00003429
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430ac_ext=c
3431ac_cpp='$CPP $CPPFLAGS'
3432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435
3436
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437ac_ext=c
3438ac_cpp='$CPP $CPPFLAGS'
3439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003442{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3443echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444# On Suns, sometimes $CPP names a directory.
3445if test -n "$CPP" && test -d "$CPP"; then
3446 CPP=
3447fi
3448if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003449 if test "${ac_cv_prog_CPP+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451else
3452 # Double quotes because CPP needs to be expanded
3453 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3454 do
3455 ac_preproc_ok=false
3456for ac_c_preproc_warn_flag in '' yes
3457do
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461 # <limits.h> exists even on freestanding compilers.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003464 cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469/* end confdefs.h. */
3470#ifdef __STDC__
3471# include <limits.h>
3472#else
3473# include <assert.h>
3474#endif
3475 Syntax error
3476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003477if { (ac_try="$ac_cpp conftest.$ac_ext"
3478case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481esac
3482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3495 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003497 ac_cpp_err=yes
3498fi
3499if test -z "$ac_cpp_err"; then
3500 :
3501else
3502 echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505 # Broken: fails on valid input.
3506continue
3507fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003508
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003509rm -f conftest.err conftest.$ac_ext
3510
Reid Spencera773bd52006-08-04 18:18:08 +00003511 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003513 cat >conftest.$ac_ext <<_ACEOF
3514/* confdefs.h. */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003518/* end confdefs.h. */
3519#include <ac_nonexistent.h>
3520_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003521if { (ac_try="$ac_cpp conftest.$ac_ext"
3522case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
3526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null; then
3534 if test -s conftest.err; then
3535 ac_cpp_err=$ac_c_preproc_warn_flag
3536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3537 else
3538 ac_cpp_err=
3539 fi
3540else
3541 ac_cpp_err=yes
3542fi
3543if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544 # Broken: success on invalid input.
3545continue
3546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003547 echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003550 # Passes both tests.
3551ac_preproc_ok=:
3552break
3553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003554
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003555rm -f conftest.err conftest.$ac_ext
3556
3557done
3558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003560if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003561 break
3562fi
3563
3564 done
3565 ac_cv_prog_CPP=$CPP
3566
3567fi
3568 CPP=$ac_cv_prog_CPP
3569else
3570 ac_cv_prog_CPP=$CPP
3571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003572{ echo "$as_me:$LINENO: result: $CPP" >&5
3573echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574ac_preproc_ok=false
3575for ac_c_preproc_warn_flag in '' yes
3576do
3577 # Use a header file that comes with gcc, so configuring glibc
3578 # with a fresh cross-compiler works.
3579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580 # <limits.h> exists even on freestanding compilers.
3581 # On the NeXT, cc -E runs the code through the compiler's parser,
3582 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588/* end confdefs.h. */
3589#ifdef __STDC__
3590# include <limits.h>
3591#else
3592# include <assert.h>
3593#endif
3594 Syntax error
3595_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003596if { (ac_try="$ac_cpp conftest.$ac_ext"
3597case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600esac
3601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 else
3613 ac_cpp_err=
3614 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616 ac_cpp_err=yes
3617fi
3618if test -z "$ac_cpp_err"; then
3619 :
3620else
3621 echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624 # Broken: fails on valid input.
3625continue
3626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003627
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003628rm -f conftest.err conftest.$ac_ext
3629
Reid Spencera773bd52006-08-04 18:18:08 +00003630 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003632 cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h. */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003637/* end confdefs.h. */
3638#include <ac_nonexistent.h>
3639_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003640if { (ac_try="$ac_cpp conftest.$ac_ext"
3641case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644esac
3645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev/null; then
3653 if test -s conftest.err; then
3654 ac_cpp_err=$ac_c_preproc_warn_flag
3655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3656 else
3657 ac_cpp_err=
3658 fi
3659else
3660 ac_cpp_err=yes
3661fi
3662if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003663 # Broken: success on invalid input.
3664continue
3665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003666 echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003669 # Passes both tests.
3670ac_preproc_ok=:
3671break
3672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003673
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003674rm -f conftest.err conftest.$ac_ext
3675
3676done
3677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003679if $ac_preproc_ok; then
3680 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003682 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3683See \`config.log' for more details." >&5
3684echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3685See \`config.log' for more details." >&2;}
3686 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003687fi
3688
John Criswell7a73b802003-06-30 21:59:07 +00003689ac_ext=c
3690ac_cpp='$CPP $CPPFLAGS'
3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694
John Criswell7a73b802003-06-30 21:59:07 +00003695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003696{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3697echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3698if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003700else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003701 # Extract the first word of "grep ggrep" to use in msg output
3702if test -z "$GREP"; then
3703set dummy grep ggrep; ac_prog_name=$2
3704if test "${ac_cv_path_GREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
Reid Spencera773bd52006-08-04 18:18:08 +00003707 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003708# Loop through the user's path and test for each of PROGNAME-LIST
3709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003711do
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003714 for ac_prog in grep ggrep; do
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3717 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3718 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003719 # Check for GNU $ac_path_GREP
3720case `"$ac_path_GREP" --version 2>&1` in
3721*GNU*)
3722 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3723*)
3724 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003725 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003726 while :
3727 do
3728 cat "conftest.in" "conftest.in" >"conftest.tmp"
3729 mv "conftest.tmp" "conftest.in"
3730 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003731 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003732 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003734 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003735 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3736 # Best one so far, save it but keep looking for a better one
3737 ac_cv_path_GREP="$ac_path_GREP"
3738 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003739 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003740 # 10*(2^10) chars as input seems more than enough
3741 test $ac_count -gt 10 && break
3742 done
3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744esac
3745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003746
3747 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003748 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003749done
3750
3751done
Reid Spencera773bd52006-08-04 18:18:08 +00003752IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003753
3754
3755fi
3756
3757GREP="$ac_cv_path_GREP"
3758if test -z "$GREP"; then
3759 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761 { (exit 1); exit 1; }; }
3762fi
3763
Reid Spencera773bd52006-08-04 18:18:08 +00003764else
3765 ac_cv_path_GREP=$GREP
3766fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003768
Reid Spencera773bd52006-08-04 18:18:08 +00003769fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003770{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3771echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003772 GREP="$ac_cv_path_GREP"
3773
3774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003775{ echo "$as_me:$LINENO: checking for egrep" >&5
3776echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3777if test "${ac_cv_path_EGREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003779else
3780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3781 then ac_cv_path_EGREP="$GREP -E"
3782 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003783 # Extract the first word of "egrep" to use in msg output
3784if test -z "$EGREP"; then
3785set dummy egrep; ac_prog_name=$2
3786if test "${ac_cv_path_EGREP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
Reid Spencera773bd52006-08-04 18:18:08 +00003789 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003790# Loop through the user's path and test for each of PROGNAME-LIST
3791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003792for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003796 for ac_prog in egrep; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3799 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3800 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003801 # Check for GNU $ac_path_EGREP
3802case `"$ac_path_EGREP" --version 2>&1` in
3803*GNU*)
3804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3805*)
3806 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003807 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003808 while :
3809 do
3810 cat "conftest.in" "conftest.in" >"conftest.tmp"
3811 mv "conftest.tmp" "conftest.in"
3812 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003813 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003816 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3818 # Best one so far, save it but keep looking for a better one
3819 ac_cv_path_EGREP="$ac_path_EGREP"
3820 ac_path_EGREP_max=$ac_count
3821 fi
3822 # 10*(2^10) chars as input seems more than enough
3823 test $ac_count -gt 10 && break
3824 done
3825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3826esac
3827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003828
3829 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003830 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003831done
3832
3833done
Reid Spencera773bd52006-08-04 18:18:08 +00003834IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003835
3836
3837fi
3838
3839EGREP="$ac_cv_path_EGREP"
3840if test -z "$EGREP"; then
3841 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3842echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3843 { (exit 1); exit 1; }; }
3844fi
3845
Reid Spencera773bd52006-08-04 18:18:08 +00003846else
3847 ac_cv_path_EGREP=$EGREP
3848fi
3849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003850
Reid Spencera773bd52006-08-04 18:18:08 +00003851 fi
3852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003853{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3854echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003855 EGREP="$ac_cv_path_EGREP"
3856
3857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003858{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3859echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3860if test "${ac_cv_header_stdc+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003862else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003863 cat >conftest.$ac_ext <<_ACEOF
3864/* confdefs.h. */
3865_ACEOF
3866cat confdefs.h >>conftest.$ac_ext
3867cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003869#include <stdlib.h>
3870#include <stdarg.h>
3871#include <string.h>
3872#include <float.h>
3873
John Criswell0c38eaf2003-09-10 15:17:25 +00003874int
3875main ()
3876{
3877
3878 ;
3879 return 0;
3880}
John Criswell7a73b802003-06-30 21:59:07 +00003881_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003882rm -f conftest.$ac_objext
3883if { (ac_try="$ac_compile"
3884case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887esac
3888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3897 { (case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900esac
3901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_try") 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910esac
3911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_try") 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003916 ac_cv_header_stdc=yes
3917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003918 echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003922fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923
Reid Spencera773bd52006-08-04 18:18:08 +00003924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003925
3926if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003934#include <string.h>
3935
3936_ACEOF
3937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003938 $EGREP "memchr" >/dev/null 2>&1; then
3939 :
John Criswell7a73b802003-06-30 21:59:07 +00003940else
3941 ac_cv_header_stdc=no
3942fi
3943rm -f conftest*
3944
3945fi
3946
3947if test $ac_cv_header_stdc = yes; then
3948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003949 cat >conftest.$ac_ext <<_ACEOF
3950/* confdefs.h. */
3951_ACEOF
3952cat confdefs.h >>conftest.$ac_ext
3953cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003955#include <stdlib.h>
3956
3957_ACEOF
3958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959 $EGREP "free" >/dev/null 2>&1; then
3960 :
John Criswell7a73b802003-06-30 21:59:07 +00003961else
3962 ac_cv_header_stdc=no
3963fi
3964rm -f conftest*
3965
3966fi
3967
3968if test $ac_cv_header_stdc = yes; then
3969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003970 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003971 :
3972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003973 cat >conftest.$ac_ext <<_ACEOF
3974/* confdefs.h. */
3975_ACEOF
3976cat confdefs.h >>conftest.$ac_ext
3977cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003978/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003979#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003980#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003981#if ((' ' & 0x0FF) == 0x020)
3982# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3983# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3984#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003985# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003986 (('a' <= (c) && (c) <= 'i') \
3987 || ('j' <= (c) && (c) <= 'r') \
3988 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003989# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3990#endif
3991
3992#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3993int
3994main ()
3995{
3996 int i;
3997 for (i = 0; i < 256; i++)
3998 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003999 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004000 return 2;
4001 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004002}
4003_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004004rm -f conftest$ac_exeext
4005if { (ac_try="$ac_link"
4006case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009esac
4010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011 (eval "$ac_link") 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015 { (case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018esac
4019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_try") 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 :
John Criswell7a73b802003-06-30 21:59:07 +00004025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004026 echo "$as_me: program exited with status $ac_status" >&5
4027echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030( exit $ac_status )
4031ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004034fi
4035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004036
John Criswell7a73b802003-06-30 21:59:07 +00004037fi
4038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4040echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004041if test $ac_cv_header_stdc = yes; then
4042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043cat >>confdefs.h <<\_ACEOF
4044#define STDC_HEADERS 1
4045_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004046
4047fi
4048
Reid Spencera773bd52006-08-04 18:18:08 +00004049# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004050
4051
4052
4053
4054
4055
4056
4057
4058
Reid Spencera773bd52006-08-04 18:18:08 +00004059for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4060 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004061do
4062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4063{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068 cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h. */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h. */
4074$ac_includes_default
4075
4076#include <$ac_header>
4077_ACEOF
4078rm -f conftest.$ac_objext
4079if { (ac_try="$ac_compile"
4080case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083esac
4084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106esac
4107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 eval "$as_ac_Header=yes"
4113else
4114 echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117 eval "$as_ac_Header=no"
4118fi
4119
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121fi
4122ac_res=`eval echo '${'$as_ac_Header'}'`
4123 { echo "$as_me:$LINENO: result: $ac_res" >&5
4124echo "${ECHO_T}$ac_res" >&6; }
4125if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004126 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004128_ACEOF
4129
4130fi
4131
4132done
4133
4134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4136echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4137if test "${ac_cv_c_bigendian+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140 # See if sys/param.h defines the BYTE_ORDER macro.
4141cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004143_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004146/* end confdefs.h. */
4147#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004148#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004149
4150int
4151main ()
4152{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004153#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4154 bogus endian macros
4155#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004156
4157 ;
4158 return 0;
4159}
4160_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004161rm -f conftest.$ac_objext
4162if { (ac_try="$ac_compile"
4163case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4169 ac_status=$?
4170 grep -v '^ *+' conftest.er1 >conftest.err
4171 rm -f conftest.er1
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176 { (case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179esac
4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_try") 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004195 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004196cat >conftest.$ac_ext <<_ACEOF
4197/* confdefs.h. */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004201/* end confdefs.h. */
4202#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004204
4205int
4206main ()
4207{
4208#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004209 not big endian
4210#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004211
4212 ;
4213 return 0;
4214}
4215_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004216rm -f conftest.$ac_objext
4217if { (ac_try="$ac_compile"
4218case "(($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_compile") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234esac
4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004250 ac_cv_c_bigendian=yes
4251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004252 echo "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255 ac_cv_c_bigendian=no
4256fi
4257
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259else
4260 echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 # It does not; compile a test program.
4264if test "$cross_compiling" = yes; then
4265 # try to guess the endianness by grepping values into an object file
4266 ac_cv_c_bigendian=unknown
4267 cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h. */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h. */
4273short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4274short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4275void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4276short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4277short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4278void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004279int
4280main ()
4281{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004283 ;
4284 return 0;
4285}
4286_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287rm -f conftest.$ac_objext
4288if { (ac_try="$ac_compile"
4289case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292esac
4293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4302 { (case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_try") 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315esac
4316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_try") 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004322 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004323fi
4324if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4325 if test "$ac_cv_c_bigendian" = unknown; then
4326 ac_cv_c_bigendian=no
4327 else
4328 # finding both strings is unlikely to happen, but who knows?
4329 ac_cv_c_bigendian=unknown
4330 fi
4331fi
Reid Spencera773bd52006-08-04 18:18:08 +00004332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004333 echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336
Torok Edwin871384f2010-01-26 08:50:50 +00004337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004338
Reid Spencera773bd52006-08-04 18:18:08 +00004339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004341 cat >conftest.$ac_ext <<_ACEOF
4342/* confdefs.h. */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004346/* end confdefs.h. */
4347$ac_includes_default
4348int
4349main ()
4350{
4351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352 /* Are we little or big endian? From Harbison&Steele. */
4353 union
4354 {
4355 long int l;
4356 char c[sizeof (long int)];
4357 } u;
4358 u.l = 1;
4359 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004360
4361 ;
4362 return 0;
4363}
4364_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365rm -f conftest$ac_exeext
4366if { (ac_try="$ac_link"
4367case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
4371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_link") 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4376 { (case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379esac
4380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_try") 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004385 ac_cv_c_bigendian=no
4386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387 echo "$as_me: program exited with status $ac_status" >&5
4388echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391( exit $ac_status )
4392ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004395fi
4396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004397
Reid Spencera773bd52006-08-04 18:18:08 +00004398fi
4399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401fi
4402{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4403echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4404case $ac_cv_c_bigendian in
4405 yes)
4406 ENDIAN=big
4407 ;;
4408 no)
4409 ENDIAN=little
4410 ;;
4411 *)
4412 { { echo "$as_me:$LINENO: error: unknown endianness
4413presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4414echo "$as_me: error: unknown endianness
4415presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4416 { (exit 1); exit 1; }; } ;;
4417esac
Reid Spencera773bd52006-08-04 18:18:08 +00004418
4419
4420if test "$cross_compiling" = yes; then
4421 LLVM_CROSS_COMPILING=1
4422
4423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4425echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4426if test "${ac_cv_build_exeext+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004428else
4429 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4430 ac_cv_build_exeext=.exe
4431else
4432 ac_build_prefix=${build_alias}-
4433
4434 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4435set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004440else
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004451 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004453 break 2
4454 fi
4455done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004456done
Reid Spencera773bd52006-08-04 18:18:08 +00004457IFS=$as_save_IFS
4458
4459fi
4460fi
4461BUILD_CC=$ac_cv_prog_BUILD_CC
4462if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004466 { echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004468fi
4469
4470
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "gcc", so it can be a program name with args.
4473set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004478else
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004489 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004491 break 2
4492 fi
4493done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004494done
Reid Spencera773bd52006-08-04 18:18:08 +00004495IFS=$as_save_IFS
4496
4497fi
4498fi
4499BUILD_CC=$ac_cv_prog_BUILD_CC
4500if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004501 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4502echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004504 { echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004506fi
4507
4508
4509 if test -z "$BUILD_CC"; then
4510 # Extract the first word of "cc", so it can be a program name with args.
4511set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004516else
4517 if test -n "$BUILD_CC"; then
4518 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4519else
4520 ac_prog_rejected=no
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004528 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4529 ac_prog_rejected=yes
4530 continue
4531 fi
4532 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004534 break 2
4535 fi
4536done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004537done
Reid Spencera773bd52006-08-04 18:18:08 +00004538IFS=$as_save_IFS
4539
4540if test $ac_prog_rejected = yes; then
4541 # We found a bogon in the path, so make sure we never use it.
4542 set dummy $ac_cv_prog_BUILD_CC
4543 shift
4544 if test $# != 0; then
4545 # We chose a different compiler from the bogus one.
4546 # However, it has the same basename, so the bogon will be chosen
4547 # first if we set BUILD_CC to just the basename; use the full file name.
4548 shift
4549 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4550 fi
4551fi
4552fi
4553fi
4554BUILD_CC=$ac_cv_prog_BUILD_CC
4555if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004556 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4557echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004559 { echo "$as_me:$LINENO: result: no" >&5
4560echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004561fi
4562
4563
4564 fi
4565 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4567echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4568 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004569 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4570 rm -f conftest*
4571 echo 'int main () { return 0; }' > conftest.$ac_ext
4572 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004574 (eval $ac_build_link) 2>&5
4575 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004578 for file in conftest.*; do
4579 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004580 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004581 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4582 esac
4583 done
4584 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004585 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4586echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4587 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004588 fi
4589 rm -f conftest*
4590 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4591fi
4592fi
4593
4594BUILD_EXEEXT=""
4595test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004596{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4597echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004598ac_build_exeext=$BUILD_EXEEXT
4599
Jim Grosbach673612e2008-10-02 22:56:44 +00004600 ac_build_prefix=${build_alias}-
4601 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4602set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004607else
4608 if test -n "$BUILD_CXX"; then
4609 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004618 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004620 break 2
4621 fi
4622done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004623done
Jim Grosbach673612e2008-10-02 22:56:44 +00004624IFS=$as_save_IFS
4625
4626fi
4627fi
4628BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004633 { echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004635fi
4636
4637
4638 if test -z "$BUILD_CXX"; then
4639 # Extract the first word of "g++", so it can be a program name with args.
4640set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004645else
4646 if test -n "$BUILD_CXX"; then
4647 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4648else
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004656 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004658 break 2
4659 fi
4660done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661done
Jim Grosbach673612e2008-10-02 22:56:44 +00004662IFS=$as_save_IFS
4663
4664fi
4665fi
4666BUILD_CXX=$ac_cv_prog_BUILD_CXX
4667if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4669echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004671 { echo "$as_me:$LINENO: result: no" >&5
4672echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004673fi
4674
4675
4676 if test -z "$BUILD_CXX"; then
4677 # Extract the first word of "c++", so it can be a program name with args.
4678set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004683else
4684 if test -n "$BUILD_CXX"; then
4685 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4686else
4687 ac_prog_rejected=no
4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4696 ac_prog_rejected=yes
4697 continue
4698 fi
4699 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004701 break 2
4702 fi
4703done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004704done
Jim Grosbach673612e2008-10-02 22:56:44 +00004705IFS=$as_save_IFS
4706
4707if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_BUILD_CXX
4710 shift
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set BUILD_CXX to just the basename; use the full file name.
4715 shift
4716 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4717 fi
4718fi
4719fi
4720fi
4721BUILD_CXX=$ac_cv_prog_BUILD_CXX
4722if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004723 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4724echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726 { echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004728fi
4729
4730
4731 fi
4732 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004733else
4734 LLVM_CROSS_COMPILING=0
4735
4736fi
4737
Dan Gohman56fb5f92010-08-04 16:25:01 +00004738if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004739 cvsbuild="yes"
4740 optimize="no"
4741 CVSBUILD=CVSBUILD=1
4742
4743else
4744 cvsbuild="no"
4745 optimize="yes"
4746fi
4747
4748
4749# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004750if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004751 enableval=$enable_optimized;
4752else
4753 enableval=$optimize
4754fi
4755
4756if test ${enableval} = "no" ; then
4757 ENABLE_OPTIMIZED=
4758
4759else
4760 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4761
4762fi
4763
David Greene2a5a12c2009-04-17 14:50:39 +00004764# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004766 enableval=$enable_profiling;
4767else
4768 enableval="no"
4769fi
4770
4771if test ${enableval} = "no" ; then
4772 ENABLE_PROFILING=
4773
4774else
4775 ENABLE_PROFILING=ENABLE_PROFILING=1
4776
4777fi
4778
Reid Spencera773bd52006-08-04 18:18:08 +00004779# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004780if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004781 enableval=$enable_assertions;
4782else
4783 enableval="yes"
4784fi
4785
4786if test ${enableval} = "yes" ; then
4787 DISABLE_ASSERTIONS=
4788
4789else
4790 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4791
4792fi
4793
David Greenea696d242007-06-28 19:36:08 +00004794# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004796 enableval=$enable_expensive_checks;
4797else
4798 enableval="no"
4799fi
4800
4801if test ${enableval} = "yes" ; then
4802 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4803
4804 EXPENSIVE_CHECKS=yes
4805
4806else
4807 ENABLE_EXPENSIVE_CHECKS=
4808
4809 EXPENSIVE_CHECKS=no
4810
4811fi
4812
Reid Spencer8b2e1412006-11-17 03:32:33 +00004813# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004814if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004815 enableval=$enable_debug_runtime;
4816else
4817 enableval=no
4818fi
4819
4820if test ${enableval} = "no" ; then
4821 DEBUG_RUNTIME=
4822
4823else
4824 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4825
4826fi
4827
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004828# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004830 enableval=$enable_debug_symbols;
4831else
4832 enableval=no
4833fi
4834
4835if test ${enableval} = "no" ; then
4836 DEBUG_SYMBOLS=
4837
4838else
4839 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4840
4841fi
4842
Reid Spencera773bd52006-08-04 18:18:08 +00004843# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004845 enableval=$enable_jit;
4846else
4847 enableval=default
4848fi
4849
4850if test ${enableval} = "no"
4851then
4852 JIT=
4853
4854else
4855 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004856 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004857 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004858 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004859 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004860 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004861 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004862 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004863 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004864 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004865 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004866 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004867 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004868 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004869 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004870 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004871 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004872 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004873 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004874 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004875 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004876 Blackfin) TARGET_HAS_JIT=0
4877 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004878 MBlaze) TARGET_HAS_JIT=0
4879 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004880 PTX) TARGET_HAS_JIT=0
4881 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004882 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004883 ;;
4884 esac
4885fi
4886
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004887# Check whether --enable-docs was given.
4888if test "${enable_docs+set}" = set; then
4889 enableval=$enable_docs;
4890else
4891 enableval=default
4892fi
4893
4894case "$enableval" in
4895 yes) ENABLE_DOCS=1
4896 ;;
4897 no) ENABLE_DOCS=0
4898 ;;
4899 default) ENABLE_DOCS=1
4900 ;;
4901 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4902echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4903 { (exit 1); exit 1; }; } ;;
4904esac
4905
Reid Spencera773bd52006-08-04 18:18:08 +00004906# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004907if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004908 enableval=$enable_doxygen;
4909else
4910 enableval=default
4911fi
4912
4913case "$enableval" in
4914 yes) ENABLE_DOXYGEN=1
4915 ;;
4916 no) ENABLE_DOXYGEN=0
4917 ;;
4918 default) ENABLE_DOXYGEN=0
4919 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4921echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4922 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004923esac
4924
4925# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004926if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004927 enableval=$enable_threads;
4928else
Reid Spencer65c5d752006-11-05 17:08:18 +00004929 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004930fi
4931
4932case "$enableval" in
4933 yes) ENABLE_THREADS=1
4934 ;;
4935 no) ENABLE_THREADS=0
4936 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004937 default) ENABLE_THREADS=1
4938 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4940echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4941 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004942esac
4943
Owen Andersona8603702009-05-19 22:18:56 +00004944cat >>confdefs.h <<_ACEOF
4945#define ENABLE_THREADS $ENABLE_THREADS
4946_ACEOF
4947
4948
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00004949# Check whether --enable-pthreads was given.
4950if test "${enable_pthreads+set}" = set; then
4951 enableval=$enable_pthreads;
4952else
4953 enableval=default
4954fi
4955
4956case "$enableval" in
4957 yes) ENABLE_PTHREADS=1
4958 ;;
4959 no) ENABLE_PTHREADS=0
4960 ;;
4961 default) ENABLE_PTHREADS=1
4962 ;;
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4964echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4966esac
4967
Reid Spencer89b0d992006-12-16 22:07:52 +00004968# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004969if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004970 enableval=$enable_pic;
4971else
4972 enableval=default
4973fi
4974
4975case "$enableval" in
4976 yes) ENABLE_PIC=1
4977 ;;
4978 no) ENABLE_PIC=0
4979 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004980 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004981 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004982 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4983echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4984 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004985esac
4986
4987cat >>confdefs.h <<_ACEOF
4988#define ENABLE_PIC $ENABLE_PIC
4989_ACEOF
4990
4991
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004992# Check whether --enable-shared was given.
4993if test "${enable_shared+set}" = set; then
4994 enableval=$enable_shared;
4995else
4996 enableval=default
4997fi
4998
4999case "$enableval" in
5000 yes) ENABLE_SHARED=1
5001 ;;
5002 no) ENABLE_SHARED=0
5003 ;;
5004 default) ENABLE_SHARED=0
5005 ;;
5006 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5007echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5008 { (exit 1); exit 1; }; } ;;
5009esac
5010
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005011# Check whether --enable-embed-stdcxx was given.
5012if test "${enable_embed_stdcxx+set}" = set; then
5013 enableval=$enable_embed_stdcxx;
5014else
5015 enableval=default
5016fi
5017
5018case "$enableval" in
5019 yes) ENABLE_EMBED_STDCXX=1
5020 ;;
5021 no) ENABLE_EMBED_STDCXX=0
5022 ;;
5023 default) ENABLE_EMBED_STDCXX=1
5024 ;;
5025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5026echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5028esac
5029
Daniel Dunbardd464df2010-05-10 20:11:56 +00005030# Check whether --enable-timestamps was given.
5031if test "${enable_timestamps+set}" = set; then
5032 enableval=$enable_timestamps;
5033else
5034 enableval=default
5035fi
5036
5037case "$enableval" in
5038 yes) ENABLE_TIMESTAMPS=1
5039 ;;
5040 no) ENABLE_TIMESTAMPS=0
5041 ;;
5042 default) ENABLE_TIMESTAMPS=1
5043 ;;
5044 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5045echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5046 { (exit 1); exit 1; }; } ;;
5047esac
5048
5049cat >>confdefs.h <<_ACEOF
5050#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5051_ACEOF
5052
5053
Reid Spencera773bd52006-08-04 18:18:08 +00005054TARGETS_TO_BUILD=""
5055# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005056if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005057 enableval=$enable_targets;
5058else
5059 enableval=all
5060fi
5061
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005062if test "$enableval" = host-only ; then
5063 enableval=host
5064fi
Reid Spencera773bd52006-08-04 18:18:08 +00005065case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005066 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005067 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5068 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005069 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5070 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5071 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5072 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5073 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5074 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5075 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5076 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005077 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5078 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5079 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5080 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5081 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005082 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005083 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005084 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005085 host) case "$llvm_cv_target_arch" in
5086 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5087 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5088 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5089 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5090 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5091 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5092 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005093 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005094 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005095 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5096 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005097 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005098 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005099 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005100 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5101echo "$as_me: error: Can not set target to build" >&2;}
5102 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005103 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005104 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5105echo "$as_me: error: Unrecognized target $a_target" >&2;}
5106 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005107 esac
5108 done
5109 ;;
5110esac
Reid Spencera773bd52006-08-04 18:18:08 +00005111TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5112
5113
Douglas Gregor0711c302009-06-17 00:43:20 +00005114# Determine whether we are building LLVM support for the native architecture.
5115# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5116for a_target in $TARGETS_TO_BUILD; do
5117 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5118
5119cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005120#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5121_ACEOF
5122
5123 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5124 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng1abf2cb2011-07-14 23:50:31 +00005125 LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo"
Evan Cheng43966132011-07-19 06:37:02 +00005126 LLVM_NATIVE_MCCODEGENINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCCodeGenInfo"
Eric Christopher753f3262010-08-30 18:34:48 +00005127 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005128 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5129 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5130 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005131
5132cat >>confdefs.h <<_ACEOF
5133#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005134_ACEOF
5135
5136
5137cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005138#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5139_ACEOF
5140
5141
5142cat >>confdefs.h <<_ACEOF
Evan Cheng1abf2cb2011-07-14 23:50:31 +00005143#define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO
5144_ACEOF
5145
5146
5147cat >>confdefs.h <<_ACEOF
Evan Cheng43966132011-07-19 06:37:02 +00005148#define LLVM_NATIVE_MCCODEGENINFO $LLVM_NATIVE_MCCODEGENINFO
5149_ACEOF
5150
5151
5152cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005153#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005154_ACEOF
5155
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005156 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005157
5158cat >>confdefs.h <<_ACEOF
5159#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5160_ACEOF
5161
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005162 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005163 fi
5164done
5165
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005166# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5167# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005168LLVM_ENUM_TARGETS=""
5169LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005170LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005171LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005172for target_to_build in $TARGETS_TO_BUILD; do
5173 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005174 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005175 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5176 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005177 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5178 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5179 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005180 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5181 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5182 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005183done
5184
5185
5186
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005187
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005188
Reid Spencer65c5d752006-11-05 17:08:18 +00005189# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005190if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005191 enableval=$enable_cbe_printf_a;
5192else
5193 enableval=default
5194fi
5195
5196case "$enableval" in
5197 yes) ENABLE_CBE_PRINTF_A=1
5198 ;;
5199 no) ENABLE_CBE_PRINTF_A=0
5200 ;;
5201 default) ENABLE_CBE_PRINTF_A=1
5202 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5204echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005206esac
5207
5208cat >>confdefs.h <<_ACEOF
5209#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5210_ACEOF
5211
5212
Reid Spencera773bd52006-08-04 18:18:08 +00005213
5214# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005215if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005216 withval=$with_llvmgccdir;
5217else
5218 withval=default
5219fi
5220
5221case "$withval" in
5222 default) WITH_LLVMGCCDIR=default ;;
5223 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005224 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5225echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5226 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005227esac
5228
5229
Devang Patel5d28b882007-12-04 22:54:47 +00005230# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005231if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005232 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5233 WITH_LLVMGCCDIR=""
5234fi
5235
5236
5237
5238# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005239if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005240 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5241 WITH_LLVMGCCDIR=""
5242fi
5243
Douglas Gregor01746742009-05-11 18:05:52 +00005244
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005245if test -n "$LLVMGCC"; then
5246 LLVMGCCCOMMAND="$LLVMGCC"
5247fi
5248
5249if test -n "$LLVMGXX"; then
5250 LLVMGXXCOMMAND="$LLVMGXX"
5251fi
Devang Patel5d28b882007-12-04 22:54:47 +00005252
5253if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005254 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5255echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5256 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005257fi
5258
5259if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005260 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5261echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5262 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005263fi
5264
5265
Daniel Dunbar98515672010-02-23 10:00:49 +00005266# Check whether --with-clang was given.
5267if test "${with_clang+set}" = set; then
5268 withval=$with_clang;
5269else
5270 with_clang=default
5271fi
5272
5273
5274
5275# Check whether --with-built-clang was given.
5276if test "${with_built_clang+set}" = set; then
5277 withval=$with_built_clang;
5278else
5279 with_built_clang=check
5280fi
5281
5282
5283{ echo "$as_me:$LINENO: checking clang compiler" >&5
5284echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5285WITH_CLANGPATH=""
5286WITH_BUILT_CLANG=0
5287if test "$with_clang" != "default"; then
5288 WITH_CLANGPATH="$with_clang"
5289 if ! test -x "$WITH_CLANGPATH"; then
5290 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5291echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5292 { (exit 1); exit 1; }; }
5293 fi
5294elif test "$with_built_clang" = "yes"; then
5295 WITH_BUILT_CLANG=1
5296elif test "$with_built_clang" = "no"; then
5297 WITH_BUILT_CLANG=0
5298else
5299 if test "$with_built_clang" != "check"; then
5300 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5301echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5302 { (exit 1); exit 1; }; }
5303 fi
5304
5305 if test -f ${srcdir}/tools/clang/README.txt; then
5306 WITH_BUILT_CLANG=1
5307 fi
5308fi
5309
5310if ! test -z "$WITH_CLANGPATH"; then
5311 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5312echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5313 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5314elif test "$WITH_BUILT_CLANG" = "1"; then
5315 { echo "$as_me:$LINENO: result: built" >&5
5316echo "${ECHO_T}built" >&6; }
5317else
5318 { echo "$as_me:$LINENO: result: none" >&5
5319echo "${ECHO_T}none" >&6; }
5320fi
5321CLANGPATH=$WITH_CLANGPATH
5322
5323CLANGXXPATH=$WITH_CLANGXXPATH
5324
5325ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5326
5327
5328
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005329# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005330if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005331 withval=$with_optimize_option;
5332else
5333 withval=default
5334fi
5335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005336{ echo "$as_me:$LINENO: checking optimization flags" >&5
5337echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005338case "$withval" in
5339 default)
5340 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005341 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005342 MingW) optimize_option=-O2 ;;
5343 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005344 esac ;;
5345 *) optimize_option="$withval" ;;
5346esac
5347OPTIMIZE_OPTION=$optimize_option
5348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005349{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5350echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005351
5352
Reid Spencera773bd52006-08-04 18:18:08 +00005353# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005354if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005355 withval=$with_extra_options;
5356else
5357 withval=default
5358fi
5359
5360case "$withval" in
5361 default) EXTRA_OPTIONS= ;;
5362 *) EXTRA_OPTIONS=$withval ;;
5363esac
5364EXTRA_OPTIONS=$EXTRA_OPTIONS
5365
5366
Daniel Dunbared344d22011-06-16 22:30:41 +00005367
5368# Check whether --with-extra-ld-options was given.
5369if test "${with_extra_ld_options+set}" = set; then
5370 withval=$with_extra_ld_options;
5371else
5372 withval=default
5373fi
5374
5375case "$withval" in
5376 default) EXTRA_LD_OPTIONS= ;;
5377 *) EXTRA_LD_OPTIONS=$withval ;;
5378esac
5379EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5380
5381
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005382# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005383if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005384 enableval=$enable_bindings;
5385else
5386 enableval=default
5387fi
5388
5389BINDINGS_TO_BUILD=""
5390case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005391 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005392 all ) BINDINGS_TO_BUILD="ocaml" ;;
5393 none | no) BINDINGS_TO_BUILD="" ;;
5394 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5395 case "$a_binding" in
5396 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005397 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5398echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5399 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005400 esac
5401 done
5402 ;;
5403esac
5404
Reid Spencera773bd52006-08-04 18:18:08 +00005405
Gordon Henriksenf0915682007-10-02 16:42:22 +00005406# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005407if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005408 withval=$with_ocaml_libdir;
5409else
5410 withval=auto
5411fi
5412
5413case "$withval" in
5414 auto) with_ocaml_libdir="$withval" ;;
5415 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005416 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5417echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5418 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005419esac
5420
5421
Chandler Carruth6b241162010-10-19 08:21:25 +00005422# Check whether --with-clang-resource-dir was given.
5423if test "${with_clang_resource_dir+set}" = set; then
5424 withval=$with_clang_resource_dir;
5425else
5426 withval=""
5427fi
5428
5429
5430cat >>confdefs.h <<_ACEOF
5431#define CLANG_RESOURCE_DIR "$withval"
5432_ACEOF
5433
5434
5435
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005436# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005437if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005438 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005439else
5440 withval=""
5441fi
5442
5443
5444cat >>confdefs.h <<_ACEOF
5445#define C_INCLUDE_DIRS "$withval"
5446_ACEOF
5447
5448
5449
Rafael Espindola420d23c2009-11-16 19:46:55 +00005450# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005451if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005452 withval=$with_cxx_include_root;
5453else
5454 withval=""
5455fi
5456
5457
5458cat >>confdefs.h <<_ACEOF
5459#define CXX_INCLUDE_ROOT "$withval"
5460_ACEOF
5461
5462
5463
5464# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005465if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005466 withval=$with_cxx_include_arch;
5467else
5468 withval=""
5469fi
5470
5471
5472cat >>confdefs.h <<_ACEOF
5473#define CXX_INCLUDE_ARCH "$withval"
5474_ACEOF
5475
5476
5477
5478# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005479if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005480 withval=$with_cxx_include_32bit_dir;
5481else
5482 withval=""
5483fi
5484
5485
5486cat >>confdefs.h <<_ACEOF
5487#define CXX_INCLUDE_32BIT_DIR "$withval"
5488_ACEOF
5489
5490
5491
5492# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005494 withval=$with_cxx_include_64bit_dir;
5495else
5496 withval=""
5497fi
5498
5499
5500cat >>confdefs.h <<_ACEOF
5501#define CXX_INCLUDE_64BIT_DIR "$withval"
5502_ACEOF
5503
5504
5505
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005506# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005507if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005508 withval=$with_binutils_include;
5509else
5510 withval=default
5511fi
5512
5513case "$withval" in
5514 default) WITH_BINUTILS_INCDIR=default ;;
5515 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005516 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5517echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5518 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005519esac
5520if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5521 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5522
5523 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5524 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005525 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5526echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5527 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005528 fi
5529fi
5530
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005531
5532# Check whether --with-bug-report-url was given.
5533if test "${with_bug_report_url+set}" = set; then
5534 withval=$with_bug_report_url;
5535else
5536 withval="http://llvm.org"
5537fi
5538
5539
5540cat >>confdefs.h <<_ACEOF
5541#define BUG_REPORT_URL "$withval"
5542_ACEOF
5543
5544
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005545# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005546if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005547 enableval=$enable_libffi; case "$enableval" in
5548 yes) llvm_cv_enable_libffi="yes" ;;
5549 no) llvm_cv_enable_libffi="no" ;;
5550 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005551echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5552 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005553 esac
5554else
5555 llvm_cv_enable_libffi=no
5556fi
5557
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005558
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005559
Reid Spencera773bd52006-08-04 18:18:08 +00005560ac_ext=c
5561ac_cpp='$CPP $CPPFLAGS'
5562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005565{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5566echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005567# On Suns, sometimes $CPP names a directory.
5568if test -n "$CPP" && test -d "$CPP"; then
5569 CPP=
5570fi
5571if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005572 if test "${ac_cv_prog_CPP+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005574else
5575 # Double quotes because CPP needs to be expanded
5576 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5577 do
5578 ac_preproc_ok=false
5579for ac_c_preproc_warn_flag in '' yes
5580do
5581 # Use a header file that comes with gcc, so configuring glibc
5582 # with a fresh cross-compiler works.
5583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584 # <limits.h> exists even on freestanding compilers.
5585 # On the NeXT, cc -E runs the code through the compiler's parser,
5586 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587 cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h. */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005592/* end confdefs.h. */
5593#ifdef __STDC__
5594# include <limits.h>
5595#else
5596# include <assert.h>
5597#endif
5598 Syntax error
5599_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005600if { (ac_try="$ac_cpp conftest.$ac_ext"
5601case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604esac
5605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5607 ac_status=$?
5608 grep -v '^ *+' conftest.er1 >conftest.err
5609 rm -f conftest.er1
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } >/dev/null; then
5613 if test -s conftest.err; then
5614 ac_cpp_err=$ac_c_preproc_warn_flag
5615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5616 else
5617 ac_cpp_err=
5618 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005620 ac_cpp_err=yes
5621fi
5622if test -z "$ac_cpp_err"; then
5623 :
5624else
5625 echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
Reid Spencera773bd52006-08-04 18:18:08 +00005628 # Broken: fails on valid input.
5629continue
5630fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005631
Reid Spencera773bd52006-08-04 18:18:08 +00005632rm -f conftest.err conftest.$ac_ext
5633
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005636 cat >conftest.$ac_ext <<_ACEOF
5637/* confdefs.h. */
5638_ACEOF
5639cat confdefs.h >>conftest.$ac_ext
5640cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005641/* end confdefs.h. */
5642#include <ac_nonexistent.h>
5643_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005644if { (ac_try="$ac_cpp conftest.$ac_ext"
5645case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648esac
5649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } >/dev/null; then
5657 if test -s conftest.err; then
5658 ac_cpp_err=$ac_c_preproc_warn_flag
5659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5660 else
5661 ac_cpp_err=
5662 fi
5663else
5664 ac_cpp_err=yes
5665fi
5666if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005667 # Broken: success on invalid input.
5668continue
5669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005670 echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
Reid Spencera773bd52006-08-04 18:18:08 +00005673 # Passes both tests.
5674ac_preproc_ok=:
5675break
5676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005677
Reid Spencera773bd52006-08-04 18:18:08 +00005678rm -f conftest.err conftest.$ac_ext
5679
5680done
5681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005683if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005684 break
5685fi
5686
5687 done
5688 ac_cv_prog_CPP=$CPP
5689
5690fi
5691 CPP=$ac_cv_prog_CPP
5692else
5693 ac_cv_prog_CPP=$CPP
5694fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005695{ echo "$as_me:$LINENO: result: $CPP" >&5
5696echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005697ac_preproc_ok=false
5698for ac_c_preproc_warn_flag in '' yes
5699do
5700 # Use a header file that comes with gcc, so configuring glibc
5701 # with a fresh cross-compiler works.
5702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703 # <limits.h> exists even on freestanding compilers.
5704 # On the NeXT, cc -E runs the code through the compiler's parser,
5705 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005706 cat >conftest.$ac_ext <<_ACEOF
5707/* confdefs.h. */
5708_ACEOF
5709cat confdefs.h >>conftest.$ac_ext
5710cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005711/* end confdefs.h. */
5712#ifdef __STDC__
5713# include <limits.h>
5714#else
5715# include <assert.h>
5716#endif
5717 Syntax error
5718_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005719if { (ac_try="$ac_cpp conftest.$ac_ext"
5720case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723esac
5724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev/null; then
5732 if test -s conftest.err; then
5733 ac_cpp_err=$ac_c_preproc_warn_flag
5734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5735 else
5736 ac_cpp_err=
5737 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739 ac_cpp_err=yes
5740fi
5741if test -z "$ac_cpp_err"; then
5742 :
5743else
5744 echo "$as_me: failed program was:" >&5
5745sed 's/^/| /' conftest.$ac_ext >&5
5746
Reid Spencera773bd52006-08-04 18:18:08 +00005747 # Broken: fails on valid input.
5748continue
5749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005750
Reid Spencera773bd52006-08-04 18:18:08 +00005751rm -f conftest.err conftest.$ac_ext
5752
5753 # OK, works on sane cases. Now check whether nonexistent headers
5754 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755 cat >conftest.$ac_ext <<_ACEOF
5756/* confdefs.h. */
5757_ACEOF
5758cat confdefs.h >>conftest.$ac_ext
5759cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005760/* end confdefs.h. */
5761#include <ac_nonexistent.h>
5762_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005763if { (ac_try="$ac_cpp conftest.$ac_ext"
5764case "(($ac_try" in
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5767esac
5768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } >/dev/null; then
5776 if test -s conftest.err; then
5777 ac_cpp_err=$ac_c_preproc_warn_flag
5778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5779 else
5780 ac_cpp_err=
5781 fi
5782else
5783 ac_cpp_err=yes
5784fi
5785if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005786 # Broken: success on invalid input.
5787continue
5788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789 echo "$as_me: failed program was:" >&5
5790sed 's/^/| /' conftest.$ac_ext >&5
5791
Reid Spencera773bd52006-08-04 18:18:08 +00005792 # Passes both tests.
5793ac_preproc_ok=:
5794break
5795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005796
Reid Spencera773bd52006-08-04 18:18:08 +00005797rm -f conftest.err conftest.$ac_ext
5798
5799done
5800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5801rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005802if $ac_preproc_ok; then
5803 :
Reid Spencera773bd52006-08-04 18:18:08 +00005804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005805 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5806See \`config.log' for more details." >&5
5807echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5808See \`config.log' for more details." >&2;}
5809 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005810fi
5811
5812ac_ext=c
5813ac_cpp='$CPP $CPPFLAGS'
5814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817
5818ac_ext=c
5819ac_cpp='$CPP $CPPFLAGS'
5820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823if test -n "$ac_tool_prefix"; then
5824 for ac_prog in gcc
5825 do
5826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830if test "${ac_cv_prog_CC+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005832else
5833 if test -n "$CC"; then
5834 ac_cv_prog_CC="$CC" # Let the user override the test.
5835else
5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH
5838do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005845 break 2
5846 fi
5847done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848done
Reid Spencera773bd52006-08-04 18:18:08 +00005849IFS=$as_save_IFS
5850
5851fi
5852fi
5853CC=$ac_cv_prog_CC
5854if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005855 { echo "$as_me:$LINENO: result: $CC" >&5
5856echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858 { echo "$as_me:$LINENO: result: no" >&5
5859echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005860fi
5861
5862
5863 test -n "$CC" && break
5864 done
5865fi
5866if test -z "$CC"; then
5867 ac_ct_CC=$CC
5868 for ac_prog in gcc
5869do
5870 # Extract the first word of "$ac_prog", so it can be a program name with args.
5871set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5874if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005876else
5877 if test -n "$ac_ct_CC"; then
5878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005887 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005889 break 2
5890 fi
5891done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005892done
Reid Spencera773bd52006-08-04 18:18:08 +00005893IFS=$as_save_IFS
5894
5895fi
5896fi
5897ac_ct_CC=$ac_cv_prog_ac_ct_CC
5898if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5900echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005902 { echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005904fi
5905
5906
5907 test -n "$ac_ct_CC" && break
5908done
5909
5910 if test "x$ac_ct_CC" = x; then
5911 CC=""
5912 else
5913 case $cross_compiling:$ac_tool_warned in
5914yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5916whose name does not start with the host triplet. If you think this
5917configuration is useful to you, please write to autoconf@gnu.org." >&5
5918echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5919whose name does not start with the host triplet. If you think this
5920configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005921ac_tool_warned=yes ;;
5922esac
5923 CC=$ac_ct_CC
5924 fi
5925fi
5926
5927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005928test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5929See \`config.log' for more details." >&5
5930echo "$as_me: error: no acceptable C compiler found in \$PATH
5931See \`config.log' for more details." >&2;}
5932 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005933
5934# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005935echo "$as_me:$LINENO: checking for C compiler version" >&5
5936ac_compiler=`set X $ac_compile; echo $2`
5937{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005938case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005944 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }
5947{ (ac_try="$ac_compiler -v >&5"
5948case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951esac
5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compiler -v >&5") 2>&5
5954 ac_status=$?
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }
5957{ (ac_try="$ac_compiler -V >&5"
5958case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961esac
5962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_compiler -V >&5") 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005968{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5969echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5970if test "${ac_cv_c_compiler_gnu+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973 cat >conftest.$ac_ext <<_ACEOF
5974/* confdefs.h. */
5975_ACEOF
5976cat confdefs.h >>conftest.$ac_ext
5977cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005978/* end confdefs.h. */
5979
5980int
5981main ()
5982{
5983#ifndef __GNUC__
5984 choke me
5985#endif
5986
5987 ;
5988 return 0;
5989}
5990_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005991rm -f conftest.$ac_objext
5992if { (ac_try="$ac_compile"
5993case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996esac
5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6006 { (case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009esac
6010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_try") 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest.$ac_objext'
6016 { (case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019esac
6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_try") 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006025 ac_compiler_gnu=yes
6026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006027 echo "$as_me: failed program was:" >&5
6028sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006032
Reid Spencera773bd52006-08-04 18:18:08 +00006033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034ac_cv_c_compiler_gnu=$ac_compiler_gnu
6035
6036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6038echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6039GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006040ac_test_CFLAGS=${CFLAGS+set}
6041ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006042{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6043echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6044if test "${ac_cv_prog_cc_g+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006046else
6047 ac_save_c_werror_flag=$ac_c_werror_flag
6048 ac_c_werror_flag=yes
6049 ac_cv_prog_cc_g=no
6050 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051 cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h. */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006056/* end confdefs.h. */
6057
6058int
6059main ()
6060{
6061
6062 ;
6063 return 0;
6064}
6065_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066rm -f conftest.$ac_objext
6067if { (ac_try="$ac_compile"
6068case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071esac
6072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_compile") 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6081 { (case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_try") 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest.$ac_objext'
6091 { (case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094esac
6095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_try") 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006100 ac_cv_prog_cc_g=yes
6101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006102 echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
6104
6105 CFLAGS=""
6106 cat >conftest.$ac_ext <<_ACEOF
6107/* confdefs.h. */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006111/* end confdefs.h. */
6112
6113int
6114main ()
6115{
6116
6117 ;
6118 return 0;
6119}
6120_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006121rm -f conftest.$ac_objext
6122if { (ac_try="$ac_compile"
6123case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
6135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6136 { (case "(($ac_try" in
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6139esac
6140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_try") 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149esac
6150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_try") 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; }; then
6155 :
Torok Edwin871384f2010-01-26 08:50:50 +00006156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006157 echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
6160 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006161 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006162 cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h. */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006167/* end confdefs.h. */
6168
6169int
6170main ()
6171{
6172
6173 ;
6174 return 0;
6175}
6176_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177rm -f conftest.$ac_objext
6178if { (ac_try="$ac_compile"
6179case "(($ac_try" in
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6182esac
6183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_compile") 2>conftest.er1
6185 ac_status=$?
6186 grep -v '^ *+' conftest.er1 >conftest.err
6187 rm -f conftest.er1
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6192 { (case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195esac
6196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_try") 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; } &&
6201 { ac_try='test -s conftest.$ac_objext'
6202 { (case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205esac
6206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_try") 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006211 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212else
6213 echo "$as_me: failed program was:" >&5
6214sed 's/^/| /' conftest.$ac_ext >&5
6215
6216
Reid Spencera773bd52006-08-04 18:18:08 +00006217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006218
Reid Spencera773bd52006-08-04 18:18:08 +00006219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006221
Reid Spencera773bd52006-08-04 18:18:08 +00006222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224
Reid Spencera773bd52006-08-04 18:18:08 +00006225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 ac_c_werror_flag=$ac_save_c_werror_flag
6227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006228{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6229echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006230if test "$ac_test_CFLAGS" = set; then
6231 CFLAGS=$ac_save_CFLAGS
6232elif test $ac_cv_prog_cc_g = yes; then
6233 if test "$GCC" = yes; then
6234 CFLAGS="-g -O2"
6235 else
6236 CFLAGS="-g"
6237 fi
6238else
6239 if test "$GCC" = yes; then
6240 CFLAGS="-O2"
6241 else
6242 CFLAGS=
6243 fi
6244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006245{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6246echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6247if test "${ac_cv_prog_cc_c89+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006249else
6250 ac_cv_prog_cc_c89=no
6251ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252cat >conftest.$ac_ext <<_ACEOF
6253/* confdefs.h. */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006257/* end confdefs.h. */
6258#include <stdarg.h>
6259#include <stdio.h>
6260#include <sys/types.h>
6261#include <sys/stat.h>
6262/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6263struct buf { int x; };
6264FILE * (*rcsopen) (struct buf *, struct stat *, int);
6265static char *e (p, i)
6266 char **p;
6267 int i;
6268{
6269 return p[i];
6270}
6271static char *f (char * (*g) (char **, int), char **p, ...)
6272{
6273 char *s;
6274 va_list v;
6275 va_start (v,p);
6276 s = g (p, va_arg (v,int));
6277 va_end (v);
6278 return s;
6279}
6280
6281/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6282 function prototypes and stuff, but not '\xHH' hex character constants.
6283 These don't provoke an error unfortunately, instead are silently treated
6284 as 'x'. The following induces an error, until -std is added to get
6285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6286 array size at least. It's necessary to write '\x00'==0 to get something
6287 that's true only with -std. */
6288int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6289
6290/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6291 inside strings and character constants. */
6292#define FOO(x) 'x'
6293int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6294
6295int test (int i, double x);
6296struct s1 {int (*f) (int a);};
6297struct s2 {int (*f) (double a);};
6298int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6299int argc;
6300char **argv;
6301int
6302main ()
6303{
6304return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6305 ;
6306 return 0;
6307}
6308_ACEOF
6309for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6311do
6312 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006313 rm -f conftest.$ac_objext
6314if { (ac_try="$ac_compile"
6315case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318esac
6319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_compile") 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6328 { (case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_try") 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; } &&
6337 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006347 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348else
6349 echo "$as_me: failed program was:" >&5
6350sed 's/^/| /' conftest.$ac_ext >&5
6351
6352
Reid Spencera773bd52006-08-04 18:18:08 +00006353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006354
Reid Spencera773bd52006-08-04 18:18:08 +00006355rm -f core conftest.err conftest.$ac_objext
6356 test "x$ac_cv_prog_cc_c89" != "xno" && break
6357done
6358rm -f conftest.$ac_ext
6359CC=$ac_save_CC
6360
6361fi
6362# AC_CACHE_VAL
6363case "x$ac_cv_prog_cc_c89" in
6364 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006365 { echo "$as_me:$LINENO: result: none needed" >&5
6366echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006367 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006368 { echo "$as_me:$LINENO: result: unsupported" >&5
6369echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006370 *)
6371 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006372 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6373echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006374esac
6375
6376
6377ac_ext=c
6378ac_cpp='$CPP $CPPFLAGS'
6379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382
6383ac_ext=cpp
6384ac_cpp='$CXXCPP $CPPFLAGS'
6385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6388if test -z "$CXX"; then
6389 if test -n "$CCC"; then
6390 CXX=$CCC
6391 else
6392 if test -n "$ac_tool_prefix"; then
6393 for ac_prog in g++
6394 do
6395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6396set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399if test "${ac_cv_prog_CXX+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006401else
6402 if test -n "$CXX"; then
6403 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006414 break 2
6415 fi
6416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417done
Reid Spencera773bd52006-08-04 18:18:08 +00006418IFS=$as_save_IFS
6419
6420fi
6421fi
6422CXX=$ac_cv_prog_CXX
6423if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424 { echo "$as_me:$LINENO: result: $CXX" >&5
6425echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427 { echo "$as_me:$LINENO: result: no" >&5
6428echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006429fi
6430
6431
6432 test -n "$CXX" && break
6433 done
6434fi
6435if test -z "$CXX"; then
6436 ac_ct_CXX=$CXX
6437 for ac_prog in g++
6438do
6439 # Extract the first word of "$ac_prog", so it can be a program name with args.
6440set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6443if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006445else
6446 if test -n "$ac_ct_CXX"; then
6447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6448else
6449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450for as_dir in $PATH
6451do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006456 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006458 break 2
6459 fi
6460done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006461done
Reid Spencera773bd52006-08-04 18:18:08 +00006462IFS=$as_save_IFS
6463
6464fi
6465fi
6466ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6467if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006468 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6469echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006471 { echo "$as_me:$LINENO: result: no" >&5
6472echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006473fi
6474
6475
6476 test -n "$ac_ct_CXX" && break
6477done
6478
6479 if test "x$ac_ct_CXX" = x; then
6480 CXX="g++"
6481 else
6482 case $cross_compiling:$ac_tool_warned in
6483yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006484{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6485whose name does not start with the host triplet. If you think this
6486configuration is useful to you, please write to autoconf@gnu.org." >&5
6487echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6488whose name does not start with the host triplet. If you think this
6489configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006490ac_tool_warned=yes ;;
6491esac
6492 CXX=$ac_ct_CXX
6493 fi
6494fi
6495
6496 fi
6497fi
6498# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006499echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6500ac_compiler=`set X $ac_compile; echo $2`
6501{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006502case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006508 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }
6511{ (ac_try="$ac_compiler -v >&5"
6512case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6515esac
6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_compiler -v >&5") 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }
6521{ (ac_try="$ac_compiler -V >&5"
6522case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525esac
6526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_compiler -V >&5") 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006532{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6533echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6534if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537 cat >conftest.$ac_ext <<_ACEOF
6538/* confdefs.h. */
6539_ACEOF
6540cat confdefs.h >>conftest.$ac_ext
6541cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006542/* end confdefs.h. */
6543
6544int
6545main ()
6546{
6547#ifndef __GNUC__
6548 choke me
6549#endif
6550
6551 ;
6552 return 0;
6553}
6554_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006555rm -f conftest.$ac_objext
6556if { (ac_try="$ac_compile"
6557case "(($ac_try" in
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6560esac
6561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 (eval "$ac_compile") 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6570 { (case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573esac
6574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_try") 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try='test -s conftest.$ac_objext'
6580 { (case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583esac
6584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_try") 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006589 ac_compiler_gnu=yes
6590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006591 echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006596
Reid Spencera773bd52006-08-04 18:18:08 +00006597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6599
6600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6602echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6603GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006604ac_test_CXXFLAGS=${CXXFLAGS+set}
6605ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6607echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6608if test "${ac_cv_prog_cxx_g+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006610else
6611 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6612 ac_cxx_werror_flag=yes
6613 ac_cv_prog_cxx_g=no
6614 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615 cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006620/* end confdefs.h. */
6621
6622int
6623main ()
6624{
6625
6626 ;
6627 return 0;
6628}
6629_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006630rm -f conftest.$ac_objext
6631if { (ac_try="$ac_compile"
6632case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635esac
6636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_compile") 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6645 { (case "(($ac_try" in
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6648esac
6649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650 (eval "$ac_try") 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; } &&
6654 { ac_try='test -s conftest.$ac_objext'
6655 { (case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658esac
6659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_try") 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006664 ac_cv_prog_cxx_g=yes
6665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006666 echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 CXXFLAGS=""
6670 cat >conftest.$ac_ext <<_ACEOF
6671/* confdefs.h. */
6672_ACEOF
6673cat confdefs.h >>conftest.$ac_ext
6674cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006675/* end confdefs.h. */
6676
6677int
6678main ()
6679{
6680
6681 ;
6682 return 0;
6683}
6684_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006685rm -f conftest.$ac_objext
6686if { (ac_try="$ac_compile"
6687case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690esac
6691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692 (eval "$ac_compile") 2>conftest.er1
6693 ac_status=$?
6694 grep -v '^ *+' conftest.er1 >conftest.err
6695 rm -f conftest.er1
6696 cat conftest.err >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6700 { (case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703esac
6704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_try") 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest.$ac_objext'
6710 { (case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713esac
6714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_try") 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 :
Torok Edwin871384f2010-01-26 08:50:50 +00006720else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721 echo "$as_me: failed program was:" >&5
6722sed 's/^/| /' conftest.$ac_ext >&5
6723
6724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006725 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726 cat >conftest.$ac_ext <<_ACEOF
6727/* confdefs.h. */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006731/* end confdefs.h. */
6732
6733int
6734main ()
6735{
6736
6737 ;
6738 return 0;
6739}
6740_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006741rm -f conftest.$ac_objext
6742if { (ac_try="$ac_compile"
6743case "(($ac_try" in
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6746esac
6747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_compile") 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6756 { (case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6759esac
6760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_try") 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try='test -s conftest.$ac_objext'
6766 { (case "(($ac_try" in
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6769esac
6770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771 (eval "$ac_try") 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006775 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776else
6777 echo "$as_me: failed program was:" >&5
6778sed 's/^/| /' conftest.$ac_ext >&5
6779
6780
Reid Spencera773bd52006-08-04 18:18:08 +00006781fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782
Reid Spencera773bd52006-08-04 18:18:08 +00006783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785
Reid Spencera773bd52006-08-04 18:18:08 +00006786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788
Reid Spencera773bd52006-08-04 18:18:08 +00006789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006792{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6793echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006794if test "$ac_test_CXXFLAGS" = set; then
6795 CXXFLAGS=$ac_save_CXXFLAGS
6796elif test $ac_cv_prog_cxx_g = yes; then
6797 if test "$GXX" = yes; then
6798 CXXFLAGS="-g -O2"
6799 else
6800 CXXFLAGS="-g"
6801 fi
6802else
6803 if test "$GXX" = yes; then
6804 CXXFLAGS="-O2"
6805 else
6806 CXXFLAGS=
6807 fi
6808fi
6809ac_ext=c
6810ac_cpp='$CPP $CPPFLAGS'
6811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813ac_compiler_gnu=$ac_cv_c_compiler_gnu
6814
Reid Spencera773bd52006-08-04 18:18:08 +00006815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006816{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6817echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6818if test "${lt_cv_path_NM+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006820else
6821 if test -n "$NM"; then
6822 # Let the user override the test.
6823 lt_cv_path_NM="$NM"
6824else
6825 lt_nm_to_check="${ac_tool_prefix}nm"
6826 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6827 lt_nm_to_check="$lt_nm_to_check nm"
6828 fi
6829 for lt_tmp_nm in $lt_nm_to_check; do
6830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6831 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6832 IFS="$lt_save_ifs"
6833 test -z "$ac_dir" && ac_dir=.
6834 tmp_nm="$ac_dir/$lt_tmp_nm"
6835 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6836 # Check to see if the nm accepts a BSD-compat flag.
6837 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6838 # nm: unknown option "B" ignored
6839 # Tru64's nm complains that /dev/null is an invalid object file
6840 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6841 */dev/null* | *'Invalid file or object type'*)
6842 lt_cv_path_NM="$tmp_nm -B"
6843 break
6844 ;;
6845 *)
6846 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6847 */dev/null*)
6848 lt_cv_path_NM="$tmp_nm -p"
6849 break
6850 ;;
6851 *)
6852 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6853 continue # so that we can try to find one that supports BSD flags
6854 ;;
6855 esac
6856 ;;
6857 esac
6858 fi
6859 done
6860 IFS="$lt_save_ifs"
6861 done
6862 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6863fi
6864fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6866echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006867NM="$lt_cv_path_NM"
6868
6869
6870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871{ echo "$as_me:$LINENO: checking for GNU make" >&5
6872echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6873if test "${llvm_cv_gnu_make_command+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006875else
6876 llvm_cv_gnu_make_command=''
6877 for a in "$MAKE" make gmake gnumake ; do
6878 if test -z "$a" ; then continue ; fi ;
6879 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6880 then
6881 llvm_cv_gnu_make_command=$a ;
6882 break;
6883 fi
6884 done
6885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006886{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6887echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006888 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6889 ifGNUmake='' ;
6890 else
6891 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006892 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6893echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006894 fi
6895
6896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6898echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006899LN_S=$as_ln_s
6900if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006901 { echo "$as_me:$LINENO: result: yes" >&5
6902echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006904 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6905echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006906fi
6907
6908# Extract the first word of "cmp", so it can be a program name with args.
6909set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912if test "${ac_cv_path_CMP+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006914else
6915 case $CMP in
6916 [\\/]* | ?:[\\/]*)
6917 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6918 ;;
6919 *)
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006927 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006929 break 2
6930 fi
6931done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006932done
Reid Spencera773bd52006-08-04 18:18:08 +00006933IFS=$as_save_IFS
6934
6935 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6936 ;;
6937esac
6938fi
6939CMP=$ac_cv_path_CMP
6940if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 { echo "$as_me:$LINENO: result: $CMP" >&5
6942echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006943else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944 { echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006946fi
6947
6948
6949# Extract the first word of "cp", so it can be a program name with args.
6950set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953if test "${ac_cv_path_CP+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006955else
6956 case $CP in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6959 ;;
6960 *)
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006968 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006970 break 2
6971 fi
6972done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006973done
Reid Spencera773bd52006-08-04 18:18:08 +00006974IFS=$as_save_IFS
6975
6976 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6977 ;;
6978esac
6979fi
6980CP=$ac_cv_path_CP
6981if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982 { echo "$as_me:$LINENO: result: $CP" >&5
6983echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006985 { echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006987fi
6988
6989
6990# Extract the first word of "date", so it can be a program name with args.
6991set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994if test "${ac_cv_path_DATE+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006996else
6997 case $DATE in
6998 [\\/]* | ?:[\\/]*)
6999 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7000 ;;
7001 *)
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007009 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007011 break 2
7012 fi
7013done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014done
Reid Spencera773bd52006-08-04 18:18:08 +00007015IFS=$as_save_IFS
7016
7017 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7018 ;;
7019esac
7020fi
7021DATE=$ac_cv_path_DATE
7022if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007023 { echo "$as_me:$LINENO: result: $DATE" >&5
7024echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026 { echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007028fi
7029
7030
7031# Extract the first word of "find", so it can be a program name with args.
7032set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035if test "${ac_cv_path_FIND+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007037else
7038 case $FIND in
7039 [\\/]* | ?:[\\/]*)
7040 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7041 ;;
7042 *)
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007050 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007052 break 2
7053 fi
7054done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007055done
Reid Spencera773bd52006-08-04 18:18:08 +00007056IFS=$as_save_IFS
7057
7058 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7059 ;;
7060esac
7061fi
7062FIND=$ac_cv_path_FIND
7063if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064 { echo "$as_me:$LINENO: result: $FIND" >&5
7065echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007066else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067 { echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007069fi
7070
7071
7072# Extract the first word of "grep", so it can be a program name with args.
7073set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076if test "${ac_cv_path_GREP+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007078else
7079 case $GREP in
7080 [\\/]* | ?:[\\/]*)
7081 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7082 ;;
7083 *)
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007091 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007093 break 2
7094 fi
7095done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007096done
Reid Spencera773bd52006-08-04 18:18:08 +00007097IFS=$as_save_IFS
7098
7099 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7100 ;;
7101esac
7102fi
7103GREP=$ac_cv_path_GREP
7104if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007105 { echo "$as_me:$LINENO: result: $GREP" >&5
7106echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007107else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007108 { echo "$as_me:$LINENO: result: no" >&5
7109echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007110fi
7111
7112
7113# Extract the first word of "mkdir", so it can be a program name with args.
7114set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7117if test "${ac_cv_path_MKDIR+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007119else
7120 case $MKDIR in
7121 [\\/]* | ?:[\\/]*)
7122 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7123 ;;
7124 *)
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126for as_dir in $PATH
7127do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007132 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007134 break 2
7135 fi
7136done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137done
Reid Spencera773bd52006-08-04 18:18:08 +00007138IFS=$as_save_IFS
7139
7140 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7141 ;;
7142esac
7143fi
7144MKDIR=$ac_cv_path_MKDIR
7145if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7147echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007149 { echo "$as_me:$LINENO: result: no" >&5
7150echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007151fi
7152
7153
7154# Extract the first word of "mv", so it can be a program name with args.
7155set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158if test "${ac_cv_path_MV+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007160else
7161 case $MV in
7162 [\\/]* | ?:[\\/]*)
7163 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7164 ;;
7165 *)
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007173 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007175 break 2
7176 fi
7177done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178done
Reid Spencera773bd52006-08-04 18:18:08 +00007179IFS=$as_save_IFS
7180
7181 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7182 ;;
7183esac
7184fi
7185MV=$ac_cv_path_MV
7186if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007187 { echo "$as_me:$LINENO: result: $MV" >&5
7188echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190 { echo "$as_me:$LINENO: result: no" >&5
7191echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007192fi
7193
7194
7195if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7197set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7200if test "${ac_cv_prog_RANLIB+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007202else
7203 if test -n "$RANLIB"; then
7204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7205else
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007215 break 2
7216 fi
7217done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218done
Reid Spencera773bd52006-08-04 18:18:08 +00007219IFS=$as_save_IFS
7220
7221fi
7222fi
7223RANLIB=$ac_cv_prog_RANLIB
7224if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007225 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7226echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007227else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007228 { echo "$as_me:$LINENO: result: no" >&5
7229echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007230fi
7231
7232
7233fi
7234if test -z "$ac_cv_prog_RANLIB"; then
7235 ac_ct_RANLIB=$RANLIB
7236 # Extract the first word of "ranlib", so it can be a program name with args.
7237set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007242else
7243 if test -n "$ac_ct_RANLIB"; then
7244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007253 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007255 break 2
7256 fi
7257done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007258done
Reid Spencera773bd52006-08-04 18:18:08 +00007259IFS=$as_save_IFS
7260
7261fi
7262fi
7263ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7264if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007265 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7266echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007267else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268 { echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007270fi
7271
7272 if test "x$ac_ct_RANLIB" = x; then
7273 RANLIB=":"
7274 else
7275 case $cross_compiling:$ac_tool_warned in
7276yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7278whose name does not start with the host triplet. If you think this
7279configuration is useful to you, please write to autoconf@gnu.org." >&5
7280echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7281whose name does not start with the host triplet. If you think this
7282configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007283ac_tool_warned=yes ;;
7284esac
7285 RANLIB=$ac_ct_RANLIB
7286 fi
7287else
7288 RANLIB="$ac_cv_prog_RANLIB"
7289fi
7290
Torok Edwin871384f2010-01-26 08:50:50 +00007291if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7293set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296if test "${ac_cv_prog_AR+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007298else
7299 if test -n "$AR"; then
7300 ac_cv_prog_AR="$AR" # Let the user override the test.
7301else
7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00007309 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007311 break 2
7312 fi
7313done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007314done
Torok Edwin871384f2010-01-26 08:50:50 +00007315IFS=$as_save_IFS
7316
7317fi
7318fi
7319AR=$ac_cv_prog_AR
7320if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 { echo "$as_me:$LINENO: result: $AR" >&5
7322echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324 { echo "$as_me:$LINENO: result: no" >&5
7325echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007326fi
7327
7328
7329fi
7330if test -z "$ac_cv_prog_AR"; then
7331 ac_ct_AR=$AR
7332 # Extract the first word of "ar", so it can be a program name with args.
7333set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007338else
7339 if test -n "$ac_ct_AR"; then
7340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00007349 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007351 break 2
7352 fi
7353done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354done
Torok Edwin871384f2010-01-26 08:50:50 +00007355IFS=$as_save_IFS
7356
7357fi
7358fi
7359ac_ct_AR=$ac_cv_prog_ac_ct_AR
7360if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7362echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364 { echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007366fi
7367
7368 if test "x$ac_ct_AR" = x; then
7369 AR="false"
7370 else
7371 case $cross_compiling:$ac_tool_warned in
7372yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7374whose name does not start with the host triplet. If you think this
7375configuration is useful to you, please write to autoconf@gnu.org." >&5
7376echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7377whose name does not start with the host triplet. If you think this
7378configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007379ac_tool_warned=yes ;;
7380esac
7381 AR=$ac_ct_AR
7382 fi
7383else
7384 AR="$ac_cv_prog_AR"
7385fi
7386
Reid Spencera773bd52006-08-04 18:18:08 +00007387# Extract the first word of "rm", so it can be a program name with args.
7388set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391if test "${ac_cv_path_RM+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007393else
7394 case $RM in
7395 [\\/]* | ?:[\\/]*)
7396 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7397 ;;
7398 *)
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007406 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007408 break 2
7409 fi
7410done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411done
Reid Spencera773bd52006-08-04 18:18:08 +00007412IFS=$as_save_IFS
7413
7414 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7415 ;;
7416esac
7417fi
7418RM=$ac_cv_path_RM
7419if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420 { echo "$as_me:$LINENO: result: $RM" >&5
7421echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007425fi
7426
7427
7428# Extract the first word of "sed", so it can be a program name with args.
7429set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7432if test "${ac_cv_path_SED+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007434else
7435 case $SED in
7436 [\\/]* | ?:[\\/]*)
7437 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7438 ;;
7439 *)
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007447 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007449 break 2
7450 fi
7451done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452done
Reid Spencera773bd52006-08-04 18:18:08 +00007453IFS=$as_save_IFS
7454
7455 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7456 ;;
7457esac
7458fi
7459SED=$ac_cv_path_SED
7460if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007461 { echo "$as_me:$LINENO: result: $SED" >&5
7462echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464 { echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007466fi
7467
7468
7469# Extract the first word of "tar", so it can be a program name with args.
7470set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-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_TAR+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007475else
7476 case $TAR in
7477 [\\/]* | ?:[\\/]*)
7478 ac_cv_path_TAR="$TAR" # 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 Yasskin1611ebb2010-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
Reid Spencera773bd52006-08-04 18:18:08 +00007488 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007490 break 2
7491 fi
7492done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493done
Reid Spencera773bd52006-08-04 18:18:08 +00007494IFS=$as_save_IFS
7495
7496 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7497 ;;
7498esac
7499fi
7500TAR=$ac_cv_path_TAR
7501if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007502 { echo "$as_me:$LINENO: result: $TAR" >&5
7503echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007505 { echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007507fi
7508
7509
7510# Extract the first word of "pwd", so it can be a program name with args.
7511set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514if test "${ac_cv_path_BINPWD+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007516else
7517 case $BINPWD in
7518 [\\/]* | ?:[\\/]*)
7519 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7520 ;;
7521 *)
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007529 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007531 break 2
7532 fi
7533done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007534done
Reid Spencera773bd52006-08-04 18:18:08 +00007535IFS=$as_save_IFS
7536
7537 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7538 ;;
7539esac
7540fi
7541BINPWD=$ac_cv_path_BINPWD
7542if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007543 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7544echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546 { echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007548fi
7549
7550
7551
7552# Extract the first word of "Graphviz", so it can be a program name with args.
7553set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007558else
7559 case $GRAPHVIZ in
7560 [\\/]* | ?:[\\/]*)
7561 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7562 ;;
7563 *)
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007571 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007573 break 2
7574 fi
7575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576done
Reid Spencera773bd52006-08-04 18:18:08 +00007577IFS=$as_save_IFS
7578
7579 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7580 ;;
7581esac
7582fi
7583GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7584if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007585 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7586echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007587else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588 { echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007590fi
7591
7592
7593if test "$GRAPHVIZ" != "echo Graphviz" ; then
7594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007595cat >>confdefs.h <<\_ACEOF
7596#define HAVE_GRAPHVIZ 1
7597_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007598
Jeff Cohen28783c32007-01-12 18:22:38 +00007599 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007600 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7601 fi
7602
7603cat >>confdefs.h <<_ACEOF
7604#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7605_ACEOF
7606
7607fi
7608# Extract the first word of "dot", so it can be a program name with args.
7609set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612if test "${ac_cv_path_DOT+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007614else
7615 case $DOT in
7616 [\\/]* | ?:[\\/]*)
7617 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7618 ;;
7619 *)
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007627 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007629 break 2
7630 fi
7631done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632done
Reid Spencera773bd52006-08-04 18:18:08 +00007633IFS=$as_save_IFS
7634
7635 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7636 ;;
7637esac
7638fi
7639DOT=$ac_cv_path_DOT
7640if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007641 { echo "$as_me:$LINENO: result: $DOT" >&5
7642echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644 { echo "$as_me:$LINENO: result: no" >&5
7645echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007646fi
7647
7648
7649if test "$DOT" != "echo dot" ; then
7650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007651cat >>confdefs.h <<\_ACEOF
7652#define HAVE_DOT 1
7653_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007654
Jeff Cohen28783c32007-01-12 18:22:38 +00007655 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007656 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7657 fi
7658
7659cat >>confdefs.h <<_ACEOF
7660#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7661_ACEOF
7662
7663fi
David Greenef0b9eff2009-07-09 17:16:26 +00007664# Extract the first word of "fdp", so it can be a program name with args.
7665set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668if test "${ac_cv_path_FDP+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007670else
7671 case $FDP in
7672 [\\/]* | ?:[\\/]*)
7673 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7674 ;;
7675 *)
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007683 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007685 break 2
7686 fi
7687done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007688done
David Greenef0b9eff2009-07-09 17:16:26 +00007689IFS=$as_save_IFS
7690
7691 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7692 ;;
7693esac
7694fi
7695FDP=$ac_cv_path_FDP
7696if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007697 { echo "$as_me:$LINENO: result: $FDP" >&5
7698echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007699else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 { echo "$as_me:$LINENO: result: no" >&5
7701echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007702fi
7703
7704
7705if test "$FDP" != "echo fdp" ; then
7706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707cat >>confdefs.h <<\_ACEOF
7708#define HAVE_FDP 1
7709_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007710
7711 if test "$llvm_cv_os_type" = "MingW" ; then
7712 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7713 fi
7714
7715cat >>confdefs.h <<_ACEOF
7716#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7717_ACEOF
7718
7719fi
7720# Extract the first word of "neato", so it can be a program name with args.
7721set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7724if test "${ac_cv_path_NEATO+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007726else
7727 case $NEATO in
7728 [\\/]* | ?:[\\/]*)
7729 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7730 ;;
7731 *)
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007739 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007741 break 2
7742 fi
7743done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007744done
David Greenef0b9eff2009-07-09 17:16:26 +00007745IFS=$as_save_IFS
7746
7747 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7748 ;;
7749esac
7750fi
7751NEATO=$ac_cv_path_NEATO
7752if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007753 { echo "$as_me:$LINENO: result: $NEATO" >&5
7754echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756 { echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007758fi
7759
7760
7761if test "$NEATO" != "echo neato" ; then
7762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007763cat >>confdefs.h <<\_ACEOF
7764#define HAVE_NEATO 1
7765_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007766
7767 if test "$llvm_cv_os_type" = "MingW" ; then
7768 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7769 fi
7770
7771cat >>confdefs.h <<_ACEOF
7772#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7773_ACEOF
7774
7775fi
7776# Extract the first word of "twopi", so it can be a program name with args.
7777set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780if test "${ac_cv_path_TWOPI+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007782else
7783 case $TWOPI in
7784 [\\/]* | ?:[\\/]*)
7785 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7786 ;;
7787 *)
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
7790do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007795 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007797 break 2
7798 fi
7799done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007800done
David Greenef0b9eff2009-07-09 17:16:26 +00007801IFS=$as_save_IFS
7802
7803 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7804 ;;
7805esac
7806fi
7807TWOPI=$ac_cv_path_TWOPI
7808if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007809 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7810echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007812 { echo "$as_me:$LINENO: result: no" >&5
7813echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007814fi
7815
7816
7817if test "$TWOPI" != "echo twopi" ; then
7818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007819cat >>confdefs.h <<\_ACEOF
7820#define HAVE_TWOPI 1
7821_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007822
7823 if test "$llvm_cv_os_type" = "MingW" ; then
7824 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7825 fi
7826
7827cat >>confdefs.h <<_ACEOF
7828#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7829_ACEOF
7830
7831fi
7832# Extract the first word of "circo", so it can be a program name with args.
7833set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836if test "${ac_cv_path_CIRCO+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007838else
7839 case $CIRCO in
7840 [\\/]* | ?:[\\/]*)
7841 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7842 ;;
7843 *)
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007851 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007853 break 2
7854 fi
7855done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007856done
David Greenef0b9eff2009-07-09 17:16:26 +00007857IFS=$as_save_IFS
7858
7859 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7860 ;;
7861esac
7862fi
7863CIRCO=$ac_cv_path_CIRCO
7864if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7866echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007868 { echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007870fi
7871
7872
7873if test "$CIRCO" != "echo circo" ; then
7874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007875cat >>confdefs.h <<\_ACEOF
7876#define HAVE_CIRCO 1
7877_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007878
7879 if test "$llvm_cv_os_type" = "MingW" ; then
7880 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7881 fi
7882
7883cat >>confdefs.h <<_ACEOF
7884#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7885_ACEOF
7886
7887fi
Reid Spencera773bd52006-08-04 18:18:08 +00007888for ac_prog in gv gsview32
7889do
7890 # Extract the first word of "$ac_prog", so it can be a program name with args.
7891set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7894if test "${ac_cv_path_GV+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007896else
7897 case $GV in
7898 [\\/]* | ?:[\\/]*)
7899 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7900 ;;
7901 *)
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007909 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007911 break 2
7912 fi
7913done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007914done
Reid Spencera773bd52006-08-04 18:18:08 +00007915IFS=$as_save_IFS
7916
7917 ;;
7918esac
7919fi
7920GV=$ac_cv_path_GV
7921if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007922 { echo "$as_me:$LINENO: result: $GV" >&5
7923echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007925 { echo "$as_me:$LINENO: result: no" >&5
7926echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007927fi
7928
7929
7930 test -n "$GV" && break
7931done
7932test -n "$GV" || GV="echo gv"
7933
7934if test "$GV" != "echo gv" ; then
7935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007936cat >>confdefs.h <<\_ACEOF
7937#define HAVE_GV 1
7938_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007939
Jeff Cohen28783c32007-01-12 18:22:38 +00007940 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007941 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7942 fi
7943
7944cat >>confdefs.h <<_ACEOF
7945#define LLVM_PATH_GV "$GV${EXEEXT}"
7946_ACEOF
7947
7948fi
7949# Extract the first word of "dotty", so it can be a program name with args.
7950set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953if test "${ac_cv_path_DOTTY+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007955else
7956 case $DOTTY in
7957 [\\/]* | ?:[\\/]*)
7958 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7959 ;;
7960 *)
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007968 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007970 break 2
7971 fi
7972done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007973done
Reid Spencera773bd52006-08-04 18:18:08 +00007974IFS=$as_save_IFS
7975
7976 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7977 ;;
7978esac
7979fi
7980DOTTY=$ac_cv_path_DOTTY
7981if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007982 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7983echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985 { echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007987fi
7988
7989
7990if test "$DOTTY" != "echo dotty" ; then
7991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007992cat >>confdefs.h <<\_ACEOF
7993#define HAVE_DOTTY 1
7994_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007995
Jeff Cohen28783c32007-01-12 18:22:38 +00007996 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007997 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7998 fi
7999
8000cat >>confdefs.h <<_ACEOF
8001#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
8002_ACEOF
8003
8004fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00008005# Extract the first word of "xdot.py", so it can be a program name with args.
8006set dummy xdot.py; ac_word=$2
8007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8009if test "${ac_cv_path_XDOT_PY+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011else
8012 case $XDOT_PY in
8013 [\\/]* | ?:[\\/]*)
8014 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
8015 ;;
8016 *)
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028done
8029done
8030IFS=$as_save_IFS
8031
8032 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8033 ;;
8034esac
8035fi
8036XDOT_PY=$ac_cv_path_XDOT_PY
8037if test -n "$XDOT_PY"; then
8038 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8039echo "${ECHO_T}$XDOT_PY" >&6; }
8040else
8041 { echo "$as_me:$LINENO: result: no" >&5
8042echo "${ECHO_T}no" >&6; }
8043fi
8044
8045
8046if test "$XDOT_PY" != "echo xdot.py" ; then
8047
8048cat >>confdefs.h <<\_ACEOF
8049#define HAVE_XDOT_PY 1
8050_ACEOF
8051
8052 if test "$llvm_cv_os_type" = "MingW" ; then
8053 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8054 fi
8055
8056cat >>confdefs.h <<_ACEOF
8057#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8058_ACEOF
8059
8060fi
Reid Spencera773bd52006-08-04 18:18:08 +00008061
8062
8063# Extract the first word of "perl", so it can be a program name with args.
8064set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8067if test "${ac_cv_path_PERL+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008069else
8070 case $PERL in
8071 [\\/]* | ?:[\\/]*)
8072 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8073 ;;
8074 *)
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008082 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008084 break 2
8085 fi
8086done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008087done
Reid Spencera773bd52006-08-04 18:18:08 +00008088IFS=$as_save_IFS
8089
8090 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8091 ;;
8092esac
8093fi
8094PERL=$ac_cv_path_PERL
8095if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096 { echo "$as_me:$LINENO: result: $PERL" >&5
8097echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008098else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008099 { echo "$as_me:$LINENO: result: no" >&5
8100echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008101fi
8102
8103
8104if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008105 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8106echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008107 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008108 { echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008110 else
8111 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008112 { echo "$as_me:$LINENO: result: not found" >&5
8113echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008114 fi
8115fi
8116
8117
8118if test x"$PERL" = xnone; then
8119 HAVE_PERL=0
8120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8122echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8123 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008124else
8125 HAVE_PERL=1
8126
8127fi
8128
8129# Find a good install program. We prefer a C program (faster),
8130# so one script is as good as another. But avoid the broken or
8131# incompatible versions:
8132# SysV /etc/install, /usr/sbin/install
8133# SunOS /usr/etc/install
8134# IRIX /sbin/install
8135# AIX /bin/install
8136# AmigaOS /C/install, which installs bootblocks on floppy discs
8137# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8138# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8139# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8140# OS/2's system install, which has a completely different semantic
8141# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8143echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008144if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145if test "${ac_cv_path_install+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008147else
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149for as_dir in $PATH
8150do
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153 # Account for people who put trailing slashes in PATH elements.
8154case $as_dir/ in
8155 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008157 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008158 /usr/ucb/* ) ;;
8159 *)
8160 # OSF1 and SCO ODT 3.0 have their own names for install.
8161 # Don't use installbsd from OSF since it installs stuff as root
8162 # by default.
8163 for ac_prog in ginstall scoinst install; do
8164 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008166 if test $ac_prog = install &&
8167 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8168 # AIX install. It has an incompatible calling convention.
8169 :
8170 elif test $ac_prog = install &&
8171 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8172 # program-specific install script used by HP pwplus--don't use.
8173 :
8174 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8176 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008177 fi
8178 fi
8179 done
8180 done
8181 ;;
8182esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008183done
Reid Spencera773bd52006-08-04 18:18:08 +00008184IFS=$as_save_IFS
8185
8186
8187fi
8188 if test "${ac_cv_path_install+set}" = set; then
8189 INSTALL=$ac_cv_path_install
8190 else
8191 # As a last resort, use the slow shell script. Don't cache a
8192 # value for INSTALL within a source directory, because that will
8193 # break other packages using the cache if that directory is
8194 # removed, or if the value is a relative name.
8195 INSTALL=$ac_install_sh
8196 fi
8197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8199echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008200
8201# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8202# It thinks the first close brace ends the variable substitution.
8203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8204
8205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8206
8207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8208
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008209case "$INSTALL" in
8210 [\\/$]* | ?:[\\/]* ) ;;
8211 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8212esac
Reid Spencera773bd52006-08-04 18:18:08 +00008213
8214# Extract the first word of "bzip2", so it can be a program name with args.
8215set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218if test "${ac_cv_path_BZIP2+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008220else
8221 case $BZIP2 in
8222 [\\/]* | ?:[\\/]*)
8223 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8224 ;;
8225 *)
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008233 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008235 break 2
8236 fi
8237done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238done
Reid Spencera773bd52006-08-04 18:18:08 +00008239IFS=$as_save_IFS
8240
Reid Spencera773bd52006-08-04 18:18:08 +00008241 ;;
8242esac
8243fi
8244BZIP2=$ac_cv_path_BZIP2
8245if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008246 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8247echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008248else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249 { echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008251fi
8252
8253
mike-m68cb3192010-05-06 23:45:43 +00008254# Extract the first word of "cat", so it can be a program name with args.
8255set dummy cat; ac_word=$2
8256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8258if test "${ac_cv_path_CAT+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261 case $CAT in
8262 [\\/]* | ?:[\\/]*)
8263 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8264 ;;
8265 *)
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8276 fi
8277done
8278done
8279IFS=$as_save_IFS
8280
8281 ;;
8282esac
8283fi
8284CAT=$ac_cv_path_CAT
8285if test -n "$CAT"; then
8286 { echo "$as_me:$LINENO: result: $CAT" >&5
8287echo "${ECHO_T}$CAT" >&6; }
8288else
8289 { echo "$as_me:$LINENO: result: no" >&5
8290echo "${ECHO_T}no" >&6; }
8291fi
8292
8293
Reid Spencera773bd52006-08-04 18:18:08 +00008294# Extract the first word of "doxygen", so it can be a program name with args.
8295set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298if test "${ac_cv_path_DOXYGEN+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008300else
8301 case $DOXYGEN in
8302 [\\/]* | ?:[\\/]*)
8303 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8304 ;;
8305 *)
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $PATH
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008313 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008315 break 2
8316 fi
8317done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318done
Reid Spencera773bd52006-08-04 18:18:08 +00008319IFS=$as_save_IFS
8320
Reid Spencera773bd52006-08-04 18:18:08 +00008321 ;;
8322esac
8323fi
8324DOXYGEN=$ac_cv_path_DOXYGEN
8325if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8327echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329 { echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008331fi
8332
8333
Reid Spencera773bd52006-08-04 18:18:08 +00008334# Extract the first word of "groff", so it can be a program name with args.
8335set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8338if test "${ac_cv_path_GROFF+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008340else
8341 case $GROFF in
8342 [\\/]* | ?:[\\/]*)
8343 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8344 ;;
8345 *)
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347for as_dir in $PATH
8348do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008353 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008355 break 2
8356 fi
8357done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008358done
Reid Spencera773bd52006-08-04 18:18:08 +00008359IFS=$as_save_IFS
8360
Reid Spencera773bd52006-08-04 18:18:08 +00008361 ;;
8362esac
8363fi
8364GROFF=$ac_cv_path_GROFF
8365if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008366 { echo "$as_me:$LINENO: result: $GROFF" >&5
8367echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008369 { echo "$as_me:$LINENO: result: no" >&5
8370echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008371fi
8372
8373
8374# Extract the first word of "gzip", so it can be a program name with args.
8375set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008378if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008379 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008380else
Eric Christopher031d3072010-12-10 01:31:51 +00008381 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008382 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008383 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008384 ;;
8385 *)
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387for as_dir in $PATH
8388do
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00008393 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008395 break 2
8396 fi
8397done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008398done
Reid Spencera773bd52006-08-04 18:18:08 +00008399IFS=$as_save_IFS
8400
Reid Spencera773bd52006-08-04 18:18:08 +00008401 ;;
8402esac
8403fi
Eric Christopher031d3072010-12-10 01:31:51 +00008404GZIPBIN=$ac_cv_path_GZIPBIN
8405if test -n "$GZIPBIN"; then
8406 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8407echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409 { echo "$as_me:$LINENO: result: no" >&5
8410echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008411fi
8412
8413
8414# Extract the first word of "pod2html", so it can be a program name with args.
8415set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418if test "${ac_cv_path_POD2HTML+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008420else
8421 case $POD2HTML in
8422 [\\/]* | ?:[\\/]*)
8423 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8424 ;;
8425 *)
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427for as_dir in $PATH
8428do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008433 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008435 break 2
8436 fi
8437done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008438done
Reid Spencera773bd52006-08-04 18:18:08 +00008439IFS=$as_save_IFS
8440
Reid Spencera773bd52006-08-04 18:18:08 +00008441 ;;
8442esac
8443fi
8444POD2HTML=$ac_cv_path_POD2HTML
8445if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008446 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8447echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008448else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008449 { echo "$as_me:$LINENO: result: no" >&5
8450echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008451fi
8452
8453
8454# Extract the first word of "pod2man", so it can be a program name with args.
8455set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8458if test "${ac_cv_path_POD2MAN+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008460else
8461 case $POD2MAN in
8462 [\\/]* | ?:[\\/]*)
8463 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8464 ;;
8465 *)
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467for as_dir in $PATH
8468do
8469 IFS=$as_save_IFS
8470 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008473 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008475 break 2
8476 fi
8477done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008478done
Reid Spencera773bd52006-08-04 18:18:08 +00008479IFS=$as_save_IFS
8480
Reid Spencera773bd52006-08-04 18:18:08 +00008481 ;;
8482esac
8483fi
8484POD2MAN=$ac_cv_path_POD2MAN
8485if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008486 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8487echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008489 { echo "$as_me:$LINENO: result: no" >&5
8490echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008491fi
8492
8493
mike-m68cb3192010-05-06 23:45:43 +00008494# Extract the first word of "pdfroff", so it can be a program name with args.
8495set dummy pdfroff; ac_word=$2
8496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8498if test "${ac_cv_path_PDFROFF+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8500else
8501 case $PDFROFF in
8502 [\\/]* | ?:[\\/]*)
8503 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8504 ;;
8505 *)
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8516 fi
8517done
8518done
8519IFS=$as_save_IFS
8520
8521 ;;
8522esac
8523fi
8524PDFROFF=$ac_cv_path_PDFROFF
8525if test -n "$PDFROFF"; then
8526 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8527echo "${ECHO_T}$PDFROFF" >&6; }
8528else
8529 { echo "$as_me:$LINENO: result: no" >&5
8530echo "${ECHO_T}no" >&6; }
8531fi
8532
8533
Reid Spencera773bd52006-08-04 18:18:08 +00008534# Extract the first word of "runtest", so it can be a program name with args.
8535set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8538if test "${ac_cv_path_RUNTEST+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008540else
8541 case $RUNTEST in
8542 [\\/]* | ?:[\\/]*)
8543 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8544 ;;
8545 *)
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547for as_dir in $PATH
8548do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008553 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008555 break 2
8556 fi
8557done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558done
Reid Spencera773bd52006-08-04 18:18:08 +00008559IFS=$as_save_IFS
8560
Reid Spencera773bd52006-08-04 18:18:08 +00008561 ;;
8562esac
8563fi
8564RUNTEST=$ac_cv_path_RUNTEST
8565if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008566 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8567echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008569 { echo "$as_me:$LINENO: result: no" >&5
8570echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008571fi
8572
8573
8574
8575no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008576{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8577echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008578
8579# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008580if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008581 withval=$with_tclinclude; with_tclinclude=${withval}
8582else
8583 with_tclinclude=''
8584fi
8585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008586if test "${ac_cv_path_tclsh+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008588else
8589
8590if test x"${with_tclinclude}" != x ; then
8591 if test -f ${with_tclinclude}/tclsh ; then
8592 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8593 elif test -f ${with_tclinclude}/src/tclsh ; then
8594 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8595 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008596 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8597echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8598 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008599 fi
8600fi
Torok Edwin871384f2010-01-26 08:50:50 +00008601fi
8602
Reid Spencera773bd52006-08-04 18:18:08 +00008603
8604if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008605 { echo "$as_me:$LINENO: result: none" >&5
8606echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008607 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
8608do
8609 # Extract the first word of "$ac_prog", so it can be a program name with args.
8610set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8613if test "${ac_cv_path_TCLSH+set}" = set; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008615else
8616 case $TCLSH in
8617 [\\/]* | ?:[\\/]*)
8618 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8619 ;;
8620 *)
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622for as_dir in $PATH
8623do
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008628 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008630 break 2
8631 fi
8632done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008633done
Reid Spencera773bd52006-08-04 18:18:08 +00008634IFS=$as_save_IFS
8635
8636 ;;
8637esac
8638fi
8639TCLSH=$ac_cv_path_TCLSH
8640if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008641 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8642echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008644 { echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008646fi
8647
8648
8649 test -n "$TCLSH" && break
8650done
8651
8652 if test x"${TCLSH}" = x ; then
8653 ac_cv_path_tclsh='';
8654 else
8655 ac_cv_path_tclsh="${TCLSH}";
8656 fi
8657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008658 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8659echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008660 TCLSH="${ac_cv_path_tclsh}"
8661
8662fi
8663
Reid Spencera773bd52006-08-04 18:18:08 +00008664# Extract the first word of "zip", so it can be a program name with args.
8665set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8668if test "${ac_cv_path_ZIP+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008670else
8671 case $ZIP in
8672 [\\/]* | ?:[\\/]*)
8673 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8674 ;;
8675 *)
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677for as_dir in $PATH
8678do
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008683 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008685 break 2
8686 fi
8687done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008688done
Reid Spencera773bd52006-08-04 18:18:08 +00008689IFS=$as_save_IFS
8690
Reid Spencera773bd52006-08-04 18:18:08 +00008691 ;;
8692esac
8693fi
8694ZIP=$ac_cv_path_ZIP
8695if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696 { echo "$as_me:$LINENO: result: $ZIP" >&5
8697echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008699 { echo "$as_me:$LINENO: result: no" >&5
8700echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008701fi
8702
8703
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008704for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008705do
8706 # Extract the first word of "$ac_prog", so it can be a program name with args.
8707set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8710if test "${ac_cv_path_OCAMLC+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008712else
8713 case $OCAMLC in
8714 [\\/]* | ?:[\\/]*)
8715 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8716 ;;
8717 *)
8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719for as_dir in $PATH
8720do
8721 IFS=$as_save_IFS
8722 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008725 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008727 break 2
8728 fi
8729done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008730done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008731IFS=$as_save_IFS
8732
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008733 ;;
8734esac
8735fi
8736OCAMLC=$ac_cv_path_OCAMLC
8737if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008738 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8739echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008741 { echo "$as_me:$LINENO: result: no" >&5
8742echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008743fi
8744
8745
Gordon Henriksene7072162008-03-07 18:20:01 +00008746 test -n "$OCAMLC" && break
8747done
8748
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008749for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008750do
8751 # Extract the first word of "$ac_prog", so it can be a program name with args.
8752set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8755if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008757else
8758 case $OCAMLOPT in
8759 [\\/]* | ?:[\\/]*)
8760 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8761 ;;
8762 *)
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764for as_dir in $PATH
8765do
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008770 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008772 break 2
8773 fi
8774done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008775done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008776IFS=$as_save_IFS
8777
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008778 ;;
8779esac
8780fi
8781OCAMLOPT=$ac_cv_path_OCAMLOPT
8782if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008783 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8784echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008785else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008786 { echo "$as_me:$LINENO: result: no" >&5
8787echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008788fi
8789
8790
Gordon Henriksene7072162008-03-07 18:20:01 +00008791 test -n "$OCAMLOPT" && break
8792done
8793
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008794for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008795do
8796 # Extract the first word of "$ac_prog", so it can be a program name with args.
8797set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8800if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008802else
8803 case $OCAMLDEP in
8804 [\\/]* | ?:[\\/]*)
8805 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8806 ;;
8807 *)
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008815 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008817 break 2
8818 fi
8819done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008820done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008821IFS=$as_save_IFS
8822
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008823 ;;
8824esac
8825fi
8826OCAMLDEP=$ac_cv_path_OCAMLDEP
8827if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008828 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8829echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008831 { echo "$as_me:$LINENO: result: no" >&5
8832echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008833fi
8834
8835
Gordon Henriksene7072162008-03-07 18:20:01 +00008836 test -n "$OCAMLDEP" && break
8837done
8838
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008839for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008840do
8841 # Extract the first word of "$ac_prog", so it can be a program name with args.
8842set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8845if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008847else
8848 case $OCAMLDOC in
8849 [\\/]* | ?:[\\/]*)
8850 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8851 ;;
8852 *)
8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854for as_dir in $PATH
8855do
8856 IFS=$as_save_IFS
8857 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008860 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008862 break 2
8863 fi
8864done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008865done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008866IFS=$as_save_IFS
8867
8868 ;;
8869esac
8870fi
8871OCAMLDOC=$ac_cv_path_OCAMLDOC
8872if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008873 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8874echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008875else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008876 { echo "$as_me:$LINENO: result: no" >&5
8877echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008878fi
8879
8880
8881 test -n "$OCAMLDOC" && break
8882done
8883
Torok Edwincc499a42008-10-22 09:56:27 +00008884for ac_prog in gas as
8885do
8886 # Extract the first word of "$ac_prog", so it can be a program name with args.
8887set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8890if test "${ac_cv_path_GAS+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008892else
8893 case $GAS in
8894 [\\/]* | ?:[\\/]*)
8895 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8896 ;;
8897 *)
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00008905 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008907 break 2
8908 fi
8909done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008910done
Torok Edwincc499a42008-10-22 09:56:27 +00008911IFS=$as_save_IFS
8912
8913 ;;
8914esac
8915fi
8916GAS=$ac_cv_path_GAS
8917if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008918 { echo "$as_me:$LINENO: result: $GAS" >&5
8919echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008921 { echo "$as_me:$LINENO: result: no" >&5
8922echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008923fi
8924
8925
8926 test -n "$GAS" && break
8927done
8928
Reid Spencera773bd52006-08-04 18:18:08 +00008929
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008930{ echo "$as_me:$LINENO: checking for linker version" >&5
8931echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8932if test "${llvm_cv_link_version+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8934else
8935
8936 version_string="$(ld -v 2>&1 | head -1)"
8937
8938 # Check for ld64.
8939 if (echo "$version_string" | grep -q "ld64"); then
8940 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8941 else
8942 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8943 fi
8944
8945fi
8946{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8947echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8948
8949cat >>confdefs.h <<_ACEOF
8950#define HOST_LINK_VERSION "$llvm_cv_link_version"
8951_ACEOF
8952
8953
8954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008955{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8956echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8957if test "${llvm_cv_link_use_r+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008959else
8960 ac_ext=c
8961ac_cpp='$CPP $CPPFLAGS'
8962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964ac_compiler_gnu=$ac_cv_c_compiler_gnu
8965
8966 oldcflags="$CFLAGS"
8967 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008968 cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h. */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008973/* end confdefs.h. */
8974
8975int
8976main ()
8977{
Dan Gohman39ed6782010-04-25 00:12:20 +00008978
Reid Spencera773bd52006-08-04 18:18:08 +00008979 ;
8980 return 0;
8981}
8982_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008983rm -f conftest.$ac_objext conftest$ac_exeext
8984if { (ac_try="$ac_link"
8985case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988esac
8989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_link") 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8998 { (case "(($ac_try" in
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9001esac
9002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003 (eval "$ac_try") 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest$ac_exeext'
9008 { (case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011esac
9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_try") 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009017 llvm_cv_link_use_r=yes
9018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009019 echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00009023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009024
Bill Wendlingebcceee2009-04-18 11:20:33 +00009025rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009026 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009027 CFLAGS="$oldcflags"
9028 ac_ext=c
9029ac_cpp='$CPP $CPPFLAGS'
9030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032ac_compiler_gnu=$ac_cv_c_compiler_gnu
9033
9034
9035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009036{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9037echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009038if test "$llvm_cv_link_use_r" = yes ; then
9039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009040cat >>confdefs.h <<\_ACEOF
9041#define HAVE_LINK_R 1
9042_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009043
9044 fi
9045
9046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009047{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9048echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9049if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009051else
9052 ac_ext=c
9053ac_cpp='$CPP $CPPFLAGS'
9054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9056ac_compiler_gnu=$ac_cv_c_compiler_gnu
9057
9058 oldcflags="$CFLAGS"
9059 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009060 cat >conftest.$ac_ext <<_ACEOF
9061/* confdefs.h. */
9062_ACEOF
9063cat confdefs.h >>conftest.$ac_ext
9064cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009065/* end confdefs.h. */
9066
9067int
9068main ()
9069{
Dan Gohman39ed6782010-04-25 00:12:20 +00009070
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009071 ;
9072 return 0;
9073}
9074_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009075rm -f conftest.$ac_objext conftest$ac_exeext
9076if { (ac_try="$ac_link"
9077case "(($ac_try" in
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9080esac
9081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082 (eval "$ac_link") 2>conftest.er1
9083 ac_status=$?
9084 grep -v '^ *+' conftest.er1 >conftest.err
9085 rm -f conftest.er1
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9090 { (case "(($ac_try" in
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9093esac
9094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_try") 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try='test -s conftest$ac_exeext'
9100 { (case "(($ac_try" in
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9103esac
9104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_try") 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009109 llvm_cv_link_use_export_dynamic=yes
9110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009111 echo "$as_me: failed program was:" >&5
9112sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009116
Bill Wendlingebcceee2009-04-18 11:20:33 +00009117rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009118 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009119 CFLAGS="$oldcflags"
9120 ac_ext=c
9121ac_cpp='$CPP $CPPFLAGS'
9122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9124ac_compiler_gnu=$ac_cv_c_compiler_gnu
9125
9126
9127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009128{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9129echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009130if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009132cat >>confdefs.h <<\_ACEOF
9133#define HAVE_LINK_EXPORT_DYNAMIC 1
9134_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009135
9136 fi
9137
9138
Dan Gohmanda612d62010-06-01 14:56:56 +00009139{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9140echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9141if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143else
9144 ac_ext=c
9145ac_cpp='$CPP $CPPFLAGS'
9146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9148ac_compiler_gnu=$ac_cv_c_compiler_gnu
9149
9150 oldcflags="$CFLAGS"
9151
9152 # The following code is from the autoconf manual,
9153 # "11.13: Limitations of Usual Tools".
9154 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9155 # Use mktemp if possible; otherwise fall back on mkdir,
9156 # with $RANDOM to make collisions less likely.
9157 : ${TMPDIR=/tmp}
9158 {
9159 tmp=`
9160 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9161 ` &&
9162 test -n "$tmp" && test -d "$tmp"
9163 } || {
9164 tmp=$TMPDIR/foo$$-$RANDOM
9165 (umask 077 && mkdir "$tmp")
9166 } || exit $?
9167
Dan Gohmanda612d62010-06-01 14:56:56 +00009168 echo "{" > "$tmp/export.map"
9169 echo " global: main;" >> "$tmp/export.map"
9170 echo " local: *;" >> "$tmp/export.map"
9171 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009172
Dan Gohmanda612d62010-06-01 14:56:56 +00009173 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009174 cat >conftest.$ac_ext <<_ACEOF
9175/* confdefs.h. */
9176_ACEOF
9177cat confdefs.h >>conftest.$ac_ext
9178cat >>conftest.$ac_ext <<_ACEOF
9179/* end confdefs.h. */
9180
9181int
9182main ()
9183{
Dan Gohman39ed6782010-04-25 00:12:20 +00009184
Dan Gohman391569c2010-04-16 22:59:06 +00009185 ;
9186 return 0;
9187}
9188_ACEOF
9189rm -f conftest.$ac_objext conftest$ac_exeext
9190if { (ac_try="$ac_link"
9191case "(($ac_try" in
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9194esac
9195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196 (eval "$ac_link") 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9204 { (case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207esac
9208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_try") 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; } &&
9213 { ac_try='test -s conftest$ac_exeext'
9214 { (case "(($ac_try" in
9215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216 *) ac_try_echo=$ac_try;;
9217esac
9218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219 (eval "$ac_try") 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009223 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009224else
9225 echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
Dan Gohman943005e2010-06-01 16:22:27 +00009228 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009229fi
9230
9231rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009233 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009234 rmdir "$tmp"
9235 CFLAGS="$oldcflags"
9236 ac_ext=c
9237ac_cpp='$CPP $CPPFLAGS'
9238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9240ac_compiler_gnu=$ac_cv_c_compiler_gnu
9241
9242
9243fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009244{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9245echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9246if test "$llvm_cv_link_use_version_script" = yes ; then
9247 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009248
9249 fi
9250
9251
Reid Spencera773bd52006-08-04 18:18:08 +00009252
9253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009254{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9255echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9256if test "${ac_cv_c_const+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259 cat >conftest.$ac_ext <<_ACEOF
9260/* confdefs.h. */
9261_ACEOF
9262cat confdefs.h >>conftest.$ac_ext
9263cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009264/* end confdefs.h. */
9265
9266int
9267main ()
9268{
9269/* FIXME: Include the comments suggested by Paul. */
9270#ifndef __cplusplus
9271 /* Ultrix mips cc rejects this. */
9272 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009273 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009274 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009275 char const *const *ccp;
9276 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009277 /* NEC SVR4.0.2 mips cc rejects this. */
9278 struct point {int x, y;};
9279 static struct point const zero = {0,0};
9280 /* AIX XL C 1.02.0.0 rejects this.
9281 It does not let you subtract one const X* pointer from another in
9282 an arm of an if-expression whose if-part is not a constant
9283 expression */
9284 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009285 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009286 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009287 ++ccp;
9288 p = (char**) ccp;
9289 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009290 { /* SCO 3.2v4 cc rejects this. */
9291 char *t;
9292 char const *s = 0 ? (char *) 0 : (char const *) 0;
9293
9294 *t++ = 0;
9295 if (s) return 0;
9296 }
9297 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9298 int x[] = {25, 17};
9299 const int *foo = &x[0];
9300 ++foo;
9301 }
9302 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9303 typedef const int *iptr;
9304 iptr p = 0;
9305 ++p;
9306 }
9307 { /* AIX XL C 1.02.0.0 rejects this saying
9308 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9309 struct s { int j; const int *ap[3]; };
9310 struct s *b; b->j = 5;
9311 }
9312 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9313 const int foo = 10;
9314 if (!foo) return 0;
9315 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009316 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009317#endif
9318
9319 ;
9320 return 0;
9321}
9322_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009323rm -f conftest.$ac_objext
9324if { (ac_try="$ac_compile"
9325case "(($ac_try" in
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9328esac
9329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_compile") 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9338 { (case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9341esac
9342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_try") 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; } &&
9347 { ac_try='test -s conftest.$ac_objext'
9348 { (case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9351esac
9352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_try") 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009357 ac_cv_c_const=yes
9358else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009359 echo "$as_me: failed program was:" >&5
9360sed 's/^/| /' conftest.$ac_ext >&5
9361
9362 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009364
Reid Spencera773bd52006-08-04 18:18:08 +00009365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009367{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9368echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009369if test $ac_cv_c_const = no; then
9370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009371cat >>confdefs.h <<\_ACEOF
9372#define const
9373_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009374
9375fi
9376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009377
9378
9379
9380
9381
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009382ac_header_dirent=no
9383for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009384 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9385{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9386echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009389else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009390 cat >conftest.$ac_ext <<_ACEOF
9391/* confdefs.h. */
9392_ACEOF
9393cat confdefs.h >>conftest.$ac_ext
9394cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009395/* end confdefs.h. */
9396#include <sys/types.h>
9397#include <$ac_hdr>
9398
9399int
9400main ()
9401{
9402if ((DIR *) 0)
9403return 0;
9404 ;
9405 return 0;
9406}
9407_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009408rm -f conftest.$ac_objext
9409if { (ac_try="$ac_compile"
9410case "(($ac_try" in
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9413esac
9414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_compile") 2>conftest.er1
9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } &&
9422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9423 { (case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9426esac
9427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_try") 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest.$ac_objext'
9433 { (case "(($ac_try" in
9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9436esac
9437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_try") 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442 eval "$as_ac_Header=yes"
9443else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009444 echo "$as_me: failed program was:" >&5
9445sed 's/^/| /' conftest.$ac_ext >&5
9446
9447 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009449
Reid Spencera773bd52006-08-04 18:18:08 +00009450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009451fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009452ac_res=`eval echo '${'$as_ac_Header'}'`
9453 { echo "$as_me:$LINENO: result: $ac_res" >&5
9454echo "${ECHO_T}$ac_res" >&6; }
9455if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009456 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009457#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009458_ACEOF
9459
9460ac_header_dirent=$ac_hdr; break
9461fi
9462
9463done
9464# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9465if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009466 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9467echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9468if test "${ac_cv_search_opendir+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009470else
9471 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009472cat >conftest.$ac_ext <<_ACEOF
9473/* confdefs.h. */
9474_ACEOF
9475cat confdefs.h >>conftest.$ac_ext
9476cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009477/* end confdefs.h. */
9478
Reid Spencera773bd52006-08-04 18:18:08 +00009479/* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482#ifdef __cplusplus
9483extern "C"
9484#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485char opendir ();
9486int
9487main ()
9488{
Reid Spencera773bd52006-08-04 18:18:08 +00009489return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009490 ;
9491 return 0;
9492}
9493_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009494for ac_lib in '' dir; do
9495 if test -z "$ac_lib"; then
9496 ac_res="none required"
9497 else
9498 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009500 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009501 rm -f conftest.$ac_objext conftest$ac_exeext
9502if { (ac_try="$ac_link"
9503case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506esac
9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_link") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9516 { (case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519esac
9520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_try") 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest$ac_exeext'
9526 { (case "(($ac_try" in
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9529esac
9530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531 (eval "$ac_try") 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009535 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009536else
9537 echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009542
Bill Wendlingebcceee2009-04-18 11:20:33 +00009543rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544 conftest$ac_exeext
9545 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009546 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009547fi
John Criswell7a73b802003-06-30 21:59:07 +00009548done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009549if test "${ac_cv_search_opendir+set}" = set; then
9550 :
Reid Spencera773bd52006-08-04 18:18:08 +00009551else
9552 ac_cv_search_opendir=no
9553fi
9554rm conftest.$ac_ext
9555LIBS=$ac_func_search_save_LIBS
9556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009557{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9558echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009559ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009560if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009562
Reid Spencera773bd52006-08-04 18:18:08 +00009563fi
9564
9565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009566 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9567echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9568if test "${ac_cv_search_opendir+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009570else
9571 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009572cat >conftest.$ac_ext <<_ACEOF
9573/* confdefs.h. */
9574_ACEOF
9575cat confdefs.h >>conftest.$ac_ext
9576cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009577/* end confdefs.h. */
9578
9579/* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9582#ifdef __cplusplus
9583extern "C"
9584#endif
9585char opendir ();
9586int
9587main ()
9588{
9589return opendir ();
9590 ;
9591 return 0;
9592}
9593_ACEOF
9594for ac_lib in '' x; do
9595 if test -z "$ac_lib"; then
9596 ac_res="none required"
9597 else
9598 ac_res=-l$ac_lib
9599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9600 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009601 rm -f conftest.$ac_objext conftest$ac_exeext
9602if { (ac_try="$ac_link"
9603case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606esac
9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616 { (case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_try") 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_try") 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009635 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009636else
9637 echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640
Reid Spencera773bd52006-08-04 18:18:08 +00009641fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009642
Bill Wendlingebcceee2009-04-18 11:20:33 +00009643rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009644 conftest$ac_exeext
9645 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009646 break
9647fi
9648done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009649if test "${ac_cv_search_opendir+set}" = set; then
9650 :
Reid Spencera773bd52006-08-04 18:18:08 +00009651else
9652 ac_cv_search_opendir=no
9653fi
9654rm conftest.$ac_ext
9655LIBS=$ac_func_search_save_LIBS
9656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009657{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9658echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009659ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009660if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9662
9663fi
9664
9665fi
John Criswell7a73b802003-06-30 21:59:07 +00009666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009667
John Criswell7a73b802003-06-30 21:59:07 +00009668for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009669do
9670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676fi
9677ac_res=`eval echo '${'$as_ac_Header'}'`
9678 { echo "$as_me:$LINENO: result: $ac_res" >&5
9679echo "${ECHO_T}$ac_res" >&6; }
9680else
9681 # Is the header compilable?
9682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9684cat >conftest.$ac_ext <<_ACEOF
9685/* confdefs.h. */
9686_ACEOF
9687cat confdefs.h >>conftest.$ac_ext
9688cat >>conftest.$ac_ext <<_ACEOF
9689/* end confdefs.h. */
9690$ac_includes_default
9691#include <$ac_header>
9692_ACEOF
9693rm -f conftest.$ac_objext
9694if { (ac_try="$ac_compile"
9695case "(($ac_try" in
9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697 *) ac_try_echo=$ac_try;;
9698esac
9699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700 (eval "$ac_compile") 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9711esac
9712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest.$ac_objext'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721esac
9722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_header_compiler=yes
9728else
9729 echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 ac_header_compiler=no
9733fi
9734
9735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9737echo "${ECHO_T}$ac_header_compiler" >&6; }
9738
9739# Is the header present?
9740{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9742cat >conftest.$ac_ext <<_ACEOF
9743/* confdefs.h. */
9744_ACEOF
9745cat confdefs.h >>conftest.$ac_ext
9746cat >>conftest.$ac_ext <<_ACEOF
9747/* end confdefs.h. */
9748#include <$ac_header>
9749_ACEOF
9750if { (ac_try="$ac_cpp conftest.$ac_ext"
9751case "(($ac_try" in
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9754esac
9755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null; then
9763 if test -s conftest.err; then
9764 ac_cpp_err=$ac_c_preproc_warn_flag
9765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9766 else
9767 ac_cpp_err=
9768 fi
9769else
9770 ac_cpp_err=yes
9771fi
9772if test -z "$ac_cpp_err"; then
9773 ac_header_preproc=yes
9774else
9775 echo "$as_me: failed program was:" >&5
9776sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 ac_header_preproc=no
9779fi
9780
9781rm -f conftest.err conftest.$ac_ext
9782{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783echo "${ECHO_T}$ac_header_preproc" >&6; }
9784
9785# So? What about this header?
9786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9787 yes:no: )
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9791echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9792 ac_header_preproc=yes
9793 ;;
9794 no:yes:* )
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9800echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9802echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9806echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9807 ( cat <<\_ASBOX
9808## ----------------------------------- ##
9809## Report this to llvmbugs@cs.uiuc.edu ##
9810## ----------------------------------- ##
9811_ASBOX
9812 ) | sed "s/^/$as_me: WARNING: /" >&2
9813 ;;
9814esac
9815{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
9820 eval "$as_ac_Header=\$ac_header_preproc"
9821fi
9822ac_res=`eval echo '${'$as_ac_Header'}'`
9823 { echo "$as_me:$LINENO: result: $ac_res" >&5
9824echo "${ECHO_T}$ac_res" >&6; }
9825
9826fi
9827if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009828 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009830_ACEOF
9831
9832fi
9833
9834done
9835
Reid Spencera773bd52006-08-04 18:18:08 +00009836# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009837if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009838 enableval=$enable_ltdl_install;
9839fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009840
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009842
9843
9844if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845 INSTALL_LTDL_TRUE=
9846 INSTALL_LTDL_FALSE='#'
9847else
9848 INSTALL_LTDL_TRUE='#'
9849 INSTALL_LTDL_FALSE=
9850fi
9851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009852
9853
9854if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855 CONVENIENCE_LTDL_TRUE=
9856 CONVENIENCE_LTDL_FALSE='#'
9857else
9858 CONVENIENCE_LTDL_TRUE='#'
9859 CONVENIENCE_LTDL_FALSE=
9860fi
9861
9862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009863{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9864echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865library_names_spec=
9866libname_spec='lib$name'
9867soname_spec=
9868shrext_cmds=".so"
9869postinstall_cmds=
9870postuninstall_cmds=
9871finish_cmds=
9872finish_eval=
9873shlibpath_var=
9874shlibpath_overrides_runpath=unknown
9875version_type=none
9876dynamic_linker="$host_os ld.so"
9877sys_lib_dlsearch_path_spec="/lib /usr/lib"
9878if test "$GCC" = yes; then
9879 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9880 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9881 # if the path contains ";" then we assume it to be the separator
9882 # otherwise default to the standard path separator (i.e. ":") - it is
9883 # assumed that no part of a normal pathname contains ";" but that should
9884 # okay in the real world where ";" in dirpaths is itself problematic.
9885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9886 else
9887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9888 fi
9889else
9890 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9891fi
9892need_lib_prefix=unknown
9893hardcode_into_libs=no
9894
9895# when you set need_version to no, make sure it does not cause -set_version
9896# flags to be left without arguments
9897need_version=unknown
9898
9899case $host_os in
9900aix3*)
9901 version_type=linux
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9903 shlibpath_var=LIBPATH
9904
9905 # AIX 3 has no versioning support, so we append a major version to the name.
9906 soname_spec='${libname}${release}${shared_ext}$major'
9907 ;;
9908
9909aix4* | aix5*)
9910 version_type=linux
9911 need_lib_prefix=no
9912 need_version=no
9913 hardcode_into_libs=yes
9914 if test "$host_cpu" = ia64; then
9915 # AIX 5 supports IA64
9916 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9917 shlibpath_var=LD_LIBRARY_PATH
9918 else
9919 # With GCC up to 2.95.x, collect2 would create an import file
9920 # for dependence libraries. The import file would start with
9921 # the line `#! .'. This would cause the generated library to
9922 # depend on `.', always an invalid library. This was fixed in
9923 # development snapshots of GCC prior to 3.0.
9924 case $host_os in
9925 aix4 | aix4.[01] | aix4.[01].*)
9926 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9927 echo ' yes '
9928 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9929 :
9930 else
9931 can_build_shared=no
9932 fi
9933 ;;
9934 esac
9935 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9936 # soname into executable. Probably we can add versioning support to
9937 # collect2, so additional links can be useful in future.
9938 if test "$aix_use_runtimelinking" = yes; then
9939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9940 # instead of lib<name>.a to let people know that these are not
9941 # typical AIX shared libraries.
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943 else
9944 # We preserve .a as extension for shared libraries through AIX4.2
9945 # and later when we are not doing run time linking.
9946 library_names_spec='${libname}${release}.a $libname.a'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 fi
9949 shlibpath_var=LIBPATH
9950 fi
9951 ;;
9952
9953amigaos*)
9954 library_names_spec='$libname.ixlibrary $libname.a'
9955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9956 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'
9957 ;;
9958
9959beos*)
9960 library_names_spec='${libname}${shared_ext}'
9961 dynamic_linker="$host_os ld.so"
9962 shlibpath_var=LIBRARY_PATH
9963 ;;
9964
9965bsdi[45]*)
9966 version_type=linux
9967 need_version=no
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9971 shlibpath_var=LD_LIBRARY_PATH
9972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9974 # the default ld.so.conf also contains /usr/contrib/lib and
9975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9976 # libtool to hard-code these into programs
9977 ;;
9978
9979cygwin* | mingw* | pw32*)
9980 version_type=windows
9981 shrext_cmds=".dll"
9982 need_version=no
9983 need_lib_prefix=no
9984
9985 case $GCC,$host_os in
9986 yes,cygwin* | yes,mingw* | yes,pw32*)
9987 library_names_spec='$libname.dll.a'
9988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9989 postinstall_cmds='base_file=`basename \${file}`~
9990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9991 dldir=$destdir/`dirname \$dlpath`~
9992 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009993 $install_prog $dir/$dlname \$dldir/$dlname~
9994 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9996 dlpath=$dir/\$dldll~
9997 $rm \$dlpath'
9998 shlibpath_overrides_runpath=yes
9999
10000 case $host_os in
10001 cygwin*)
10002 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10004 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10005 ;;
10006 mingw*)
10007 # MinGW DLLs use traditional 'lib' prefix
10008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10010 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10011 # It is most probably a Windows format PATH printed by
10012 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10013 # path with ; separators, and with drive letters. We can handle the
10014 # drive letters (cygwin fileutils understands them), so leave them,
10015 # especially as we might pass files found there to a mingw objdump,
10016 # which wouldn't understand a cygwinified path. Ahh.
10017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10018 else
10019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10020 fi
10021 ;;
10022 pw32*)
10023 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000010024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010025 ;;
10026 esac
10027 ;;
10028
10029 *)
10030 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10031 ;;
10032 esac
10033 dynamic_linker='Win32 ld.exe'
10034 # FIXME: first we should search . and the directory the executable is in
10035 shlibpath_var=PATH
10036 ;;
10037
10038darwin* | rhapsody*)
10039 dynamic_linker="$host_os dyld"
10040 version_type=darwin
10041 need_lib_prefix=no
10042 need_version=no
10043 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10044 soname_spec='${libname}${release}${major}$shared_ext'
10045 shlibpath_overrides_runpath=yes
10046 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000010047 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10049 if test "$GCC" = yes; then
10050 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"`
10051 else
10052 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10053 fi
10054 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10055 ;;
10056
10057dgux*)
10058 version_type=linux
10059 need_lib_prefix=no
10060 need_version=no
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 ;;
10065
10066freebsd1*)
10067 dynamic_linker=no
10068 ;;
10069
10070kfreebsd*-gnu)
10071 version_type=linux
10072 need_lib_prefix=no
10073 need_version=no
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=no
10078 hardcode_into_libs=yes
10079 dynamic_linker='GNU ld.so'
10080 ;;
10081
Reid Spencera773bd52006-08-04 18:18:08 +000010082freebsd* | dragonfly*)
10083 # DragonFly does not have aout. When/if they implement a new
10084 # versioning mechanism, adjust this.
10085 if test -x /usr/bin/objformat; then
10086 objformat=`/usr/bin/objformat`
10087 else
10088 case $host_os in
10089 freebsd[123]*) objformat=aout ;;
10090 *) objformat=elf ;;
10091 esac
10092 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093 version_type=freebsd-$objformat
10094 case $version_type in
10095 freebsd-elf*)
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10097 need_version=no
10098 need_lib_prefix=no
10099 ;;
10100 freebsd-*)
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10102 need_version=yes
10103 ;;
10104 esac
10105 shlibpath_var=LD_LIBRARY_PATH
10106 case $host_os in
10107 freebsd2*)
10108 shlibpath_overrides_runpath=yes
10109 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010110 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010111 shlibpath_overrides_runpath=yes
10112 hardcode_into_libs=yes
10113 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010114 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10115 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010116 shlibpath_overrides_runpath=no
10117 hardcode_into_libs=yes
10118 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010119 freebsd*) # from 4.6 on
10120 shlibpath_overrides_runpath=yes
10121 hardcode_into_libs=yes
10122 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123 esac
10124 ;;
10125
10126gnu*)
10127 version_type=linux
10128 need_lib_prefix=no
10129 need_version=no
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 hardcode_into_libs=yes
10134 ;;
10135
10136hpux9* | hpux10* | hpux11*)
10137 # Give a soname corresponding to the major version so that dld.sl refuses to
10138 # link against other versions.
10139 version_type=sunos
10140 need_lib_prefix=no
10141 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010142 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010143 ia64*)
10144 shrext_cmds='.so'
10145 hardcode_into_libs=yes
10146 dynamic_linker="$host_os dld.so"
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 soname_spec='${libname}${release}${shared_ext}$major'
10151 if test "X$HPUX_IA64_MODE" = X32; then
10152 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10153 else
10154 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10155 fi
10156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10157 ;;
10158 hppa*64*)
10159 shrext_cmds='.sl'
10160 hardcode_into_libs=yes
10161 dynamic_linker="$host_os dld.sl"
10162 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10168 ;;
10169 *)
10170 shrext_cmds='.sl'
10171 dynamic_linker="$host_os dld.sl"
10172 shlibpath_var=SHLIB_PATH
10173 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 ;;
10177 esac
10178 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10179 postinstall_cmds='chmod 555 $lib'
10180 ;;
10181
Reid Spencera773bd52006-08-04 18:18:08 +000010182interix3*)
10183 version_type=linux
10184 need_lib_prefix=no
10185 need_version=no
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=no
10191 hardcode_into_libs=yes
10192 ;;
10193
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194irix5* | irix6* | nonstopux*)
10195 case $host_os in
10196 nonstopux*) version_type=nonstopux ;;
10197 *)
10198 if test "$lt_cv_prog_gnu_ld" = yes; then
10199 version_type=linux
10200 else
10201 version_type=irix
10202 fi ;;
10203 esac
10204 need_lib_prefix=no
10205 need_version=no
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10208 case $host_os in
10209 irix5* | nonstopux*)
10210 libsuff= shlibsuff=
10211 ;;
10212 *)
10213 case $LD in # libtool.m4 will add one of these switches to LD
10214 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10215 libsuff= shlibsuff= libmagic=32-bit;;
10216 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10217 libsuff=32 shlibsuff=N32 libmagic=N32;;
10218 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10219 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10220 *) libsuff= shlibsuff= libmagic=never-match;;
10221 esac
10222 ;;
10223 esac
10224 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10225 shlibpath_overrides_runpath=no
10226 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10227 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10228 hardcode_into_libs=yes
10229 ;;
10230
10231# No shared lib support for Linux oldld, aout, or coff.
10232linux*oldld* | linux*aout* | linux*coff*)
10233 dynamic_linker=no
10234 ;;
10235
10236# This must be Linux ELF.
10237linux*)
10238 version_type=linux
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 # This implies no fast_install, which is unacceptable.
10247 # Some rework will be needed to allow for fast_install
10248 # before this can be enabled.
10249 hardcode_into_libs=yes
10250
10251 # Append ld.so.conf contents to the search path
10252 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010253 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10255 fi
10256
10257 # We used to test for /lib/ld.so.1 and disable shared libraries on
10258 # powerpc, because MkLinux only supported shared libraries with the
10259 # GNU dynamic linker. Since this was broken with cross compilers,
10260 # most powerpc-linux boxes support dynamic linking these days and
10261 # people can always --disable-shared, the test was removed, and we
10262 # assume the GNU/Linux dynamic linker is in use.
10263 dynamic_linker='GNU/Linux ld.so'
10264 ;;
10265
10266knetbsd*-gnu)
10267 version_type=linux
10268 need_lib_prefix=no
10269 need_version=no
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 shlibpath_overrides_runpath=no
10274 hardcode_into_libs=yes
10275 dynamic_linker='GNU ld.so'
10276 ;;
10277
10278netbsd*)
10279 version_type=sunos
10280 need_lib_prefix=no
10281 need_version=no
10282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10285 dynamic_linker='NetBSD (a.out) ld.so'
10286 else
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 dynamic_linker='NetBSD ld.elf_so'
10290 fi
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10293 hardcode_into_libs=yes
10294 ;;
10295
10296newsos6)
10297 version_type=linux
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=yes
10301 ;;
10302
10303nto-qnx*)
10304 version_type=linux
10305 need_lib_prefix=no
10306 need_version=no
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 shlibpath_overrides_runpath=yes
10311 ;;
10312
10313openbsd*)
10314 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010315 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010316 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10318 case $host_os in
10319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10320 *) need_version=no ;;
10321 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10326 case $host_os in
10327 openbsd2.[89] | openbsd2.[89].*)
10328 shlibpath_overrides_runpath=no
10329 ;;
10330 *)
10331 shlibpath_overrides_runpath=yes
10332 ;;
10333 esac
10334 else
10335 shlibpath_overrides_runpath=yes
10336 fi
10337 ;;
10338
10339os2*)
10340 libname_spec='$name'
10341 shrext_cmds=".dll"
10342 need_lib_prefix=no
10343 library_names_spec='$libname${shared_ext} $libname.a'
10344 dynamic_linker='OS/2 ld.exe'
10345 shlibpath_var=LIBPATH
10346 ;;
10347
10348osf3* | osf4* | osf5*)
10349 version_type=osf
10350 need_lib_prefix=no
10351 need_version=no
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357 ;;
10358
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359solaris*)
10360 version_type=linux
10361 need_lib_prefix=no
10362 need_version=no
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=yes
10367 hardcode_into_libs=yes
10368 # ldd complains unless libraries are executable
10369 postinstall_cmds='chmod +x $lib'
10370 ;;
10371
10372sunos4*)
10373 version_type=sunos
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10375 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=yes
10378 if test "$with_gnu_ld" = yes; then
10379 need_lib_prefix=no
10380 fi
10381 need_version=yes
10382 ;;
10383
Reid Spencera773bd52006-08-04 18:18:08 +000010384sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010385 version_type=linux
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 case $host_vendor in
10390 sni)
10391 shlibpath_overrides_runpath=no
10392 need_lib_prefix=no
10393 export_dynamic_flag_spec='${wl}-Blargedynsym'
10394 runpath_var=LD_RUN_PATH
10395 ;;
10396 siemens)
10397 need_lib_prefix=no
10398 ;;
10399 motorola)
10400 need_lib_prefix=no
10401 need_version=no
10402 shlibpath_overrides_runpath=no
10403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10404 ;;
10405 esac
10406 ;;
10407
10408sysv4*MP*)
10409 if test -d /usr/nec ;then
10410 version_type=linux
10411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10412 soname_spec='$libname${shared_ext}.$major'
10413 shlibpath_var=LD_LIBRARY_PATH
10414 fi
10415 ;;
10416
Reid Spencera773bd52006-08-04 18:18:08 +000010417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10418 version_type=freebsd-elf
10419 need_lib_prefix=no
10420 need_version=no
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 hardcode_into_libs=yes
10425 if test "$with_gnu_ld" = yes; then
10426 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10427 shlibpath_overrides_runpath=no
10428 else
10429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10430 shlibpath_overrides_runpath=yes
10431 case $host_os in
10432 sco3.2v5*)
10433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10434 ;;
10435 esac
10436 fi
10437 sys_lib_dlsearch_path_spec='/usr/lib'
10438 ;;
10439
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440uts4*)
10441 version_type=linux
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 ;;
10446
10447*)
10448 dynamic_linker=no
10449 ;;
10450esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010451{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10452echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453test "$dynamic_linker" = no && can_build_shared=no
10454
Reid Spencera773bd52006-08-04 18:18:08 +000010455variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10456if test "$GCC" = yes; then
10457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10458fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459
Reid Spencera773bd52006-08-04 18:18:08 +000010460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010461{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10462echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10463if test "${libltdl_cv_shlibext+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010465else
10466
10467module=yes
10468eval libltdl_cv_shlibext=$shrext_cmds
10469
10470fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010471{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10472echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010473if test -n "$libltdl_cv_shlibext"; then
10474
10475cat >>confdefs.h <<_ACEOF
10476#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10477_ACEOF
10478
10479fi
10480
10481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010482{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10483echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10484if test "${libltdl_cv_shlibpath_var+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486else
10487 libltdl_cv_shlibpath_var="$shlibpath_var"
10488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010489{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10490echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491if test -n "$libltdl_cv_shlibpath_var"; then
10492
10493cat >>confdefs.h <<_ACEOF
10494#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10495_ACEOF
10496
10497fi
10498
10499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010500{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10501echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10502if test "${libltdl_cv_sys_search_path+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504else
10505 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10506fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010507{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10508echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509if test -n "$libltdl_cv_sys_search_path"; then
10510 sys_search_path=
10511 for dir in $libltdl_cv_sys_search_path; do
10512 if test -z "$sys_search_path"; then
10513 sys_search_path="$dir"
10514 else
10515 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10516 fi
10517 done
10518
10519cat >>confdefs.h <<_ACEOF
10520#define LTDL_SYSSEARCHPATH "$sys_search_path"
10521_ACEOF
10522
10523fi
10524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010525{ echo "$as_me:$LINENO: checking for objdir" >&5
10526echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10527if test "${libltdl_cv_objdir+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529else
10530 libltdl_cv_objdir="$objdir"
10531 if test -n "$objdir"; then
10532 :
10533 else
10534 rm -f .libs 2>/dev/null
10535 mkdir .libs 2>/dev/null
10536 if test -d .libs; then
10537 libltdl_cv_objdir=.libs
10538 else
10539 # MS-DOS does not allow filenames that begin with a dot.
10540 libltdl_cv_objdir=_libs
10541 fi
10542 rmdir .libs 2>/dev/null
10543 fi
10544
10545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010546{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10547echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010548
10549cat >>confdefs.h <<_ACEOF
10550#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10551_ACEOF
10552
10553
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554
10555
10556
10557
10558# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010559{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10560echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10561if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010563else
10564
10565# These are sane defaults that work on at least a few old systems.
10566# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10567
10568# Character class describing NM global symbol codes.
10569symcode='[BCDEGRST]'
10570
10571# Regexp to match symbols that can be accessed directly from C.
10572sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10573
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010574# Transform an extracted symbol line into a proper C declaration
10575lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10576
10577# Transform an extracted symbol line into symbol name and symbol address
10578lt_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'"
10579
10580# Define system-specific variables.
10581case $host_os in
10582aix*)
10583 symcode='[BCDT]'
10584 ;;
10585cygwin* | mingw* | pw32*)
10586 symcode='[ABCDGISTW]'
10587 ;;
10588hpux*) # Its linker distinguishes data from code symbols
10589 if test "$host_cpu" = ia64; then
10590 symcode='[ABCDEGRST]'
10591 fi
10592 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10593 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'"
10594 ;;
10595linux*)
10596 if test "$host_cpu" = ia64; then
10597 symcode='[ABCDGIRSTW]'
10598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10599 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'"
10600 fi
10601 ;;
10602irix* | nonstopux*)
10603 symcode='[BCDEGRST]'
10604 ;;
10605osf*)
10606 symcode='[BCDEGQRST]'
10607 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010608solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609 symcode='[BDRT]'
10610 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010611sco3.2v5*)
10612 symcode='[DT]'
10613 ;;
10614sysv4.2uw2*)
10615 symcode='[DT]'
10616 ;;
10617sysv5* | sco5v6* | unixware* | OpenUNIX*)
10618 symcode='[ABDT]'
10619 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620sysv4)
10621 symcode='[DFNSTU]'
10622 ;;
10623esac
10624
10625# Handle CRLF in mingw tool chain
10626opt_cr=
10627case $build_os in
10628mingw*)
10629 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10630 ;;
10631esac
10632
10633# If we're using GNU nm, then use its standard symbol codes.
10634case `$NM -V 2>&1` in
10635*GNU* | *'with BFD'*)
10636 symcode='[ABCDGIRSTW]' ;;
10637esac
10638
10639# Try without a prefix undercore, then with it.
10640for ac_symprfx in "" "_"; do
10641
Reid Spencera773bd52006-08-04 18:18:08 +000010642 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10643 symxfrm="\\1 $ac_symprfx\\2 \\2"
10644
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010645 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647
10648 # Check to see that the pipe works correctly.
10649 pipe_works=no
10650
10651 rm -f conftest*
10652 cat > conftest.$ac_ext <<EOF
10653#ifdef __cplusplus
10654extern "C" {
10655#endif
10656char nm_test_var;
10657void nm_test_func(){}
10658#ifdef __cplusplus
10659}
10660#endif
10661int main(){nm_test_var='a';nm_test_func();return(0);}
10662EOF
10663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665 (eval $ac_compile) 2>&5
10666 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010669 # Now try to grab the symbols.
10670 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010671 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010672 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10673 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676 # Try sorting and uniquifying the output.
10677 if sort "$nlist" | uniq > "$nlist"T; then
10678 mv -f "$nlist"T "$nlist"
10679 else
10680 rm -f "$nlist"T
10681 fi
10682
10683 # Make sure that we snagged all the symbols we need.
10684 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10685 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10686 cat <<EOF > conftest.$ac_ext
10687#ifdef __cplusplus
10688extern "C" {
10689#endif
10690
10691EOF
10692 # Now generate the symbol file.
10693 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10694
10695 cat <<EOF >> conftest.$ac_ext
10696#if defined (__STDC__) && __STDC__
10697# define lt_ptr_t void *
10698#else
10699# define lt_ptr_t char *
10700# define const
10701#endif
10702
10703/* The mapping between symbol names and symbols. */
10704const struct {
10705 const char *name;
10706 lt_ptr_t address;
10707}
10708lt_preloaded_symbols[] =
10709{
10710EOF
10711 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10712 cat <<\EOF >> conftest.$ac_ext
10713 {0, (lt_ptr_t) 0}
10714};
10715
10716#ifdef __cplusplus
10717}
10718#endif
10719EOF
10720 # Now try linking the two files.
10721 mv conftest.$ac_objext conftstm.$ac_objext
10722 lt_save_LIBS="$LIBS"
10723 lt_save_CFLAGS="$CFLAGS"
10724 LIBS="conftstm.$ac_objext"
10725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010727 (eval $ac_link) 2>&5
10728 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731 pipe_works=yes
10732 fi
10733 LIBS="$lt_save_LIBS"
10734 CFLAGS="$lt_save_CFLAGS"
10735 else
10736 echo "cannot find nm_test_func in $nlist" >&5
10737 fi
10738 else
10739 echo "cannot find nm_test_var in $nlist" >&5
10740 fi
10741 else
10742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10743 fi
10744 else
10745 echo "$progname: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10747 fi
10748 rm -f conftest* conftst*
10749
10750 # Do not use the global_symbol_pipe unless it works.
10751 if test "$pipe_works" = yes; then
10752 break
10753 else
10754 lt_cv_sys_global_symbol_pipe=
10755 fi
10756done
10757
10758fi
10759
10760if test -z "$lt_cv_sys_global_symbol_pipe"; then
10761 lt_cv_sys_global_symbol_to_cdecl=
10762fi
10763if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010764 { echo "$as_me:$LINENO: result: failed" >&5
10765echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010767 { echo "$as_me:$LINENO: result: ok" >&5
10768echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769fi
10770
10771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010772{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10773echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10774if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776else
10777 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10778 libltdl_cv_preloaded_symbols=yes
10779 else
10780 libltdl_cv_preloaded_symbols=no
10781 fi
10782
10783fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010784{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10785echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010786if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010788cat >>confdefs.h <<\_ACEOF
10789#define HAVE_PRELOADED_SYMBOLS 1
10790_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010791
10792fi
10793
10794LIBADD_DL=
10795
10796ac_ext=c
10797ac_cpp='$CPP $CPPFLAGS'
10798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10800ac_compiler_gnu=$ac_cv_c_compiler_gnu
10801
10802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010803{ echo "$as_me:$LINENO: checking for shl_load" >&5
10804echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10805if test "${ac_cv_func_shl_load+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807else
10808 cat >conftest.$ac_ext <<_ACEOF
10809/* confdefs.h. */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h. */
10814/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10816#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010818/* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char shl_load (); below.
10820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821 <limits.h> exists even on freestanding compilers. */
10822
10823#ifdef __STDC__
10824# include <limits.h>
10825#else
10826# include <assert.h>
10827#endif
10828
10829#undef shl_load
10830
10831/* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10834#ifdef __cplusplus
10835extern "C"
10836#endif
10837char shl_load ();
10838/* The GNU C library defines this for functions which it implements
10839 to always fail with ENOSYS. Some functions are actually named
10840 something starting with __ and the normal name is an alias. */
10841#if defined __stub_shl_load || defined __stub___shl_load
10842choke me
10843#endif
10844
10845int
10846main ()
10847{
10848return shl_load ();
10849 ;
10850 return 0;
10851}
10852_ACEOF
10853rm -f conftest.$ac_objext conftest$ac_exeext
10854if { (ac_try="$ac_link"
10855case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_link") 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_cv_func_shl_load=yes
10888else
10889 echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 ac_cv_func_shl_load=no
10893fi
10894
10895rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897fi
10898{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10899echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10900if test $ac_cv_func_shl_load = yes; then
10901
10902cat >>confdefs.h <<\_ACEOF
10903#define HAVE_SHL_LOAD 1
10904_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010905
10906else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010907 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10908echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10909if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911else
10912 ac_check_lib_save_LIBS=$LIBS
10913LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010914cat >conftest.$ac_ext <<_ACEOF
10915/* confdefs.h. */
10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919/* end confdefs.h. */
10920
Reid Spencera773bd52006-08-04 18:18:08 +000010921/* Override any GCC internal prototype to avoid an error.
10922 Use char because int might match the return type of a GCC
10923 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924#ifdef __cplusplus
10925extern "C"
10926#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927char shl_load ();
10928int
10929main ()
10930{
Reid Spencera773bd52006-08-04 18:18:08 +000010931return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932 ;
10933 return 0;
10934}
10935_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010936rm -f conftest.$ac_objext conftest$ac_exeext
10937if { (ac_try="$ac_link"
10938case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10941esac
10942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_link") 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954esac
10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970 ac_cv_lib_dld_shl_load=yes
10971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010972 echo "$as_me: failed program was:" >&5
10973sed 's/^/| /' conftest.$ac_ext >&5
10974
10975 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010977
Bill Wendlingebcceee2009-04-18 11:20:33 +000010978rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010979 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980LIBS=$ac_check_lib_save_LIBS
10981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010982{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10983echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10984if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010986cat >>confdefs.h <<\_ACEOF
10987#define HAVE_SHL_LOAD 1
10988_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010989
10990 LIBADD_DL="$LIBADD_DL -ldld"
10991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010992 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10993echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10994if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010996else
10997 ac_check_lib_save_LIBS=$LIBS
10998LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010999cat >conftest.$ac_ext <<_ACEOF
11000/* confdefs.h. */
11001_ACEOF
11002cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011004/* end confdefs.h. */
11005
Reid Spencera773bd52006-08-04 18:18:08 +000011006/* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011009#ifdef __cplusplus
11010extern "C"
11011#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012char dlopen ();
11013int
11014main ()
11015{
Reid Spencera773bd52006-08-04 18:18:08 +000011016return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011017 ;
11018 return 0;
11019}
11020_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011021rm -f conftest.$ac_objext conftest$ac_exeext
11022if { (ac_try="$ac_link"
11023case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11026esac
11027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_link") 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11039esac
11040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049esac
11050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011055 ac_cv_lib_dl_dlopen=yes
11056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011057 echo "$as_me: failed program was:" >&5
11058sed 's/^/| /' conftest.$ac_ext >&5
11059
11060 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011062
Bill Wendlingebcceee2009-04-18 11:20:33 +000011063rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011064 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065LIBS=$ac_check_lib_save_LIBS
11066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011067{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11068echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11069if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011071cat >>confdefs.h <<\_ACEOF
11072#define HAVE_LIBDL 1
11073_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011074
11075 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11076else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011077 cat >conftest.$ac_ext <<_ACEOF
11078/* confdefs.h. */
11079_ACEOF
11080cat confdefs.h >>conftest.$ac_ext
11081cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082/* end confdefs.h. */
11083#if HAVE_DLFCN_H
11084# include <dlfcn.h>
11085#endif
11086
11087int
11088main ()
11089{
11090dlopen(0, 0);
11091 ;
11092 return 0;
11093}
11094_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011095rm -f conftest.$ac_objext conftest$ac_exeext
11096if { (ac_try="$ac_link"
11097case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100esac
11101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_link") 2>conftest.er1
11103 ac_status=$?
11104 grep -v '^ *+' conftest.er1 >conftest.err
11105 rm -f conftest.er1
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11113esac
11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; } &&
11119 { ac_try='test -s conftest$ac_exeext'
11120 { (case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_try") 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011130cat >>confdefs.h <<\_ACEOF
11131#define HAVE_LIBDL 1
11132_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011133 libltdl_cv_func_dlopen="yes"
11134else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011135 echo "$as_me: failed program was:" >&5
11136sed 's/^/| /' conftest.$ac_ext >&5
11137
11138 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11139echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11140if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142else
11143 ac_check_lib_save_LIBS=$LIBS
11144LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011145cat >conftest.$ac_ext <<_ACEOF
11146/* confdefs.h. */
11147_ACEOF
11148cat confdefs.h >>conftest.$ac_ext
11149cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150/* end confdefs.h. */
11151
Reid Spencera773bd52006-08-04 18:18:08 +000011152/* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011155#ifdef __cplusplus
11156extern "C"
11157#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011158char dlopen ();
11159int
11160main ()
11161{
Reid Spencera773bd52006-08-04 18:18:08 +000011162return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011163 ;
11164 return 0;
11165}
11166_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011167rm -f conftest.$ac_objext conftest$ac_exeext
11168if { (ac_try="$ac_link"
11169case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172esac
11173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_link") 2>conftest.er1
11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185esac
11186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; } &&
11191 { ac_try='test -s conftest$ac_exeext'
11192 { (case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195esac
11196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_try") 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011201 ac_cv_lib_svld_dlopen=yes
11202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011208
Bill Wendlingebcceee2009-04-18 11:20:33 +000011209rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011210 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211LIBS=$ac_check_lib_save_LIBS
11212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011213{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11214echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11215if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011217cat >>confdefs.h <<\_ACEOF
11218#define HAVE_LIBDL 1
11219_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220
11221 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11222else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011223 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11224echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11225if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011227else
11228 ac_check_lib_save_LIBS=$LIBS
11229LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011230cat >conftest.$ac_ext <<_ACEOF
11231/* confdefs.h. */
11232_ACEOF
11233cat confdefs.h >>conftest.$ac_ext
11234cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011235/* end confdefs.h. */
11236
Reid Spencera773bd52006-08-04 18:18:08 +000011237/* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240#ifdef __cplusplus
11241extern "C"
11242#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243char dld_link ();
11244int
11245main ()
11246{
Reid Spencera773bd52006-08-04 18:18:08 +000011247return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248 ;
11249 return 0;
11250}
11251_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011252rm -f conftest.$ac_objext conftest$ac_exeext
11253if { (ac_try="$ac_link"
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_link") 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_exeext'
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
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011286 ac_cv_lib_dld_dld_link=yes
11287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011288 echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011293
Bill Wendlingebcceee2009-04-18 11:20:33 +000011294rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011295 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011296LIBS=$ac_check_lib_save_LIBS
11297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011298{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11299echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11300if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011302cat >>confdefs.h <<\_ACEOF
11303#define HAVE_DLD 1
11304_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011305
11306 LIBADD_DL="$LIBADD_DL -ldld"
11307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011308 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11309echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11310if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312else
11313 cat >conftest.$ac_ext <<_ACEOF
11314/* confdefs.h. */
11315_ACEOF
11316cat confdefs.h >>conftest.$ac_ext
11317cat >>conftest.$ac_ext <<_ACEOF
11318/* end confdefs.h. */
11319/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11321#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011323/* System header to define __stub macros and hopefully few prototypes,
11324 which can conflict with char _dyld_func_lookup (); below.
11325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11326 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011328#ifdef __STDC__
11329# include <limits.h>
11330#else
11331# include <assert.h>
11332#endif
11333
11334#undef _dyld_func_lookup
11335
11336/* Override any GCC internal prototype to avoid an error.
11337 Use char because int might match the return type of a GCC
11338 builtin and then its argument prototype would still apply. */
11339#ifdef __cplusplus
11340extern "C"
11341#endif
11342char _dyld_func_lookup ();
11343/* The GNU C library defines this for functions which it implements
11344 to always fail with ENOSYS. Some functions are actually named
11345 something starting with __ and the normal name is an alias. */
11346#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11347choke me
11348#endif
11349
11350int
11351main ()
11352{
11353return _dyld_func_lookup ();
11354 ;
11355 return 0;
11356}
11357_ACEOF
11358rm -f conftest.$ac_objext conftest$ac_exeext
11359if { (ac_try="$ac_link"
11360case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11363esac
11364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_link") 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11373 { (case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376esac
11377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_try") 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; } &&
11382 { ac_try='test -s conftest$ac_exeext'
11383 { (case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11386esac
11387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_try") 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_func__dyld_func_lookup=yes
11393else
11394 echo "$as_me: failed program was:" >&5
11395sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011398fi
Reid Spencera773bd52006-08-04 18:18:08 +000011399
Bill Wendlingebcceee2009-04-18 11:20:33 +000011400rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011401 conftest$ac_exeext conftest.$ac_ext
11402fi
11403{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11404echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11405if test $ac_cv_func__dyld_func_lookup = yes; then
11406
11407cat >>confdefs.h <<\_ACEOF
11408#define HAVE_DYLD 1
11409_ACEOF
11410
11411fi
11412
11413
11414fi
11415
11416
11417fi
11418
11419
11420fi
11421
11422rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424
11425fi
11426
11427
11428fi
11429
11430
11431fi
11432
11433
11434if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11435then
11436 lt_save_LIBS="$LIBS"
11437 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011438
11439for ac_func in dlerror
11440do
11441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11442{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11444if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446else
11447 cat >conftest.$ac_ext <<_ACEOF
11448/* confdefs.h. */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h. */
11453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11455#define $ac_func innocuous_$ac_func
11456
11457/* System header to define __stub macros and hopefully few prototypes,
11458 which can conflict with char $ac_func (); below.
11459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11460 <limits.h> exists even on freestanding compilers. */
11461
11462#ifdef __STDC__
11463# include <limits.h>
11464#else
11465# include <assert.h>
11466#endif
11467
11468#undef $ac_func
11469
11470/* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
11473#ifdef __cplusplus
11474extern "C"
11475#endif
11476char $ac_func ();
11477/* The GNU C library defines this for functions which it implements
11478 to always fail with ENOSYS. Some functions are actually named
11479 something starting with __ and the normal name is an alias. */
11480#if defined __stub_$ac_func || defined __stub___$ac_func
11481choke me
11482#endif
11483
11484int
11485main ()
11486{
11487return $ac_func ();
11488 ;
11489 return 0;
11490}
11491_ACEOF
11492rm -f conftest.$ac_objext conftest$ac_exeext
11493if { (ac_try="$ac_link"
11494case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497esac
11498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_link") 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510esac
11511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest$ac_exeext'
11517 { (case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11520esac
11521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_try") 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 eval "$as_ac_var=yes"
11527else
11528 echo "$as_me: failed program was:" >&5
11529sed 's/^/| /' conftest.$ac_ext >&5
11530
11531 eval "$as_ac_var=no"
11532fi
11533
11534rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536fi
11537ac_res=`eval echo '${'$as_ac_var'}'`
11538 { echo "$as_me:$LINENO: result: $ac_res" >&5
11539echo "${ECHO_T}$ac_res" >&6; }
11540if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011541 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011543_ACEOF
11544
11545fi
11546done
11547
11548 LIBS="$lt_save_LIBS"
11549fi
11550ac_ext=c
11551ac_cpp='$CPP $CPPFLAGS'
11552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11554ac_compiler_gnu=$ac_cv_c_compiler_gnu
11555
11556
11557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011558{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11559echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11560if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011562else
11563 ac_cv_sys_symbol_underscore=no
11564 cat > conftest.$ac_ext <<EOF
11565void nm_test_func(){}
11566int main(){nm_test_func;return 0;}
11567EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569 (eval $ac_compile) 2>&5
11570 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011573 # Now try to grab the symbols.
11574 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011575 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11577 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580 # See whether the symbols have a leading underscore.
11581 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11582 ac_cv_sys_symbol_underscore=yes
11583 else
11584 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11585 :
11586 else
11587 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11588 fi
11589 fi
11590 else
11591 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11592 fi
11593 else
11594 echo "configure: failed program was:" >&5
11595 cat conftest.c >&5
11596 fi
11597 rm -rf conftest*
11598
11599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011600{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11601echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011602
11603
11604if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11605 if test x"$libltdl_cv_func_dlopen" = xyes ||
11606 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011607 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11608echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11609if test "${libltdl_cv_need_uscore+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011611else
11612 libltdl_cv_need_uscore=unknown
11613 save_LIBS="$LIBS"
11614 LIBS="$LIBS $LIBADD_DL"
11615 if test "$cross_compiling" = yes; then :
11616 libltdl_cv_need_uscore=cross
11617else
11618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11619 lt_status=$lt_dlunknown
11620 cat > conftest.$ac_ext <<EOF
Eric Christopher91e7ccd2011-07-20 17:04:49 +000011621#line 11621 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011622#include "confdefs.h"
11623
11624#if HAVE_DLFCN_H
11625#include <dlfcn.h>
11626#endif
11627
11628#include <stdio.h>
11629
11630#ifdef RTLD_GLOBAL
11631# define LT_DLGLOBAL RTLD_GLOBAL
11632#else
11633# ifdef DL_GLOBAL
11634# define LT_DLGLOBAL DL_GLOBAL
11635# else
11636# define LT_DLGLOBAL 0
11637# endif
11638#endif
11639
11640/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11641 find out it does not work in some platform. */
11642#ifndef LT_DLLAZY_OR_NOW
11643# ifdef RTLD_LAZY
11644# define LT_DLLAZY_OR_NOW RTLD_LAZY
11645# else
11646# ifdef DL_LAZY
11647# define LT_DLLAZY_OR_NOW DL_LAZY
11648# else
11649# ifdef RTLD_NOW
11650# define LT_DLLAZY_OR_NOW RTLD_NOW
11651# else
11652# ifdef DL_NOW
11653# define LT_DLLAZY_OR_NOW DL_NOW
11654# else
11655# define LT_DLLAZY_OR_NOW 0
11656# endif
11657# endif
11658# endif
11659# endif
11660#endif
11661
11662#ifdef __cplusplus
11663extern "C" void exit (int);
11664#endif
11665
11666void fnord() { int i=42;}
11667int main ()
11668{
11669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11670 int status = $lt_dlunknown;
11671
11672 if (self)
11673 {
11674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11675 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11676 /* dlclose (self); */
11677 }
Reid Spencera773bd52006-08-04 18:18:08 +000011678 else
11679 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680
11681 exit (status);
11682}
11683EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011685 (eval $ac_link) 2>&5
11686 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011689 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011690 lt_status=$?
11691 case x$lt_status in
11692 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11693 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011694 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695 esac
11696 else :
11697 # compilation failed
11698
11699 fi
11700fi
11701rm -fr conftest*
11702
11703 LIBS="$save_LIBS"
11704
11705fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011706{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11707echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708 fi
11709fi
11710
11711if test x"$libltdl_cv_need_uscore" = xyes; then
11712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011713cat >>confdefs.h <<\_ACEOF
11714#define NEED_USCORE 1
11715_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011716
11717fi
11718
11719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011720{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11721echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11722if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724else
11725 # PORTME does your system automatically load deplibs for dlopen?
11726 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11727 # For now, we just catch OSes we know something about -- in the
11728 # future, we'll try test this programmatically.
11729 libltdl_cv_sys_dlopen_deplibs=unknown
11730 case "$host_os" in
11731 aix3*|aix4.1.*|aix4.2.*)
11732 # Unknown whether this is true for these versions of AIX, but
11733 # we want this `case' here to explicitly catch those versions.
11734 libltdl_cv_sys_dlopen_deplibs=unknown
11735 ;;
11736 aix[45]*)
11737 libltdl_cv_sys_dlopen_deplibs=yes
11738 ;;
11739 darwin*)
11740 # Assuming the user has installed a libdl from somewhere, this is true
11741 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11742 libltdl_cv_sys_dlopen_deplibs=yes
11743 ;;
11744 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11745 # GNU and its variants, using gnu ld.so (Glibc)
11746 libltdl_cv_sys_dlopen_deplibs=yes
11747 ;;
11748 hpux10*|hpux11*)
11749 libltdl_cv_sys_dlopen_deplibs=yes
11750 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011751 interix*)
11752 libltdl_cv_sys_dlopen_deplibs=yes
11753 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754 irix[12345]*|irix6.[01]*)
11755 # Catch all versions of IRIX before 6.2, and indicate that we don't
11756 # know how it worked for any of those versions.
11757 libltdl_cv_sys_dlopen_deplibs=unknown
11758 ;;
11759 irix*)
11760 # The case above catches anything before 6.2, and it's known that
11761 # at 6.2 and later dlopen does load deplibs.
11762 libltdl_cv_sys_dlopen_deplibs=yes
11763 ;;
11764 netbsd*)
11765 libltdl_cv_sys_dlopen_deplibs=yes
11766 ;;
11767 openbsd*)
11768 libltdl_cv_sys_dlopen_deplibs=yes
11769 ;;
11770 osf[1234]*)
11771 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11772 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000011773 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011774 libltdl_cv_sys_dlopen_deplibs=no
11775 ;;
11776 osf5.0|osf5.0a|osf5.1)
11777 # dlopen *does* load deplibs and with the right loader patch applied
11778 # it even uses RPATH in a shared library to search for shared objects
11779 # that the library depends on, but there's no easy way to know if that
11780 # patch is installed. Since this is the case, all we can really
11781 # say is unknown -- it depends on the patch being installed. If
11782 # it is, this changes to `yes'. Without it, it would be `no'.
11783 libltdl_cv_sys_dlopen_deplibs=unknown
11784 ;;
11785 osf*)
11786 # the two cases above should catch all versions of osf <= 5.1. Read
11787 # the comments above for what we know about them.
11788 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11789 # is used to find them so we can finally say `yes'.
11790 libltdl_cv_sys_dlopen_deplibs=yes
11791 ;;
11792 solaris*)
11793 libltdl_cv_sys_dlopen_deplibs=yes
11794 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11796 libltdl_cv_sys_dlopen_deplibs=yes
11797 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011798 esac
11799
11800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011801{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11802echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011803if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011805cat >>confdefs.h <<\_ACEOF
11806#define LTDL_DLOPEN_DEPLIBS 1
11807_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011808
11809fi
11810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011811
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011813do
11814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820fi
11821ac_res=`eval echo '${'$as_ac_Header'}'`
11822 { echo "$as_me:$LINENO: result: $ac_res" >&5
11823echo "${ECHO_T}$ac_res" >&6; }
11824else
11825 # Is the header compilable?
11826{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11828cat >conftest.$ac_ext <<_ACEOF
11829/* confdefs.h. */
11830_ACEOF
11831cat confdefs.h >>conftest.$ac_ext
11832cat >>conftest.$ac_ext <<_ACEOF
11833/* end confdefs.h. */
11834$ac_includes_default
11835#include <$ac_header>
11836_ACEOF
11837rm -f conftest.$ac_objext
11838if { (ac_try="$ac_compile"
11839case "(($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_compile") 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } &&
11851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11852 { (case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855esac
11856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_try") 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; } &&
11861 { ac_try='test -s conftest.$ac_objext'
11862 { (case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11865esac
11866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_try") 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 ac_header_compiler=yes
11872else
11873 echo "$as_me: failed program was:" >&5
11874sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 ac_header_compiler=no
11877fi
11878
11879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11881echo "${ECHO_T}$ac_header_compiler" >&6; }
11882
11883# Is the header present?
11884{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11885echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11886cat >conftest.$ac_ext <<_ACEOF
11887/* confdefs.h. */
11888_ACEOF
11889cat confdefs.h >>conftest.$ac_ext
11890cat >>conftest.$ac_ext <<_ACEOF
11891/* end confdefs.h. */
11892#include <$ac_header>
11893_ACEOF
11894if { (ac_try="$ac_cpp conftest.$ac_ext"
11895case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898esac
11899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } >/dev/null; then
11907 if test -s conftest.err; then
11908 ac_cpp_err=$ac_c_preproc_warn_flag
11909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11910 else
11911 ac_cpp_err=
11912 fi
11913else
11914 ac_cpp_err=yes
11915fi
11916if test -z "$ac_cpp_err"; then
11917 ac_header_preproc=yes
11918else
11919 echo "$as_me: failed program was:" >&5
11920sed 's/^/| /' conftest.$ac_ext >&5
11921
11922 ac_header_preproc=no
11923fi
11924
11925rm -f conftest.err conftest.$ac_ext
11926{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927echo "${ECHO_T}$ac_header_preproc" >&6; }
11928
11929# So? What about this header?
11930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11931 yes:no: )
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11936 ac_header_preproc=yes
11937 ;;
11938 no:yes:* )
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11951 ( cat <<\_ASBOX
11952## ----------------------------------- ##
11953## Report this to llvmbugs@cs.uiuc.edu ##
11954## ----------------------------------- ##
11955_ASBOX
11956 ) | sed "s/^/$as_me: WARNING: /" >&2
11957 ;;
11958esac
11959{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11963else
11964 eval "$as_ac_Header=\$ac_header_preproc"
11965fi
11966ac_res=`eval echo '${'$as_ac_Header'}'`
11967 { echo "$as_me:$LINENO: result: $ac_res" >&5
11968echo "${ECHO_T}$ac_res" >&6; }
11969
11970fi
11971if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011972 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011974_ACEOF
11975
11976fi
11977
11978done
11979
11980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011981{ echo "$as_me:$LINENO: checking for error_t" >&5
11982echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11983if test "${ac_cv_type_error_t+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985else
11986 cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
11992#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011993# include <argz.h>
11994#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011995
11996typedef error_t ac__type_new_;
11997int
11998main ()
11999{
12000if ((ac__type_new_ *) 0)
12001 return 0;
12002if (sizeof (ac__type_new_))
12003 return 0;
12004 ;
12005 return 0;
12006}
12007_ACEOF
12008rm -f conftest.$ac_objext
12009if { (ac_try="$ac_compile"
12010case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013esac
12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026esac
12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest.$ac_objext'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036esac
12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_cv_type_error_t=yes
12043else
12044 echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 ac_cv_type_error_t=no
12048fi
12049
12050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051fi
12052{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12053echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12054if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012055
12056cat >>confdefs.h <<_ACEOF
12057#define HAVE_ERROR_T 1
12058_ACEOF
12059
12060
12061else
12062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012063cat >>confdefs.h <<\_ACEOF
12064#define error_t int
12065_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012066
12067fi
12068
12069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012070
12071
12072
12073
12074
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012075for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012076do
12077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12078{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12080if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082else
12083 cat >conftest.$ac_ext <<_ACEOF
12084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
12089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12091#define $ac_func innocuous_$ac_func
12092
12093/* System header to define __stub macros and hopefully few prototypes,
12094 which can conflict with char $ac_func (); below.
12095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096 <limits.h> exists even on freestanding compilers. */
12097
12098#ifdef __STDC__
12099# include <limits.h>
12100#else
12101# include <assert.h>
12102#endif
12103
12104#undef $ac_func
12105
12106/* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109#ifdef __cplusplus
12110extern "C"
12111#endif
12112char $ac_func ();
12113/* The GNU C library defines this for functions which it implements
12114 to always fail with ENOSYS. Some functions are actually named
12115 something starting with __ and the normal name is an alias. */
12116#if defined __stub_$ac_func || defined __stub___$ac_func
12117choke me
12118#endif
12119
12120int
12121main ()
12122{
12123return $ac_func ();
12124 ;
12125 return 0;
12126}
12127_ACEOF
12128rm -f conftest.$ac_objext conftest$ac_exeext
12129if { (ac_try="$ac_link"
12130case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133esac
12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12143 { (case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12146esac
12147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_try") 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; } &&
12152 { ac_try='test -s conftest$ac_exeext'
12153 { (case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12156esac
12157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_try") 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 eval "$as_ac_var=yes"
12163else
12164 echo "$as_me: failed program was:" >&5
12165sed 's/^/| /' conftest.$ac_ext >&5
12166
12167 eval "$as_ac_var=no"
12168fi
12169
12170rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172fi
12173ac_res=`eval echo '${'$as_ac_var'}'`
12174 { echo "$as_me:$LINENO: result: $ac_res" >&5
12175echo "${ECHO_T}$ac_res" >&6; }
12176if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012177 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012179_ACEOF
12180
12181fi
12182done
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012203
12204
12205
12206
12207
12208
12209
12210
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012211for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12212 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012213do
12214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220fi
12221ac_res=`eval echo '${'$as_ac_Header'}'`
12222 { echo "$as_me:$LINENO: result: $ac_res" >&5
12223echo "${ECHO_T}$ac_res" >&6; }
12224else
12225 # Is the header compilable?
12226{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12228cat >conftest.$ac_ext <<_ACEOF
12229/* confdefs.h. */
12230_ACEOF
12231cat confdefs.h >>conftest.$ac_ext
12232cat >>conftest.$ac_ext <<_ACEOF
12233/* end confdefs.h. */
12234$ac_includes_default
12235#include <$ac_header>
12236_ACEOF
12237rm -f conftest.$ac_objext
12238if { (ac_try="$ac_compile"
12239case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12242esac
12243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_compile") 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12252 { (case "(($ac_try" in
12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254 *) ac_try_echo=$ac_try;;
12255esac
12256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257 (eval "$ac_try") 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; } &&
12261 { ac_try='test -s conftest.$ac_objext'
12262 { (case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12265esac
12266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_try") 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; }; then
12271 ac_header_compiler=yes
12272else
12273 echo "$as_me: failed program was:" >&5
12274sed 's/^/| /' conftest.$ac_ext >&5
12275
12276 ac_header_compiler=no
12277fi
12278
12279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12281echo "${ECHO_T}$ac_header_compiler" >&6; }
12282
12283# Is the header present?
12284{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12286cat >conftest.$ac_ext <<_ACEOF
12287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
12292#include <$ac_header>
12293_ACEOF
12294if { (ac_try="$ac_cpp conftest.$ac_ext"
12295case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298esac
12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } >/dev/null; then
12307 if test -s conftest.err; then
12308 ac_cpp_err=$ac_c_preproc_warn_flag
12309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12310 else
12311 ac_cpp_err=
12312 fi
12313else
12314 ac_cpp_err=yes
12315fi
12316if test -z "$ac_cpp_err"; then
12317 ac_header_preproc=yes
12318else
12319 echo "$as_me: failed program was:" >&5
12320sed 's/^/| /' conftest.$ac_ext >&5
12321
12322 ac_header_preproc=no
12323fi
12324
12325rm -f conftest.err conftest.$ac_ext
12326{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12327echo "${ECHO_T}$ac_header_preproc" >&6; }
12328
12329# So? What about this header?
12330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12331 yes:no: )
12332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12333echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12335echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12336 ac_header_preproc=yes
12337 ;;
12338 no:yes:* )
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12342echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12344echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12346echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12350echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12351 ( cat <<\_ASBOX
12352## ----------------------------------- ##
12353## Report this to llvmbugs@cs.uiuc.edu ##
12354## ----------------------------------- ##
12355_ASBOX
12356 ) | sed "s/^/$as_me: WARNING: /" >&2
12357 ;;
12358esac
12359{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363else
12364 eval "$as_ac_Header=\$ac_header_preproc"
12365fi
12366ac_res=`eval echo '${'$as_ac_Header'}'`
12367 { echo "$as_me:$LINENO: result: $ac_res" >&5
12368echo "${ECHO_T}$ac_res" >&6; }
12369
12370fi
12371if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012374_ACEOF
12375
12376fi
12377
12378done
12379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012380
12381
12382
12383
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012384for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012385do
12386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392fi
12393ac_res=`eval echo '${'$as_ac_Header'}'`
12394 { echo "$as_me:$LINENO: result: $ac_res" >&5
12395echo "${ECHO_T}$ac_res" >&6; }
12396else
12397 # Is the header compilable?
12398{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12400cat >conftest.$ac_ext <<_ACEOF
12401/* confdefs.h. */
12402_ACEOF
12403cat confdefs.h >>conftest.$ac_ext
12404cat >>conftest.$ac_ext <<_ACEOF
12405/* end confdefs.h. */
12406$ac_includes_default
12407#include <$ac_header>
12408_ACEOF
12409rm -f conftest.$ac_objext
12410if { (ac_try="$ac_compile"
12411case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414esac
12415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_compile") 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12424 { (case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427esac
12428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_try") 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest.$ac_objext'
12434 { (case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437esac
12438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_try") 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 ac_header_compiler=yes
12444else
12445 echo "$as_me: failed program was:" >&5
12446sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 ac_header_compiler=no
12449fi
12450
12451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12453echo "${ECHO_T}$ac_header_compiler" >&6; }
12454
12455# Is the header present?
12456{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12458cat >conftest.$ac_ext <<_ACEOF
12459/* confdefs.h. */
12460_ACEOF
12461cat confdefs.h >>conftest.$ac_ext
12462cat >>conftest.$ac_ext <<_ACEOF
12463/* end confdefs.h. */
12464#include <$ac_header>
12465_ACEOF
12466if { (ac_try="$ac_cpp conftest.$ac_ext"
12467case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12470esac
12471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } >/dev/null; then
12479 if test -s conftest.err; then
12480 ac_cpp_err=$ac_c_preproc_warn_flag
12481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12482 else
12483 ac_cpp_err=
12484 fi
12485else
12486 ac_cpp_err=yes
12487fi
12488if test -z "$ac_cpp_err"; then
12489 ac_header_preproc=yes
12490else
12491 echo "$as_me: failed program was:" >&5
12492sed 's/^/| /' conftest.$ac_ext >&5
12493
12494 ac_header_preproc=no
12495fi
12496
12497rm -f conftest.err conftest.$ac_ext
12498{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12499echo "${ECHO_T}$ac_header_preproc" >&6; }
12500
12501# So? What about this header?
12502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12503 yes:no: )
12504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12508 ac_header_preproc=yes
12509 ;;
12510 no:yes:* )
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12523 ( cat <<\_ASBOX
12524## ----------------------------------- ##
12525## Report this to llvmbugs@cs.uiuc.edu ##
12526## ----------------------------------- ##
12527_ASBOX
12528 ) | sed "s/^/$as_me: WARNING: /" >&2
12529 ;;
12530esac
12531{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536 eval "$as_ac_Header=\$ac_header_preproc"
12537fi
12538ac_res=`eval echo '${'$as_ac_Header'}'`
12539 { echo "$as_me:$LINENO: result: $ac_res" >&5
12540echo "${ECHO_T}$ac_res" >&6; }
12541
12542fi
12543if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012544 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012546_ACEOF
12547
12548fi
12549
12550done
12551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012552
12553
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012554for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012555do
12556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562fi
12563ac_res=`eval echo '${'$as_ac_Header'}'`
12564 { echo "$as_me:$LINENO: result: $ac_res" >&5
12565echo "${ECHO_T}$ac_res" >&6; }
12566else
12567 # Is the header compilable?
12568{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12570cat >conftest.$ac_ext <<_ACEOF
12571/* confdefs.h. */
12572_ACEOF
12573cat confdefs.h >>conftest.$ac_ext
12574cat >>conftest.$ac_ext <<_ACEOF
12575/* end confdefs.h. */
12576$ac_includes_default
12577#include <$ac_header>
12578_ACEOF
12579rm -f conftest.$ac_objext
12580if { (ac_try="$ac_compile"
12581case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584esac
12585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_compile") 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12594 { (case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597esac
12598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_try") 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606 *) ac_try_echo=$ac_try;;
12607esac
12608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609 (eval "$ac_try") 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 ac_header_compiler=yes
12614else
12615 echo "$as_me: failed program was:" >&5
12616sed 's/^/| /' conftest.$ac_ext >&5
12617
12618 ac_header_compiler=no
12619fi
12620
12621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12623echo "${ECHO_T}$ac_header_compiler" >&6; }
12624
12625# Is the header present?
12626{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12628cat >conftest.$ac_ext <<_ACEOF
12629/* confdefs.h. */
12630_ACEOF
12631cat confdefs.h >>conftest.$ac_ext
12632cat >>conftest.$ac_ext <<_ACEOF
12633/* end confdefs.h. */
12634#include <$ac_header>
12635_ACEOF
12636if { (ac_try="$ac_cpp conftest.$ac_ext"
12637case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640esac
12641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } >/dev/null; then
12649 if test -s conftest.err; then
12650 ac_cpp_err=$ac_c_preproc_warn_flag
12651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12652 else
12653 ac_cpp_err=
12654 fi
12655else
12656 ac_cpp_err=yes
12657fi
12658if test -z "$ac_cpp_err"; then
12659 ac_header_preproc=yes
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664 ac_header_preproc=no
12665fi
12666
12667rm -f conftest.err conftest.$ac_ext
12668{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12669echo "${ECHO_T}$ac_header_preproc" >&6; }
12670
12671# So? What about this header?
12672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12673 yes:no: )
12674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12678 ac_header_preproc=yes
12679 ;;
12680 no:yes:* )
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12688echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12693 ( cat <<\_ASBOX
12694## ----------------------------------- ##
12695## Report this to llvmbugs@cs.uiuc.edu ##
12696## ----------------------------------- ##
12697_ASBOX
12698 ) | sed "s/^/$as_me: WARNING: /" >&2
12699 ;;
12700esac
12701{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12705else
12706 eval "$as_ac_Header=\$ac_header_preproc"
12707fi
12708ac_res=`eval echo '${'$as_ac_Header'}'`
12709 { echo "$as_me:$LINENO: result: $ac_res" >&5
12710echo "${ECHO_T}$ac_res" >&6; }
12711
12712fi
12713if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012714 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012716_ACEOF
12717 break
12718fi
12719
12720done
12721
12722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012723
12724
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012725for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012726do
12727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12728{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12730if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732else
12733 cat >conftest.$ac_ext <<_ACEOF
12734/* confdefs.h. */
12735_ACEOF
12736cat confdefs.h >>conftest.$ac_ext
12737cat >>conftest.$ac_ext <<_ACEOF
12738/* end confdefs.h. */
12739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12741#define $ac_func innocuous_$ac_func
12742
12743/* System header to define __stub macros and hopefully few prototypes,
12744 which can conflict with char $ac_func (); below.
12745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12746 <limits.h> exists even on freestanding compilers. */
12747
12748#ifdef __STDC__
12749# include <limits.h>
12750#else
12751# include <assert.h>
12752#endif
12753
12754#undef $ac_func
12755
12756/* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12759#ifdef __cplusplus
12760extern "C"
12761#endif
12762char $ac_func ();
12763/* The GNU C library defines this for functions which it implements
12764 to always fail with ENOSYS. Some functions are actually named
12765 something starting with __ and the normal name is an alias. */
12766#if defined __stub_$ac_func || defined __stub___$ac_func
12767choke me
12768#endif
12769
12770int
12771main ()
12772{
12773return $ac_func ();
12774 ;
12775 return 0;
12776}
12777_ACEOF
12778rm -f conftest.$ac_objext conftest$ac_exeext
12779if { (ac_try="$ac_link"
12780case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783esac
12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 eval "$as_ac_var=yes"
12813else
12814 echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 eval "$as_ac_var=no"
12818fi
12819
12820rm -f core conftest.err conftest.$ac_objext \
12821 conftest$ac_exeext conftest.$ac_ext
12822fi
12823ac_res=`eval echo '${'$as_ac_var'}'`
12824 { echo "$as_me:$LINENO: result: $ac_res" >&5
12825echo "${ECHO_T}$ac_res" >&6; }
12826if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012827 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012829_ACEOF
12830 break
12831fi
12832done
12833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012834
12835
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012836for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837do
12838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12839{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12841if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12843else
12844 cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
12850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12852#define $ac_func innocuous_$ac_func
12853
12854/* System header to define __stub macros and hopefully few prototypes,
12855 which can conflict with char $ac_func (); below.
12856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12857 <limits.h> exists even on freestanding compilers. */
12858
12859#ifdef __STDC__
12860# include <limits.h>
12861#else
12862# include <assert.h>
12863#endif
12864
12865#undef $ac_func
12866
12867/* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
12869 builtin and then its argument prototype would still apply. */
12870#ifdef __cplusplus
12871extern "C"
12872#endif
12873char $ac_func ();
12874/* The GNU C library defines this for functions which it implements
12875 to always fail with ENOSYS. Some functions are actually named
12876 something starting with __ and the normal name is an alias. */
12877#if defined __stub_$ac_func || defined __stub___$ac_func
12878choke me
12879#endif
12880
12881int
12882main ()
12883{
12884return $ac_func ();
12885 ;
12886 return 0;
12887}
12888_ACEOF
12889rm -f conftest.$ac_objext conftest$ac_exeext
12890if { (ac_try="$ac_link"
12891case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12894esac
12895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907esac
12908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest$ac_exeext'
12914 { (case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12917esac
12918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_try") 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 eval "$as_ac_var=yes"
12924else
12925 echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 eval "$as_ac_var=no"
12929fi
12930
12931rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933fi
12934ac_res=`eval echo '${'$as_ac_var'}'`
12935 { echo "$as_me:$LINENO: result: $ac_res" >&5
12936echo "${ECHO_T}$ac_res" >&6; }
12937if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012938 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012940_ACEOF
12941 break
12942fi
12943done
12944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012945
12946
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012947for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012948do
12949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12950{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12952if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954else
12955 cat >conftest.$ac_ext <<_ACEOF
12956/* confdefs.h. */
12957_ACEOF
12958cat confdefs.h >>conftest.$ac_ext
12959cat >>conftest.$ac_ext <<_ACEOF
12960/* end confdefs.h. */
12961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12963#define $ac_func innocuous_$ac_func
12964
12965/* System header to define __stub macros and hopefully few prototypes,
12966 which can conflict with char $ac_func (); below.
12967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12968 <limits.h> exists even on freestanding compilers. */
12969
12970#ifdef __STDC__
12971# include <limits.h>
12972#else
12973# include <assert.h>
12974#endif
12975
12976#undef $ac_func
12977
12978/* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12981#ifdef __cplusplus
12982extern "C"
12983#endif
12984char $ac_func ();
12985/* The GNU C library defines this for functions which it implements
12986 to always fail with ENOSYS. Some functions are actually named
12987 something starting with __ and the normal name is an alias. */
12988#if defined __stub_$ac_func || defined __stub___$ac_func
12989choke me
12990#endif
12991
12992int
12993main ()
12994{
12995return $ac_func ();
12996 ;
12997 return 0;
12998}
12999_ACEOF
13000rm -f conftest.$ac_objext conftest$ac_exeext
13001if { (ac_try="$ac_link"
13002case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005esac
13006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_link") 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13015 { (case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018esac
13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_try") 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; } &&
13024 { ac_try='test -s conftest$ac_exeext'
13025 { (case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028esac
13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_try") 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13034 eval "$as_ac_var=yes"
13035else
13036 echo "$as_me: failed program was:" >&5
13037sed 's/^/| /' conftest.$ac_ext >&5
13038
13039 eval "$as_ac_var=no"
13040fi
13041
13042rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044fi
13045ac_res=`eval echo '${'$as_ac_var'}'`
13046 { echo "$as_me:$LINENO: result: $ac_res" >&5
13047echo "${ECHO_T}$ac_res" >&6; }
13048if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013049 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013051_ACEOF
13052 break
13053fi
13054done
13055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013056
13057
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013058for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013059do
13060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13061{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13063if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13065else
13066 cat >conftest.$ac_ext <<_ACEOF
13067/* confdefs.h. */
13068_ACEOF
13069cat confdefs.h >>conftest.$ac_ext
13070cat >>conftest.$ac_ext <<_ACEOF
13071/* end confdefs.h. */
13072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13074#define $ac_func innocuous_$ac_func
13075
13076/* System header to define __stub macros and hopefully few prototypes,
13077 which can conflict with char $ac_func (); below.
13078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13079 <limits.h> exists even on freestanding compilers. */
13080
13081#ifdef __STDC__
13082# include <limits.h>
13083#else
13084# include <assert.h>
13085#endif
13086
13087#undef $ac_func
13088
13089/* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13092#ifdef __cplusplus
13093extern "C"
13094#endif
13095char $ac_func ();
13096/* The GNU C library defines this for functions which it implements
13097 to always fail with ENOSYS. Some functions are actually named
13098 something starting with __ and the normal name is an alias. */
13099#if defined __stub_$ac_func || defined __stub___$ac_func
13100choke me
13101#endif
13102
13103int
13104main ()
13105{
13106return $ac_func ();
13107 ;
13108 return 0;
13109}
13110_ACEOF
13111rm -f conftest.$ac_objext conftest$ac_exeext
13112if { (ac_try="$ac_link"
13113case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13116esac
13117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_link") 2>conftest.er1
13119 ac_status=$?
13120 grep -v '^ *+' conftest.er1 >conftest.err
13121 rm -f conftest.er1
13122 cat conftest.err >&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } &&
13125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13126 { (case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13129esac
13130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_try") 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; } &&
13135 { ac_try='test -s conftest$ac_exeext'
13136 { (case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139esac
13140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_try") 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 eval "$as_ac_var=yes"
13146else
13147 echo "$as_me: failed program was:" >&5
13148sed 's/^/| /' conftest.$ac_ext >&5
13149
13150 eval "$as_ac_var=no"
13151fi
13152
13153rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155fi
13156ac_res=`eval echo '${'$as_ac_var'}'`
13157 { echo "$as_me:$LINENO: result: $ac_res" >&5
13158echo "${ECHO_T}$ac_res" >&6; }
13159if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013160 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013162_ACEOF
13163
13164fi
13165done
13166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013167
13168
13169
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013170for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013171do
13172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13173{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13175if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13177else
13178 cat >conftest.$ac_ext <<_ACEOF
13179/* confdefs.h. */
13180_ACEOF
13181cat confdefs.h >>conftest.$ac_ext
13182cat >>conftest.$ac_ext <<_ACEOF
13183/* end confdefs.h. */
13184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13186#define $ac_func innocuous_$ac_func
13187
13188/* System header to define __stub macros and hopefully few prototypes,
13189 which can conflict with char $ac_func (); below.
13190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13191 <limits.h> exists even on freestanding compilers. */
13192
13193#ifdef __STDC__
13194# include <limits.h>
13195#else
13196# include <assert.h>
13197#endif
13198
13199#undef $ac_func
13200
13201/* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
13204#ifdef __cplusplus
13205extern "C"
13206#endif
13207char $ac_func ();
13208/* The GNU C library defines this for functions which it implements
13209 to always fail with ENOSYS. Some functions are actually named
13210 something starting with __ and the normal name is an alias. */
13211#if defined __stub_$ac_func || defined __stub___$ac_func
13212choke me
13213#endif
13214
13215int
13216main ()
13217{
13218return $ac_func ();
13219 ;
13220 return 0;
13221}
13222_ACEOF
13223rm -f conftest.$ac_objext conftest$ac_exeext
13224if { (ac_try="$ac_link"
13225case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13228esac
13229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_link") 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238 { (case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13241esac
13242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_try") 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest$ac_exeext'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251esac
13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 eval "$as_ac_var=yes"
13258else
13259 echo "$as_me: failed program was:" >&5
13260sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 eval "$as_ac_var=no"
13263fi
13264
13265rm -f core conftest.err conftest.$ac_objext \
13266 conftest$ac_exeext conftest.$ac_ext
13267fi
13268ac_res=`eval echo '${'$as_ac_var'}'`
13269 { echo "$as_me:$LINENO: result: $ac_res" >&5
13270echo "${ECHO_T}$ac_res" >&6; }
13271if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013272 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013274_ACEOF
13275
13276fi
13277done
13278
13279
Douglas Gregor01746742009-05-11 18:05:52 +000013280
Reid Spencer7931a782004-12-27 06:15:02 +000013281if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013282 LLVMGCC="llvm-gcc${EXEEXT}"
13283 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013284 LLVMGCCCOMMAND="$LLVMGCC"
13285 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013286 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13287
13288 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13289
Reid Spencerc84492c2005-06-02 22:34:49 +000013290 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13291set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13294if test "${ac_cv_path_LLVMGCC+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013296else
13297 case $LLVMGCC in
13298 [\\/]* | ?:[\\/]*)
13299 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13300 ;;
13301 *)
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303for as_dir in $PATH
13304do
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013309 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013311 break 2
13312 fi
13313done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013314done
Reid Spencera773bd52006-08-04 18:18:08 +000013315IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013316
Reid Spencer59473af2004-12-25 07:31:29 +000013317 ;;
13318esac
13319fi
13320LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013321if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013322 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13323echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013325 { echo "$as_me:$LINENO: result: no" >&5
13326echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013327fi
13328
Reid Spencera773bd52006-08-04 18:18:08 +000013329
Reid Spencerc84492c2005-06-02 22:34:49 +000013330 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13331set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13334if test "${ac_cv_path_LLVMGXX+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013336else
13337 case $LLVMGXX in
13338 [\\/]* | ?:[\\/]*)
13339 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13340 ;;
13341 *)
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343for as_dir in $PATH
13344do
13345 IFS=$as_save_IFS
13346 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013347 for ac_exec_ext in '' $ac_executable_extensions; do
13348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013349 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013351 break 2
13352 fi
13353done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013354done
Reid Spencera773bd52006-08-04 18:18:08 +000013355IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013356
Reid Spencer59473af2004-12-25 07:31:29 +000013357 ;;
13358esac
13359fi
13360LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013361if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013362 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13363echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365 { echo "$as_me:$LINENO: result: no" >&5
13366echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013367fi
13368
Reid Spencera773bd52006-08-04 18:18:08 +000013369
Reid Spencer59473af2004-12-25 07:31:29 +000013370else
Devang Patel5d28b882007-12-04 22:54:47 +000013371 if test -z "$LLVMGCC"; then
13372 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013373 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013374 fi
13375 if test -z "$LLVMGXX"; then
13376 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013377 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013378 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013379
Reid Spencer59473af2004-12-25 07:31:29 +000013380 LLVMGCC=$LLVMGCC
13381
13382 LLVMGXX=$LLVMGXX
13383
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013384 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13385
13386 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13387
Reid Spencer59473af2004-12-25 07:31:29 +000013388fi
13389
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013390
Daniel Dunbar98515672010-02-23 10:00:49 +000013391# Check whether --with-llvmcc was given.
13392if test "${with_llvmcc+set}" = set; then
13393 withval=$with_llvmcc;
13394else
13395 with_llvmcc=check
13396fi
13397
13398{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13399echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13400if test "$with_llvmcc" != "check"; then
13401 if (test "$with_llvmcc" != "llvm-gcc" &&
13402 test "$with_llvmcc" != "clang" &&
13403 test "$with_llvmcc" != "none"); then
13404 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13405echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13406 { (exit 1); exit 1; }; }
13407 fi
13408 WITH_LLVMCC="$with_llvmcc"
13409elif test -n "$LLVMGCC"; then
13410 WITH_LLVMCC=llvm-gcc
13411elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13412 WITH_LLVMCC=clang
13413else
13414 WITH_LLVMCC=none
13415fi
13416{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13417echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13418LLVMCC_OPTION=$WITH_LLVMCC
13419
13420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013421{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13422echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013423
Reid Spencer86901802004-12-08 23:07:27 +000013424ICC=no
13425IXX=no
13426case $CC in
13427 icc*|icpc*)
13428 ICC=yes
13429 IXX=yes
13430 ;;
13431 *)
13432 ;;
13433esac
13434
Duraid Madina937c60a2006-02-15 07:57:42 +000013435if test "$GCC" != "yes" && test "$ICC" != "yes"
13436then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013437 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13438echo "$as_me: error: gcc|icc required but not found" >&2;}
13439 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013440fi
13441
13442if test "$GXX" != "yes" && test "$IXX" != "yes"
13443then
Eric Christopher73e36da2010-12-08 02:02:14 +000013444 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13445echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013446 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013447fi
13448
Reid Spencer86901802004-12-08 23:07:27 +000013449if test "$GCC" = "yes"
13450then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013451 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013452#if !defined(__GNUC__) || __GNUC__ < 3
13453#error Unsupported GCC version
13454#endif
13455
13456_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013457rm -f conftest.$ac_objext
13458if { (ac_try="$ac_compile"
13459case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462esac
13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_compile") 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475esac
13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest.$ac_objext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013493 echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13497echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13498 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013500
Chris Lattner399c7c72008-02-05 19:43:53 +000013501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013502fi
13503
13504if test -z "$llvm_cv_gnu_make_command"
13505then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013506 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13507echo "$as_me: error: GNU Make required but not found" >&2;}
13508 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013509fi
13510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013511{ echo "$as_me:$LINENO: result: ok" >&5
13512echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013514{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13515echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013516NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13517
13518NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013520{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13521echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013522
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013524
13525{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13526echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13527if test "${ac_cv_lib_m_sin+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013529else
13530 ac_check_lib_save_LIBS=$LIBS
13531LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013532cat >conftest.$ac_ext <<_ACEOF
13533/* confdefs.h. */
13534_ACEOF
13535cat confdefs.h >>conftest.$ac_ext
13536cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013537/* end confdefs.h. */
13538
Reid Spencera773bd52006-08-04 18:18:08 +000013539/* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013542#ifdef __cplusplus
13543extern "C"
13544#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013545char sin ();
13546int
13547main ()
13548{
Reid Spencera773bd52006-08-04 18:18:08 +000013549return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013550 ;
13551 return 0;
13552}
13553_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013554rm -f conftest.$ac_objext conftest$ac_exeext
13555if { (ac_try="$ac_link"
13556case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13559esac
13560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_link") 2>conftest.er1
13562 ac_status=$?
13563 grep -v '^ *+' conftest.er1 >conftest.err
13564 rm -f conftest.er1
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13569 { (case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13572esac
13573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_try") 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; } &&
13578 { ac_try='test -s conftest$ac_exeext'
13579 { (case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13582esac
13583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_try") 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013588 ac_cv_lib_m_sin=yes
13589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013590 echo "$as_me: failed program was:" >&5
13591sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013594fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013595
Bill Wendlingebcceee2009-04-18 11:20:33 +000013596rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013597 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013598LIBS=$ac_check_lib_save_LIBS
13599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013600{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13601echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13602if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013603 cat >>confdefs.h <<_ACEOF
13604#define HAVE_LIBM 1
13605_ACEOF
13606
13607 LIBS="-lm $LIBS"
13608
13609fi
13610
Jeff Cohen28783c32007-01-12 18:22:38 +000013611if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013612
13613{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13614echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13615if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013617else
13618 ac_check_lib_save_LIBS=$LIBS
13619LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013620cat >conftest.$ac_ext <<_ACEOF
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013625/* end confdefs.h. */
13626
Reid Spencer48fdf912006-06-01 19:03:21 +000013627
Reid Spencer484fc8e2006-06-01 16:55:59 +000013628int
13629main ()
13630{
Reid Spencera773bd52006-08-04 18:18:08 +000013631return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013632 ;
13633 return 0;
13634}
13635_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013636rm -f conftest.$ac_objext conftest$ac_exeext
13637if { (ac_try="$ac_link"
13638case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641esac
13642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_link") 2>conftest.er1
13644 ac_status=$?
13645 grep -v '^ *+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13651 { (case "(($ac_try" in
13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 *) ac_try_echo=$ac_try;;
13654esac
13655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_try") 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest$ac_exeext'
13661 { (case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13664esac
13665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_try") 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013670 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013671else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013672 echo "$as_me: failed program was:" >&5
13673sed 's/^/| /' conftest.$ac_ext >&5
13674
13675 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013677
Bill Wendlingebcceee2009-04-18 11:20:33 +000013678rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013679 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013680LIBS=$ac_check_lib_save_LIBS
13681fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013682{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13683echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13684if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013685 cat >>confdefs.h <<_ACEOF
13686#define HAVE_LIBIMAGEHLP 1
13687_ACEOF
13688
13689 LIBS="-limagehlp $LIBS"
13690
13691fi
13692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013693
13694{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13695echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13696if test "${ac_cv_lib_psapi_main+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013698else
13699 ac_check_lib_save_LIBS=$LIBS
13700LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013701cat >conftest.$ac_ext <<_ACEOF
13702/* confdefs.h. */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013706/* end confdefs.h. */
13707
Reid Spencer48fdf912006-06-01 19:03:21 +000013708
Reid Spencer484fc8e2006-06-01 16:55:59 +000013709int
13710main ()
13711{
Reid Spencera773bd52006-08-04 18:18:08 +000013712return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013713 ;
13714 return 0;
13715}
13716_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013717rm -f conftest.$ac_objext conftest$ac_exeext
13718if { (ac_try="$ac_link"
13719case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13722esac
13723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_link") 2>conftest.er1
13725 ac_status=$?
13726 grep -v '^ *+' conftest.er1 >conftest.err
13727 rm -f conftest.er1
13728 cat conftest.err >&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
13731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13732 { (case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735esac
13736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_try") 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest$ac_exeext'
13742 { (case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13745esac
13746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_try") 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013751 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753 echo "$as_me: failed program was:" >&5
13754sed 's/^/| /' conftest.$ac_ext >&5
13755
13756 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013758
Bill Wendlingebcceee2009-04-18 11:20:33 +000013759rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013760 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013761LIBS=$ac_check_lib_save_LIBS
13762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013763{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13764echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13765if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013766 cat >>confdefs.h <<_ACEOF
13767#define HAVE_LIBPSAPI 1
13768_ACEOF
13769
13770 LIBS="-lpsapi $LIBS"
13771
13772fi
13773
13774fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013776{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13777echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13778if test "${ac_cv_search_dlopen+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013780else
13781 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-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
John Criswell0c38eaf2003-09-10 15:17:25 +000013787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013788
Reid Spencera773bd52006-08-04 18:18:08 +000013789/* 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. */
John Criswell7a73b802003-06-30 21:59:07 +000013792#ifdef __cplusplus
13793extern "C"
13794#endif
John Criswell7a73b802003-06-30 21:59:07 +000013795char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013796int
13797main ()
13798{
Reid Spencera773bd52006-08-04 18:18:08 +000013799return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013800 ;
13801 return 0;
13802}
13803_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013804for ac_lib in '' dl; do
13805 if test -z "$ac_lib"; then
13806 ac_res="none required"
13807 else
13808 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013810 fi
Jeffrey Yasskin1611ebb2010-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
Reid Spencera773bd52006-08-04 18:18:08 +000013845 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013846else
13847 echo "$as_me: failed program was:" >&5
13848sed 's/^/| /' conftest.$ac_ext >&5
13849
13850
John Criswell7a73b802003-06-30 21:59:07 +000013851fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013852
Bill Wendlingebcceee2009-04-18 11:20:33 +000013853rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013854 conftest$ac_exeext
13855 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013856 break
John Criswell7a73b802003-06-30 21:59:07 +000013857fi
Reid Spencera773bd52006-08-04 18:18:08 +000013858done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013859if test "${ac_cv_search_dlopen+set}" = set; then
13860 :
Reid Spencera773bd52006-08-04 18:18:08 +000013861else
13862 ac_cv_search_dlopen=no
13863fi
13864rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013865LIBS=$ac_func_search_save_LIBS
13866fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013867{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13868echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013869ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013870if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013873cat >>confdefs.h <<\_ACEOF
13874#define HAVE_DLOPEN 1
13875_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013876
13877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013878 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13879echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013880fi
13881
13882
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013883if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013884 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13885echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13886if test "${ac_cv_search_ffi_call+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013888else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013889 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013890cat >conftest.$ac_ext <<_ACEOF
13891/* confdefs.h. */
13892_ACEOF
13893cat confdefs.h >>conftest.$ac_ext
13894cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013895/* end confdefs.h. */
13896
13897/* Override any GCC internal prototype to avoid an error.
13898 Use char because int might match the return type of a GCC
13899 builtin and then its argument prototype would still apply. */
13900#ifdef __cplusplus
13901extern "C"
13902#endif
13903char ffi_call ();
13904int
13905main ()
13906{
13907return ffi_call ();
13908 ;
13909 return 0;
13910}
13911_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013912for ac_lib in '' ffi; do
13913 if test -z "$ac_lib"; then
13914 ac_res="none required"
13915 else
13916 ac_res=-l$ac_lib
13917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13918 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013919 rm -f conftest.$ac_objext conftest$ac_exeext
13920if { (ac_try="$ac_link"
13921case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13924esac
13925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_link") 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13934 { (case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937esac
13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_try") 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; } &&
13943 { ac_try='test -s conftest$ac_exeext'
13944 { (case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947esac
13948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_try") 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013953 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013954else
13955 echo "$as_me: failed program was:" >&5
13956sed 's/^/| /' conftest.$ac_ext >&5
13957
13958
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013960
Bill Wendlingebcceee2009-04-18 11:20:33 +000013961rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013962 conftest$ac_exeext
13963 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013964 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013965fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013966done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013967if test "${ac_cv_search_ffi_call+set}" = set; then
13968 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013969else
13970 ac_cv_search_ffi_call=no
13971fi
13972rm conftest.$ac_ext
13973LIBS=$ac_func_search_save_LIBS
13974fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013975{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13976echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013977ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013978if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013981cat >>confdefs.h <<\_ACEOF
13982#define HAVE_FFI_CALL 1
13983_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013984
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013985else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013986 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13987echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13988 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013989fi
13990
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013991fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013993{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13994echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13995if test "${ac_cv_search_mallinfo+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013997else
13998 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013999cat >conftest.$ac_ext <<_ACEOF
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014004/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014005
Reid Spencera773bd52006-08-04 18:18:08 +000014006/* Override any GCC internal prototype to avoid an error.
14007 Use char because int might match the return type of a GCC
14008 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000014009#ifdef __cplusplus
14010extern "C"
14011#endif
John Criswell7a73b802003-06-30 21:59:07 +000014012char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000014013int
14014main ()
14015{
Reid Spencera773bd52006-08-04 18:18:08 +000014016return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000014017 ;
14018 return 0;
14019}
14020_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014021for ac_lib in '' malloc; do
14022 if test -z "$ac_lib"; then
14023 ac_res="none required"
14024 else
14025 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000014026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014027 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028 rm -f conftest.$ac_objext conftest$ac_exeext
14029if { (ac_try="$ac_link"
14030case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14033esac
14034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_link") 2>conftest.er1
14036 ac_status=$?
14037 grep -v '^ *+' conftest.er1 >conftest.err
14038 rm -f conftest.er1
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14043 { (case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_try") 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; } &&
14052 { ac_try='test -s conftest$ac_exeext'
14053 { (case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14056esac
14057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_try") 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014062 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014063else
14064 echo "$as_me: failed program was:" >&5
14065sed 's/^/| /' conftest.$ac_ext >&5
14066
14067
John Criswell7a73b802003-06-30 21:59:07 +000014068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069
Bill Wendlingebcceee2009-04-18 11:20:33 +000014070rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071 conftest$ac_exeext
14072 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014073 break
John Criswell7a73b802003-06-30 21:59:07 +000014074fi
Reid Spencera773bd52006-08-04 18:18:08 +000014075done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014076if test "${ac_cv_search_mallinfo+set}" = set; then
14077 :
Reid Spencera773bd52006-08-04 18:18:08 +000014078else
14079 ac_cv_search_mallinfo=no
14080fi
14081rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014082LIBS=$ac_func_search_save_LIBS
14083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014084{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14085echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014086ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014087if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090cat >>confdefs.h <<\_ACEOF
14091#define HAVE_MALLINFO 1
14092_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014093
14094fi
14095
14096
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014097if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014098
14099{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14100echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14101if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014103else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014104 ac_check_lib_save_LIBS=$LIBS
14105LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014106cat >conftest.$ac_ext <<_ACEOF
14107/* confdefs.h. */
14108_ACEOF
14109cat confdefs.h >>conftest.$ac_ext
14110cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014111/* end confdefs.h. */
14112
Reid Spencera773bd52006-08-04 18:18:08 +000014113/* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014116#ifdef __cplusplus
14117extern "C"
14118#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014119char pthread_mutex_init ();
14120int
14121main ()
14122{
Reid Spencera773bd52006-08-04 18:18:08 +000014123return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014124 ;
14125 return 0;
14126}
14127_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014128rm -f conftest.$ac_objext conftest$ac_exeext
14129if { (ac_try="$ac_link"
14130case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133esac
14134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_link") 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143 { (case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14146esac
14147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_try") 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest$ac_exeext'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14156esac
14157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014162 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014163else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014164 echo "$as_me: failed program was:" >&5
14165sed 's/^/| /' conftest.$ac_ext >&5
14166
14167 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169
Bill Wendlingebcceee2009-04-18 11:20:33 +000014170rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014171 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014172LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014174{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14175echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14176if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014177 cat >>confdefs.h <<_ACEOF
14178#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014179_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014180
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014181 LIBS="-lpthread $LIBS"
14182
Reid Spencer22177fe2005-07-12 15:24:20 +000014183fi
14184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014185 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14186echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14187if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014189else
14190 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014191cat >conftest.$ac_ext <<_ACEOF
14192/* confdefs.h. */
14193_ACEOF
14194cat confdefs.h >>conftest.$ac_ext
14195cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014196/* end confdefs.h. */
14197
Reid Spencera773bd52006-08-04 18:18:08 +000014198/* Override any GCC internal prototype to avoid an error.
14199 Use char because int might match the return type of a GCC
14200 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014201#ifdef __cplusplus
14202extern "C"
14203#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014204char pthread_mutex_lock ();
14205int
14206main ()
14207{
Reid Spencera773bd52006-08-04 18:18:08 +000014208return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014209 ;
14210 return 0;
14211}
14212_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014213for ac_lib in '' pthread; do
14214 if test -z "$ac_lib"; then
14215 ac_res="none required"
14216 else
14217 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014219 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220 rm -f conftest.$ac_objext conftest$ac_exeext
14221if { (ac_try="$ac_link"
14222case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225esac
14226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_link") 2>conftest.er1
14228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14235 { (case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14238esac
14239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_try") 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest$ac_exeext'
14245 { (case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248esac
14249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_try") 2>&5
14251 ac_status=$?
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014254 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014255else
14256 echo "$as_me: failed program was:" >&5
14257sed 's/^/| /' conftest.$ac_ext >&5
14258
14259
Brian Gaeke5f268f72003-12-05 19:29:01 +000014260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014261
Bill Wendlingebcceee2009-04-18 11:20:33 +000014262rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014263 conftest$ac_exeext
14264 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014265 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014266fi
Reid Spencera773bd52006-08-04 18:18:08 +000014267done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014268if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14269 :
Reid Spencera773bd52006-08-04 18:18:08 +000014270else
14271 ac_cv_search_pthread_mutex_lock=no
14272fi
14273rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014274LIBS=$ac_func_search_save_LIBS
14275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14277echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014278ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014279if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014282cat >>confdefs.h <<\_ACEOF
14283#define HAVE_PTHREAD_MUTEX_LOCK 1
14284_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014285
14286fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014288 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14289echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14290if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014292else
14293 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014294cat >conftest.$ac_ext <<_ACEOF
14295/* confdefs.h. */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014299/* end confdefs.h. */
14300
14301/* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14304#ifdef __cplusplus
14305extern "C"
14306#endif
14307char pthread_rwlock_init ();
14308int
14309main ()
14310{
14311return pthread_rwlock_init ();
14312 ;
14313 return 0;
14314}
14315_ACEOF
14316for ac_lib in '' pthread; do
14317 if test -z "$ac_lib"; then
14318 ac_res="none required"
14319 else
14320 ac_res=-l$ac_lib
14321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14322 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014323 rm -f conftest.$ac_objext conftest$ac_exeext
14324if { (ac_try="$ac_link"
14325case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14328esac
14329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_link") 2>conftest.er1
14331 ac_status=$?
14332 grep -v '^ *+' conftest.er1 >conftest.err
14333 rm -f conftest.er1
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14338 { (case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14341esac
14342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343 (eval "$ac_try") 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try='test -s conftest$ac_exeext'
14348 { (case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14351esac
14352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_try") 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014357 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014358else
14359 echo "$as_me: failed program was:" >&5
14360sed 's/^/| /' conftest.$ac_ext >&5
14361
14362
Owen Andersonde8aed22009-06-16 18:20:20 +000014363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014364
Owen Andersonde8aed22009-06-16 18:20:20 +000014365rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014366 conftest$ac_exeext
14367 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014368 break
14369fi
14370done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014371if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14372 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014373else
14374 ac_cv_search_pthread_rwlock_init=no
14375fi
14376rm conftest.$ac_ext
14377LIBS=$ac_func_search_save_LIBS
14378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014379{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14380echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014381ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014385cat >>confdefs.h <<\_ACEOF
14386#define HAVE_PTHREAD_RWLOCK_INIT 1
14387_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014388
14389fi
14390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014391 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14392echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14393if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014395else
14396 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014402/* end confdefs.h. */
14403
14404/* Override any GCC internal prototype to avoid an error.
14405 Use char because int might match the return type of a GCC
14406 builtin and then its argument prototype would still apply. */
14407#ifdef __cplusplus
14408extern "C"
14409#endif
14410char pthread_getspecific ();
14411int
14412main ()
14413{
14414return pthread_getspecific ();
14415 ;
14416 return 0;
14417}
14418_ACEOF
14419for ac_lib in '' pthread; do
14420 if test -z "$ac_lib"; then
14421 ac_res="none required"
14422 else
14423 ac_res=-l$ac_lib
14424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14425 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014426 rm -f conftest.$ac_objext conftest$ac_exeext
14427if { (ac_try="$ac_link"
14428case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14431esac
14432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 (eval "$ac_link") 2>conftest.er1
14434 ac_status=$?
14435 grep -v '^ *+' conftest.er1 >conftest.err
14436 rm -f conftest.er1
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444esac
14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest$ac_exeext'
14451 { (case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14454esac
14455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_try") 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014460 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014461else
14462 echo "$as_me: failed program was:" >&5
14463sed 's/^/| /' conftest.$ac_ext >&5
14464
14465
Owen Anderson27fcfe12009-06-25 23:10:26 +000014466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014467
Owen Anderson27fcfe12009-06-25 23:10:26 +000014468rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014469 conftest$ac_exeext
14470 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014471 break
14472fi
14473done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014474if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14475 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014476else
14477 ac_cv_search_pthread_getspecific=no
14478fi
14479rm conftest.$ac_ext
14480LIBS=$ac_func_search_save_LIBS
14481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014482{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14483echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014484ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014488cat >>confdefs.h <<\_ACEOF
14489#define HAVE_PTHREAD_GETSPECIFIC 1
14490_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014491
14492fi
14493
Reid Spencer0a262ba2005-08-24 10:07:20 +000014494fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014495
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014496
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014497# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014498if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014499 withval=$with_udis86;
14500 USE_UDIS86=1
14501
14502 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014503 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014504 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14505 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014506
14507{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14508echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14509if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014511else
14512 ac_check_lib_save_LIBS=$LIBS
14513LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014514cat >conftest.$ac_ext <<_ACEOF
14515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014519/* end confdefs.h. */
14520
14521/* Override any GCC internal prototype to avoid an error.
14522 Use char because int might match the return type of a GCC
14523 builtin and then its argument prototype would still apply. */
14524#ifdef __cplusplus
14525extern "C"
14526#endif
14527char ud_init ();
14528int
14529main ()
14530{
14531return ud_init ();
14532 ;
14533 return 0;
14534}
14535_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014536rm -f conftest.$ac_objext conftest$ac_exeext
14537if { (ac_try="$ac_link"
14538case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14541esac
14542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14544 ac_status=$?
14545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554esac
14555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564esac
14565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014570 ac_cv_lib_udis86_ud_init=yes
14571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014572 echo "$as_me: failed program was:" >&5
14573sed 's/^/| /' conftest.$ac_ext >&5
14574
14575 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014577
Bill Wendlingebcceee2009-04-18 11:20:33 +000014578rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014579 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014580LIBS=$ac_check_lib_save_LIBS
14581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014582{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14583echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14584if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014585 cat >>confdefs.h <<_ACEOF
14586#define HAVE_LIBUDIS86 1
14587_ACEOF
14588
14589 LIBS="-ludis86 $LIBS"
14590
14591else
14592
14593 echo "Error! You need to have libudis86 around."
14594 exit -1
14595
14596fi
14597
14598
14599else
14600 USE_UDIS86=0
14601
14602fi
14603
14604
14605cat >>confdefs.h <<_ACEOF
14606#define USE_UDIS86 $USE_UDIS86
14607_ACEOF
14608
14609
14610
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014611# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014612if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014613 withval=$with_oprofile;
14614 USE_OPROFILE=1
14615
14616 case "$withval" in
14617 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014618 no) llvm_cv_oppath=
14619 USE_OPROFILE=0
14620 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014621 *) llvm_cv_oppath="${withval}/lib/oprofile"
14622 CPPFLAGS="-I${withval}/include";;
14623 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014624 if test -n "$llvm_cv_oppath" ; then
14625 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014626 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14627echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14628if test "${ac_cv_search_bfd_init+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014630else
14631 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014632cat >conftest.$ac_ext <<_ACEOF
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014637/* end confdefs.h. */
14638
14639/* Override any GCC internal prototype to avoid an error.
14640 Use char because int might match the return type of a GCC
14641 builtin and then its argument prototype would still apply. */
14642#ifdef __cplusplus
14643extern "C"
14644#endif
14645char bfd_init ();
14646int
14647main ()
14648{
14649return bfd_init ();
14650 ;
14651 return 0;
14652}
14653_ACEOF
14654for ac_lib in '' bfd; do
14655 if test -z "$ac_lib"; then
14656 ac_res="none required"
14657 else
14658 ac_res=-l$ac_lib
14659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14660 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014661 rm -f conftest.$ac_objext conftest$ac_exeext
14662if { (ac_try="$ac_link"
14663case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14666esac
14667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668 (eval "$ac_link") 2>conftest.er1
14669 ac_status=$?
14670 grep -v '^ *+' conftest.er1 >conftest.err
14671 rm -f conftest.er1
14672 cat conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } &&
14675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14676 { (case "(($ac_try" in
14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678 *) ac_try_echo=$ac_try;;
14679esac
14680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681 (eval "$ac_try") 2>&5
14682 ac_status=$?
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; } &&
14685 { ac_try='test -s conftest$ac_exeext'
14686 { (case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689esac
14690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_try") 2>&5
14692 ac_status=$?
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014695 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014696else
14697 echo "$as_me: failed program was:" >&5
14698sed 's/^/| /' conftest.$ac_ext >&5
14699
14700
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014702
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014703rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014704 conftest$ac_exeext
14705 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014706 break
14707fi
14708done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014709if test "${ac_cv_search_bfd_init+set}" = set; then
14710 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014711else
14712 ac_cv_search_bfd_init=no
14713fi
14714rm conftest.$ac_ext
14715LIBS=$ac_func_search_save_LIBS
14716fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014717{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14718echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014719ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014720if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14722
14723fi
14724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014725 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14726echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14727if test "${ac_cv_search_op_open_agent+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014729else
14730 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014731cat >conftest.$ac_ext <<_ACEOF
14732/* confdefs.h. */
14733_ACEOF
14734cat confdefs.h >>conftest.$ac_ext
14735cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014736/* end confdefs.h. */
14737
14738/* Override any GCC internal prototype to avoid an error.
14739 Use char because int might match the return type of a GCC
14740 builtin and then its argument prototype would still apply. */
14741#ifdef __cplusplus
14742extern "C"
14743#endif
14744char op_open_agent ();
14745int
14746main ()
14747{
14748return op_open_agent ();
14749 ;
14750 return 0;
14751}
14752_ACEOF
14753for ac_lib in '' opagent; do
14754 if test -z "$ac_lib"; then
14755 ac_res="none required"
14756 else
14757 ac_res=-l$ac_lib
14758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14759 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014760 rm -f conftest.$ac_objext conftest$ac_exeext
14761if { (ac_try="$ac_link"
14762case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14765esac
14766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_link") 2>conftest.er1
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14775 { (case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14778esac
14779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_try") 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest$ac_exeext'
14785 { (case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788esac
14789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_try") 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014794 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014795else
14796 echo "$as_me: failed program was:" >&5
14797sed 's/^/| /' conftest.$ac_ext >&5
14798
14799
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014801
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014802rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014803 conftest$ac_exeext
14804 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014805 break
14806fi
14807done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014808if test "${ac_cv_search_op_open_agent+set}" = set; then
14809 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014810else
14811 ac_cv_search_op_open_agent=no
14812fi
14813rm conftest.$ac_ext
14814LIBS=$ac_func_search_save_LIBS
14815fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014816{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14817echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014818ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014819if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14821
14822else
14823
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014824 echo "Error! You need to have libopagent around."
14825 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014826
14827fi
14828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014829 if test "${ac_cv_header_opagent_h+set}" = set; then
14830 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14831echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14832if test "${ac_cv_header_opagent_h+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14834fi
14835{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14836echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14837else
14838 # Is the header compilable?
14839{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14840echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14841cat >conftest.$ac_ext <<_ACEOF
14842/* confdefs.h. */
14843_ACEOF
14844cat confdefs.h >>conftest.$ac_ext
14845cat >>conftest.$ac_ext <<_ACEOF
14846/* end confdefs.h. */
14847$ac_includes_default
14848#include <opagent.h>
14849_ACEOF
14850rm -f conftest.$ac_objext
14851if { (ac_try="$ac_compile"
14852case "(($ac_try" in
14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14855esac
14856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_compile") 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14865 { (case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14868esac
14869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_try") 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest.$ac_objext'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14878esac
14879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_header_compiler=yes
14885else
14886 echo "$as_me: failed program was:" >&5
14887sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014889 ac_header_compiler=no
14890fi
14891
14892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14894echo "${ECHO_T}$ac_header_compiler" >&6; }
14895
14896# Is the header present?
14897{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14898echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14899cat >conftest.$ac_ext <<_ACEOF
14900/* confdefs.h. */
14901_ACEOF
14902cat confdefs.h >>conftest.$ac_ext
14903cat >>conftest.$ac_ext <<_ACEOF
14904/* end confdefs.h. */
14905#include <opagent.h>
14906_ACEOF
14907if { (ac_try="$ac_cpp conftest.$ac_ext"
14908case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14911esac
14912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } >/dev/null; then
14920 if test -s conftest.err; then
14921 ac_cpp_err=$ac_c_preproc_warn_flag
14922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14923 else
14924 ac_cpp_err=
14925 fi
14926else
14927 ac_cpp_err=yes
14928fi
14929if test -z "$ac_cpp_err"; then
14930 ac_header_preproc=yes
14931else
14932 echo "$as_me: failed program was:" >&5
14933sed 's/^/| /' conftest.$ac_ext >&5
14934
14935 ac_header_preproc=no
14936fi
14937
14938rm -f conftest.err conftest.$ac_ext
14939{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14940echo "${ECHO_T}$ac_header_preproc" >&6; }
14941
14942# So? What about this header?
14943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14944 yes:no: )
14945 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14946echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14948echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14949 ac_header_preproc=yes
14950 ;;
14951 no:yes:* )
14952 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14953echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14955echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14957echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14959echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14961echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14963echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14964 ( cat <<\_ASBOX
14965## ----------------------------------- ##
14966## Report this to llvmbugs@cs.uiuc.edu ##
14967## ----------------------------------- ##
14968_ASBOX
14969 ) | sed "s/^/$as_me: WARNING: /" >&2
14970 ;;
14971esac
14972{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14973echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14974if test "${ac_cv_header_opagent_h+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14976else
14977 ac_cv_header_opagent_h=$ac_header_preproc
14978fi
14979{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14980echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14981
14982fi
14983if test $ac_cv_header_opagent_h = yes; then
14984 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014985else
14986
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014987 echo "Error! You need to have opagent.h around."
14988 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014989
14990fi
14991
14992
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014993 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014994
14995else
14996
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014997 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014998
14999
15000fi
15001
15002
15003cat >>confdefs.h <<_ACEOF
15004#define USE_OPROFILE $USE_OPROFILE
15005_ACEOF
15006
15007
15008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015009
15010
15011
15012
15013
Reid Spencer59473af2004-12-25 07:31:29 +000015014ac_header_dirent=no
15015for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015016 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15017{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15018echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015022 cat >conftest.$ac_ext <<_ACEOF
15023/* confdefs.h. */
15024_ACEOF
15025cat confdefs.h >>conftest.$ac_ext
15026cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015027/* end confdefs.h. */
15028#include <sys/types.h>
15029#include <$ac_hdr>
15030
15031int
15032main ()
15033{
15034if ((DIR *) 0)
15035return 0;
15036 ;
15037 return 0;
15038}
15039_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015040rm -f conftest.$ac_objext
15041if { (ac_try="$ac_compile"
15042case "(($ac_try" in
15043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15044 *) ac_try_echo=$ac_try;;
15045esac
15046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15047 (eval "$ac_compile") 2>conftest.er1
15048 ac_status=$?
15049 grep -v '^ *+' conftest.er1 >conftest.err
15050 rm -f conftest.er1
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15055 { (case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058esac
15059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_try") 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15068esac
15069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_try") 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015074 eval "$as_ac_Header=yes"
15075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076 echo "$as_me: failed program was:" >&5
15077sed 's/^/| /' conftest.$ac_ext >&5
15078
15079 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015081
Reid Spencera773bd52006-08-04 18:18:08 +000015082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015084ac_res=`eval echo '${'$as_ac_Header'}'`
15085 { echo "$as_me:$LINENO: result: $ac_res" >&5
15086echo "${ECHO_T}$ac_res" >&6; }
15087if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015088 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015089#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015090_ACEOF
15091
15092ac_header_dirent=$ac_hdr; break
15093fi
15094
15095done
15096# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15097if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015098 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15099echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15100if test "${ac_cv_search_opendir+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015102else
15103 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015104cat >conftest.$ac_ext <<_ACEOF
15105/* confdefs.h. */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015109/* end confdefs.h. */
15110
Reid Spencera773bd52006-08-04 18:18:08 +000015111/* Override any GCC internal prototype to avoid an error.
15112 Use char because int might match the return type of a GCC
15113 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015114#ifdef __cplusplus
15115extern "C"
15116#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015117char opendir ();
15118int
15119main ()
15120{
Reid Spencera773bd52006-08-04 18:18:08 +000015121return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015122 ;
15123 return 0;
15124}
15125_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015126for ac_lib in '' dir; do
15127 if test -z "$ac_lib"; then
15128 ac_res="none required"
15129 else
15130 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015132 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015133 rm -f conftest.$ac_objext conftest$ac_exeext
15134if { (ac_try="$ac_link"
15135case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15138esac
15139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_link") 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151esac
15152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15161esac
15162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_try") 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015167 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015168else
15169 echo "$as_me: failed program was:" >&5
15170sed 's/^/| /' conftest.$ac_ext >&5
15171
15172
Reid Spencer59473af2004-12-25 07:31:29 +000015173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015174
Bill Wendlingebcceee2009-04-18 11:20:33 +000015175rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176 conftest$ac_exeext
15177 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015178 break
Reid Spencer59473af2004-12-25 07:31:29 +000015179fi
Reid Spencera773bd52006-08-04 18:18:08 +000015180done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015181if test "${ac_cv_search_opendir+set}" = set; then
15182 :
Reid Spencera773bd52006-08-04 18:18:08 +000015183else
15184 ac_cv_search_opendir=no
15185fi
15186rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015187LIBS=$ac_func_search_save_LIBS
15188fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015189{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15190echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015191ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015192if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015194
15195fi
15196
15197else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015198 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15199echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15200if test "${ac_cv_search_opendir+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015202else
15203 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015204cat >conftest.$ac_ext <<_ACEOF
15205/* confdefs.h. */
15206_ACEOF
15207cat confdefs.h >>conftest.$ac_ext
15208cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015209/* end confdefs.h. */
15210
Reid Spencera773bd52006-08-04 18:18:08 +000015211/* Override any GCC internal prototype to avoid an error.
15212 Use char because int might match the return type of a GCC
15213 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015214#ifdef __cplusplus
15215extern "C"
15216#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015217char opendir ();
15218int
15219main ()
15220{
Reid Spencera773bd52006-08-04 18:18:08 +000015221return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015222 ;
15223 return 0;
15224}
15225_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015226for ac_lib in '' x; do
15227 if test -z "$ac_lib"; then
15228 ac_res="none required"
15229 else
15230 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015232 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015233 rm -f conftest.$ac_objext conftest$ac_exeext
15234if { (ac_try="$ac_link"
15235case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15238esac
15239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_link") 2>conftest.er1
15241 ac_status=$?
15242 grep -v '^ *+' conftest.er1 >conftest.err
15243 rm -f conftest.er1
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } &&
15247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15248 { (case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251esac
15252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_try") 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest$ac_exeext'
15258 { (case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261esac
15262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_try") 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015267 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015268else
15269 echo "$as_me: failed program was:" >&5
15270sed 's/^/| /' conftest.$ac_ext >&5
15271
15272
Reid Spencer59473af2004-12-25 07:31:29 +000015273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015274
Bill Wendlingebcceee2009-04-18 11:20:33 +000015275rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015276 conftest$ac_exeext
15277 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015278 break
Reid Spencer59473af2004-12-25 07:31:29 +000015279fi
Reid Spencera773bd52006-08-04 18:18:08 +000015280done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015281if test "${ac_cv_search_opendir+set}" = set; then
15282 :
Reid Spencera773bd52006-08-04 18:18:08 +000015283else
15284 ac_cv_search_opendir=no
15285fi
15286rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015287LIBS=$ac_func_search_save_LIBS
15288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015289{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15290echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015291ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015292if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015294
15295fi
15296
15297fi
15298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015299{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15300echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15301if test "${ac_cv_header_mmap_anon+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015303else
15304 ac_ext=c
15305ac_cpp='$CPP $CPPFLAGS'
15306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15308ac_compiler_gnu=$ac_cv_c_compiler_gnu
15309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015310 cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h. */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015315/* end confdefs.h. */
15316#include <sys/mman.h>
15317#include <unistd.h>
15318#include <fcntl.h>
15319int
15320main ()
15321{
15322mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15323 ;
15324 return 0;
15325}
15326_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015327rm -f conftest.$ac_objext
15328if { (ac_try="$ac_compile"
15329case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15332esac
15333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_compile") 2>conftest.er1
15335 ac_status=$?
15336 grep -v '^ *+' conftest.er1 >conftest.err
15337 rm -f conftest.er1
15338 cat conftest.err >&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
15352 { (case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_try") 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015361 ac_cv_header_mmap_anon=yes
15362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015363 echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015368
Reid Spencera773bd52006-08-04 18:18:08 +000015369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015370 ac_ext=c
15371ac_cpp='$CPP $CPPFLAGS'
15372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15374ac_compiler_gnu=$ac_cv_c_compiler_gnu
15375
15376
15377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015378{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15379echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015380if test "$ac_cv_header_mmap_anon" = yes; then
15381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015382cat >>confdefs.h <<\_ACEOF
15383#define HAVE_MMAP_ANONYMOUS 1
15384_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015385
15386fi
15387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015388{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15389echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15390if test "${ac_cv_header_stat_broken+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015393 cat >conftest.$ac_ext <<_ACEOF
15394/* confdefs.h. */
15395_ACEOF
15396cat confdefs.h >>conftest.$ac_ext
15397cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015398/* end confdefs.h. */
15399#include <sys/types.h>
15400#include <sys/stat.h>
15401
Reid Spencera773bd52006-08-04 18:18:08 +000015402#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015403# if S_ISBLK (S_IFDIR)
15404You lose.
15405# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015406#endif
15407
Reid Spencera773bd52006-08-04 18:18:08 +000015408#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015409# if S_ISBLK (S_IFCHR)
15410You lose.
15411# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015412#endif
15413
Reid Spencera773bd52006-08-04 18:18:08 +000015414#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015415# if S_ISLNK (S_IFREG)
15416You lose.
15417# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015418#endif
15419
Reid Spencera773bd52006-08-04 18:18:08 +000015420#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015421# if S_ISSOCK (S_IFREG)
15422You lose.
15423# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015424#endif
15425
15426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15428 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015429 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015430else
15431 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015433rm -f conftest*
15434
Reid Spencer59473af2004-12-25 07:31:29 +000015435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015436{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15437echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015438if test $ac_cv_header_stat_broken = yes; then
15439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015440cat >>confdefs.h <<\_ACEOF
15441#define STAT_MACROS_BROKEN 1
15442_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015443
15444fi
15445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015446{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15447echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15448if test "${ac_cv_header_stdc+set}" = set; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015450else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015451 cat >conftest.$ac_ext <<_ACEOF
15452/* confdefs.h. */
15453_ACEOF
15454cat confdefs.h >>conftest.$ac_ext
15455cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015457#include <stdlib.h>
15458#include <stdarg.h>
15459#include <string.h>
15460#include <float.h>
15461
John Criswell0c38eaf2003-09-10 15:17:25 +000015462int
15463main ()
15464{
15465
15466 ;
15467 return 0;
15468}
John Criswell7a73b802003-06-30 21:59:07 +000015469_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015470rm -f conftest.$ac_objext
15471if { (ac_try="$ac_compile"
15472case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475esac
15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_compile") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485 { (case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488esac
15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_try") 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest.$ac_objext'
15495 { (case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15498esac
15499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_try") 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015504 ac_cv_header_stdc=yes
15505else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015506 echo "$as_me: failed program was:" >&5
15507sed 's/^/| /' conftest.$ac_ext >&5
15508
15509 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015511
Reid Spencera773bd52006-08-04 18:18:08 +000015512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015513
15514if test $ac_cv_header_stdc = yes; then
15515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015516 cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015522#include <string.h>
15523
15524_ACEOF
15525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015526 $EGREP "memchr" >/dev/null 2>&1; then
15527 :
John Criswell7a73b802003-06-30 21:59:07 +000015528else
15529 ac_cv_header_stdc=no
15530fi
15531rm -f conftest*
15532
15533fi
15534
15535if test $ac_cv_header_stdc = yes; then
15536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015537 cat >conftest.$ac_ext <<_ACEOF
15538/* confdefs.h. */
15539_ACEOF
15540cat confdefs.h >>conftest.$ac_ext
15541cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015542/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015543#include <stdlib.h>
15544
15545_ACEOF
15546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015547 $EGREP "free" >/dev/null 2>&1; then
15548 :
John Criswell7a73b802003-06-30 21:59:07 +000015549else
15550 ac_cv_header_stdc=no
15551fi
15552rm -f conftest*
15553
15554fi
15555
15556if test $ac_cv_header_stdc = yes; then
15557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015558 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015559 :
15560else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015561 cat >conftest.$ac_ext <<_ACEOF
15562/* confdefs.h. */
15563_ACEOF
15564cat confdefs.h >>conftest.$ac_ext
15565cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015567#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015568#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015569#if ((' ' & 0x0FF) == 0x020)
15570# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15571# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15572#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015573# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015574 (('a' <= (c) && (c) <= 'i') \
15575 || ('j' <= (c) && (c) <= 'r') \
15576 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015577# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15578#endif
15579
15580#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15581int
15582main ()
15583{
15584 int i;
15585 for (i = 0; i < 256; i++)
15586 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015587 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015588 return 2;
15589 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015590}
15591_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015592rm -f conftest$ac_exeext
15593if { (ac_try="$ac_link"
15594case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15597esac
15598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_link") 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606esac
15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 :
John Criswell7a73b802003-06-30 21:59:07 +000015613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015614 echo "$as_me: program exited with status $ac_status" >&5
15615echo "$as_me: failed program was:" >&5
15616sed 's/^/| /' conftest.$ac_ext >&5
15617
15618( exit $ac_status )
15619ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000015622fi
15623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015624
John Criswell7a73b802003-06-30 21:59:07 +000015625fi
15626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015627{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15628echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015629if test $ac_cv_header_stdc = yes; then
15630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015631cat >>confdefs.h <<\_ACEOF
15632#define STDC_HEADERS 1
15633_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015634
15635fi
15636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015637{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15638echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15639if test "${ac_cv_header_sys_wait_h+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015642 cat >conftest.$ac_ext <<_ACEOF
15643/* confdefs.h. */
15644_ACEOF
15645cat confdefs.h >>conftest.$ac_ext
15646cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015648#include <sys/types.h>
15649#include <sys/wait.h>
15650#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015651# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015652#endif
15653#ifndef WIFEXITED
15654# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15655#endif
15656
John Criswell7a73b802003-06-30 21:59:07 +000015657int
15658main ()
15659{
15660 int s;
15661 wait (&s);
15662 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15663 ;
15664 return 0;
15665}
15666_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015667rm -f conftest.$ac_objext
15668if { (ac_try="$ac_compile"
15669case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15672esac
15673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_compile") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15682 { (case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685esac
15686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_try") 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try='test -s conftest.$ac_objext'
15692 { (case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15695esac
15696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_try") 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015701 ac_cv_header_sys_wait_h=yes
15702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015703 echo "$as_me: failed program was:" >&5
15704sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015708
Reid Spencera773bd52006-08-04 18:18:08 +000015709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015710fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015711{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15712echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015713if test $ac_cv_header_sys_wait_h = yes; then
15714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015715cat >>confdefs.h <<\_ACEOF
15716#define HAVE_SYS_WAIT_H 1
15717_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015718
15719fi
15720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015721{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15722echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15723if test "${ac_cv_header_time+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015726 cat >conftest.$ac_ext <<_ACEOF
15727/* confdefs.h. */
15728_ACEOF
15729cat confdefs.h >>conftest.$ac_ext
15730cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015731/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015732#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015733#include <sys/time.h>
15734#include <time.h>
15735
15736int
15737main ()
15738{
15739if ((struct tm *) 0)
15740return 0;
15741 ;
15742 return 0;
15743}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015744_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015745rm -f conftest.$ac_objext
15746if { (ac_try="$ac_compile"
15747case "(($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_compile") 2>conftest.er1
15753 ac_status=$?
15754 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15760 { (case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15763esac
15764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_try") 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } &&
15769 { ac_try='test -s conftest.$ac_objext'
15770 { (case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15773esac
15774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_try") 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015779 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015781 echo "$as_me: failed program was:" >&5
15782sed 's/^/| /' conftest.$ac_ext >&5
15783
15784 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015786
Reid Spencera773bd52006-08-04 18:18:08 +000015787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015789{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15790echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015791if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015793cat >>confdefs.h <<\_ACEOF
15794#define TIME_WITH_SYS_TIME 1
15795_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015796
15797fi
15798
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015800
15801
15802
15803
15804
15805
Reid Spencer59473af2004-12-25 07:31:29 +000015806for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015807do
15808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15814fi
15815ac_res=`eval echo '${'$as_ac_Header'}'`
15816 { echo "$as_me:$LINENO: result: $ac_res" >&5
15817echo "${ECHO_T}$ac_res" >&6; }
15818else
15819 # Is the header compilable?
15820{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15822cat >conftest.$ac_ext <<_ACEOF
15823/* confdefs.h. */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h. */
15828$ac_includes_default
15829#include <$ac_header>
15830_ACEOF
15831rm -f conftest.$ac_objext
15832if { (ac_try="$ac_compile"
15833case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836esac
15837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_compile") 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849esac
15850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859esac
15860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 ac_header_compiler=yes
15866else
15867 echo "$as_me: failed program was:" >&5
15868sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 ac_header_compiler=no
15871fi
15872
15873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15875echo "${ECHO_T}$ac_header_compiler" >&6; }
15876
15877# Is the header present?
15878{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15880cat >conftest.$ac_ext <<_ACEOF
15881/* confdefs.h. */
15882_ACEOF
15883cat confdefs.h >>conftest.$ac_ext
15884cat >>conftest.$ac_ext <<_ACEOF
15885/* end confdefs.h. */
15886#include <$ac_header>
15887_ACEOF
15888if { (ac_try="$ac_cpp conftest.$ac_ext"
15889case "(($ac_try" in
15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891 *) ac_try_echo=$ac_try;;
15892esac
15893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } >/dev/null; then
15901 if test -s conftest.err; then
15902 ac_cpp_err=$ac_c_preproc_warn_flag
15903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15904 else
15905 ac_cpp_err=
15906 fi
15907else
15908 ac_cpp_err=yes
15909fi
15910if test -z "$ac_cpp_err"; then
15911 ac_header_preproc=yes
15912else
15913 echo "$as_me: failed program was:" >&5
15914sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 ac_header_preproc=no
15917fi
15918
15919rm -f conftest.err conftest.$ac_ext
15920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15921echo "${ECHO_T}$ac_header_preproc" >&6; }
15922
15923# So? What about this header?
15924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15925 yes:no: )
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15930 ac_header_preproc=yes
15931 ;;
15932 no:yes:* )
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15945 ( cat <<\_ASBOX
15946## ----------------------------------- ##
15947## Report this to llvmbugs@cs.uiuc.edu ##
15948## ----------------------------------- ##
15949_ASBOX
15950 ) | sed "s/^/$as_me: WARNING: /" >&2
15951 ;;
15952esac
15953{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15957else
15958 eval "$as_ac_Header=\$ac_header_preproc"
15959fi
15960ac_res=`eval echo '${'$as_ac_Header'}'`
15961 { echo "$as_me:$LINENO: result: $ac_res" >&5
15962echo "${ECHO_T}$ac_res" >&6; }
15963
15964fi
15965if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015966 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015968_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015969
15970fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015971
Reid Spencer59473af2004-12-25 07:31:29 +000015972done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015974
15975
15976
15977
15978
15979
Douglas Gregor071d73d2009-05-18 17:21:34 +000015980for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015981do
15982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988fi
15989ac_res=`eval echo '${'$as_ac_Header'}'`
15990 { echo "$as_me:$LINENO: result: $ac_res" >&5
15991echo "${ECHO_T}$ac_res" >&6; }
15992else
15993 # Is the header compilable?
15994{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15996cat >conftest.$ac_ext <<_ACEOF
15997/* confdefs.h. */
15998_ACEOF
15999cat confdefs.h >>conftest.$ac_ext
16000cat >>conftest.$ac_ext <<_ACEOF
16001/* end confdefs.h. */
16002$ac_includes_default
16003#include <$ac_header>
16004_ACEOF
16005rm -f conftest.$ac_objext
16006if { (ac_try="$ac_compile"
16007case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16010esac
16011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_compile") 2>conftest.er1
16013 ac_status=$?
16014 grep -v '^ *+' conftest.er1 >conftest.err
16015 rm -f conftest.er1
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023esac
16024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16033esac
16034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_try") 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_header_compiler=yes
16040else
16041 echo "$as_me: failed program was:" >&5
16042sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 ac_header_compiler=no
16045fi
16046
16047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049echo "${ECHO_T}$ac_header_compiler" >&6; }
16050
16051# Is the header present?
16052{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16054cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060#include <$ac_header>
16061_ACEOF
16062if { (ac_try="$ac_cpp conftest.$ac_ext"
16063case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16066esac
16067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } >/dev/null; then
16075 if test -s conftest.err; then
16076 ac_cpp_err=$ac_c_preproc_warn_flag
16077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16078 else
16079 ac_cpp_err=
16080 fi
16081else
16082 ac_cpp_err=yes
16083fi
16084if test -z "$ac_cpp_err"; then
16085 ac_header_preproc=yes
16086else
16087 echo "$as_me: failed program was:" >&5
16088sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 ac_header_preproc=no
16091fi
16092
16093rm -f conftest.err conftest.$ac_ext
16094{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095echo "${ECHO_T}$ac_header_preproc" >&6; }
16096
16097# So? What about this header?
16098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099 yes:no: )
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104 ac_header_preproc=yes
16105 ;;
16106 no:yes:* )
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16119 ( cat <<\_ASBOX
16120## ----------------------------------- ##
16121## Report this to llvmbugs@cs.uiuc.edu ##
16122## ----------------------------------- ##
16123_ASBOX
16124 ) | sed "s/^/$as_me: WARNING: /" >&2
16125 ;;
16126esac
16127{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16131else
16132 eval "$as_ac_Header=\$ac_header_preproc"
16133fi
16134ac_res=`eval echo '${'$as_ac_Header'}'`
16135 { echo "$as_me:$LINENO: result: $ac_res" >&5
16136echo "${ECHO_T}$ac_res" >&6; }
16137
16138fi
16139if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016140 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016142_ACEOF
16143
16144fi
16145
16146done
16147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016148
16149
Douglas Gregor071d73d2009-05-18 17:21:34 +000016150for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016151do
16152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158fi
16159ac_res=`eval echo '${'$as_ac_Header'}'`
16160 { echo "$as_me:$LINENO: result: $ac_res" >&5
16161echo "${ECHO_T}$ac_res" >&6; }
16162else
16163 # Is the header compilable?
16164{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16166cat >conftest.$ac_ext <<_ACEOF
16167/* confdefs.h. */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
16171/* end confdefs.h. */
16172$ac_includes_default
16173#include <$ac_header>
16174_ACEOF
16175rm -f conftest.$ac_objext
16176if { (ac_try="$ac_compile"
16177case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180esac
16181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16183 ac_status=$?
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
16189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16190 { (case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193esac
16194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_try") 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203esac
16204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_try") 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_header_compiler=yes
16210else
16211 echo "$as_me: failed program was:" >&5
16212sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ac_header_compiler=no
16215fi
16216
16217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16219echo "${ECHO_T}$ac_header_compiler" >&6; }
16220
16221# Is the header present?
16222{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16224cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
16230#include <$ac_header>
16231_ACEOF
16232if { (ac_try="$ac_cpp conftest.$ac_ext"
16233case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16236esac
16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16239 ac_status=$?
16240 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } >/dev/null; then
16245 if test -s conftest.err; then
16246 ac_cpp_err=$ac_c_preproc_warn_flag
16247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16248 else
16249 ac_cpp_err=
16250 fi
16251else
16252 ac_cpp_err=yes
16253fi
16254if test -z "$ac_cpp_err"; then
16255 ac_header_preproc=yes
16256else
16257 echo "$as_me: failed program was:" >&5
16258sed 's/^/| /' conftest.$ac_ext >&5
16259
16260 ac_header_preproc=no
16261fi
16262
16263rm -f conftest.err conftest.$ac_ext
16264{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16265echo "${ECHO_T}$ac_header_preproc" >&6; }
16266
16267# So? What about this header?
16268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16269 yes:no: )
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16271echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16273echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16274 ac_header_preproc=yes
16275 ;;
16276 no:yes:* )
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16278echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16280echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16282echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16284echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16288echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16289 ( cat <<\_ASBOX
16290## ----------------------------------- ##
16291## Report this to llvmbugs@cs.uiuc.edu ##
16292## ----------------------------------- ##
16293_ASBOX
16294 ) | sed "s/^/$as_me: WARNING: /" >&2
16295 ;;
16296esac
16297{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301else
16302 eval "$as_ac_Header=\$ac_header_preproc"
16303fi
16304ac_res=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306echo "${ECHO_T}$ac_res" >&6; }
16307
16308fi
16309if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016310 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016312_ACEOF
16313
16314fi
16315
16316done
Reid Spencer59473af2004-12-25 07:31:29 +000016317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016318
16319
16320
16321
Daniel Dunbar3e462932011-02-03 02:40:02 +000016322
16323for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016324do
16325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16331fi
16332ac_res=`eval echo '${'$as_ac_Header'}'`
16333 { echo "$as_me:$LINENO: result: $ac_res" >&5
16334echo "${ECHO_T}$ac_res" >&6; }
16335else
16336 # Is the header compilable?
16337{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16339cat >conftest.$ac_ext <<_ACEOF
16340/* confdefs.h. */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h. */
16345$ac_includes_default
16346#include <$ac_header>
16347_ACEOF
16348rm -f conftest.$ac_objext
16349if { (ac_try="$ac_compile"
16350case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16353esac
16354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_compile") 2>conftest.er1
16356 ac_status=$?
16357 grep -v '^ *+' conftest.er1 >conftest.err
16358 rm -f conftest.er1
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16366esac
16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest.$ac_objext'
16373 { (case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16376esac
16377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_try") 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_header_compiler=yes
16383else
16384 echo "$as_me: failed program was:" >&5
16385sed 's/^/| /' conftest.$ac_ext >&5
16386
16387 ac_header_compiler=no
16388fi
16389
16390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16392echo "${ECHO_T}$ac_header_compiler" >&6; }
16393
16394# Is the header present?
16395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16397cat >conftest.$ac_ext <<_ACEOF
16398/* confdefs.h. */
16399_ACEOF
16400cat confdefs.h >>conftest.$ac_ext
16401cat >>conftest.$ac_ext <<_ACEOF
16402/* end confdefs.h. */
16403#include <$ac_header>
16404_ACEOF
16405if { (ac_try="$ac_cpp conftest.$ac_ext"
16406case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16412 ac_status=$?
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } >/dev/null; then
16418 if test -s conftest.err; then
16419 ac_cpp_err=$ac_c_preproc_warn_flag
16420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16421 else
16422 ac_cpp_err=
16423 fi
16424else
16425 ac_cpp_err=yes
16426fi
16427if test -z "$ac_cpp_err"; then
16428 ac_header_preproc=yes
16429else
16430 echo "$as_me: failed program was:" >&5
16431sed 's/^/| /' conftest.$ac_ext >&5
16432
16433 ac_header_preproc=no
16434fi
16435
16436rm -f conftest.err conftest.$ac_ext
16437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438echo "${ECHO_T}$ac_header_preproc" >&6; }
16439
16440# So? What about this header?
16441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16442 yes:no: )
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16447 ac_header_preproc=yes
16448 ;;
16449 no:yes:* )
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16462 ( cat <<\_ASBOX
16463## ----------------------------------- ##
16464## Report this to llvmbugs@cs.uiuc.edu ##
16465## ----------------------------------- ##
16466_ASBOX
16467 ) | sed "s/^/$as_me: WARNING: /" >&2
16468 ;;
16469esac
16470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16474else
16475 eval "$as_ac_Header=\$ac_header_preproc"
16476fi
16477ac_res=`eval echo '${'$as_ac_Header'}'`
16478 { echo "$as_me:$LINENO: result: $ac_res" >&5
16479echo "${ECHO_T}$ac_res" >&6; }
16480
16481fi
16482if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016483 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016485_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016486
16487fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016488
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016489done
16490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016491
16492
16493
16494
Douglas Gregor01746742009-05-11 18:05:52 +000016495for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016496do
16497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16503fi
16504ac_res=`eval echo '${'$as_ac_Header'}'`
16505 { echo "$as_me:$LINENO: result: $ac_res" >&5
16506echo "${ECHO_T}$ac_res" >&6; }
16507else
16508 # Is the header compilable?
16509{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16511cat >conftest.$ac_ext <<_ACEOF
16512/* confdefs.h. */
16513_ACEOF
16514cat confdefs.h >>conftest.$ac_ext
16515cat >>conftest.$ac_ext <<_ACEOF
16516/* end confdefs.h. */
16517$ac_includes_default
16518#include <$ac_header>
16519_ACEOF
16520rm -f conftest.$ac_objext
16521if { (ac_try="$ac_compile"
16522case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525esac
16526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_compile") 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16535 { (case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16538esac
16539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540 (eval "$ac_try") 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548esac
16549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_try") 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_header_compiler=yes
16555else
16556 echo "$as_me: failed program was:" >&5
16557sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 ac_header_compiler=no
16560fi
16561
16562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16564echo "${ECHO_T}$ac_header_compiler" >&6; }
16565
16566# Is the header present?
16567{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16569cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h. */
16575#include <$ac_header>
16576_ACEOF
16577if { (ac_try="$ac_cpp conftest.$ac_ext"
16578case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16581esac
16582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } >/dev/null; then
16590 if test -s conftest.err; then
16591 ac_cpp_err=$ac_c_preproc_warn_flag
16592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16593 else
16594 ac_cpp_err=
16595 fi
16596else
16597 ac_cpp_err=yes
16598fi
16599if test -z "$ac_cpp_err"; then
16600 ac_header_preproc=yes
16601else
16602 echo "$as_me: failed program was:" >&5
16603sed 's/^/| /' conftest.$ac_ext >&5
16604
16605 ac_header_preproc=no
16606fi
16607
16608rm -f conftest.err conftest.$ac_ext
16609{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16610echo "${ECHO_T}$ac_header_preproc" >&6; }
16611
16612# So? What about this header?
16613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16614 yes:no: )
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16619 ac_header_preproc=yes
16620 ;;
16621 no:yes:* )
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16629echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16634 ( cat <<\_ASBOX
16635## ----------------------------------- ##
16636## Report this to llvmbugs@cs.uiuc.edu ##
16637## ----------------------------------- ##
16638_ASBOX
16639 ) | sed "s/^/$as_me: WARNING: /" >&2
16640 ;;
16641esac
16642{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16646else
16647 eval "$as_ac_Header=\$ac_header_preproc"
16648fi
16649ac_res=`eval echo '${'$as_ac_Header'}'`
16650 { echo "$as_me:$LINENO: result: $ac_res" >&5
16651echo "${ECHO_T}$ac_res" >&6; }
16652
16653fi
16654if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016655 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016657_ACEOF
16658
16659fi
16660
16661done
16662
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016663
16664for ac_header in valgrind/valgrind.h
16665do
16666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672fi
16673ac_res=`eval echo '${'$as_ac_Header'}'`
16674 { echo "$as_me:$LINENO: result: $ac_res" >&5
16675echo "${ECHO_T}$ac_res" >&6; }
16676else
16677 # Is the header compilable?
16678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16680cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h. */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h. */
16686$ac_includes_default
16687#include <$ac_header>
16688_ACEOF
16689rm -f conftest.$ac_objext
16690if { (ac_try="$ac_compile"
16691case "(($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_compile") 2>conftest.er1
16697 ac_status=$?
16698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } &&
16703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707esac
16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717esac
16718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_header_compiler=yes
16724else
16725 echo "$as_me: failed program was:" >&5
16726sed 's/^/| /' conftest.$ac_ext >&5
16727
16728 ac_header_compiler=no
16729fi
16730
16731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16733echo "${ECHO_T}$ac_header_compiler" >&6; }
16734
16735# Is the header present?
16736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16738cat >conftest.$ac_ext <<_ACEOF
16739/* confdefs.h. */
16740_ACEOF
16741cat confdefs.h >>conftest.$ac_ext
16742cat >>conftest.$ac_ext <<_ACEOF
16743/* end confdefs.h. */
16744#include <$ac_header>
16745_ACEOF
16746if { (ac_try="$ac_cpp conftest.$ac_ext"
16747case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16753 ac_status=$?
16754 grep -v '^ *+' conftest.er1 >conftest.err
16755 rm -f conftest.er1
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } >/dev/null; then
16759 if test -s conftest.err; then
16760 ac_cpp_err=$ac_c_preproc_warn_flag
16761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16762 else
16763 ac_cpp_err=
16764 fi
16765else
16766 ac_cpp_err=yes
16767fi
16768if test -z "$ac_cpp_err"; then
16769 ac_header_preproc=yes
16770else
16771 echo "$as_me: failed program was:" >&5
16772sed 's/^/| /' conftest.$ac_ext >&5
16773
16774 ac_header_preproc=no
16775fi
16776
16777rm -f conftest.err conftest.$ac_ext
16778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16779echo "${ECHO_T}$ac_header_preproc" >&6; }
16780
16781# So? What about this header?
16782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16783 yes:no: )
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16788 ac_header_preproc=yes
16789 ;;
16790 no:yes:* )
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16803 ( cat <<\_ASBOX
16804## ----------------------------------- ##
16805## Report this to llvmbugs@cs.uiuc.edu ##
16806## ----------------------------------- ##
16807_ASBOX
16808 ) | sed "s/^/$as_me: WARNING: /" >&2
16809 ;;
16810esac
16811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816 eval "$as_ac_Header=\$ac_header_preproc"
16817fi
16818ac_res=`eval echo '${'$as_ac_Header'}'`
16819 { echo "$as_me:$LINENO: result: $ac_res" >&5
16820echo "${ECHO_T}$ac_res" >&6; }
16821
16822fi
16823if test `eval echo '${'$as_ac_Header'}'` = yes; then
16824 cat >>confdefs.h <<_ACEOF
16825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16826_ACEOF
16827
16828fi
16829
16830done
16831
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016832
16833for ac_header in fenv.h
16834do
16835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16841fi
16842ac_res=`eval echo '${'$as_ac_Header'}'`
16843 { echo "$as_me:$LINENO: result: $ac_res" >&5
16844echo "${ECHO_T}$ac_res" >&6; }
16845else
16846 # Is the header compilable?
16847{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16849cat >conftest.$ac_ext <<_ACEOF
16850/* confdefs.h. */
16851_ACEOF
16852cat confdefs.h >>conftest.$ac_ext
16853cat >>conftest.$ac_ext <<_ACEOF
16854/* end confdefs.h. */
16855$ac_includes_default
16856#include <$ac_header>
16857_ACEOF
16858rm -f conftest.$ac_objext
16859if { (ac_try="$ac_compile"
16860case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16863esac
16864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_compile") 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } &&
16872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16873 { (case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16876esac
16877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_try") 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest.$ac_objext'
16883 { (case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16886esac
16887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_try") 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 ac_header_compiler=yes
16893else
16894 echo "$as_me: failed program was:" >&5
16895sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 ac_header_compiler=no
16898fi
16899
16900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16902echo "${ECHO_T}$ac_header_compiler" >&6; }
16903
16904# Is the header present?
16905{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16907cat >conftest.$ac_ext <<_ACEOF
16908/* confdefs.h. */
16909_ACEOF
16910cat confdefs.h >>conftest.$ac_ext
16911cat >>conftest.$ac_ext <<_ACEOF
16912/* end confdefs.h. */
16913#include <$ac_header>
16914_ACEOF
16915if { (ac_try="$ac_cpp conftest.$ac_ext"
16916case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919esac
16920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } >/dev/null; then
16928 if test -s conftest.err; then
16929 ac_cpp_err=$ac_c_preproc_warn_flag
16930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16931 else
16932 ac_cpp_err=
16933 fi
16934else
16935 ac_cpp_err=yes
16936fi
16937if test -z "$ac_cpp_err"; then
16938 ac_header_preproc=yes
16939else
16940 echo "$as_me: failed program was:" >&5
16941sed 's/^/| /' conftest.$ac_ext >&5
16942
16943 ac_header_preproc=no
16944fi
16945
16946rm -f conftest.err conftest.$ac_ext
16947{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16948echo "${ECHO_T}$ac_header_preproc" >&6; }
16949
16950# So? What about this header?
16951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16952 yes:no: )
16953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16957 ac_header_preproc=yes
16958 ;;
16959 no:yes:* )
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16963echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16967echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16972 ( cat <<\_ASBOX
16973## ----------------------------------- ##
16974## Report this to llvmbugs@cs.uiuc.edu ##
16975## ----------------------------------- ##
16976_ASBOX
16977 ) | sed "s/^/$as_me: WARNING: /" >&2
16978 ;;
16979esac
16980{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16984else
16985 eval "$as_ac_Header=\$ac_header_preproc"
16986fi
16987ac_res=`eval echo '${'$as_ac_Header'}'`
16988 { echo "$as_me:$LINENO: result: $ac_res" >&5
16989echo "${ECHO_T}$ac_res" >&6; }
16990
16991fi
16992if test `eval echo '${'$as_ac_Header'}'` = yes; then
16993 cat >>confdefs.h <<_ACEOF
16994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16995_ACEOF
16996
16997fi
16998
16999done
17000
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000017001if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017002
17003for ac_header in pthread.h
17004do
17005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17011fi
17012ac_res=`eval echo '${'$as_ac_Header'}'`
17013 { echo "$as_me:$LINENO: result: $ac_res" >&5
17014echo "${ECHO_T}$ac_res" >&6; }
17015else
17016 # Is the header compilable?
17017{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17019cat >conftest.$ac_ext <<_ACEOF
17020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
17025$ac_includes_default
17026#include <$ac_header>
17027_ACEOF
17028rm -f conftest.$ac_objext
17029if { (ac_try="$ac_compile"
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_compile") 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_objext'
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 ac_header_compiler=yes
17063else
17064 echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 ac_header_compiler=no
17068fi
17069
17070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17071{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17072echo "${ECHO_T}$ac_header_compiler" >&6; }
17073
17074# Is the header present?
17075{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17077cat >conftest.$ac_ext <<_ACEOF
17078/* confdefs.h. */
17079_ACEOF
17080cat confdefs.h >>conftest.$ac_ext
17081cat >>conftest.$ac_ext <<_ACEOF
17082/* end confdefs.h. */
17083#include <$ac_header>
17084_ACEOF
17085if { (ac_try="$ac_cpp conftest.$ac_ext"
17086case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17092 ac_status=$?
17093 grep -v '^ *+' conftest.er1 >conftest.err
17094 rm -f conftest.er1
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } >/dev/null; then
17098 if test -s conftest.err; then
17099 ac_cpp_err=$ac_c_preproc_warn_flag
17100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17101 else
17102 ac_cpp_err=
17103 fi
17104else
17105 ac_cpp_err=yes
17106fi
17107if test -z "$ac_cpp_err"; then
17108 ac_header_preproc=yes
17109else
17110 echo "$as_me: failed program was:" >&5
17111sed 's/^/| /' conftest.$ac_ext >&5
17112
17113 ac_header_preproc=no
17114fi
17115
17116rm -f conftest.err conftest.$ac_ext
17117{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17118echo "${ECHO_T}$ac_header_preproc" >&6; }
17119
17120# So? What about this header?
17121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17122 yes:no: )
17123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17127 ac_header_preproc=yes
17128 ;;
17129 no:yes:* )
17130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17142 ( cat <<\_ASBOX
17143## ----------------------------------- ##
17144## Report this to llvmbugs@cs.uiuc.edu ##
17145## ----------------------------------- ##
17146_ASBOX
17147 ) | sed "s/^/$as_me: WARNING: /" >&2
17148 ;;
17149esac
17150{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17154else
17155 eval "$as_ac_Header=\$ac_header_preproc"
17156fi
17157ac_res=`eval echo '${'$as_ac_Header'}'`
17158 { echo "$as_me:$LINENO: result: $ac_res" >&5
17159echo "${ECHO_T}$ac_res" >&6; }
17160
17161fi
17162if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017163 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017165_ACEOF
17166 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017167
17168else
17169 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017170
17171fi
17172
Reid Spencerbe3e4192007-08-17 05:45:26 +000017173done
Reid Spencer1000b732006-12-01 00:37:14 +000017174
17175else
17176 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017177
17178fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017179
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017180if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017181
17182
17183for ac_header in ffi.h ffi/ffi.h
17184do
17185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17191fi
17192ac_res=`eval echo '${'$as_ac_Header'}'`
17193 { echo "$as_me:$LINENO: result: $ac_res" >&5
17194echo "${ECHO_T}$ac_res" >&6; }
17195else
17196 # Is the header compilable?
17197{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17198echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17199cat >conftest.$ac_ext <<_ACEOF
17200/* confdefs.h. */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h. */
17205$ac_includes_default
17206#include <$ac_header>
17207_ACEOF
17208rm -f conftest.$ac_objext
17209if { (ac_try="$ac_compile"
17210case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_compile") 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest.$ac_objext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236esac
17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_header_compiler=yes
17243else
17244 echo "$as_me: failed program was:" >&5
17245sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 ac_header_compiler=no
17248fi
17249
17250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17251{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17252echo "${ECHO_T}$ac_header_compiler" >&6; }
17253
17254# Is the header present?
17255{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17257cat >conftest.$ac_ext <<_ACEOF
17258/* confdefs.h. */
17259_ACEOF
17260cat confdefs.h >>conftest.$ac_ext
17261cat >>conftest.$ac_ext <<_ACEOF
17262/* end confdefs.h. */
17263#include <$ac_header>
17264_ACEOF
17265if { (ac_try="$ac_cpp conftest.$ac_ext"
17266case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17269esac
17270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17272 ac_status=$?
17273 grep -v '^ *+' conftest.er1 >conftest.err
17274 rm -f conftest.er1
17275 cat conftest.err >&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } >/dev/null; then
17278 if test -s conftest.err; then
17279 ac_cpp_err=$ac_c_preproc_warn_flag
17280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17281 else
17282 ac_cpp_err=
17283 fi
17284else
17285 ac_cpp_err=yes
17286fi
17287if test -z "$ac_cpp_err"; then
17288 ac_header_preproc=yes
17289else
17290 echo "$as_me: failed program was:" >&5
17291sed 's/^/| /' conftest.$ac_ext >&5
17292
17293 ac_header_preproc=no
17294fi
17295
17296rm -f conftest.err conftest.$ac_ext
17297{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17298echo "${ECHO_T}$ac_header_preproc" >&6; }
17299
17300# So? What about this header?
17301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17302 yes:no: )
17303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17307 ac_header_preproc=yes
17308 ;;
17309 no:yes:* )
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17313echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17317echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17322 ( cat <<\_ASBOX
17323## ----------------------------------- ##
17324## Report this to llvmbugs@cs.uiuc.edu ##
17325## ----------------------------------- ##
17326_ASBOX
17327 ) | sed "s/^/$as_me: WARNING: /" >&2
17328 ;;
17329esac
17330{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17334else
17335 eval "$as_ac_Header=\$ac_header_preproc"
17336fi
17337ac_res=`eval echo '${'$as_ac_Header'}'`
17338 { echo "$as_me:$LINENO: result: $ac_res" >&5
17339echo "${ECHO_T}$ac_res" >&6; }
17340
17341fi
17342if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017343 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017345_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017346
17347fi
17348
17349done
17350
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017351fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017352
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017353
Eric Christopher654dee42010-06-22 21:01:04 +000017354for ac_header in CrashReporterClient.h
17355do
17356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17362fi
17363ac_res=`eval echo '${'$as_ac_Header'}'`
17364 { echo "$as_me:$LINENO: result: $ac_res" >&5
17365echo "${ECHO_T}$ac_res" >&6; }
17366else
17367 # Is the header compilable?
17368{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17370cat >conftest.$ac_ext <<_ACEOF
17371/* confdefs.h. */
17372_ACEOF
17373cat confdefs.h >>conftest.$ac_ext
17374cat >>conftest.$ac_ext <<_ACEOF
17375/* end confdefs.h. */
17376$ac_includes_default
17377#include <$ac_header>
17378_ACEOF
17379rm -f conftest.$ac_objext
17380if { (ac_try="$ac_compile"
17381case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384esac
17385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_compile") 2>conftest.er1
17387 ac_status=$?
17388 grep -v '^ *+' conftest.er1 >conftest.err
17389 rm -f conftest.er1
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17394 { (case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397esac
17398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_try") 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest.$ac_objext'
17404 { (case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407esac
17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_try") 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ac_header_compiler=yes
17414else
17415 echo "$as_me: failed program was:" >&5
17416sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 ac_header_compiler=no
17419fi
17420
17421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17422{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17423echo "${ECHO_T}$ac_header_compiler" >&6; }
17424
17425# Is the header present?
17426{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17428cat >conftest.$ac_ext <<_ACEOF
17429/* confdefs.h. */
17430_ACEOF
17431cat confdefs.h >>conftest.$ac_ext
17432cat >>conftest.$ac_ext <<_ACEOF
17433/* end confdefs.h. */
17434#include <$ac_header>
17435_ACEOF
17436if { (ac_try="$ac_cpp conftest.$ac_ext"
17437case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17440esac
17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } >/dev/null; then
17449 if test -s conftest.err; then
17450 ac_cpp_err=$ac_c_preproc_warn_flag
17451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17452 else
17453 ac_cpp_err=
17454 fi
17455else
17456 ac_cpp_err=yes
17457fi
17458if test -z "$ac_cpp_err"; then
17459 ac_header_preproc=yes
17460else
17461 echo "$as_me: failed program was:" >&5
17462sed 's/^/| /' conftest.$ac_ext >&5
17463
17464 ac_header_preproc=no
17465fi
17466
17467rm -f conftest.err conftest.$ac_ext
17468{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17469echo "${ECHO_T}$ac_header_preproc" >&6; }
17470
17471# So? What about this header?
17472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17473 yes:no: )
17474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17477echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17478 ac_header_preproc=yes
17479 ;;
17480 no:yes:* )
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17482echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17484echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17486echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17488echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17490echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17492echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17493 ( cat <<\_ASBOX
17494## ----------------------------------- ##
17495## Report this to llvmbugs@cs.uiuc.edu ##
17496## ----------------------------------- ##
17497_ASBOX
17498 ) | sed "s/^/$as_me: WARNING: /" >&2
17499 ;;
17500esac
17501{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17504 echo $ECHO_N "(cached) $ECHO_C" >&6
17505else
17506 eval "$as_ac_Header=\$ac_header_preproc"
17507fi
17508ac_res=`eval echo '${'$as_ac_Header'}'`
17509 { echo "$as_me:$LINENO: result: $ac_res" >&5
17510echo "${ECHO_T}$ac_res" >&6; }
17511
17512fi
17513if test `eval echo '${'$as_ac_Header'}'` = yes; then
17514 cat >>confdefs.h <<_ACEOF
17515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17516_ACEOF
17517
17518fi
17519
17520done
17521
17522
Eric Christopher51e57132010-12-07 02:05:42 +000017523{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17524echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017525cat >conftest.$ac_ext <<_ACEOF
17526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017531extern const char *__crashreporter_info__;
17532 int main() {
17533 __crashreporter_info__ = "test";
17534 return 0;
17535 }
Eric Christopher481d4022010-12-03 07:45:22 +000017536
Eric Christopher481d4022010-12-03 07:45:22 +000017537_ACEOF
17538rm -f conftest.$ac_objext conftest$ac_exeext
17539if { (ac_try="$ac_link"
17540case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17543esac
17544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_link") 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553 { (case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17556esac
17557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_try") 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17566esac
17567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_try") 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017572 { echo "$as_me:$LINENO: result: yes" >&5
17573echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017574
17575cat >>confdefs.h <<\_ACEOF
17576#define HAVE_CRASHREPORTER_INFO 1
17577_ACEOF
17578
Eric Christopher51e57132010-12-07 02:05:42 +000017579else
17580 echo "$as_me: failed program was:" >&5
17581sed 's/^/| /' conftest.$ac_ext >&5
17582
17583 { echo "$as_me:$LINENO: result: no" >&5
17584echo "${ECHO_T}no" >&6; }
17585
17586cat >>confdefs.h <<\_ACEOF
17587#define HAVE_CRASHREPORTER_INFO 0
17588_ACEOF
17589
Eric Christopher481d4022010-12-03 07:45:22 +000017590fi
Eric Christopher654dee42010-06-22 21:01:04 +000017591
Eric Christopher51e57132010-12-07 02:05:42 +000017592rm -f core conftest.err conftest.$ac_objext \
17593 conftest$ac_exeext conftest.$ac_ext
17594
17595
Reid Spencer8085cff2005-01-16 02:58:39 +000017596
Torok Edwin871384f2010-01-26 08:50:50 +000017597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017598 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17599echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17600if test "${ac_cv_huge_val_sanity+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017602else
17603
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017604 ac_ext=cpp
17605ac_cpp='$CXXCPP $CPPFLAGS'
17606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017609
Eric Christopherc7718502010-03-02 05:06:54 +000017610 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017611 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017612 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017613 ac_cv_huge_val_sanity=yes
17614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017615 cat >conftest.$ac_ext <<_ACEOF
17616/* confdefs.h. */
17617_ACEOF
17618cat confdefs.h >>conftest.$ac_ext
17619cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017620/* end confdefs.h. */
17621#include <math.h>
17622int
17623main ()
17624{
17625double x = HUGE_VAL; return x != x;
17626 ;
17627 return 0;
17628}
17629_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017630rm -f conftest$ac_exeext
17631if { (ac_try="$ac_link"
17632case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17635esac
17636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_link") 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17641 { (case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17644esac
17645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_try") 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017650 ac_cv_huge_val_sanity=yes
17651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017652 echo "$as_me: program exited with status $ac_status" >&5
17653echo "$as_me: failed program was:" >&5
17654sed 's/^/| /' conftest.$ac_ext >&5
17655
17656( exit $ac_status )
17657ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencerb2ed05262006-11-03 18:04:08 +000017660fi
17661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017662
Eric Christopherc7718502010-03-02 05:06:54 +000017663 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017664 ac_ext=c
17665ac_cpp='$CPP $CPPFLAGS'
17666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17668ac_compiler_gnu=$ac_cv_c_compiler_gnu
17669
17670
17671fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017672{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17673echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017674 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17675
17676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017677{ echo "$as_me:$LINENO: checking for pid_t" >&5
17678echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17679if test "${ac_cv_type_pid_t+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681else
17682 cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688$ac_includes_default
17689typedef pid_t ac__type_new_;
17690int
17691main ()
17692{
17693if ((ac__type_new_ *) 0)
17694 return 0;
17695if (sizeof (ac__type_new_))
17696 return 0;
17697 ;
17698 return 0;
17699}
17700_ACEOF
17701rm -f conftest.$ac_objext
17702if { (ac_try="$ac_compile"
17703case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706esac
17707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_cv_type_pid_t=yes
17736else
17737 echo "$as_me: failed program was:" >&5
17738sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017740 ac_cv_type_pid_t=no
17741fi
17742
17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744fi
17745{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17746echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17747if test $ac_cv_type_pid_t = yes; then
17748 :
John Criswell7a73b802003-06-30 21:59:07 +000017749else
17750
17751cat >>confdefs.h <<_ACEOF
17752#define pid_t int
17753_ACEOF
17754
17755fi
17756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017757{ echo "$as_me:$LINENO: checking for size_t" >&5
17758echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17759if test "${ac_cv_type_size_t+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17761else
17762 cat >conftest.$ac_ext <<_ACEOF
17763/* confdefs.h. */
17764_ACEOF
17765cat confdefs.h >>conftest.$ac_ext
17766cat >>conftest.$ac_ext <<_ACEOF
17767/* end confdefs.h. */
17768$ac_includes_default
17769typedef size_t ac__type_new_;
17770int
17771main ()
17772{
17773if ((ac__type_new_ *) 0)
17774 return 0;
17775if (sizeof (ac__type_new_))
17776 return 0;
17777 ;
17778 return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext
17782if { (ac_try="$ac_compile"
17783case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17786esac
17787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_compile") 2>conftest.er1
17789 ac_status=$?
17790 grep -v '^ *+' conftest.er1 >conftest.err
17791 rm -f conftest.er1
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17796 { (case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17799esac
17800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_try") 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; } &&
17805 { ac_try='test -s conftest.$ac_objext'
17806 { (case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809esac
17810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_try") 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; }; then
17815 ac_cv_type_size_t=yes
17816else
17817 echo "$as_me: failed program was:" >&5
17818sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017820 ac_cv_type_size_t=no
17821fi
17822
17823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17824fi
17825{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17826echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17827if test $ac_cv_type_size_t = yes; then
17828 :
John Criswell7a73b802003-06-30 21:59:07 +000017829else
17830
17831cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017832#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017833_ACEOF
17834
17835fi
17836
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017837
17838cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017839#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017840_ACEOF
17841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017842{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17843echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17844if test "${ac_cv_struct_tm+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017846else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017847 cat >conftest.$ac_ext <<_ACEOF
17848/* confdefs.h. */
17849_ACEOF
17850cat confdefs.h >>conftest.$ac_ext
17851cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017852/* end confdefs.h. */
17853#include <sys/types.h>
17854#include <time.h>
17855
17856int
17857main ()
17858{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017859struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017860 ;
17861 return 0;
17862}
17863_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017864rm -f conftest.$ac_objext
17865if { (ac_try="$ac_compile"
17866case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17869esac
17870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_compile") 2>conftest.er1
17872 ac_status=$?
17873 grep -v '^ *+' conftest.er1 >conftest.err
17874 rm -f conftest.er1
17875 cat conftest.err >&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } &&
17878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17879 { (case "(($ac_try" in
17880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881 *) ac_try_echo=$ac_try;;
17882esac
17883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17884 (eval "$ac_try") 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; } &&
17888 { ac_try='test -s conftest.$ac_objext'
17889 { (case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17892esac
17893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_try") 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017898 ac_cv_struct_tm=time.h
17899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017900 echo "$as_me: failed program was:" >&5
17901sed 's/^/| /' conftest.$ac_ext >&5
17902
17903 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017905
Reid Spencera773bd52006-08-04 18:18:08 +000017906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017908{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17909echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017910if test $ac_cv_struct_tm = sys/time.h; then
17911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017912cat >>confdefs.h <<\_ACEOF
17913#define TM_IN_SYS_TIME 1
17914_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017915
17916fi
17917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017918{ echo "$as_me:$LINENO: checking for int64_t" >&5
17919echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17920if test "${ac_cv_type_int64_t+set}" = set; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17922else
17923 cat >conftest.$ac_ext <<_ACEOF
17924/* confdefs.h. */
17925_ACEOF
17926cat confdefs.h >>conftest.$ac_ext
17927cat >>conftest.$ac_ext <<_ACEOF
17928/* end confdefs.h. */
17929$ac_includes_default
17930typedef int64_t ac__type_new_;
17931int
17932main ()
17933{
17934if ((ac__type_new_ *) 0)
17935 return 0;
17936if (sizeof (ac__type_new_))
17937 return 0;
17938 ;
17939 return 0;
17940}
17941_ACEOF
17942rm -f conftest.$ac_objext
17943if { (ac_try="$ac_compile"
17944case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17947esac
17948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_compile") 2>conftest.er1
17950 ac_status=$?
17951 grep -v '^ *+' conftest.er1 >conftest.err
17952 rm -f conftest.er1
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
17956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17957 { (case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17960esac
17961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_try") 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; } &&
17966 { ac_try='test -s conftest.$ac_objext'
17967 { (case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17970esac
17971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_try") 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 ac_cv_type_int64_t=yes
17977else
17978 echo "$as_me: failed program was:" >&5
17979sed 's/^/| /' conftest.$ac_ext >&5
17980
17981 ac_cv_type_int64_t=no
17982fi
17983
17984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17985fi
17986{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17987echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17988if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017989
17990cat >>confdefs.h <<_ACEOF
17991#define HAVE_INT64_T 1
17992_ACEOF
17993
17994
17995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017996 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17997echo "$as_me: error: Type int64_t required but not found" >&2;}
17998 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017999fi
18000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018001{ echo "$as_me:$LINENO: checking for uint64_t" >&5
18002echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
18003if test "${ac_cv_type_uint64_t+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18005else
18006 cat >conftest.$ac_ext <<_ACEOF
18007/* confdefs.h. */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
18011/* end confdefs.h. */
18012$ac_includes_default
18013typedef uint64_t ac__type_new_;
18014int
18015main ()
18016{
18017if ((ac__type_new_ *) 0)
18018 return 0;
18019if (sizeof (ac__type_new_))
18020 return 0;
18021 ;
18022 return 0;
18023}
18024_ACEOF
18025rm -f conftest.$ac_objext
18026if { (ac_try="$ac_compile"
18027case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18030esac
18031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_compile") 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18040 { (case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18043esac
18044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_try") 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; } &&
18049 { ac_try='test -s conftest.$ac_objext'
18050 { (case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18053esac
18054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_try") 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 ac_cv_type_uint64_t=yes
18060else
18061 echo "$as_me: failed program was:" >&5
18062sed 's/^/| /' conftest.$ac_ext >&5
18063
18064 ac_cv_type_uint64_t=no
18065fi
18066
18067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18068fi
18069{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18070echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18071if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018072
18073cat >>confdefs.h <<_ACEOF
18074#define HAVE_UINT64_T 1
18075_ACEOF
18076
18077
18078else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018079 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18080echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18081if test "${ac_cv_type_u_int64_t+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18083else
18084 cat >conftest.$ac_ext <<_ACEOF
18085/* confdefs.h. */
18086_ACEOF
18087cat confdefs.h >>conftest.$ac_ext
18088cat >>conftest.$ac_ext <<_ACEOF
18089/* end confdefs.h. */
18090$ac_includes_default
18091typedef u_int64_t ac__type_new_;
18092int
18093main ()
18094{
18095if ((ac__type_new_ *) 0)
18096 return 0;
18097if (sizeof (ac__type_new_))
18098 return 0;
18099 ;
18100 return 0;
18101}
18102_ACEOF
18103rm -f conftest.$ac_objext
18104if { (ac_try="$ac_compile"
18105case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18108esac
18109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_compile") 2>conftest.er1
18111 ac_status=$?
18112 grep -v '^ *+' conftest.er1 >conftest.err
18113 rm -f conftest.er1
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
18117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18118 { (case "(($ac_try" in
18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120 *) ac_try_echo=$ac_try;;
18121esac
18122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123 (eval "$ac_try") 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try='test -s conftest.$ac_objext'
18128 { (case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18131esac
18132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_try") 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
18137 ac_cv_type_u_int64_t=yes
18138else
18139 echo "$as_me: failed program was:" >&5
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
18142 ac_cv_type_u_int64_t=no
18143fi
18144
18145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18146fi
18147{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18148echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18149if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018150
18151cat >>confdefs.h <<_ACEOF
18152#define HAVE_U_INT64_T 1
18153_ACEOF
18154
18155
Misha Brukmanceca9042004-09-02 23:02:30 +000018156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018157 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18158echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18159 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018160fi
18161
John Criswell679ff312004-09-02 18:44:44 +000018162fi
18163
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018164
18165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018166
18167
18168
18169
18170
18171
18172
Reid Spencerdf3be822006-01-23 08:15:53 +000018173for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018174do
18175as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18176{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18177echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18178if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18180else
18181 cat >conftest.$ac_ext <<_ACEOF
18182/* confdefs.h. */
18183_ACEOF
18184cat confdefs.h >>conftest.$ac_ext
18185cat >>conftest.$ac_ext <<_ACEOF
18186/* end confdefs.h. */
18187/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18189#define $ac_func innocuous_$ac_func
18190
18191/* System header to define __stub macros and hopefully few prototypes,
18192 which can conflict with char $ac_func (); below.
18193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18194 <limits.h> exists even on freestanding compilers. */
18195
18196#ifdef __STDC__
18197# include <limits.h>
18198#else
18199# include <assert.h>
18200#endif
18201
18202#undef $ac_func
18203
18204/* Override any GCC internal prototype to avoid an error.
18205 Use char because int might match the return type of a GCC
18206 builtin and then its argument prototype would still apply. */
18207#ifdef __cplusplus
18208extern "C"
18209#endif
18210char $ac_func ();
18211/* The GNU C library defines this for functions which it implements
18212 to always fail with ENOSYS. Some functions are actually named
18213 something starting with __ and the normal name is an alias. */
18214#if defined __stub_$ac_func || defined __stub___$ac_func
18215choke me
18216#endif
18217
18218int
18219main ()
18220{
18221return $ac_func ();
18222 ;
18223 return 0;
18224}
18225_ACEOF
18226rm -f conftest.$ac_objext conftest$ac_exeext
18227if { (ac_try="$ac_link"
18228case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231esac
18232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_link") 2>conftest.er1
18234 ac_status=$?
18235 grep -v '^ *+' conftest.er1 >conftest.err
18236 rm -f conftest.er1
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244esac
18245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18254esac
18255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_try") 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 eval "$as_ac_var=yes"
18261else
18262 echo "$as_me: failed program was:" >&5
18263sed 's/^/| /' conftest.$ac_ext >&5
18264
18265 eval "$as_ac_var=no"
18266fi
18267
18268rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18270fi
18271ac_res=`eval echo '${'$as_ac_var'}'`
18272 { echo "$as_me:$LINENO: result: $ac_res" >&5
18273echo "${ECHO_T}$ac_res" >&6; }
18274if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018275 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018277_ACEOF
18278
18279fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018280done
John Criswell7a73b802003-06-30 21:59:07 +000018281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018282
18283
18284
18285
Reid Spencer96cf5872007-07-13 10:05:30 +000018286for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018287do
18288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18289{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18291if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18293else
18294 cat >conftest.$ac_ext <<_ACEOF
18295/* confdefs.h. */
18296_ACEOF
18297cat confdefs.h >>conftest.$ac_ext
18298cat >>conftest.$ac_ext <<_ACEOF
18299/* end confdefs.h. */
18300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18302#define $ac_func innocuous_$ac_func
18303
18304/* System header to define __stub macros and hopefully few prototypes,
18305 which can conflict with char $ac_func (); below.
18306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18307 <limits.h> exists even on freestanding compilers. */
18308
18309#ifdef __STDC__
18310# include <limits.h>
18311#else
18312# include <assert.h>
18313#endif
18314
18315#undef $ac_func
18316
18317/* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18320#ifdef __cplusplus
18321extern "C"
18322#endif
18323char $ac_func ();
18324/* The GNU C library defines this for functions which it implements
18325 to always fail with ENOSYS. Some functions are actually named
18326 something starting with __ and the normal name is an alias. */
18327#if defined __stub_$ac_func || defined __stub___$ac_func
18328choke me
18329#endif
18330
18331int
18332main ()
18333{
18334return $ac_func ();
18335 ;
18336 return 0;
18337}
18338_ACEOF
18339rm -f conftest.$ac_objext conftest$ac_exeext
18340if { (ac_try="$ac_link"
18341case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18344esac
18345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_link") 2>conftest.er1
18347 ac_status=$?
18348 grep -v '^ *+' conftest.er1 >conftest.err
18349 rm -f conftest.er1
18350 cat conftest.err >&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } &&
18353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18354 { (case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357esac
18358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_try") 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; } &&
18363 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18373 eval "$as_ac_var=yes"
18374else
18375 echo "$as_me: failed program was:" >&5
18376sed 's/^/| /' conftest.$ac_ext >&5
18377
18378 eval "$as_ac_var=no"
18379fi
18380
18381rm -f core conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
18383fi
18384ac_res=`eval echo '${'$as_ac_var'}'`
18385 { echo "$as_me:$LINENO: result: $ac_res" >&5
18386echo "${ECHO_T}$ac_res" >&6; }
18387if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018388 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018390_ACEOF
18391
18392fi
18393done
18394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018395
18396
18397
18398
18399
Reid Spencerb90645c2007-02-16 19:17:20 +000018400for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018401do
18402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18403{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18405if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18407else
18408 cat >conftest.$ac_ext <<_ACEOF
18409/* confdefs.h. */
18410_ACEOF
18411cat confdefs.h >>conftest.$ac_ext
18412cat >>conftest.$ac_ext <<_ACEOF
18413/* end confdefs.h. */
18414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18416#define $ac_func innocuous_$ac_func
18417
18418/* System header to define __stub macros and hopefully few prototypes,
18419 which can conflict with char $ac_func (); below.
18420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421 <limits.h> exists even on freestanding compilers. */
18422
18423#ifdef __STDC__
18424# include <limits.h>
18425#else
18426# include <assert.h>
18427#endif
18428
18429#undef $ac_func
18430
18431/* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18434#ifdef __cplusplus
18435extern "C"
18436#endif
18437char $ac_func ();
18438/* The GNU C library defines this for functions which it implements
18439 to always fail with ENOSYS. Some functions are actually named
18440 something starting with __ and the normal name is an alias. */
18441#if defined __stub_$ac_func || defined __stub___$ac_func
18442choke me
18443#endif
18444
18445int
18446main ()
18447{
18448return $ac_func ();
18449 ;
18450 return 0;
18451}
18452_ACEOF
18453rm -f conftest.$ac_objext conftest$ac_exeext
18454if { (ac_try="$ac_link"
18455case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_link") 2>conftest.er1
18461 ac_status=$?
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
18467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18471esac
18472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest$ac_exeext'
18478 { (case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18481esac
18482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_try") 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 eval "$as_ac_var=yes"
18488else
18489 echo "$as_me: failed program was:" >&5
18490sed 's/^/| /' conftest.$ac_ext >&5
18491
18492 eval "$as_ac_var=no"
18493fi
18494
18495rm -f core conftest.err conftest.$ac_objext \
18496 conftest$ac_exeext conftest.$ac_ext
18497fi
18498ac_res=`eval echo '${'$as_ac_var'}'`
18499 { echo "$as_me:$LINENO: result: $ac_res" >&5
18500echo "${ECHO_T}$ac_res" >&6; }
18501if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018502 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018503#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018504_ACEOF
18505
18506fi
18507done
18508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018509
18510
18511
Reid Spencerb90645c2007-02-16 19:17:20 +000018512for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018513do
18514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18515{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18517if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519else
18520 cat >conftest.$ac_ext <<_ACEOF
18521/* confdefs.h. */
18522_ACEOF
18523cat confdefs.h >>conftest.$ac_ext
18524cat >>conftest.$ac_ext <<_ACEOF
18525/* end confdefs.h. */
18526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18528#define $ac_func innocuous_$ac_func
18529
18530/* System header to define __stub macros and hopefully few prototypes,
18531 which can conflict with char $ac_func (); below.
18532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18533 <limits.h> exists even on freestanding compilers. */
18534
18535#ifdef __STDC__
18536# include <limits.h>
18537#else
18538# include <assert.h>
18539#endif
18540
18541#undef $ac_func
18542
18543/* Override any GCC internal prototype to avoid an error.
18544 Use char because int might match the return type of a GCC
18545 builtin and then its argument prototype would still apply. */
18546#ifdef __cplusplus
18547extern "C"
18548#endif
18549char $ac_func ();
18550/* The GNU C library defines this for functions which it implements
18551 to always fail with ENOSYS. Some functions are actually named
18552 something starting with __ and the normal name is an alias. */
18553#if defined __stub_$ac_func || defined __stub___$ac_func
18554choke me
18555#endif
18556
18557int
18558main ()
18559{
18560return $ac_func ();
18561 ;
18562 return 0;
18563}
18564_ACEOF
18565rm -f conftest.$ac_objext conftest$ac_exeext
18566if { (ac_try="$ac_link"
18567case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18570esac
18571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_link") 2>conftest.er1
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18583esac
18584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; } &&
18589 { ac_try='test -s conftest$ac_exeext'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593esac
18594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 eval "$as_ac_var=yes"
18600else
18601 echo "$as_me: failed program was:" >&5
18602sed 's/^/| /' conftest.$ac_ext >&5
18603
18604 eval "$as_ac_var=no"
18605fi
18606
18607rm -f core conftest.err conftest.$ac_objext \
18608 conftest$ac_exeext conftest.$ac_ext
18609fi
18610ac_res=`eval echo '${'$as_ac_var'}'`
18611 { echo "$as_me:$LINENO: result: $ac_res" >&5
18612echo "${ECHO_T}$ac_res" >&6; }
18613if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018614 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018615#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018616_ACEOF
18617
18618fi
18619done
18620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018621
18622
18623
18624
18625
Eric Christophere4291822010-04-16 05:14:21 +000018626
18627for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018628do
18629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18630{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18632if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18634else
18635 cat >conftest.$ac_ext <<_ACEOF
18636/* confdefs.h. */
18637_ACEOF
18638cat confdefs.h >>conftest.$ac_ext
18639cat >>conftest.$ac_ext <<_ACEOF
18640/* end confdefs.h. */
18641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18643#define $ac_func innocuous_$ac_func
18644
18645/* System header to define __stub macros and hopefully few prototypes,
18646 which can conflict with char $ac_func (); below.
18647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18648 <limits.h> exists even on freestanding compilers. */
18649
18650#ifdef __STDC__
18651# include <limits.h>
18652#else
18653# include <assert.h>
18654#endif
18655
18656#undef $ac_func
18657
18658/* Override any GCC internal prototype to avoid an error.
18659 Use char because int might match the return type of a GCC
18660 builtin and then its argument prototype would still apply. */
18661#ifdef __cplusplus
18662extern "C"
18663#endif
18664char $ac_func ();
18665/* The GNU C library defines this for functions which it implements
18666 to always fail with ENOSYS. Some functions are actually named
18667 something starting with __ and the normal name is an alias. */
18668#if defined __stub_$ac_func || defined __stub___$ac_func
18669choke me
18670#endif
18671
18672int
18673main ()
18674{
18675return $ac_func ();
18676 ;
18677 return 0;
18678}
18679_ACEOF
18680rm -f conftest.$ac_objext conftest$ac_exeext
18681if { (ac_try="$ac_link"
18682case "(($ac_try" in
18683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684 *) ac_try_echo=$ac_try;;
18685esac
18686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687 (eval "$ac_link") 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18695 { (case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698esac
18699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_try") 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest$ac_exeext'
18705 { (case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18708esac
18709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_try") 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 eval "$as_ac_var=yes"
18715else
18716 echo "$as_me: failed program was:" >&5
18717sed 's/^/| /' conftest.$ac_ext >&5
18718
18719 eval "$as_ac_var=no"
18720fi
18721
18722rm -f core conftest.err conftest.$ac_objext \
18723 conftest$ac_exeext conftest.$ac_ext
18724fi
18725ac_res=`eval echo '${'$as_ac_var'}'`
18726 { echo "$as_me:$LINENO: result: $ac_res" >&5
18727echo "${ECHO_T}$ac_res" >&6; }
18728if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018729 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018731_ACEOF
18732
18733fi
18734done
Reid Spencerdf3be822006-01-23 08:15:53 +000018735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018736
18737
18738
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018739for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018740do
18741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18742{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18744if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746else
18747 cat >conftest.$ac_ext <<_ACEOF
18748/* confdefs.h. */
18749_ACEOF
18750cat confdefs.h >>conftest.$ac_ext
18751cat >>conftest.$ac_ext <<_ACEOF
18752/* end confdefs.h. */
18753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18755#define $ac_func innocuous_$ac_func
18756
18757/* System header to define __stub macros and hopefully few prototypes,
18758 which can conflict with char $ac_func (); below.
18759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18760 <limits.h> exists even on freestanding compilers. */
18761
18762#ifdef __STDC__
18763# include <limits.h>
18764#else
18765# include <assert.h>
18766#endif
18767
18768#undef $ac_func
18769
18770/* Override any GCC internal prototype to avoid an error.
18771 Use char because int might match the return type of a GCC
18772 builtin and then its argument prototype would still apply. */
18773#ifdef __cplusplus
18774extern "C"
18775#endif
18776char $ac_func ();
18777/* The GNU C library defines this for functions which it implements
18778 to always fail with ENOSYS. Some functions are actually named
18779 something starting with __ and the normal name is an alias. */
18780#if defined __stub_$ac_func || defined __stub___$ac_func
18781choke me
18782#endif
18783
18784int
18785main ()
18786{
18787return $ac_func ();
18788 ;
18789 return 0;
18790}
18791_ACEOF
18792rm -f conftest.$ac_objext conftest$ac_exeext
18793if { (ac_try="$ac_link"
18794case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797esac
18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_link") 2>conftest.er1
18800 ac_status=$?
18801 grep -v '^ *+' conftest.er1 >conftest.err
18802 rm -f conftest.er1
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18807 { (case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18810esac
18811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_try") 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; } &&
18816 { ac_try='test -s conftest$ac_exeext'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18820esac
18821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826 eval "$as_ac_var=yes"
18827else
18828 echo "$as_me: failed program was:" >&5
18829sed 's/^/| /' conftest.$ac_ext >&5
18830
18831 eval "$as_ac_var=no"
18832fi
18833
18834rm -f core conftest.err conftest.$ac_objext \
18835 conftest$ac_exeext conftest.$ac_ext
18836fi
18837ac_res=`eval echo '${'$as_ac_var'}'`
18838 { echo "$as_me:$LINENO: result: $ac_res" >&5
18839echo "${ECHO_T}$ac_res" >&6; }
18840if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018841 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018843_ACEOF
18844
18845fi
18846done
18847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018848
18849
18850
18851
Chris Lattner511f11d2005-11-14 07:25:50 +000018852for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018853do
18854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18855{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18857if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
18860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18868#define $ac_func innocuous_$ac_func
18869
18870/* System header to define __stub macros and hopefully few prototypes,
18871 which can conflict with char $ac_func (); below.
18872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18873 <limits.h> exists even on freestanding compilers. */
18874
18875#ifdef __STDC__
18876# include <limits.h>
18877#else
18878# include <assert.h>
18879#endif
18880
18881#undef $ac_func
18882
18883/* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18886#ifdef __cplusplus
18887extern "C"
18888#endif
18889char $ac_func ();
18890/* The GNU C library defines this for functions which it implements
18891 to always fail with ENOSYS. Some functions are actually named
18892 something starting with __ and the normal name is an alias. */
18893#if defined __stub_$ac_func || defined __stub___$ac_func
18894choke me
18895#endif
18896
18897int
18898main ()
18899{
18900return $ac_func ();
18901 ;
18902 return 0;
18903}
18904_ACEOF
18905rm -f conftest.$ac_objext conftest$ac_exeext
18906if { (ac_try="$ac_link"
18907case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18910esac
18911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_link") 2>conftest.er1
18913 ac_status=$?
18914 grep -v '^ *+' conftest.er1 >conftest.err
18915 rm -f conftest.er1
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } &&
18919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18920 { (case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923esac
18924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_try") 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18933esac
18934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 eval "$as_ac_var=yes"
18940else
18941 echo "$as_me: failed program was:" >&5
18942sed 's/^/| /' conftest.$ac_ext >&5
18943
18944 eval "$as_ac_var=no"
18945fi
18946
18947rm -f core conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
18949fi
18950ac_res=`eval echo '${'$as_ac_var'}'`
18951 { echo "$as_me:$LINENO: result: $ac_res" >&5
18952echo "${ECHO_T}$ac_res" >&6; }
18953if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018954 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018956_ACEOF
18957
18958fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018959done
John Criswell7a73b802003-06-30 21:59:07 +000018960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018961
18962
18963
18964
Daniel Dunbar3e462932011-02-03 02:40:02 +000018965
18966for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018967do
18968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973else
18974 cat >conftest.$ac_ext <<_ACEOF
18975/* confdefs.h. */
18976_ACEOF
18977cat confdefs.h >>conftest.$ac_ext
18978cat >>conftest.$ac_ext <<_ACEOF
18979/* end confdefs.h. */
18980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18982#define $ac_func innocuous_$ac_func
18983
18984/* System header to define __stub macros and hopefully few prototypes,
18985 which can conflict with char $ac_func (); below.
18986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18987 <limits.h> exists even on freestanding compilers. */
18988
18989#ifdef __STDC__
18990# include <limits.h>
18991#else
18992# include <assert.h>
18993#endif
18994
18995#undef $ac_func
18996
18997/* Override any GCC internal prototype to avoid an error.
18998 Use char because int might match the return type of a GCC
18999 builtin and then its argument prototype would still apply. */
19000#ifdef __cplusplus
19001extern "C"
19002#endif
19003char $ac_func ();
19004/* The GNU C library defines this for functions which it implements
19005 to always fail with ENOSYS. Some functions are actually named
19006 something starting with __ and the normal name is an alias. */
19007#if defined __stub_$ac_func || defined __stub___$ac_func
19008choke me
19009#endif
19010
19011int
19012main ()
19013{
19014return $ac_func ();
19015 ;
19016 return 0;
19017}
19018_ACEOF
19019rm -f conftest.$ac_objext conftest$ac_exeext
19020if { (ac_try="$ac_link"
19021case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19024esac
19025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_link") 2>conftest.er1
19027 ac_status=$?
19028 grep -v '^ *+' conftest.er1 >conftest.err
19029 rm -f conftest.er1
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } &&
19033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19034 { (case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19037esac
19038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_try") 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; } &&
19043 { ac_try='test -s conftest$ac_exeext'
19044 { (case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19047esac
19048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 (eval "$ac_try") 2>&5
19050 ac_status=$?
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 eval "$as_ac_var=yes"
19054else
19055 echo "$as_me: failed program was:" >&5
19056sed 's/^/| /' conftest.$ac_ext >&5
19057
19058 eval "$as_ac_var=no"
19059fi
19060
19061rm -f core conftest.err conftest.$ac_objext \
19062 conftest$ac_exeext conftest.$ac_ext
19063fi
19064ac_res=`eval echo '${'$as_ac_var'}'`
19065 { echo "$as_me:$LINENO: result: $ac_res" >&5
19066echo "${ECHO_T}$ac_res" >&6; }
19067if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019068 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019070_ACEOF
19071
19072fi
19073done
19074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019075{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19076echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19077if test "${llvm_cv_c_printf_a+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019079else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019080 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019081ac_cpp='$CPP $CPPFLAGS'
19082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19084ac_compiler_gnu=$ac_cv_c_compiler_gnu
19085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019086 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019087 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019089 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019091 /* confdefs.h. */
19092_ACEOF
19093cat confdefs.h >>conftest.$ac_ext
19094cat >>conftest.$ac_ext <<_ACEOF
19095/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019096
John Criswella0137d32003-10-13 16:22:01 +000019097#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019098#include <stdlib.h>
19099
John Criswella0137d32003-10-13 16:22:01 +000019100int
19101main ()
19102{
19103
Reid Spencer2706f8c2004-09-19 23:53:36 +000019104volatile double A, B;
19105char Buffer[100];
19106A = 1;
19107A /= 10.0;
19108sprintf(Buffer, "%a", A);
19109B = atof(Buffer);
19110if (A != B)
19111 return (1);
19112if (A != 0x1.999999999999ap-4)
19113 return (1);
19114return (0);
John Criswella0137d32003-10-13 16:22:01 +000019115 ;
19116 return 0;
19117}
19118_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019119rm -f conftest$ac_exeext
19120if { (ac_try="$ac_link"
19121case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19124esac
19125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19130 { (case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19133esac
19134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_try") 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019139 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019141 echo "$as_me: program exited with status $ac_status" >&5
19142echo "$as_me: failed program was:" >&5
19143sed 's/^/| /' conftest.$ac_ext >&5
19144
19145( exit $ac_status )
19146llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000019149fi
Reid Spencera773bd52006-08-04 18:18:08 +000019150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019151
Reid Spencer2706f8c2004-09-19 23:53:36 +000019152 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019153ac_cpp='$CPP $CPPFLAGS'
19154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19156ac_compiler_gnu=$ac_cv_c_compiler_gnu
19157
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019159{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19160echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019161 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019163cat >>confdefs.h <<\_ACEOF
19164#define HAVE_PRINTF_A 1
19165_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019166
Reid Spencer2706f8c2004-09-19 23:53:36 +000019167 fi
John Criswella0137d32003-10-13 16:22:01 +000019168
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019170{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19171echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19172if test "${ac_cv_func_rand48+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019174else
Reid Spencera773bd52006-08-04 18:18:08 +000019175 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019176ac_cpp='$CXXCPP $CPPFLAGS'
19177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019181 cat >conftest.$ac_ext <<_ACEOF
19182/* confdefs.h. */
19183_ACEOF
19184cat confdefs.h >>conftest.$ac_ext
19185cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019186/* end confdefs.h. */
19187#include <stdlib.h>
19188int
19189main ()
19190{
19191srand48(0);lrand48();drand48();
19192 ;
19193 return 0;
19194}
19195_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019196rm -f conftest.$ac_objext
19197if { (ac_try="$ac_compile"
19198case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19201esac
19202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_compile") 2>conftest.er1
19204 ac_status=$?
19205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
19210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19211 { (case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19214esac
19215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_try") 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try='test -s conftest.$ac_objext'
19221 { (case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19224esac
19225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_try") 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019230 ac_cv_func_rand48=yes
19231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019232 echo "$as_me: failed program was:" >&5
19233sed 's/^/| /' conftest.$ac_ext >&5
19234
19235 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019237
Reid Spencera773bd52006-08-04 18:18:08 +000019238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019239 ac_ext=c
19240ac_cpp='$CPP $CPPFLAGS'
19241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19243ac_compiler_gnu=$ac_cv_c_compiler_gnu
19244
19245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019246{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19247echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019248
19249if test "$ac_cv_func_rand48" = "yes" ; then
19250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019251cat >>confdefs.h <<\_ACEOF
19252#define HAVE_RAND48 1
19253_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019254
19255fi
John Criswell0021c312004-02-13 21:57:29 +000019256
19257
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000019258{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19259echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19260if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19262else
19263 cat >conftest.$ac_ext <<_ACEOF
19264/* confdefs.h. */
19265_ACEOF
19266cat confdefs.h >>conftest.$ac_ext
19267cat >>conftest.$ac_ext <<_ACEOF
19268/* end confdefs.h. */
19269$ac_includes_default
19270int
19271main ()
19272{
19273#ifndef strerror_s
19274 char *p = (char *) strerror_s;
19275 return !p;
19276#endif
19277
19278 ;
19279 return 0;
19280}
19281_ACEOF
19282rm -f conftest.$ac_objext
19283if { (ac_try="$ac_compile"
19284case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19287esac
19288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_compile") 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
19296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19297 { (case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19300esac
19301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_try") 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest.$ac_objext'
19307 { (case "(($ac_try" in
19308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309 *) ac_try_echo=$ac_try;;
19310esac
19311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312 (eval "$ac_try") 2>&5
19313 ac_status=$?
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; }; then
19316 ac_cv_have_decl_strerror_s=yes
19317else
19318 echo "$as_me: failed program was:" >&5
19319sed 's/^/| /' conftest.$ac_ext >&5
19320
19321 ac_cv_have_decl_strerror_s=no
19322fi
19323
19324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19325fi
19326{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19327echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19328if test $ac_cv_have_decl_strerror_s = yes; then
19329
19330cat >>confdefs.h <<_ACEOF
19331#define HAVE_DECL_STRERROR_S 1
19332_ACEOF
19333
19334
19335else
19336 cat >>confdefs.h <<_ACEOF
19337#define HAVE_DECL_STRERROR_S 0
19338_ACEOF
19339
19340
19341fi
19342
19343
19344
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000019345if test "$llvm_cv_os_type" = "MingW" ; then
19346 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19347echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19348if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19350else
19351 ac_check_lib_save_LIBS=$LIBS
19352LIBS="-lgcc $LIBS"
19353cat >conftest.$ac_ext <<_ACEOF
19354/* confdefs.h. */
19355_ACEOF
19356cat confdefs.h >>conftest.$ac_ext
19357cat >>conftest.$ac_ext <<_ACEOF
19358/* end confdefs.h. */
19359
19360/* Override any GCC internal prototype to avoid an error.
19361 Use char because int might match the return type of a GCC
19362 builtin and then its argument prototype would still apply. */
19363#ifdef __cplusplus
19364extern "C"
19365#endif
19366char _alloca ();
19367int
19368main ()
19369{
19370return _alloca ();
19371 ;
19372 return 0;
19373}
19374_ACEOF
19375rm -f conftest.$ac_objext conftest$ac_exeext
19376if { (ac_try="$ac_link"
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_link") 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_exeext'
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
19409 ac_cv_lib_gcc__alloca=yes
19410else
19411 echo "$as_me: failed program was:" >&5
19412sed 's/^/| /' conftest.$ac_ext >&5
19413
19414 ac_cv_lib_gcc__alloca=no
19415fi
19416
19417rm -f core conftest.err conftest.$ac_objext \
19418 conftest$ac_exeext conftest.$ac_ext
19419LIBS=$ac_check_lib_save_LIBS
19420fi
19421{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19422echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19423if test $ac_cv_lib_gcc__alloca = yes; then
19424
19425cat >>confdefs.h <<\_ACEOF
19426#define HAVE__ALLOCA 1
19427_ACEOF
19428
19429fi
19430
19431 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19432echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19433if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19435else
19436 ac_check_lib_save_LIBS=$LIBS
19437LIBS="-lgcc $LIBS"
19438cat >conftest.$ac_ext <<_ACEOF
19439/* confdefs.h. */
19440_ACEOF
19441cat confdefs.h >>conftest.$ac_ext
19442cat >>conftest.$ac_ext <<_ACEOF
19443/* end confdefs.h. */
19444
19445/* Override any GCC internal prototype to avoid an error.
19446 Use char because int might match the return type of a GCC
19447 builtin and then its argument prototype would still apply. */
19448#ifdef __cplusplus
19449extern "C"
19450#endif
19451char __alloca ();
19452int
19453main ()
19454{
19455return __alloca ();
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext conftest$ac_exeext
19461if { (ac_try="$ac_link"
19462case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19465esac
19466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_link") 2>conftest.er1
19468 ac_status=$?
19469 grep -v '^ *+' conftest.er1 >conftest.err
19470 rm -f conftest.er1
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } &&
19474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19475 { (case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19478esac
19479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_try") 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; } &&
19484 { ac_try='test -s conftest$ac_exeext'
19485 { (case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19488esac
19489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_try") 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_cv_lib_gcc___alloca=yes
19495else
19496 echo "$as_me: failed program was:" >&5
19497sed 's/^/| /' conftest.$ac_ext >&5
19498
19499 ac_cv_lib_gcc___alloca=no
19500fi
19501
19502rm -f core conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
19504LIBS=$ac_check_lib_save_LIBS
19505fi
19506{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19507echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19508if test $ac_cv_lib_gcc___alloca = yes; then
19509
19510cat >>confdefs.h <<\_ACEOF
19511#define HAVE___ALLOCA 1
19512_ACEOF
19513
19514fi
19515
19516 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19517echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19518if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19520else
19521 ac_check_lib_save_LIBS=$LIBS
19522LIBS="-lgcc $LIBS"
19523cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529
19530/* Override any GCC internal prototype to avoid an error.
19531 Use char because int might match the return type of a GCC
19532 builtin and then its argument prototype would still apply. */
19533#ifdef __cplusplus
19534extern "C"
19535#endif
19536char __chkstk ();
19537int
19538main ()
19539{
19540return __chkstk ();
19541 ;
19542 return 0;
19543}
19544_ACEOF
19545rm -f conftest.$ac_objext conftest$ac_exeext
19546if { (ac_try="$ac_link"
19547case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19550esac
19551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_link") 2>conftest.er1
19553 ac_status=$?
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19560 { (case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19563esac
19564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_try") 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest$ac_exeext'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19573esac
19574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_cv_lib_gcc___chkstk=yes
19580else
19581 echo "$as_me: failed program was:" >&5
19582sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 ac_cv_lib_gcc___chkstk=no
19585fi
19586
19587rm -f core conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
19589LIBS=$ac_check_lib_save_LIBS
19590fi
19591{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19592echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19593if test $ac_cv_lib_gcc___chkstk = yes; then
19594
19595cat >>confdefs.h <<\_ACEOF
19596#define HAVE___CHKSTK 1
19597_ACEOF
19598
19599fi
19600
19601 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19602echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19603if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19605else
19606 ac_check_lib_save_LIBS=$LIBS
19607LIBS="-lgcc $LIBS"
19608cat >conftest.$ac_ext <<_ACEOF
19609/* confdefs.h. */
19610_ACEOF
19611cat confdefs.h >>conftest.$ac_ext
19612cat >>conftest.$ac_ext <<_ACEOF
19613/* end confdefs.h. */
19614
19615/* Override any GCC internal prototype to avoid an error.
19616 Use char because int might match the return type of a GCC
19617 builtin and then its argument prototype would still apply. */
19618#ifdef __cplusplus
19619extern "C"
19620#endif
19621char ___chkstk ();
19622int
19623main ()
19624{
19625return ___chkstk ();
19626 ;
19627 return 0;
19628}
19629_ACEOF
19630rm -f conftest.$ac_objext conftest$ac_exeext
19631if { (ac_try="$ac_link"
19632case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19635esac
19636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_link") 2>conftest.er1
19638 ac_status=$?
19639 grep -v '^ *+' conftest.er1 >conftest.err
19640 rm -f conftest.er1
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
19644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19645 { (case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648esac
19649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_try") 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest$ac_exeext'
19655 { (case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19658esac
19659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_try") 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_cv_lib_gcc____chkstk=yes
19665else
19666 echo "$as_me: failed program was:" >&5
19667sed 's/^/| /' conftest.$ac_ext >&5
19668
19669 ac_cv_lib_gcc____chkstk=no
19670fi
19671
19672rm -f core conftest.err conftest.$ac_objext \
19673 conftest$ac_exeext conftest.$ac_ext
19674LIBS=$ac_check_lib_save_LIBS
19675fi
19676{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19677echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19678if test $ac_cv_lib_gcc____chkstk = yes; then
19679
19680cat >>confdefs.h <<\_ACEOF
19681#define HAVE____CHKSTK 1
19682_ACEOF
19683
19684fi
19685
19686
19687 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19688echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19689if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19691else
19692 ac_check_lib_save_LIBS=$LIBS
19693LIBS="-lgcc $LIBS"
19694cat >conftest.$ac_ext <<_ACEOF
19695/* confdefs.h. */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
19699/* end confdefs.h. */
19700
19701/* Override any GCC internal prototype to avoid an error.
19702 Use char because int might match the return type of a GCC
19703 builtin and then its argument prototype would still apply. */
19704#ifdef __cplusplus
19705extern "C"
19706#endif
19707char __ashldi3 ();
19708int
19709main ()
19710{
19711return __ashldi3 ();
19712 ;
19713 return 0;
19714}
19715_ACEOF
19716rm -f conftest.$ac_objext conftest$ac_exeext
19717if { (ac_try="$ac_link"
19718case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19721esac
19722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_link") 2>conftest.er1
19724 ac_status=$?
19725 grep -v '^ *+' conftest.er1 >conftest.err
19726 rm -f conftest.er1
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } &&
19730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19731 { (case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734esac
19735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_try") 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } &&
19740 { ac_try='test -s conftest$ac_exeext'
19741 { (case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744esac
19745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_try") 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_cv_lib_gcc___ashldi3=yes
19751else
19752 echo "$as_me: failed program was:" >&5
19753sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 ac_cv_lib_gcc___ashldi3=no
19756fi
19757
19758rm -f core conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19760LIBS=$ac_check_lib_save_LIBS
19761fi
19762{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19763echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19764if test $ac_cv_lib_gcc___ashldi3 = yes; then
19765
19766cat >>confdefs.h <<\_ACEOF
19767#define HAVE___ASHLDI3 1
19768_ACEOF
19769
19770fi
19771
19772 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19773echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19774if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19776else
19777 ac_check_lib_save_LIBS=$LIBS
19778LIBS="-lgcc $LIBS"
19779cat >conftest.$ac_ext <<_ACEOF
19780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
19784/* end confdefs.h. */
19785
19786/* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19789#ifdef __cplusplus
19790extern "C"
19791#endif
19792char __ashrdi3 ();
19793int
19794main ()
19795{
19796return __ashrdi3 ();
19797 ;
19798 return 0;
19799}
19800_ACEOF
19801rm -f conftest.$ac_objext conftest$ac_exeext
19802if { (ac_try="$ac_link"
19803case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19806esac
19807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_link") 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19816 { (case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19819esac
19820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_try") 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest$ac_exeext'
19826 { (case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19829esac
19830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_try") 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19835 ac_cv_lib_gcc___ashrdi3=yes
19836else
19837 echo "$as_me: failed program was:" >&5
19838sed 's/^/| /' conftest.$ac_ext >&5
19839
19840 ac_cv_lib_gcc___ashrdi3=no
19841fi
19842
19843rm -f core conftest.err conftest.$ac_objext \
19844 conftest$ac_exeext conftest.$ac_ext
19845LIBS=$ac_check_lib_save_LIBS
19846fi
19847{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19848echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19849if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19850
19851cat >>confdefs.h <<\_ACEOF
19852#define HAVE___ASHRDI3 1
19853_ACEOF
19854
19855fi
19856
19857 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19858echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19859if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19861else
19862 ac_check_lib_save_LIBS=$LIBS
19863LIBS="-lgcc $LIBS"
19864cat >conftest.$ac_ext <<_ACEOF
19865/* confdefs.h. */
19866_ACEOF
19867cat confdefs.h >>conftest.$ac_ext
19868cat >>conftest.$ac_ext <<_ACEOF
19869/* end confdefs.h. */
19870
19871/* Override any GCC internal prototype to avoid an error.
19872 Use char because int might match the return type of a GCC
19873 builtin and then its argument prototype would still apply. */
19874#ifdef __cplusplus
19875extern "C"
19876#endif
19877char __divdi3 ();
19878int
19879main ()
19880{
19881return __divdi3 ();
19882 ;
19883 return 0;
19884}
19885_ACEOF
19886rm -f conftest.$ac_objext conftest$ac_exeext
19887if { (ac_try="$ac_link"
19888case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19891esac
19892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_link") 2>conftest.er1
19894 ac_status=$?
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } &&
19900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19901 { (case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19904esac
19905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_try") 2>&5
19907 ac_status=$?
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest$ac_exeext'
19911 { (case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914esac
19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_try") 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_cv_lib_gcc___divdi3=yes
19921else
19922 echo "$as_me: failed program was:" >&5
19923sed 's/^/| /' conftest.$ac_ext >&5
19924
19925 ac_cv_lib_gcc___divdi3=no
19926fi
19927
19928rm -f core conftest.err conftest.$ac_objext \
19929 conftest$ac_exeext conftest.$ac_ext
19930LIBS=$ac_check_lib_save_LIBS
19931fi
19932{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19933echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19934if test $ac_cv_lib_gcc___divdi3 = yes; then
19935
19936cat >>confdefs.h <<\_ACEOF
19937#define HAVE___DIVDI3 1
19938_ACEOF
19939
19940fi
19941
19942 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19943echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19944if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19946else
19947 ac_check_lib_save_LIBS=$LIBS
19948LIBS="-lgcc $LIBS"
19949cat >conftest.$ac_ext <<_ACEOF
19950/* confdefs.h. */
19951_ACEOF
19952cat confdefs.h >>conftest.$ac_ext
19953cat >>conftest.$ac_ext <<_ACEOF
19954/* end confdefs.h. */
19955
19956/* Override any GCC internal prototype to avoid an error.
19957 Use char because int might match the return type of a GCC
19958 builtin and then its argument prototype would still apply. */
19959#ifdef __cplusplus
19960extern "C"
19961#endif
19962char __fixdfdi ();
19963int
19964main ()
19965{
19966return __fixdfdi ();
19967 ;
19968 return 0;
19969}
19970_ACEOF
19971rm -f conftest.$ac_objext conftest$ac_exeext
19972if { (ac_try="$ac_link"
19973case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19976esac
19977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_link") 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19986 { (case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989esac
19990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_try") 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest$ac_exeext'
19996 { (case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
19999esac
20000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_try") 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ac_cv_lib_gcc___fixdfdi=yes
20006else
20007 echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010 ac_cv_lib_gcc___fixdfdi=no
20011fi
20012
20013rm -f core conftest.err conftest.$ac_objext \
20014 conftest$ac_exeext conftest.$ac_ext
20015LIBS=$ac_check_lib_save_LIBS
20016fi
20017{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20018echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20019if test $ac_cv_lib_gcc___fixdfdi = yes; then
20020
20021cat >>confdefs.h <<\_ACEOF
20022#define HAVE___FIXDFDI 1
20023_ACEOF
20024
20025fi
20026
20027 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20028echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20029if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20031else
20032 ac_check_lib_save_LIBS=$LIBS
20033LIBS="-lgcc $LIBS"
20034cat >conftest.$ac_ext <<_ACEOF
20035/* confdefs.h. */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h. */
20040
20041/* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20044#ifdef __cplusplus
20045extern "C"
20046#endif
20047char __fixsfdi ();
20048int
20049main ()
20050{
20051return __fixsfdi ();
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056rm -f conftest.$ac_objext conftest$ac_exeext
20057if { (ac_try="$ac_link"
20058case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061esac
20062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_link") 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
20070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20071 { (case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20074esac
20075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_try") 2>&5
20077 ac_status=$?
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; } &&
20080 { ac_try='test -s conftest$ac_exeext'
20081 { (case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084esac
20085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_try") 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_lib_gcc___fixsfdi=yes
20091else
20092 echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
20095 ac_cv_lib_gcc___fixsfdi=no
20096fi
20097
20098rm -f core conftest.err conftest.$ac_objext \
20099 conftest$ac_exeext conftest.$ac_ext
20100LIBS=$ac_check_lib_save_LIBS
20101fi
20102{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20103echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20104if test $ac_cv_lib_gcc___fixsfdi = yes; then
20105
20106cat >>confdefs.h <<\_ACEOF
20107#define HAVE___FIXSFDI 1
20108_ACEOF
20109
20110fi
20111
20112 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20113echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20114if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116else
20117 ac_check_lib_save_LIBS=$LIBS
20118LIBS="-lgcc $LIBS"
20119cat >conftest.$ac_ext <<_ACEOF
20120/* confdefs.h. */
20121_ACEOF
20122cat confdefs.h >>conftest.$ac_ext
20123cat >>conftest.$ac_ext <<_ACEOF
20124/* end confdefs.h. */
20125
20126/* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
20129#ifdef __cplusplus
20130extern "C"
20131#endif
20132char __floatdidf ();
20133int
20134main ()
20135{
20136return __floatdidf ();
20137 ;
20138 return 0;
20139}
20140_ACEOF
20141rm -f conftest.$ac_objext conftest$ac_exeext
20142if { (ac_try="$ac_link"
20143case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20146esac
20147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_link") 2>conftest.er1
20149 ac_status=$?
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } &&
20155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159esac
20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; } &&
20165 { ac_try='test -s conftest$ac_exeext'
20166 { (case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169esac
20170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_try") 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_cv_lib_gcc___floatdidf=yes
20176else
20177 echo "$as_me: failed program was:" >&5
20178sed 's/^/| /' conftest.$ac_ext >&5
20179
20180 ac_cv_lib_gcc___floatdidf=no
20181fi
20182
20183rm -f core conftest.err conftest.$ac_objext \
20184 conftest$ac_exeext conftest.$ac_ext
20185LIBS=$ac_check_lib_save_LIBS
20186fi
20187{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20188echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20189if test $ac_cv_lib_gcc___floatdidf = yes; then
20190
20191cat >>confdefs.h <<\_ACEOF
20192#define HAVE___FLOATDIDF 1
20193_ACEOF
20194
20195fi
20196
20197 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20198echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20199if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20200 echo $ECHO_N "(cached) $ECHO_C" >&6
20201else
20202 ac_check_lib_save_LIBS=$LIBS
20203LIBS="-lgcc $LIBS"
20204cat >conftest.$ac_ext <<_ACEOF
20205/* confdefs.h. */
20206_ACEOF
20207cat confdefs.h >>conftest.$ac_ext
20208cat >>conftest.$ac_ext <<_ACEOF
20209/* end confdefs.h. */
20210
20211/* Override any GCC internal prototype to avoid an error.
20212 Use char because int might match the return type of a GCC
20213 builtin and then its argument prototype would still apply. */
20214#ifdef __cplusplus
20215extern "C"
20216#endif
20217char __lshrdi3 ();
20218int
20219main ()
20220{
20221return __lshrdi3 ();
20222 ;
20223 return 0;
20224}
20225_ACEOF
20226rm -f conftest.$ac_objext conftest$ac_exeext
20227if { (ac_try="$ac_link"
20228case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20231esac
20232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_link") 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
20240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20241 { (case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20244esac
20245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_try") 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; } &&
20250 { ac_try='test -s conftest$ac_exeext'
20251 { (case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254esac
20255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_try") 2>&5
20257 ac_status=$?
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_lib_gcc___lshrdi3=yes
20261else
20262 echo "$as_me: failed program was:" >&5
20263sed 's/^/| /' conftest.$ac_ext >&5
20264
20265 ac_cv_lib_gcc___lshrdi3=no
20266fi
20267
20268rm -f core conftest.err conftest.$ac_objext \
20269 conftest$ac_exeext conftest.$ac_ext
20270LIBS=$ac_check_lib_save_LIBS
20271fi
20272{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20273echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20274if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20275
20276cat >>confdefs.h <<\_ACEOF
20277#define HAVE___LSHRDI3 1
20278_ACEOF
20279
20280fi
20281
20282 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20283echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20284if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20286else
20287 ac_check_lib_save_LIBS=$LIBS
20288LIBS="-lgcc $LIBS"
20289cat >conftest.$ac_ext <<_ACEOF
20290/* confdefs.h. */
20291_ACEOF
20292cat confdefs.h >>conftest.$ac_ext
20293cat >>conftest.$ac_ext <<_ACEOF
20294/* end confdefs.h. */
20295
20296/* Override any GCC internal prototype to avoid an error.
20297 Use char because int might match the return type of a GCC
20298 builtin and then its argument prototype would still apply. */
20299#ifdef __cplusplus
20300extern "C"
20301#endif
20302char __moddi3 ();
20303int
20304main ()
20305{
20306return __moddi3 ();
20307 ;
20308 return 0;
20309}
20310_ACEOF
20311rm -f conftest.$ac_objext conftest$ac_exeext
20312if { (ac_try="$ac_link"
20313case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20316esac
20317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_link") 2>conftest.er1
20319 ac_status=$?
20320 grep -v '^ *+' conftest.er1 >conftest.err
20321 rm -f conftest.er1
20322 cat conftest.err >&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } &&
20325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20326 { (case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329esac
20330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_try") 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; } &&
20335 { ac_try='test -s conftest$ac_exeext'
20336 { (case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20339esac
20340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_try") 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_cv_lib_gcc___moddi3=yes
20346else
20347 echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 ac_cv_lib_gcc___moddi3=no
20351fi
20352
20353rm -f core conftest.err conftest.$ac_objext \
20354 conftest$ac_exeext conftest.$ac_ext
20355LIBS=$ac_check_lib_save_LIBS
20356fi
20357{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20358echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20359if test $ac_cv_lib_gcc___moddi3 = yes; then
20360
20361cat >>confdefs.h <<\_ACEOF
20362#define HAVE___MODDI3 1
20363_ACEOF
20364
20365fi
20366
20367 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20368echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20369if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20371else
20372 ac_check_lib_save_LIBS=$LIBS
20373LIBS="-lgcc $LIBS"
20374cat >conftest.$ac_ext <<_ACEOF
20375/* confdefs.h. */
20376_ACEOF
20377cat confdefs.h >>conftest.$ac_ext
20378cat >>conftest.$ac_ext <<_ACEOF
20379/* end confdefs.h. */
20380
20381/* Override any GCC internal prototype to avoid an error.
20382 Use char because int might match the return type of a GCC
20383 builtin and then its argument prototype would still apply. */
20384#ifdef __cplusplus
20385extern "C"
20386#endif
20387char __udivdi3 ();
20388int
20389main ()
20390{
20391return __udivdi3 ();
20392 ;
20393 return 0;
20394}
20395_ACEOF
20396rm -f conftest.$ac_objext conftest$ac_exeext
20397if { (ac_try="$ac_link"
20398case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20401esac
20402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_link") 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411 { (case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20414esac
20415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_try") 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try='test -s conftest$ac_exeext'
20421 { (case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424esac
20425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_try") 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_lib_gcc___udivdi3=yes
20431else
20432 echo "$as_me: failed program was:" >&5
20433sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ac_cv_lib_gcc___udivdi3=no
20436fi
20437
20438rm -f core conftest.err conftest.$ac_objext \
20439 conftest$ac_exeext conftest.$ac_ext
20440LIBS=$ac_check_lib_save_LIBS
20441fi
20442{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20443echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20444if test $ac_cv_lib_gcc___udivdi3 = yes; then
20445
20446cat >>confdefs.h <<\_ACEOF
20447#define HAVE___UDIVDI3 1
20448_ACEOF
20449
20450fi
20451
20452 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20453echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20454if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20456else
20457 ac_check_lib_save_LIBS=$LIBS
20458LIBS="-lgcc $LIBS"
20459cat >conftest.$ac_ext <<_ACEOF
20460/* confdefs.h. */
20461_ACEOF
20462cat confdefs.h >>conftest.$ac_ext
20463cat >>conftest.$ac_ext <<_ACEOF
20464/* end confdefs.h. */
20465
20466/* Override any GCC internal prototype to avoid an error.
20467 Use char because int might match the return type of a GCC
20468 builtin and then its argument prototype would still apply. */
20469#ifdef __cplusplus
20470extern "C"
20471#endif
20472char __umoddi3 ();
20473int
20474main ()
20475{
20476return __umoddi3 ();
20477 ;
20478 return 0;
20479}
20480_ACEOF
20481rm -f conftest.$ac_objext conftest$ac_exeext
20482if { (ac_try="$ac_link"
20483case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486esac
20487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_link") 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20496 { (case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20499esac
20500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_try") 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; } &&
20505 { ac_try='test -s conftest$ac_exeext'
20506 { (case "(($ac_try" in
20507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508 *) ac_try_echo=$ac_try;;
20509esac
20510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511 (eval "$ac_try") 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; }; then
20515 ac_cv_lib_gcc___umoddi3=yes
20516else
20517 echo "$as_me: failed program was:" >&5
20518sed 's/^/| /' conftest.$ac_ext >&5
20519
20520 ac_cv_lib_gcc___umoddi3=no
20521fi
20522
20523rm -f core conftest.err conftest.$ac_objext \
20524 conftest$ac_exeext conftest.$ac_ext
20525LIBS=$ac_check_lib_save_LIBS
20526fi
20527{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20528echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20529if test $ac_cv_lib_gcc___umoddi3 = yes; then
20530
20531cat >>confdefs.h <<\_ACEOF
20532#define HAVE___UMODDI3 1
20533_ACEOF
20534
20535fi
20536
20537
20538 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20539echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20540if test "${ac_cv_lib_gcc___main+set}" = set; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20542else
20543 ac_check_lib_save_LIBS=$LIBS
20544LIBS="-lgcc $LIBS"
20545cat >conftest.$ac_ext <<_ACEOF
20546/* confdefs.h. */
20547_ACEOF
20548cat confdefs.h >>conftest.$ac_ext
20549cat >>conftest.$ac_ext <<_ACEOF
20550/* end confdefs.h. */
20551
20552/* Override any GCC internal prototype to avoid an error.
20553 Use char because int might match the return type of a GCC
20554 builtin and then its argument prototype would still apply. */
20555#ifdef __cplusplus
20556extern "C"
20557#endif
20558char __main ();
20559int
20560main ()
20561{
20562return __main ();
20563 ;
20564 return 0;
20565}
20566_ACEOF
20567rm -f conftest.$ac_objext conftest$ac_exeext
20568if { (ac_try="$ac_link"
20569case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572esac
20573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_link") 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20582 { (case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20585esac
20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_try") 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try='test -s conftest$ac_exeext'
20592 { (case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20595esac
20596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_try") 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 ac_cv_lib_gcc___main=yes
20602else
20603 echo "$as_me: failed program was:" >&5
20604sed 's/^/| /' conftest.$ac_ext >&5
20605
20606 ac_cv_lib_gcc___main=no
20607fi
20608
20609rm -f core conftest.err conftest.$ac_objext \
20610 conftest$ac_exeext conftest.$ac_ext
20611LIBS=$ac_check_lib_save_LIBS
20612fi
20613{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20614echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20615if test $ac_cv_lib_gcc___main = yes; then
20616
20617cat >>confdefs.h <<\_ACEOF
20618#define HAVE___MAIN 1
20619_ACEOF
20620
20621fi
20622
20623 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20624echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20625if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20627else
20628 ac_check_lib_save_LIBS=$LIBS
20629LIBS="-lgcc $LIBS"
20630cat >conftest.$ac_ext <<_ACEOF
20631/* confdefs.h. */
20632_ACEOF
20633cat confdefs.h >>conftest.$ac_ext
20634cat >>conftest.$ac_ext <<_ACEOF
20635/* end confdefs.h. */
20636
20637/* Override any GCC internal prototype to avoid an error.
20638 Use char because int might match the return type of a GCC
20639 builtin and then its argument prototype would still apply. */
20640#ifdef __cplusplus
20641extern "C"
20642#endif
20643char __cmpdi2 ();
20644int
20645main ()
20646{
20647return __cmpdi2 ();
20648 ;
20649 return 0;
20650}
20651_ACEOF
20652rm -f conftest.$ac_objext conftest$ac_exeext
20653if { (ac_try="$ac_link"
20654case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20657esac
20658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_link") 2>conftest.er1
20660 ac_status=$?
20661 grep -v '^ *+' conftest.er1 >conftest.err
20662 rm -f conftest.er1
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } &&
20666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20667 { (case "(($ac_try" in
20668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20669 *) ac_try_echo=$ac_try;;
20670esac
20671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20672 (eval "$ac_try") 2>&5
20673 ac_status=$?
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; } &&
20676 { ac_try='test -s conftest$ac_exeext'
20677 { (case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20680esac
20681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_try") 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 ac_cv_lib_gcc___cmpdi2=yes
20687else
20688 echo "$as_me: failed program was:" >&5
20689sed 's/^/| /' conftest.$ac_ext >&5
20690
20691 ac_cv_lib_gcc___cmpdi2=no
20692fi
20693
20694rm -f core conftest.err conftest.$ac_objext \
20695 conftest$ac_exeext conftest.$ac_ext
20696LIBS=$ac_check_lib_save_LIBS
20697fi
20698{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20699echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20700if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20701
20702cat >>confdefs.h <<\_ACEOF
20703#define HAVE___CMPDI2 1
20704_ACEOF
20705
20706fi
20707
20708fi
20709
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000020710if test "$llvm_cv_os_type" = "MingW" ; then
20711 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20712echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20713 cat >conftest.$ac_ext <<_ACEOF
20714#include <windows.h>
20715#include <imagehlp.h>
20716extern void foo(PENUMLOADED_MODULES_CALLBACK);
20717extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20718_ACEOF
20719rm -f conftest.$ac_objext
20720if { (ac_try="$ac_compile"
20721case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724esac
20725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_compile") 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20734 { (case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20737esac
20738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_try") 2>&5
20740 ac_status=$?
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; } &&
20743 { ac_try='test -s conftest.$ac_objext'
20744 { (case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20747esac
20748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_try") 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20753
20754 { echo "$as_me:$LINENO: result: yes" >&5
20755echo "${ECHO_T}yes" >&6; }
20756 llvm_cv_win32_elmcb_pcstr="PCSTR"
20757
20758else
20759 echo "$as_me: failed program was:" >&5
20760sed 's/^/| /' conftest.$ac_ext >&5
20761
20762
20763 { echo "$as_me:$LINENO: result: no" >&5
20764echo "${ECHO_T}no" >&6; }
20765 llvm_cv_win32_elmcb_pcstr="PSTR"
20766
20767fi
20768
20769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20770
20771cat >>confdefs.h <<_ACEOF
20772#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20773_ACEOF
20774
20775fi
20776
Torok Edwin871384f2010-01-26 08:50:50 +000020777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20779echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20780if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020782else
Reid Spencera773bd52006-08-04 18:18:08 +000020783 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000020784ac_cpp='$CXXCPP $CPPFLAGS'
20785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789 cat >conftest.$ac_ext <<_ACEOF
20790/* confdefs.h. */
20791_ACEOF
20792cat confdefs.h >>conftest.$ac_ext
20793cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020794/* end confdefs.h. */
20795#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020796int
20797main ()
20798{
20799float f; isnan(f);
20800 ;
20801 return 0;
20802}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020803_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020804rm -f conftest.$ac_objext
20805if { (ac_try="$ac_compile"
20806case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20809esac
20810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_compile") 2>conftest.er1
20812 ac_status=$?
20813 grep -v '^ *+' conftest.er1 >conftest.err
20814 rm -f conftest.er1
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } &&
20818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20819 { (case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20822esac
20823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_try") 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; } &&
20828 { ac_try='test -s conftest.$ac_objext'
20829 { (case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20832esac
20833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_try") 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020838 ac_cv_func_isnan_in_math_h=yes
20839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020840 echo "$as_me: failed program was:" >&5
20841sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020845
Reid Spencera773bd52006-08-04 18:18:08 +000020846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020847 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020848ac_cpp='$CPP $CPPFLAGS'
20849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852
20853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020854{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20855echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020856
20857
20858if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020860cat >>confdefs.h <<\_ACEOF
20861#define HAVE_ISNAN_IN_MATH_H 1
20862_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020863
Reid Spencerabec8f92004-10-27 23:03:44 +000020864fi
20865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020866{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20867echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20868if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020870else
Reid Spencera773bd52006-08-04 18:18:08 +000020871 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020872ac_cpp='$CXXCPP $CPPFLAGS'
20873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020877 cat >conftest.$ac_ext <<_ACEOF
20878/* confdefs.h. */
20879_ACEOF
20880cat confdefs.h >>conftest.$ac_ext
20881cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020882/* end confdefs.h. */
20883#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020884int
20885main ()
20886{
20887float f; isnan(f);
20888 ;
20889 return 0;
20890}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020891_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020892rm -f conftest.$ac_objext
20893if { (ac_try="$ac_compile"
20894case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20897esac
20898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_compile") 2>conftest.er1
20900 ac_status=$?
20901 grep -v '^ *+' conftest.er1 >conftest.err
20902 rm -f conftest.er1
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } &&
20906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20907 { (case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20910esac
20911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_try") 2>&5
20913 ac_status=$?
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; } &&
20916 { ac_try='test -s conftest.$ac_objext'
20917 { (case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20920esac
20921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_try") 2>&5
20923 ac_status=$?
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020926 ac_cv_func_isnan_in_cmath=yes
20927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020928 echo "$as_me: failed program was:" >&5
20929sed 's/^/| /' conftest.$ac_ext >&5
20930
20931 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020933
Reid Spencera773bd52006-08-04 18:18:08 +000020934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020935 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020936ac_cpp='$CPP $CPPFLAGS'
20937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939ac_compiler_gnu=$ac_cv_c_compiler_gnu
20940
20941fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020942{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20943echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020944
20945if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020947cat >>confdefs.h <<\_ACEOF
20948#define HAVE_ISNAN_IN_CMATH 1
20949_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020950
Reid Spencerabec8f92004-10-27 23:03:44 +000020951fi
20952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020953{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20954echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20955if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020957else
Reid Spencera773bd52006-08-04 18:18:08 +000020958 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020959ac_cpp='$CXXCPP $CPPFLAGS'
20960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020964 cat >conftest.$ac_ext <<_ACEOF
20965/* confdefs.h. */
20966_ACEOF
20967cat confdefs.h >>conftest.$ac_ext
20968cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020969/* end confdefs.h. */
20970#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020971int
20972main ()
20973{
20974float f; std::isnan(f);
20975 ;
20976 return 0;
20977}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020978_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020979rm -f conftest.$ac_objext
20980if { (ac_try="$ac_compile"
20981case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20984esac
20985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_compile") 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20994 { (case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20997esac
20998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999 (eval "$ac_try") 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } &&
21003 { ac_try='test -s conftest.$ac_objext'
21004 { (case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21007esac
21008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_try") 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021013 ac_cv_func_std_isnan_in_cmath=yes
21014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021015 echo "$as_me: failed program was:" >&5
21016sed 's/^/| /' conftest.$ac_ext >&5
21017
21018 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021020
Reid Spencera773bd52006-08-04 18:18:08 +000021021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021022 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021023ac_cpp='$CPP $CPPFLAGS'
21024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21026ac_compiler_gnu=$ac_cv_c_compiler_gnu
21027
21028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021029{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21030echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021031
21032if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021034cat >>confdefs.h <<\_ACEOF
21035#define HAVE_STD_ISNAN_IN_CMATH 1
21036_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021037
Reid Spencerabec8f92004-10-27 23:03:44 +000021038fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021039
21040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021041{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21042echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21043if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021045else
Reid Spencera773bd52006-08-04 18:18:08 +000021046 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021047ac_cpp='$CXXCPP $CPPFLAGS'
21048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021052 cat >conftest.$ac_ext <<_ACEOF
21053/* confdefs.h. */
21054_ACEOF
21055cat confdefs.h >>conftest.$ac_ext
21056cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021057/* end confdefs.h. */
21058#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021059int
21060main ()
21061{
21062float f; isinf(f);
21063 ;
21064 return 0;
21065}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021066_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021067rm -f conftest.$ac_objext
21068if { (ac_try="$ac_compile"
21069case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21072esac
21073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21075 ac_status=$?
21076 grep -v '^ *+' conftest.er1 >conftest.err
21077 rm -f conftest.er1
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } &&
21081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21082 { (case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21085esac
21086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_try") 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; } &&
21091 { ac_try='test -s conftest.$ac_objext'
21092 { (case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21095esac
21096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_try") 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021101 ac_cv_func_isinf_in_math_h=yes
21102else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021103 echo "$as_me: failed program was:" >&5
21104sed 's/^/| /' conftest.$ac_ext >&5
21105
21106 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021108
Reid Spencera773bd52006-08-04 18:18:08 +000021109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021110 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021111ac_cpp='$CPP $CPPFLAGS'
21112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21114ac_compiler_gnu=$ac_cv_c_compiler_gnu
21115
21116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021117{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21118echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021119
21120if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021121
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021122cat >>confdefs.h <<\_ACEOF
21123#define HAVE_ISINF_IN_MATH_H 1
21124_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021125
Reid Spencerabec8f92004-10-27 23:03:44 +000021126fi
21127
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021128{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21129echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21130if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021132else
Reid Spencera773bd52006-08-04 18:18:08 +000021133 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021134ac_cpp='$CXXCPP $CPPFLAGS'
21135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021139 cat >conftest.$ac_ext <<_ACEOF
21140/* confdefs.h. */
21141_ACEOF
21142cat confdefs.h >>conftest.$ac_ext
21143cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021144/* end confdefs.h. */
21145#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021146int
21147main ()
21148{
21149float f; isinf(f);
21150 ;
21151 return 0;
21152}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021153_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021154rm -f conftest.$ac_objext
21155if { (ac_try="$ac_compile"
21156case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21159esac
21160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161 (eval "$ac_compile") 2>conftest.er1
21162 ac_status=$?
21163 grep -v '^ *+' conftest.er1 >conftest.err
21164 rm -f conftest.er1
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21169 { (case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21172esac
21173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_try") 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; } &&
21178 { ac_try='test -s conftest.$ac_objext'
21179 { (case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21182esac
21183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_try") 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021188 ac_cv_func_isinf_in_cmath=yes
21189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021190 echo "$as_me: failed program was:" >&5
21191sed 's/^/| /' conftest.$ac_ext >&5
21192
21193 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021195
Reid Spencera773bd52006-08-04 18:18:08 +000021196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021197 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021198ac_cpp='$CPP $CPPFLAGS'
21199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21201ac_compiler_gnu=$ac_cv_c_compiler_gnu
21202
21203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021204{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21205echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021206
21207if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209cat >>confdefs.h <<\_ACEOF
21210#define HAVE_ISINF_IN_CMATH 1
21211_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021212
Reid Spencerabec8f92004-10-27 23:03:44 +000021213fi
21214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021215{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21216echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21217if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021219else
Reid Spencera773bd52006-08-04 18:18:08 +000021220 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021221ac_cpp='$CXXCPP $CPPFLAGS'
21222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021226 cat >conftest.$ac_ext <<_ACEOF
21227/* confdefs.h. */
21228_ACEOF
21229cat confdefs.h >>conftest.$ac_ext
21230cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021231/* end confdefs.h. */
21232#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021233int
21234main ()
21235{
21236float f; std::isinf(f)}
21237 ;
21238 return 0;
21239}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021240_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021241rm -f conftest.$ac_objext
21242if { (ac_try="$ac_compile"
21243case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21246esac
21247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248 (eval "$ac_compile") 2>conftest.er1
21249 ac_status=$?
21250 grep -v '^ *+' conftest.er1 >conftest.err
21251 rm -f conftest.er1
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } &&
21255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21256 { (case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21259esac
21260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261 (eval "$ac_try") 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest.$ac_objext'
21266 { (case "(($ac_try" in
21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21269esac
21270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271 (eval "$ac_try") 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021275 ac_cv_func_std_isinf_in_cmath=yes
21276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021277 echo "$as_me: failed program was:" >&5
21278sed 's/^/| /' conftest.$ac_ext >&5
21279
21280 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021282
Reid Spencera773bd52006-08-04 18:18:08 +000021283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021284 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021285ac_cpp='$CPP $CPPFLAGS'
21286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21288ac_compiler_gnu=$ac_cv_c_compiler_gnu
21289
21290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021291{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21292echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021293
21294if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021296cat >>confdefs.h <<\_ACEOF
21297#define HAVE_STD_ISINF_IN_CMATH 1
21298_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021299
Reid Spencerabec8f92004-10-27 23:03:44 +000021300fi
21301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021302{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21303echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21304if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000021306else
Reid Spencera773bd52006-08-04 18:18:08 +000021307 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000021308ac_cpp='$CXXCPP $CPPFLAGS'
21309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021313 cat >conftest.$ac_ext <<_ACEOF
21314/* confdefs.h. */
21315_ACEOF
21316cat confdefs.h >>conftest.$ac_ext
21317cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021318/* end confdefs.h. */
21319#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021320int
21321main ()
21322{
21323float f; finite(f);
21324 ;
21325 return 0;
21326}
Brian Gaeked59a6472004-07-21 03:33:58 +000021327_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021328rm -f conftest.$ac_objext
21329if { (ac_try="$ac_compile"
21330case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21333esac
21334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_compile") 2>conftest.er1
21336 ac_status=$?
21337 grep -v '^ *+' conftest.er1 >conftest.err
21338 rm -f conftest.er1
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
21342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21343 { (case "(($ac_try" in
21344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345 *) ac_try_echo=$ac_try;;
21346esac
21347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_try") 2>&5
21349 ac_status=$?
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; } &&
21352 { ac_try='test -s conftest.$ac_objext'
21353 { (case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21356esac
21357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_try") 2>&5
21359 ac_status=$?
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021362 ac_cv_func_finite_in_ieeefp_h=yes
21363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021364 echo "$as_me: failed program was:" >&5
21365sed 's/^/| /' conftest.$ac_ext >&5
21366
21367 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000021368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021369
Reid Spencera773bd52006-08-04 18:18:08 +000021370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021371 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000021372ac_cpp='$CPP $CPPFLAGS'
21373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375ac_compiler_gnu=$ac_cv_c_compiler_gnu
21376
21377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021378{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21379echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021380
Brian Gaeke6802b552004-10-28 05:06:45 +000021381if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383cat >>confdefs.h <<\_ACEOF
21384#define HAVE_FINITE_IN_IEEEFP_H 1
21385_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021386
Reid Spencerabec8f92004-10-27 23:03:44 +000021387fi
21388
21389
21390
Reid Spencer30fe5262007-01-20 07:48:49 +000021391if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000021392
21393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021394for ac_header in stdlib.h unistd.h
21395do
21396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21402fi
21403ac_res=`eval echo '${'$as_ac_Header'}'`
21404 { echo "$as_me:$LINENO: result: $ac_res" >&5
21405echo "${ECHO_T}$ac_res" >&6; }
21406else
21407 # Is the header compilable?
21408{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21410cat >conftest.$ac_ext <<_ACEOF
21411/* confdefs.h. */
21412_ACEOF
21413cat confdefs.h >>conftest.$ac_ext
21414cat >>conftest.$ac_ext <<_ACEOF
21415/* end confdefs.h. */
21416$ac_includes_default
21417#include <$ac_header>
21418_ACEOF
21419rm -f conftest.$ac_objext
21420if { (ac_try="$ac_compile"
21421case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21424esac
21425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_compile") 2>conftest.er1
21427 ac_status=$?
21428 grep -v '^ *+' conftest.er1 >conftest.err
21429 rm -f conftest.er1
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21434 { (case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21437esac
21438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_try") 2>&5
21440 ac_status=$?
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
21444 { (case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21447esac
21448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_try") 2>&5
21450 ac_status=$?
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21453 ac_header_compiler=yes
21454else
21455 echo "$as_me: failed program was:" >&5
21456sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021458 ac_header_compiler=no
21459fi
21460
21461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21463echo "${ECHO_T}$ac_header_compiler" >&6; }
21464
21465# Is the header present?
21466{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21468cat >conftest.$ac_ext <<_ACEOF
21469/* confdefs.h. */
21470_ACEOF
21471cat confdefs.h >>conftest.$ac_ext
21472cat >>conftest.$ac_ext <<_ACEOF
21473/* end confdefs.h. */
21474#include <$ac_header>
21475_ACEOF
21476if { (ac_try="$ac_cpp conftest.$ac_ext"
21477case "(($ac_try" in
21478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479 *) ac_try_echo=$ac_try;;
21480esac
21481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21483 ac_status=$?
21484 grep -v '^ *+' conftest.er1 >conftest.err
21485 rm -f conftest.er1
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } >/dev/null; then
21489 if test -s conftest.err; then
21490 ac_cpp_err=$ac_c_preproc_warn_flag
21491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21492 else
21493 ac_cpp_err=
21494 fi
21495else
21496 ac_cpp_err=yes
21497fi
21498if test -z "$ac_cpp_err"; then
21499 ac_header_preproc=yes
21500else
21501 echo "$as_me: failed program was:" >&5
21502sed 's/^/| /' conftest.$ac_ext >&5
21503
21504 ac_header_preproc=no
21505fi
21506
21507rm -f conftest.err conftest.$ac_ext
21508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21509echo "${ECHO_T}$ac_header_preproc" >&6; }
21510
21511# So? What about this header?
21512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21513 yes:no: )
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21518 ac_header_preproc=yes
21519 ;;
21520 no:yes:* )
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21533 ( cat <<\_ASBOX
21534## ----------------------------------- ##
21535## Report this to llvmbugs@cs.uiuc.edu ##
21536## ----------------------------------- ##
21537_ASBOX
21538 ) | sed "s/^/$as_me: WARNING: /" >&2
21539 ;;
21540esac
21541{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21545else
21546 eval "$as_ac_Header=\$ac_header_preproc"
21547fi
21548ac_res=`eval echo '${'$as_ac_Header'}'`
21549 { echo "$as_me:$LINENO: result: $ac_res" >&5
21550echo "${ECHO_T}$ac_res" >&6; }
21551
21552fi
21553if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021554 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021556_ACEOF
21557
21558fi
21559
21560done
21561
21562
21563for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021564do
21565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21570else
21571 cat >conftest.$ac_ext <<_ACEOF
21572/* confdefs.h. */
21573_ACEOF
21574cat confdefs.h >>conftest.$ac_ext
21575cat >>conftest.$ac_ext <<_ACEOF
21576/* end confdefs.h. */
21577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21579#define $ac_func innocuous_$ac_func
21580
21581/* System header to define __stub macros and hopefully few prototypes,
21582 which can conflict with char $ac_func (); below.
21583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21584 <limits.h> exists even on freestanding compilers. */
21585
21586#ifdef __STDC__
21587# include <limits.h>
21588#else
21589# include <assert.h>
21590#endif
21591
21592#undef $ac_func
21593
21594/* Override any GCC internal prototype to avoid an error.
21595 Use char because int might match the return type of a GCC
21596 builtin and then its argument prototype would still apply. */
21597#ifdef __cplusplus
21598extern "C"
21599#endif
21600char $ac_func ();
21601/* The GNU C library defines this for functions which it implements
21602 to always fail with ENOSYS. Some functions are actually named
21603 something starting with __ and the normal name is an alias. */
21604#if defined __stub_$ac_func || defined __stub___$ac_func
21605choke me
21606#endif
21607
21608int
21609main ()
21610{
21611return $ac_func ();
21612 ;
21613 return 0;
21614}
21615_ACEOF
21616rm -f conftest.$ac_objext conftest$ac_exeext
21617if { (ac_try="$ac_link"
21618case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21621esac
21622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_link") 2>conftest.er1
21624 ac_status=$?
21625 grep -v '^ *+' conftest.er1 >conftest.err
21626 rm -f conftest.er1
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } &&
21630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21631 { (case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21634esac
21635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_try") 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; } &&
21640 { ac_try='test -s conftest$ac_exeext'
21641 { (case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21644esac
21645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_try") 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 eval "$as_ac_var=yes"
21651else
21652 echo "$as_me: failed program was:" >&5
21653sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 eval "$as_ac_var=no"
21656fi
21657
21658rm -f core conftest.err conftest.$ac_objext \
21659 conftest$ac_exeext conftest.$ac_ext
21660fi
21661ac_res=`eval echo '${'$as_ac_var'}'`
21662 { echo "$as_me:$LINENO: result: $ac_res" >&5
21663echo "${ECHO_T}$ac_res" >&6; }
21664if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021665 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021667_ACEOF
21668
21669fi
21670done
21671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021672{ echo "$as_me:$LINENO: checking for working mmap" >&5
21673echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21674if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021677 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021678 ac_cv_func_mmap_fixed_mapped=no
21679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021680 cat >conftest.$ac_ext <<_ACEOF
21681/* confdefs.h. */
21682_ACEOF
21683cat confdefs.h >>conftest.$ac_ext
21684cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021686$ac_includes_default
21687/* malloc might have been renamed as rpl_malloc. */
21688#undef malloc
21689
21690/* Thanks to Mike Haertel and Jim Avera for this test.
21691 Here is a matrix of mmap possibilities:
21692 mmap private not fixed
21693 mmap private fixed at somewhere currently unmapped
21694 mmap private fixed at somewhere already mapped
21695 mmap shared not fixed
21696 mmap shared fixed at somewhere currently unmapped
21697 mmap shared fixed at somewhere already mapped
21698 For private mappings, we should verify that changes cannot be read()
21699 back from the file, nor mmap's back from the file at a different
21700 address. (There have been systems where private was not correctly
21701 implemented like the infamous i386 svr4.0, and systems where the
21702 VM page cache was not coherent with the file system buffer cache
21703 like early versions of FreeBSD and possibly contemporary NetBSD.)
21704 For shared mappings, we should conversely verify that changes get
21705 propagated back to all the places they're supposed to be.
21706
21707 Grep wants private fixed already mapped.
21708 The main things grep needs to know about mmap are:
21709 * does it exist and is it safe to write into the mmap'd area
21710 * how to use it (BSD variants) */
21711
21712#include <fcntl.h>
21713#include <sys/mman.h>
21714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021715#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000021716char *malloc ();
21717#endif
21718
21719/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021720#if !HAVE_GETPAGESIZE
21721/* Assume that all systems that can run configure have sys/param.h. */
21722# if !HAVE_SYS_PARAM_H
21723# define HAVE_SYS_PARAM_H 1
21724# endif
21725
John Criswell7a73b802003-06-30 21:59:07 +000021726# ifdef _SC_PAGESIZE
21727# define getpagesize() sysconf(_SC_PAGESIZE)
21728# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021729# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000021730# include <sys/param.h>
21731# ifdef EXEC_PAGESIZE
21732# define getpagesize() EXEC_PAGESIZE
21733# else /* no EXEC_PAGESIZE */
21734# ifdef NBPG
21735# define getpagesize() NBPG * CLSIZE
21736# ifndef CLSIZE
21737# define CLSIZE 1
21738# endif /* no CLSIZE */
21739# else /* no NBPG */
21740# ifdef NBPC
21741# define getpagesize() NBPC
21742# else /* no NBPC */
21743# ifdef PAGESIZE
21744# define getpagesize() PAGESIZE
21745# endif /* PAGESIZE */
21746# endif /* no NBPC */
21747# endif /* no NBPG */
21748# endif /* no EXEC_PAGESIZE */
21749# else /* no HAVE_SYS_PARAM_H */
21750# define getpagesize() 8192 /* punt totally */
21751# endif /* no HAVE_SYS_PARAM_H */
21752# endif /* no _SC_PAGESIZE */
21753
21754#endif /* no HAVE_GETPAGESIZE */
21755
21756int
21757main ()
21758{
21759 char *data, *data2, *data3;
21760 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021761 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000021762
21763 pagesize = getpagesize ();
21764
21765 /* First, make a file with some known garbage in it. */
21766 data = (char *) malloc (pagesize);
21767 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000021768 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021769 for (i = 0; i < pagesize; ++i)
21770 *(data + i) = rand ();
21771 umask (0);
21772 fd = creat ("conftest.mmap", 0600);
21773 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021774 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021775 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021776 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021777 close (fd);
21778
21779 /* Next, try to mmap the file at a fixed address which already has
21780 something else allocated at it. If we can, also make sure that
21781 we see the same garbage. */
21782 fd = open ("conftest.mmap", O_RDWR);
21783 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021784 return 1;
21785 data2 = (char *) malloc (2 * pagesize);
21786 if (!data2)
21787 return 1;
21788 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021789 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000021790 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021792 for (i = 0; i < pagesize; ++i)
21793 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021794 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021795
21796 /* Finally, make sure that changes to the mapped area do not
21797 percolate back to the file as seen by read(). (This is a bug on
21798 some variants of i386 svr4.0.) */
21799 for (i = 0; i < pagesize; ++i)
21800 *(data2 + i) = *(data2 + i) + 1;
21801 data3 = (char *) malloc (pagesize);
21802 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021803 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021804 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021805 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021806 for (i = 0; i < pagesize; ++i)
21807 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021808 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021809 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000021810 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021811}
21812_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021813rm -f conftest$ac_exeext
21814if { (ac_try="$ac_link"
21815case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21818esac
21819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_link") 2>&5
21821 ac_status=$?
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21824 { (case "(($ac_try" in
21825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826 *) ac_try_echo=$ac_try;;
21827esac
21828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829 (eval "$ac_try") 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021833 ac_cv_func_mmap_fixed_mapped=yes
21834else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835 echo "$as_me: program exited with status $ac_status" >&5
21836echo "$as_me: failed program was:" >&5
21837sed 's/^/| /' conftest.$ac_ext >&5
21838
21839( exit $ac_status )
21840ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000021841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021843fi
Reid Spencera773bd52006-08-04 18:18:08 +000021844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021845
John Criswell7a73b802003-06-30 21:59:07 +000021846fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21848echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021849if test $ac_cv_func_mmap_fixed_mapped = yes; then
21850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021851cat >>confdefs.h <<\_ACEOF
21852#define HAVE_MMAP 1
21853_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021854
21855fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021856rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000021857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021858 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21859echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21860if test "${ac_cv_func_mmap_file+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021862else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021863 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000021864ac_cpp='$CPP $CPPFLAGS'
21865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21867ac_compiler_gnu=$ac_cv_c_compiler_gnu
21868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021869 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021870 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000021873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021874 /* confdefs.h. */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000021879
John Criswell7a73b802003-06-30 21:59:07 +000021880#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000021881#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000021882#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000021883
21884int
21885main ()
21886{
John Criswell7a73b802003-06-30 21:59:07 +000021887
21888 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021889 fd = creat ("foo",0777);
21890 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21891 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021892 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021893 ;
21894 return 0;
21895}
John Criswell7a73b802003-06-30 21:59:07 +000021896_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897rm -f conftest$ac_exeext
21898if { (ac_try="$ac_link"
21899case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21902esac
21903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904 (eval "$ac_link") 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21908 { (case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21911esac
21912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_try") 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021917 ac_cv_func_mmap_file=yes
21918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021919 echo "$as_me: program exited with status $ac_status" >&5
21920echo "$as_me: failed program was:" >&5
21921sed 's/^/| /' conftest.$ac_ext >&5
21922
21923( exit $ac_status )
21924ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021925fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021927fi
Reid Spencera773bd52006-08-04 18:18:08 +000021928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021929
John Criswell7a73b802003-06-30 21:59:07 +000021930 ac_ext=c
21931ac_cpp='$CPP $CPPFLAGS'
21932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934ac_compiler_gnu=$ac_cv_c_compiler_gnu
21935
21936
21937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21939echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021940if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021942cat >>confdefs.h <<\_ACEOF
21943#define HAVE_MMAP_FILE
21944_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021945
21946 MMAP_FILE=yes
21947
21948fi
21949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021950 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21951echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21952if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021954else
Reid Spencer582a23c2004-12-29 07:07:57 +000021955 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021956 ac_cv_need_dev_zero_for_mmap=yes
21957 else
21958 ac_cv_need_dev_zero_for_mmap=no
21959 fi
21960
21961fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021962{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21963echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021964if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021966cat >>confdefs.h <<\_ACEOF
21967#define NEED_DEV_ZERO_FOR_MMAP 1
21968_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021969
21970fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021971
Reid Spencer30fe5262007-01-20 07:48:49 +000021972 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21973 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021974 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21975echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021976 fi
21977 if test "$ac_cv_func_mmap_file" = "no"
21978 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021979 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21980echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021981 fi
John Criswellb13092b2003-07-22 21:00:24 +000021982fi
John Criswell7a73b802003-06-30 21:59:07 +000021983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021984{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21985echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021986ac_ext=cpp
21987ac_cpp='$CXXCPP $CPPFLAGS'
21988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992cat >conftest.$ac_ext <<_ACEOF
21993/* confdefs.h. */
21994_ACEOF
21995cat confdefs.h >>conftest.$ac_ext
21996cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021997/* end confdefs.h. */
21998int main() {
Owen Andersona8603702009-05-19 22:18:56 +000021999 volatile unsigned long val = 1;
22000 __sync_synchronize();
22001 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000022002 __sync_add_and_fetch(&val, 1);
22003 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000022004 return 0;
22005 }
Owen Andersond4b272b2009-05-18 23:58:51 +000022006
22007_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022008rm -f conftest.$ac_objext conftest$ac_exeext
22009if { (ac_try="$ac_link"
22010case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22013esac
22014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_link") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } &&
22022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22023 { (case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22026esac
22027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_try") 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; } &&
22032 { ac_try='test -s conftest$ac_exeext'
22033 { (case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036esac
22037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_try") 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000022042 ac_ext=c
22043ac_cpp='$CPP $CPPFLAGS'
22044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22046ac_compiler_gnu=$ac_cv_c_compiler_gnu
22047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022048 { echo "$as_me:$LINENO: result: yes" >&5
22049echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000022050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022051cat >>confdefs.h <<\_ACEOF
22052#define LLVM_MULTITHREADED 1
22053_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000022054
Owen Andersond4b272b2009-05-18 23:58:51 +000022055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022056 echo "$as_me: failed program was:" >&5
22057sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000022058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022059 { echo "$as_me:$LINENO: result: no" >&5
22060echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000022061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022062cat >>confdefs.h <<\_ACEOF
22063#define LLVM_MULTITHREADED 0
22064_ACEOF
22065
22066 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22067echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000022068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022069
Owen Andersond4b272b2009-05-18 23:58:51 +000022070rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022071 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000022072
John Criswell7a73b802003-06-30 21:59:07 +000022073
Nick Lewycky4372e692009-09-29 06:18:23 +000022074if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022075 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22076echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22077if test "${llvm_cv_linux_mixed+set}" = set; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000022079else
22080 ac_ext=c
22081ac_cpp='$CPP $CPPFLAGS'
22082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22084ac_compiler_gnu=$ac_cv_c_compiler_gnu
22085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022086 cat >conftest.$ac_ext <<_ACEOF
22087/* confdefs.h. */
22088_ACEOF
22089cat confdefs.h >>conftest.$ac_ext
22090cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000022091/* end confdefs.h. */
22092#ifndef __x86_64__
22093 error: Not x86-64 even if uname says so!
22094 #endif
22095
22096int
22097main ()
22098{
22099
22100 ;
22101 return 0;
22102}
22103_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022104rm -f conftest.$ac_objext
22105if { (ac_try="$ac_compile"
22106case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22109esac
22110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_compile") 2>conftest.er1
22112 ac_status=$?
22113 grep -v '^ *+' conftest.er1 >conftest.err
22114 rm -f conftest.er1
22115 cat conftest.err >&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } &&
22118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22119 { (case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122esac
22123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_try") 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; } &&
22128 { ac_try='test -s conftest.$ac_objext'
22129 { (case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132esac
22133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_try") 2>&5
22135 ac_status=$?
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000022138 llvm_cv_linux_mixed=no
22139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022140 echo "$as_me: failed program was:" >&5
22141sed 's/^/| /' conftest.$ac_ext >&5
22142
22143 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000022144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022145
Nick Lewycky4372e692009-09-29 06:18:23 +000022146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147 ac_ext=c
22148ac_cpp='$CPP $CPPFLAGS'
22149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22151ac_compiler_gnu=$ac_cv_c_compiler_gnu
22152
22153
22154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022155{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22156echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000022157
22158 if test "$llvm_cv_linux_mixed" = "yes"; then
22159 llvm_cv_target_arch="x86"
22160 ARCH="x86"
22161 fi
22162fi
22163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022164
Reid Spencer9372f152007-07-30 20:13:24 +000022165for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022166do
22167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22168{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22170if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22172else
22173 cat >conftest.$ac_ext <<_ACEOF
22174/* confdefs.h. */
22175_ACEOF
22176cat confdefs.h >>conftest.$ac_ext
22177cat >>conftest.$ac_ext <<_ACEOF
22178/* end confdefs.h. */
22179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22181#define $ac_func innocuous_$ac_func
22182
22183/* System header to define __stub macros and hopefully few prototypes,
22184 which can conflict with char $ac_func (); below.
22185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22186 <limits.h> exists even on freestanding compilers. */
22187
22188#ifdef __STDC__
22189# include <limits.h>
22190#else
22191# include <assert.h>
22192#endif
22193
22194#undef $ac_func
22195
22196/* Override any GCC internal prototype to avoid an error.
22197 Use char because int might match the return type of a GCC
22198 builtin and then its argument prototype would still apply. */
22199#ifdef __cplusplus
22200extern "C"
22201#endif
22202char $ac_func ();
22203/* The GNU C library defines this for functions which it implements
22204 to always fail with ENOSYS. Some functions are actually named
22205 something starting with __ and the normal name is an alias. */
22206#if defined __stub_$ac_func || defined __stub___$ac_func
22207choke me
22208#endif
22209
22210int
22211main ()
22212{
22213return $ac_func ();
22214 ;
22215 return 0;
22216}
22217_ACEOF
22218rm -f conftest.$ac_objext conftest$ac_exeext
22219if { (ac_try="$ac_link"
22220case "(($ac_try" in
22221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22222 *) ac_try_echo=$ac_try;;
22223esac
22224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22225 (eval "$ac_link") 2>conftest.er1
22226 ac_status=$?
22227 grep -v '^ *+' conftest.er1 >conftest.err
22228 rm -f conftest.er1
22229 cat conftest.err >&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); } &&
22232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22233 { (case "(($ac_try" in
22234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235 *) ac_try_echo=$ac_try;;
22236esac
22237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22238 (eval "$ac_try") 2>&5
22239 ac_status=$?
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); }; } &&
22242 { ac_try='test -s conftest$ac_exeext'
22243 { (case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22246esac
22247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_try") 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; }; then
22252 eval "$as_ac_var=yes"
22253else
22254 echo "$as_me: failed program was:" >&5
22255sed 's/^/| /' conftest.$ac_ext >&5
22256
22257 eval "$as_ac_var=no"
22258fi
22259
22260rm -f core conftest.err conftest.$ac_objext \
22261 conftest$ac_exeext conftest.$ac_ext
22262fi
22263ac_res=`eval echo '${'$as_ac_var'}'`
22264 { echo "$as_me:$LINENO: result: $ac_res" >&5
22265echo "${ECHO_T}$ac_res" >&6; }
22266if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000022267 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000022269_ACEOF
22270
22271fi
22272done
22273
22274
Tobias Grossera84b5672010-11-10 16:31:34 +000022275{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22276echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22277if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22279else
22280 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022281if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022282 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022283 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000022284 if test $? -eq 0 ; then
22285 llvm_cv_llvmgcc_dragonegg="yes"
22286 fi
22287 rm conftest.c
22288fi
22289fi
22290{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22291echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22292
22293if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22294 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sandsfcc482e2011-05-23 16:50:29 +000022295 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
Tobias Grossera84b5672010-11-10 16:31:34 +000022296else
22297 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022298 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022299fi
22300
22301
22302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022303{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22304echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22305if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022307else
22308 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022309if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022310 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022311 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000022312 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022313 if test $? -eq 0 ; then
22314 llvm_cv_llvmgcc_sanity="yes"
22315 fi
22316 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000022317fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022319{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22320echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022321
22322if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022323 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22324echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000022325 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022326 LLVMCC1=$llvmcc1path
22327
Duncan Sands1526b192010-11-25 17:47:42 +000022328 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022329 LLVMCC1PLUS=$llvmcc1pluspath
22330
Reid Spencer502935f2004-12-22 05:56:56 +000022331 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22332 LLVMGCCDIR=$llvmgccdir
22333
Duncan Sands1526b192010-11-25 17:47:42 +000022334 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000022335 LLVMGCC_LANGS=$llvmgcclangs
22336
Tobias Grossera84b5672010-11-10 16:31:34 +000022337 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22338
22339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022340 { echo "$as_me:$LINENO: result: ok" >&5
22341echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000022342fi
22343
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022344SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000022345
22346
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022347SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22348
22349
Reid Spencere9de0912004-08-20 09:03:57 +000022350# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022351# information into substitutions that will end up in Makefile.config.in
22352# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000022353if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000022354 prefix="/usr/local"
22355fi
Reid Spencere9de0912004-08-20 09:03:57 +000022356eval LLVM_PREFIX="${prefix}";
22357eval LLVM_BINDIR="${prefix}/bin";
22358eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000022359eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000022360eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000022361eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000022362eval LLVM_INCLUDEDIR="${prefix}/include";
22363eval LLVM_INFODIR="${prefix}/info";
22364eval LLVM_MANDIR="${prefix}/man";
22365LLVM_CONFIGTIME=`date`
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022377# Place the various directores into the config.h file as #defines so that we
22378# can know about the installation paths within LLVM.
22379
Reid Spencere9de0912004-08-20 09:03:57 +000022380cat >>confdefs.h <<_ACEOF
22381#define LLVM_PREFIX "$LLVM_PREFIX"
22382_ACEOF
22383
22384
22385cat >>confdefs.h <<_ACEOF
22386#define LLVM_BINDIR "$LLVM_BINDIR"
22387_ACEOF
22388
22389
22390cat >>confdefs.h <<_ACEOF
22391#define LLVM_LIBDIR "$LLVM_LIBDIR"
22392_ACEOF
22393
22394
22395cat >>confdefs.h <<_ACEOF
22396#define LLVM_DATADIR "$LLVM_DATADIR"
22397_ACEOF
22398
22399
22400cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000022401#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022402_ACEOF
22403
22404
22405cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022406#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022407_ACEOF
22408
22409
22410cat >>confdefs.h <<_ACEOF
22411#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22412_ACEOF
22413
22414
22415cat >>confdefs.h <<_ACEOF
22416#define LLVM_INFODIR "$LLVM_INFODIR"
22417_ACEOF
22418
22419
22420cat >>confdefs.h <<_ACEOF
22421#define LLVM_MANDIR "$LLVM_MANDIR"
22422_ACEOF
22423
22424
22425cat >>confdefs.h <<_ACEOF
22426#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22427_ACEOF
22428
22429
Eric Christopher790e11c2007-12-01 00:34:39 +000022430cat >>confdefs.h <<_ACEOF
22431#define LLVM_HOSTTRIPLE "$host"
22432_ACEOF
22433
22434
Gordon Henriksenc0efff82007-10-02 09:50:32 +000022435# Determine which bindings to build.
22436if test "$BINDINGS_TO_BUILD" = auto ; then
22437 BINDINGS_TO_BUILD=""
22438 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22439 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22440 fi
22441fi
22442BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22443
22444
22445# This isn't really configurey, but it avoids having to repeat the list in
22446# other files.
22447ALL_BINDINGS=ocaml
22448
22449
Gordon Henriksenf0915682007-10-02 16:42:22 +000022450# Do any work necessary to ensure that bindings have what they need.
22451binding_prereqs_failed=0
22452for a_binding in $BINDINGS_TO_BUILD ; do
22453 case "$a_binding" in
22454 ocaml)
22455 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022456 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22457echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000022458 binding_prereqs_failed=1
22459 fi
22460 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022461 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22462echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000022463 binding_prereqs_failed=1
22464 fi
22465 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022466 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22467echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000022468 fi
22469 if test "x$with_ocaml_libdir" != xauto ; then
22470 OCAML_LIBDIR=$with_ocaml_libdir
22471
22472 else
22473 ocaml_stdlib="`"$OCAMLC" -where`"
22474 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22475 then
22476 # ocaml stdlib is beneath our prefix; use stdlib
22477 OCAML_LIBDIR=$ocaml_stdlib
22478
22479 else
22480 # ocaml stdlib is outside our prefix; use libdir/ocaml
22481 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22482
22483 fi
22484 fi
22485 ;;
22486 esac
22487done
22488if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022489 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22490echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22491 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000022492fi
22493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022494{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22495echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22496if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22497 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022498else
22499 ac_ext=cpp
22500ac_cpp='$CXXCPP $CPPFLAGS'
22501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22504
22505 oldcxxflags="$CXXFLAGS"
22506 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022507 cat >conftest.$ac_ext <<_ACEOF
22508/* confdefs.h. */
22509_ACEOF
22510cat confdefs.h >>conftest.$ac_ext
22511cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022512/* end confdefs.h. */
22513
22514int
22515main ()
22516{
22517
22518 ;
22519 return 0;
22520}
22521_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022522rm -f conftest.$ac_objext
22523if { (ac_try="$ac_compile"
22524case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22527esac
22528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_compile") 2>conftest.er1
22530 ac_status=$?
22531 grep -v '^ *+' conftest.er1 >conftest.err
22532 rm -f conftest.er1
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } &&
22536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22537 { (case "(($ac_try" in
22538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539 *) ac_try_echo=$ac_try;;
22540esac
22541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_try") 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; } &&
22546 { ac_try='test -s conftest.$ac_objext'
22547 { (case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22550esac
22551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_try") 2>&5
22553 ac_status=$?
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022556 llvm_cv_cxx_visibility_inlines_hidden=yes
22557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022558 echo "$as_me: failed program was:" >&5
22559sed 's/^/| /' conftest.$ac_ext >&5
22560
22561 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022562fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022563
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 CXXFLAGS="$oldcxxflags"
22566 ac_ext=c
22567ac_cpp='$CPP $CPPFLAGS'
22568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22570ac_compiler_gnu=$ac_cv_c_compiler_gnu
22571
22572
22573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022574{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22575echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022576if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22577 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22578
22579else
22580 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22581
22582fi
22583
Gordon Henriksenf0915682007-10-02 16:42:22 +000022584
Nick Lewycky731c6ab2009-03-05 08:20:44 +000022585if test "$llvm_cv_link_use_r" = "yes" ; then
22586 RPATH="-Wl,-R"
22587else
22588 RPATH="-Wl,-rpath"
22589fi
22590
22591
22592if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22593 RDYNAMIC="-Wl,-export-dynamic"
22594else
22595 RDYNAMIC=""
22596fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000022597
22598
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022599
Eric Christophera1cba682010-08-08 02:44:25 +000022600ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022601
Eric Christopher21d3eeb2010-08-08 09:20:39 +000022602
22603
22604
22605
22606
Douglas Gregor1555a232009-06-16 20:12:29 +000022607ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22608
22609ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22610
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022611ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22612
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022613ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22614
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022615ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022616
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022617
Reid Spencera773bd52006-08-04 18:18:08 +000022618ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022619
22620
Reid Spencerea949cf2006-08-16 00:45:38 +000022621ac_config_files="$ac_config_files llvm.spec"
22622
22623
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022624ac_config_files="$ac_config_files docs/doxygen.cfg"
22625
22626if test -f ${srcdir}/tools/clang/README.txt; then
22627 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22628
22629fi
22630
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022631ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000022632
22633
Reid Spencera773bd52006-08-04 18:18:08 +000022634ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000022635
22636
Reid Spencera773bd52006-08-04 18:18:08 +000022637ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000022638
Reid Spencera773bd52006-08-04 18:18:08 +000022639ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022640
22641
Reid Spencera773bd52006-08-04 18:18:08 +000022642ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022643
22644
Reid Spencera773bd52006-08-04 18:18:08 +000022645ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022646
22647
Reid Spencera773bd52006-08-04 18:18:08 +000022648ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022649
22650
Reid Spencer8b2e1412006-11-17 03:32:33 +000022651ac_config_commands="$ac_config_commands runtime/Makefile"
22652
22653
Reid Spencera773bd52006-08-04 18:18:08 +000022654ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022655
22656
Reid Spencera773bd52006-08-04 18:18:08 +000022657ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022658
22659
Bill Wendlingf24eb392009-01-04 23:12:30 +000022660ac_config_commands="$ac_config_commands unittests/Makefile"
22661
22662
Reid Spencera773bd52006-08-04 18:18:08 +000022663ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022664
22665
Reid Spencera773bd52006-08-04 18:18:08 +000022666ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022667
22668
Reid Spencera773bd52006-08-04 18:18:08 +000022669ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022670
22671
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022672ac_config_commands="$ac_config_commands bindings/Makefile"
22673
22674
22675ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22676
22677
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022678
John Criswell7a73b802003-06-30 21:59:07 +000022679cat >confcache <<\_ACEOF
22680# This file is a shell script that caches the results of configure
22681# tests run on this system so they can be shared between configure
22682# scripts and configure runs, see configure's option --config-cache.
22683# It is not useful on other systems. If it contains results you don't
22684# want to keep, you may remove or edit it.
22685#
22686# config.status only pays attention to the cache file if you give it
22687# the --recheck option to rerun configure.
22688#
John Criswell0c38eaf2003-09-10 15:17:25 +000022689# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022690# loading this file, other *unset* `ac_cv_foo' will be assigned the
22691# following values.
22692
22693_ACEOF
22694
22695# The following way of writing the cache mishandles newlines in values,
22696# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000022697# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000022698# Ultrix sh set writes to stderr and can't be redirected directly,
22699# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000022700(
22701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22702 eval ac_val=\$$ac_var
22703 case $ac_val in #(
22704 *${as_nl}*)
22705 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22707echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022708 esac
22709 case $ac_var in #(
22710 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022711 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022712 esac ;;
22713 esac
22714 done
22715
John Criswell7a73b802003-06-30 21:59:07 +000022716 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000022717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22718 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022719 # `set' does not quote correctly, so add quotes (double-quote
22720 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000022721 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022722 "s/'/'\\\\''/g;
22723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000022724 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000022725 *)
22726 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000022727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000022728 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022729 esac |
22730 sort
22731) |
John Criswell7a73b802003-06-30 21:59:07 +000022732 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000022733 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000022734 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000022735 :clear
John Criswell7a73b802003-06-30 21:59:07 +000022736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22737 t end
Reid Spencera773bd52006-08-04 18:18:08 +000022738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22739 :end' >>confcache
22740if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22741 if test -w "$cache_file"; then
22742 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022743 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22744echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022745 cat confcache >$cache_file
22746 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022747 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22748echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022749 fi
22750fi
22751rm -f confcache
22752
22753test "x$prefix" = xNONE && prefix=$ac_default_prefix
22754# Let make expand exec_prefix.
22755test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22756
John Criswell7a73b802003-06-30 21:59:07 +000022757DEFS=-DHAVE_CONFIG_H
22758
John Criswell0c38eaf2003-09-10 15:17:25 +000022759ac_libobjs=
22760ac_ltlibobjs=
22761for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22762 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000022763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022764 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000022765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22766 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022767 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22768 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000022769done
22770LIBOBJS=$ac_libobjs
22771
22772LTLIBOBJS=$ac_ltlibobjs
22773
22774
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022775if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022776 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22777Usually this means the macro was only invoked conditionally." >&5
22778echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22779Usually this means the macro was only invoked conditionally." >&2;}
22780 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022781fi
22782if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022783 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22784Usually this means the macro was only invoked conditionally." >&5
22785echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22786Usually this means the macro was only invoked conditionally." >&2;}
22787 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022788fi
John Criswell7a73b802003-06-30 21:59:07 +000022789
22790: ${CONFIG_STATUS=./config.status}
22791ac_clean_files_save=$ac_clean_files
22792ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022793{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22794echo "$as_me: creating $CONFIG_STATUS" >&6;}
22795cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022796#! $SHELL
22797# Generated by $as_me.
22798# Run this file to recreate the current configuration.
22799# Compiler output produced by configure, useful for debugging
22800# configure, is in config.log if it exists.
22801
22802debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022803ac_cs_recheck=false
22804ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022805SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022806_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022808cat >>$CONFIG_STATUS <<\_ACEOF
22809## --------------------- ##
22810## M4sh Initialization. ##
22811## --------------------- ##
22812
22813# Be Bourne compatible
22814if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022815 emulate sh
22816 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022817 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022818 # is contrary to our usage. Disable this feature.
22819 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000022820 setopt NO_GLOB_SUBST
22821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022822 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000022823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022824BIN_SH=xpg4; export BIN_SH # for Tru64
22825DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000022826
John Criswell7a73b802003-06-30 21:59:07 +000022827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022828# PATH needs CR
22829# Avoid depending upon Character Ranges.
22830as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22831as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22832as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22833as_cr_digits='0123456789'
22834as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000022835
22836# The user is always right.
22837if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022838 echo "#! /bin/sh" >conf$$.sh
22839 echo "exit 0" >>conf$$.sh
22840 chmod +x conf$$.sh
22841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22842 PATH_SEPARATOR=';'
22843 else
22844 PATH_SEPARATOR=:
22845 fi
22846 rm -f conf$$.sh
22847fi
22848
22849# Support unset when possible.
22850if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22851 as_unset=unset
22852else
22853 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000022854fi
John Criswell7a73b802003-06-30 21:59:07 +000022855
Reid Spencera773bd52006-08-04 18:18:08 +000022856
22857# IFS
22858# We need space, tab and new line, in precisely that order. Quoting is
22859# there to prevent editors from complaining about space-tab.
22860# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22861# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022862as_nl='
22863'
Reid Spencera773bd52006-08-04 18:18:08 +000022864IFS=" "" $as_nl"
22865
22866# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022867case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000022868 *[\\/]* ) as_myself=$0 ;;
22869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000022870for as_dir in $PATH
22871do
22872 IFS=$as_save_IFS
22873 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22875done
Reid Spencera773bd52006-08-04 18:18:08 +000022876IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000022877
Reid Spencera773bd52006-08-04 18:18:08 +000022878 ;;
22879esac
22880# We did not find ourselves, most probably we were run as `sh COMMAND'
22881# in which case we are not to be found in the path.
22882if test "x$as_myself" = x; then
22883 as_myself=$0
22884fi
22885if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022886 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22887 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000022888fi
22889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022890# Work around bugs in pre-3.0 UWIN ksh.
22891for as_var in ENV MAIL MAILPATH
22892do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000022893done
22894PS1='$ '
22895PS2='> '
22896PS4='+ '
22897
22898# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022899for as_var in \
22900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22902 LC_TELEPHONE LC_TIME
22903do
22904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22905 eval $as_var=C; export $as_var
22906 else
22907 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000022908 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022909done
Torok Edwin871384f2010-01-26 08:50:50 +000022910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022911# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000022912if expr a : '\(a\)' >/dev/null 2>&1 &&
22913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22914 as_expr=expr
22915else
22916 as_expr=false
22917fi
22918
22919if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22920 as_basename=basename
22921else
22922 as_basename=false
22923fi
22924
22925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022926# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000022927as_me=`$as_basename -- "$0" ||
22928$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22929 X"$0" : 'X\(//\)$' \| \
22930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022931echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000022932 sed '/^.*\/\([^/][^/]*\)\/*$/{
22933 s//\1/
22934 q
22935 }
22936 /^X\/\(\/\/\)$/{
22937 s//\1/
22938 q
22939 }
22940 /^X\/\(\/\).*/{
22941 s//\1/
22942 q
22943 }
22944 s/.*/./; q'`
22945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022946# CDPATH.
22947$as_unset CDPATH
22948
22949
22950
22951 as_lineno_1=$LINENO
22952 as_lineno_2=$LINENO
22953 test "x$as_lineno_1" != "x$as_lineno_2" &&
22954 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22955
22956 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22957 # uniformly replaced by the line number. The first 'sed' inserts a
22958 # line-number line after each line using $LINENO; the second 'sed'
22959 # does the real work. The second script uses 'N' to pair each
22960 # line-number line with the line containing $LINENO, and appends
22961 # trailing '-' during substitution so that $LINENO is not a special
22962 # case at line end.
22963 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22964 # scripts with optimization help from Paolo Bonzini. Blame Lee
22965 # E. McMahon (1931-1989) for sed's syntax. :-)
22966 sed -n '
22967 p
22968 /[$]LINENO/=
22969 ' <$as_myself |
22970 sed '
22971 s/[$]LINENO.*/&-/
22972 t lineno
22973 b
22974 :lineno
22975 N
22976 :loop
22977 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22978 t loop
22979 s/-\n.*//
22980 ' >$as_me.lineno &&
22981 chmod +x "$as_me.lineno" ||
22982 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22983 { (exit 1); exit 1; }; }
22984
22985 # Don't try to exec as it changes $[0], causing all sort of problems
22986 # (the dirname of $[0] is not the place where we might find the
22987 # original and so on. Autoconf is especially sensitive to this).
22988 . "./$as_me.lineno"
22989 # Exit status is that of the last command.
22990 exit
22991}
22992
22993
22994if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22995 as_dirname=dirname
22996else
22997 as_dirname=false
22998fi
Reid Spencera773bd52006-08-04 18:18:08 +000022999
23000ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023001case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000023002-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023003 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000023004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023005 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000023006 esac;;
23007*)
23008 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000023009esac
23010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023011if expr a : '\(a\)' >/dev/null 2>&1 &&
23012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23013 as_expr=expr
23014else
23015 as_expr=false
23016fi
23017
John Criswell7a73b802003-06-30 21:59:07 +000023018rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000023019if test -d conf$$.dir; then
23020 rm -f conf$$.dir/conf$$.file
23021else
23022 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023023 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000023024fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023025echo >conf$$.file
23026if ln -s conf$$.file conf$$ 2>/dev/null; then
23027 as_ln_s='ln -s'
23028 # ... but there are two gotchas:
23029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23031 # In both cases, we have to default to `cp -p'.
23032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000023033 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023034elif ln conf$$.file conf$$ 2>/dev/null; then
23035 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000023036else
23037 as_ln_s='cp -p'
23038fi
Reid Spencera773bd52006-08-04 18:18:08 +000023039rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23040rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000023041
John Criswell0c38eaf2003-09-10 15:17:25 +000023042if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023043 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023044else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023045 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000023046 as_mkdir_p=false
23047fi
23048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023049# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23050# systems may use methods other than mode bits to determine executability.
23051cat >conf$$.file <<_ASEOF
23052#! /bin/sh
23053exit 0
23054_ASEOF
23055chmod +x conf$$.file
23056if test -x conf$$.file >/dev/null 2>&1; then
23057 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000023058else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023059 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000023060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023061rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000023062
23063# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023064as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023065
23066# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023067as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023068
23069
John Criswell7a73b802003-06-30 21:59:07 +000023070exec 6>&1
23071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023072# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000023073# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000023074# values after options handling.
23075ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023076This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023077generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023078
23079 CONFIG_FILES = $CONFIG_FILES
23080 CONFIG_HEADERS = $CONFIG_HEADERS
23081 CONFIG_LINKS = $CONFIG_LINKS
23082 CONFIG_COMMANDS = $CONFIG_COMMANDS
23083 $ $0 $@
23084
Reid Spencera773bd52006-08-04 18:18:08 +000023085on `(hostname || uname -n) 2>/dev/null | sed 1q`
23086"
23087
John Criswell7a73b802003-06-30 21:59:07 +000023088_ACEOF
23089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023090cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023091# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000023092config_files="$ac_config_files"
23093config_headers="$ac_config_headers"
23094config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000023095
Reid Spencera773bd52006-08-04 18:18:08 +000023096_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023098cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023099ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023100\`$as_me' instantiates files from templates according to the
23101current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000023102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023103Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000023104
23105 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023106 -V, --version print version number, then exit
23107 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023108 -d, --debug don't remove temporary files
23109 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023110 --file=FILE[:TEMPLATE]
23111 instantiate the configuration file FILE
23112 --header=FILE[:TEMPLATE]
23113 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000023114
23115Configuration files:
23116$config_files
23117
23118Configuration headers:
23119$config_headers
23120
John Criswellc764fbc2003-09-06 15:17:13 +000023121Configuration commands:
23122$config_commands
23123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023124Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000023125
Reid Spencera773bd52006-08-04 18:18:08 +000023126_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023127cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023128ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023129llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023130configured by $0, generated by GNU Autoconf 2.60,
23131 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000023132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023133Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000023134This config.status script is free software; the Free Software Foundation
23135gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000023136
23137ac_pwd='$ac_pwd'
23138srcdir='$srcdir'
23139INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000023140_ACEOF
23141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023142cat >>$CONFIG_STATUS <<\_ACEOF
23143# If no file are specified by the user, then we need to provide default
23144# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000023145ac_need_defaults=:
23146while test $# != 0
23147do
23148 case $1 in
23149 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000023150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023152 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023153 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023154 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000023155 ac_option=$1
23156 ac_optarg=$2
23157 ac_shift=shift
23158 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023159 esac
23160
John Criswell0c38eaf2003-09-10 15:17:25 +000023161 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023162 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000023163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23164 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023165 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023166 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023167 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000023168 debug=: ;;
23169 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023170 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023171 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023172 ac_need_defaults=false;;
23173 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023174 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023175 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023176 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000023177 --he | --h)
23178 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023179 { echo "$as_me: error: ambiguous option: $1
23180Try \`$0 --help' for more information." >&2
23181 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023182 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023183 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23186 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023187
23188 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023189 -*) { echo "$as_me: error: unrecognized option: $1
23190Try \`$0 --help' for more information." >&2
23191 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000023192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023193 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000023194 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000023195
23196 esac
23197 shift
23198done
23199
John Criswell0c38eaf2003-09-10 15:17:25 +000023200ac_configure_extra_args=
23201
23202if $ac_cs_silent; then
23203 exec 6>/dev/null
23204 ac_configure_extra_args="$ac_configure_extra_args --silent"
23205fi
23206
23207_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023208cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023209if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023210 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23211 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000023212 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023213 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000023214fi
23215
John Criswell7a73b802003-06-30 21:59:07 +000023216_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023217cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023218exec 5>>config.log
23219{
23220 echo
23221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23222## Running $as_me. ##
23223_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023224 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000023225} >&5
John Criswell7a73b802003-06-30 21:59:07 +000023226
Reid Spencera773bd52006-08-04 18:18:08 +000023227_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023228cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023229#
Reid Spencera773bd52006-08-04 18:18:08 +000023230# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000023231#
Reid Spencerc0682832005-02-24 19:05:19 +000023232llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000023233
23234_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023235
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023236cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023237
23238# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000023239for ac_config_target in $ac_config_targets
23240do
Reid Spencera773bd52006-08-04 18:18:08 +000023241 case $ac_config_target in
23242 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000023243 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000023244 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23245 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000023246 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000023247 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000023248 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023249 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000023250 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000023251 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23252 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000023253 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023254 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23255 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23256 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23257 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23258 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23259 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023260 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023261 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23262 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023263 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023264 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23265 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23266 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023267 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23268 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023270 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23271echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23272 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000023273 esac
23274done
23275
Reid Spencera773bd52006-08-04 18:18:08 +000023276
John Criswell7a73b802003-06-30 21:59:07 +000023277# If the user did not use the arguments to specify the items to instantiate,
23278# then the envvar interface is used. Set only those that are not.
23279# We use the long form for the default assignment because of an extremely
23280# bizarre bug on SunOS 4.1.3.
23281if $ac_need_defaults; then
23282 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23283 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023284 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023285fi
23286
John Criswell0c38eaf2003-09-10 15:17:25 +000023287# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000023288# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000023289# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000023290# Hook for its removal unless debugging.
23291# Note that there is a small window in which the directory will not be cleaned:
23292# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000023293$debug ||
23294{
Reid Spencera773bd52006-08-04 18:18:08 +000023295 tmp=
23296 trap 'exit_status=$?
23297 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23298' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023299 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000023300}
John Criswell7a73b802003-06-30 21:59:07 +000023301# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023302
John Criswell7a73b802003-06-30 21:59:07 +000023303{
Reid Spencera773bd52006-08-04 18:18:08 +000023304 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023305 test -n "$tmp" && test -d "$tmp"
23306} ||
23307{
Reid Spencera773bd52006-08-04 18:18:08 +000023308 tmp=./conf$$-$RANDOM
23309 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023310} ||
23311{
23312 echo "$me: cannot create a temporary directory in ." >&2
23313 { (exit 1); exit 1; }
23314}
John Criswell7a73b802003-06-30 21:59:07 +000023315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023316#
23317# Set up the sed scripts for CONFIG_FILES section.
23318#
23319
23320# No need to generate the scripts if there are no CONFIG_FILES.
23321# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000023322if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000023323
23324_ACEOF
23325
Reid Spencera773bd52006-08-04 18:18:08 +000023326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023327
Reid Spencera773bd52006-08-04 18:18:08 +000023328ac_delim='%!_!# '
23329for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023330 cat >conf$$subs.sed <<_ACEOF
23331SHELL!$SHELL$ac_delim
23332PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23333PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23334PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23335PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23336PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23337PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23338exec_prefix!$exec_prefix$ac_delim
23339prefix!$prefix$ac_delim
23340program_transform_name!$program_transform_name$ac_delim
23341bindir!$bindir$ac_delim
23342sbindir!$sbindir$ac_delim
23343libexecdir!$libexecdir$ac_delim
23344datarootdir!$datarootdir$ac_delim
23345datadir!$datadir$ac_delim
23346sysconfdir!$sysconfdir$ac_delim
23347sharedstatedir!$sharedstatedir$ac_delim
23348localstatedir!$localstatedir$ac_delim
23349includedir!$includedir$ac_delim
23350oldincludedir!$oldincludedir$ac_delim
23351docdir!$docdir$ac_delim
23352infodir!$infodir$ac_delim
23353htmldir!$htmldir$ac_delim
23354dvidir!$dvidir$ac_delim
23355pdfdir!$pdfdir$ac_delim
23356psdir!$psdir$ac_delim
23357libdir!$libdir$ac_delim
23358localedir!$localedir$ac_delim
23359mandir!$mandir$ac_delim
23360DEFS!$DEFS$ac_delim
23361ECHO_C!$ECHO_C$ac_delim
23362ECHO_N!$ECHO_N$ac_delim
23363ECHO_T!$ECHO_T$ac_delim
23364LIBS!$LIBS$ac_delim
23365build_alias!$build_alias$ac_delim
23366host_alias!$host_alias$ac_delim
23367target_alias!$target_alias$ac_delim
23368LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23369subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023370ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23371LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023372build!$build$ac_delim
23373build_cpu!$build_cpu$ac_delim
23374build_vendor!$build_vendor$ac_delim
23375build_os!$build_os$ac_delim
23376host!$host$ac_delim
23377host_cpu!$host_cpu$ac_delim
23378host_vendor!$host_vendor$ac_delim
23379host_os!$host_os$ac_delim
23380target!$target$ac_delim
23381target_cpu!$target_cpu$ac_delim
23382target_vendor!$target_vendor$ac_delim
23383target_os!$target_os$ac_delim
23384OS!$OS$ac_delim
23385HOST_OS!$HOST_OS$ac_delim
23386TARGET_OS!$TARGET_OS$ac_delim
23387LINKALL!$LINKALL$ac_delim
23388NOLINKALL!$NOLINKALL$ac_delim
23389LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23390LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23391ARCH!$ARCH$ac_delim
23392ENDIAN!$ENDIAN$ac_delim
23393CC!$CC$ac_delim
23394CFLAGS!$CFLAGS$ac_delim
23395LDFLAGS!$LDFLAGS$ac_delim
23396CPPFLAGS!$CPPFLAGS$ac_delim
23397ac_ct_CC!$ac_ct_CC$ac_delim
23398EXEEXT!$EXEEXT$ac_delim
23399OBJEXT!$OBJEXT$ac_delim
23400CPP!$CPP$ac_delim
23401GREP!$GREP$ac_delim
23402EGREP!$EGREP$ac_delim
23403LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23404BUILD_CC!$BUILD_CC$ac_delim
23405BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23406BUILD_CXX!$BUILD_CXX$ac_delim
23407CVSBUILD!$CVSBUILD$ac_delim
23408ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23409ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23410DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23411ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23412EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23413DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23414DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23415JIT!$JIT$ac_delim
23416TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023417ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023418ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23419ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023420ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023421ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023422ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023423ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023424ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023425TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23426LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23427LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023428_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023430 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000023431 break
23432 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023433 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23434echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23435 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000023436 else
23437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000023438 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023439done
23440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023441ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23442if test -n "$ac_eof"; then
23443 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23444 ac_eof=`expr $ac_eof + 1`
23445fi
23446
23447cat >>$CONFIG_STATUS <<_ACEOF
23448cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23449/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000023450_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023451sed '
23452s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23453s/^/s,@/; s/!/@,|#_!!_#|/
23454:n
23455t n
23456s/'"$ac_delim"'$/,g/; t
23457s/$/\\/; p
23458N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23459' >>$CONFIG_STATUS <conf$$subs.sed
23460rm -f conf$$subs.sed
23461cat >>$CONFIG_STATUS <<_ACEOF
23462CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000023463_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023464
23465
23466ac_delim='%!_!# '
23467for ac_last_try in false false false false false :; do
23468 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023469LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023470LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023471ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023472CLANGPATH!$CLANGPATH$ac_delim
23473CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023474ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023475OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023476EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000023477EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023478BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023479CXX!$CXX$ac_delim
23480CXXFLAGS!$CXXFLAGS$ac_delim
23481ac_ct_CXX!$ac_ct_CXX$ac_delim
23482NM!$NM$ac_delim
23483ifGNUmake!$ifGNUmake$ac_delim
23484LN_S!$LN_S$ac_delim
23485CMP!$CMP$ac_delim
23486CP!$CP$ac_delim
23487DATE!$DATE$ac_delim
23488FIND!$FIND$ac_delim
23489MKDIR!$MKDIR$ac_delim
23490MV!$MV$ac_delim
23491RANLIB!$RANLIB$ac_delim
23492AR!$AR$ac_delim
23493RM!$RM$ac_delim
23494SED!$SED$ac_delim
23495TAR!$TAR$ac_delim
23496BINPWD!$BINPWD$ac_delim
23497GRAPHVIZ!$GRAPHVIZ$ac_delim
23498DOT!$DOT$ac_delim
23499FDP!$FDP$ac_delim
23500NEATO!$NEATO$ac_delim
23501TWOPI!$TWOPI$ac_delim
23502CIRCO!$CIRCO$ac_delim
23503GV!$GV$ac_delim
23504DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000023505XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023506PERL!$PERL$ac_delim
23507HAVE_PERL!$HAVE_PERL$ac_delim
23508INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23509INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23510INSTALL_DATA!$INSTALL_DATA$ac_delim
23511BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023512CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023513DOXYGEN!$DOXYGEN$ac_delim
23514GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000023515GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023516POD2HTML!$POD2HTML$ac_delim
23517POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023518PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023519RUNTEST!$RUNTEST$ac_delim
23520TCLSH!$TCLSH$ac_delim
23521ZIP!$ZIP$ac_delim
23522OCAMLC!$OCAMLC$ac_delim
23523OCAMLOPT!$OCAMLOPT$ac_delim
23524OCAMLDEP!$OCAMLDEP$ac_delim
23525OCAMLDOC!$OCAMLDOC$ac_delim
23526GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000023527HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023528INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23529INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23530CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23531CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23532LIBADD_DL!$LIBADD_DL$ac_delim
23533LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23534LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23535LLVMGCC!$LLVMGCC$ac_delim
23536LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023537LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023538NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23539NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23540USE_UDIS86!$USE_UDIS86$ac_delim
23541USE_OPROFILE!$USE_OPROFILE$ac_delim
23542HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23543HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23544MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023545LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023546LLVMCC1!$LLVMCC1$ac_delim
23547LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23548LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023549LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023550LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000023551LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023552SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023553SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023554LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23555LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23556LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23557LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23558LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23559LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23560LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23561LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23562LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23563LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23564BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23565ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000023566_ACEOF
23567
Tobias Grossera84b5672010-11-10 16:31:34 +000023568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023569 break
23570 elif $ac_last_try; then
23571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23572echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23573 { (exit 1); exit 1; }; }
23574 else
23575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23576 fi
23577done
23578
23579ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23580if test -n "$ac_eof"; then
23581 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23582 ac_eof=`expr $ac_eof + 1`
23583fi
23584
23585cat >>$CONFIG_STATUS <<_ACEOF
23586cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023587/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023588_ACEOF
23589sed '
23590s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23591s/^/s,@/; s/!/@,|#_!!_#|/
23592:n
23593t n
23594s/'"$ac_delim"'$/,g/; t
23595s/$/\\/; p
23596N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23597' >>$CONFIG_STATUS <conf$$subs.sed
23598rm -f conf$$subs.sed
23599cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023600CEOF$ac_eof
23601_ACEOF
23602
23603
Tobias Grossera84b5672010-11-10 16:31:34 +000023604ac_delim='%!_!# '
23605for ac_last_try in false false false false false :; do
23606 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbared344d22011-06-16 22:30:41 +000023607OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023608ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023609RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023610RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023611LIBOBJS!$LIBOBJS$ac_delim
23612LTLIBOBJS!$LTLIBOBJS$ac_delim
23613_ACEOF
23614
Daniel Dunbared344d22011-06-16 22:30:41 +000023615 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
Tobias Grossera84b5672010-11-10 16:31:34 +000023616 break
23617 elif $ac_last_try; then
23618 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23619echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23620 { (exit 1); exit 1; }; }
23621 else
23622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23623 fi
23624done
23625
23626ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23627if test -n "$ac_eof"; then
23628 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23629 ac_eof=`expr $ac_eof + 1`
23630fi
23631
23632cat >>$CONFIG_STATUS <<_ACEOF
23633cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23634/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23635_ACEOF
23636sed '
23637s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23638s/^/s,@/; s/!/@,|#_!!_#|/
23639:n
23640t n
23641s/'"$ac_delim"'$/,g/; t
23642s/$/\\/; p
23643N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23644' >>$CONFIG_STATUS <conf$$subs.sed
23645rm -f conf$$subs.sed
23646cat >>$CONFIG_STATUS <<_ACEOF
23647:end
23648s/|#_!!_#|//g
23649CEOF$ac_eof
23650_ACEOF
23651
23652
Reid Spencera773bd52006-08-04 18:18:08 +000023653# VPATH may cause trouble with some makes, so we remove $(srcdir),
23654# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23655# trailing colons and then remove the whole line if VPATH becomes empty
23656# (actually we leave an empty line to preserve line numbers).
23657if test "x$srcdir" = x.; then
23658 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23659s/:*\$(srcdir):*/:/
23660s/:*\${srcdir}:*/:/
23661s/:*@srcdir@:*/:/
23662s/^\([^=]*=[ ]*\):*/\1/
23663s/:*$//
23664s/^[^=]*=[ ]*$//
23665}'
23666fi
23667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023668cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023669fi # test -n "$CONFIG_FILES"
23670
Reid Spencera773bd52006-08-04 18:18:08 +000023671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023672for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000023673do
23674 case $ac_tag in
23675 :[FHLC]) ac_mode=$ac_tag; continue;;
23676 esac
23677 case $ac_mode$ac_tag in
23678 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023679 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23680echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23681 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023682 :[FH]-) ac_tag=-:-;;
23683 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23684 esac
23685 ac_save_IFS=$IFS
23686 IFS=:
23687 set x $ac_tag
23688 IFS=$ac_save_IFS
23689 shift
23690 ac_file=$1
23691 shift
23692
23693 case $ac_mode in
23694 :L) ac_source=$1;;
23695 :[FH])
23696 ac_file_inputs=
23697 for ac_f
23698 do
23699 case $ac_f in
23700 -) ac_f="$tmp/stdin";;
23701 *) # Look for the file first in the build tree, then in the source tree
23702 # (if the path is not absolute). The absolute path cannot be DOS-style,
23703 # because $ac_f cannot contain `:'.
23704 test -f "$ac_f" ||
23705 case $ac_f in
23706 [\\/$]*) false;;
23707 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23708 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023709 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23710echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23711 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023712 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023713 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000023714 done
23715
23716 # Let's still pretend it is `configure' which instantiates (i.e., don't
23717 # use $as_me), people would be surprised to read:
23718 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023719 configure_input="Generated from "`IFS=:
23720 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000023721 if test x"$ac_file" != x-; then
23722 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023723 { echo "$as_me:$LINENO: creating $ac_file" >&5
23724echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023725 fi
23726
23727 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023728 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000023729 esac
23730 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023731 esac
23732
Reid Spencera773bd52006-08-04 18:18:08 +000023733 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000023734$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023735 X"$ac_file" : 'X\(//\)[^/]' \| \
23736 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000023737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023738echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000023739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23740 s//\1/
23741 q
23742 }
23743 /^X\(\/\/\)[^/].*/{
23744 s//\1/
23745 q
23746 }
23747 /^X\(\/\/\)$/{
23748 s//\1/
23749 q
23750 }
23751 /^X\(\/\).*/{
23752 s//\1/
23753 q
23754 }
23755 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023756 { as_dir="$ac_dir"
23757 case $as_dir in #(
23758 -*) as_dir=./$as_dir;;
23759 esac
23760 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23761 as_dirs=
23762 while :; do
23763 case $as_dir in #(
23764 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23765 *) as_qdir=$as_dir;;
23766 esac
23767 as_dirs="'$as_qdir' $as_dirs"
23768 as_dir=`$as_dirname -- "$as_dir" ||
23769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23770 X"$as_dir" : 'X\(//\)[^/]' \| \
23771 X"$as_dir" : 'X\(//\)$' \| \
23772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23773echo X"$as_dir" |
23774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23775 s//\1/
23776 q
23777 }
23778 /^X\(\/\/\)[^/].*/{
23779 s//\1/
23780 q
23781 }
23782 /^X\(\/\/\)$/{
23783 s//\1/
23784 q
23785 }
23786 /^X\(\/\).*/{
23787 s//\1/
23788 q
23789 }
23790 s/.*/./; q'`
23791 test -d "$as_dir" && break
23792 done
23793 test -z "$as_dirs" || eval "mkdir $as_dirs"
23794 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23795echo "$as_me: error: cannot create directory $as_dir" >&2;}
23796 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023797 ac_builddir=.
23798
Reid Spencera773bd52006-08-04 18:18:08 +000023799case "$ac_dir" in
23800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23801*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023803 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023804 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023805 case $ac_top_builddir_sub in
23806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23808 esac ;;
23809esac
23810ac_abs_top_builddir=$ac_pwd
23811ac_abs_builddir=$ac_pwd$ac_dir_suffix
23812# for backward compatibility:
23813ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000023814
23815case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023816 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000023817 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023818 ac_top_srcdir=$ac_top_builddir_sub
23819 ac_abs_top_srcdir=$ac_pwd ;;
23820 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000023821 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023822 ac_top_srcdir=$srcdir
23823 ac_abs_top_srcdir=$srcdir ;;
23824 *) # Relative name.
23825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23826 ac_top_srcdir=$ac_top_build_prefix$srcdir
23827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000023828esac
Reid Spencera773bd52006-08-04 18:18:08 +000023829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000023830
John Criswell7a73b802003-06-30 21:59:07 +000023831
Reid Spencera773bd52006-08-04 18:18:08 +000023832 case $ac_mode in
23833 :F)
23834 #
23835 # CONFIG_FILE
23836 #
John Criswell7a73b802003-06-30 21:59:07 +000023837
23838 case $INSTALL in
23839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000023841 esac
John Criswell7a73b802003-06-30 21:59:07 +000023842_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023844cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023845# If the template does not know about datarootdir, expand it.
23846# FIXME: This hack should be removed a few years after 2.60.
23847ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023848
23849case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000023850 p
23851 q
23852}
23853/@datadir@/p
23854/@docdir@/p
23855/@infodir@/p
23856/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023857/@mandir@/p
23858' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000023859*datarootdir*) ac_datarootdir_seen=yes;;
23860*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023861 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23862echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000023863_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023864cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023865 ac_datarootdir_hack='
23866 s&@datadir@&$datadir&g
23867 s&@docdir@&$docdir&g
23868 s&@infodir@&$infodir&g
23869 s&@localedir@&$localedir&g
23870 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023871 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023872esac
23873_ACEOF
23874
23875# Neutralize VPATH when `$srcdir' = `.'.
23876# Shell code in configure.ac might set extrasub.
23877# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023878cat >>$CONFIG_STATUS <<_ACEOF
23879 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000023880$extrasub
23881_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023882cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023883:t
23884/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023885s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000023886s&@top_builddir@&$ac_top_builddir_sub&;t t
23887s&@srcdir@&$ac_srcdir&;t t
23888s&@abs_srcdir@&$ac_abs_srcdir&;t t
23889s&@top_srcdir@&$ac_top_srcdir&;t t
23890s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23891s&@builddir@&$ac_builddir&;t t
23892s&@abs_builddir@&$ac_abs_builddir&;t t
23893s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23894s&@INSTALL@&$ac_INSTALL&;t t
23895$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000023896" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000023897
Reid Spencera773bd52006-08-04 18:18:08 +000023898test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23899 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023901 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023902which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023903echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023904which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023905
Reid Spencera773bd52006-08-04 18:18:08 +000023906 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000023907 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023908 -) cat "$tmp/out"; rm -f "$tmp/out";;
23909 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23910 esac
Reid Spencera773bd52006-08-04 18:18:08 +000023911 ;;
23912 :H)
23913 #
23914 # CONFIG_HEADER
23915 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023916_ACEOF
23917
23918# Transform confdefs.h into a sed script `conftest.defines', that
23919# substitutes the proper values into config.h.in to produce config.h.
23920rm -f conftest.defines conftest.tail
23921# First, append a space to every undef/define line, to ease matching.
23922echo 's/$/ /' >conftest.defines
23923# Then, protect against being on the right side of a sed subst, or in
23924# an unquoted here document, in config.status. If some macros were
23925# called several times there might be several #defines for the same
23926# symbol, which is useless. But do not sort them, since the last
23927# AC_DEFINE must be honored.
23928ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23929# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23930# NAME is the cpp macro being defined, VALUE is the value it is being given.
23931# PARAMS is the parameter list in the macro definition--in most cases, it's
23932# just an empty string.
23933ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23934ac_dB='\\)[ (].*,\\1define\\2'
23935ac_dC=' '
23936ac_dD=' ,'
23937
23938uniq confdefs.h |
23939 sed -n '
23940 t rset
23941 :rset
23942 s/^[ ]*#[ ]*define[ ][ ]*//
23943 t ok
23944 d
23945 :ok
23946 s/[\\&,]/\\&/g
23947 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23948 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23949 ' >>conftest.defines
23950
23951# Remove the space that was appended to ease matching.
23952# Then replace #undef with comments. This is necessary, for
23953# example, in the case of _POSIX_SOURCE, which is predefined and required
23954# on some systems where configure will not decide to define it.
23955# (The regexp can be short, since the line contains either #define or #undef.)
23956echo 's/ $//
23957s,^[ #]*u.*,/* & */,' >>conftest.defines
23958
23959# Break up conftest.defines:
23960ac_max_sed_lines=50
23961
23962# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23963# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23964# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23965# et cetera.
23966ac_in='$ac_file_inputs'
23967ac_out='"$tmp/out1"'
23968ac_nxt='"$tmp/out2"'
23969
23970while :
23971do
23972 # Write a here document:
23973 cat >>$CONFIG_STATUS <<_ACEOF
23974 # First, check the format of the line:
23975 cat >"\$tmp/defines.sed" <<\\CEOF
23976/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23977/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23978b
23979:def
23980_ACEOF
23981 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23982 echo 'CEOF
23983 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23984 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23985 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23986 grep . conftest.tail >/dev/null || break
23987 rm -f conftest.defines
23988 mv conftest.tail conftest.defines
23989done
23990rm -f conftest.defines conftest.tail
23991
23992echo "ac_result=$ac_in" >>$CONFIG_STATUS
23993cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023994 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023995 echo "/* $configure_input */" >"$tmp/config.h"
23996 cat "$ac_result" >>"$tmp/config.h"
23997 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23998 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23999echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000024000 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024001 rm -f $ac_file
24002 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000024003 fi
24004 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024005 echo "/* $configure_input */"
24006 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000024007 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024008 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000024009 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024011 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24012echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000024013 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024014 esac
John Criswell7a73b802003-06-30 21:59:07 +000024015
Reid Spencera773bd52006-08-04 18:18:08 +000024016
24017 case $ac_file$ac_mode in
24018 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024020 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000024021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024022 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024024 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000024026 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024028 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024030 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000024031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000024032 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024034 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024035 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024036 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024037 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024038 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024039 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024040 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024041 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024042 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000024043 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024044
24045 esac
24046done # for ac_tag
24047
John Criswell7a73b802003-06-30 21:59:07 +000024048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024049{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000024050_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024051chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024052ac_clean_files=$ac_clean_files_save
24053
24054
24055# configure is writing to config.log, and then calls config.status.
24056# config.status does its own redirection, appending to config.log.
24057# Unfortunately, on DOS this fails, as config.log is still kept open
24058# by configure, so config.status won't be able to write to it; its
24059# output is simply discarded. So we exec the FD to /dev/null,
24060# effectively closing config.log, so it can be properly (re)opened and
24061# appended to by config.status. When coming back to configure, we
24062# need to make the FD available again.
24063if test "$no_create" != yes; then
24064 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024065 ac_config_status_args=
24066 test "$silent" = yes &&
24067 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024068 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024070 exec 5>>config.log
24071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24072 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024073 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000024074fi
24075
John Criswell12399a12003-09-30 15:55:44 +000024076#
24077# CONFIG_SUBDIRS section.
24078#
24079if test "$no_recursion" != yes; then
24080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024081 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000024082 ac_sub_configure_args=
24083 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000024084 eval "set x $ac_configure_args"
24085 shift
24086 for ac_arg
24087 do
John Criswell12399a12003-09-30 15:55:44 +000024088 if test -n "$ac_prev"; then
24089 ac_prev=
24090 continue
24091 fi
24092 case $ac_arg in
24093 -cache-file | --cache-file | --cache-fil | --cache-fi \
24094 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24095 ac_prev=cache_file ;;
24096 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24097 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24098 | --c=*)
24099 ;;
24100 --config-cache | -C)
24101 ;;
24102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24103 ac_prev=srcdir ;;
24104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24105 ;;
24106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24107 ac_prev=prefix ;;
24108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24109 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024110 *)
24111 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024112 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024113 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024114 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000024115 esac
24116 done
24117
24118 # Always prepend --prefix to ensure using the same prefix
24119 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000024120 ac_arg="--prefix=$prefix"
24121 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024122 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024123 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024124 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000024125
24126 ac_popdir=`pwd`
24127 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24128
24129 # Do not complain, so a configure script can configure whichever
24130 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000024131 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000024132
Reid Spencera773bd52006-08-04 18:18:08 +000024133 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024134 echo "$as_me:$LINENO: $ac_msg" >&5
24135 echo "$ac_msg" >&6
24136 { as_dir="$ac_dir"
24137 case $as_dir in #(
24138 -*) as_dir=./$as_dir;;
24139 esac
24140 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24141 as_dirs=
24142 while :; do
24143 case $as_dir in #(
24144 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24145 *) as_qdir=$as_dir;;
24146 esac
24147 as_dirs="'$as_qdir' $as_dirs"
24148 as_dir=`$as_dirname -- "$as_dir" ||
24149$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24150 X"$as_dir" : 'X\(//\)[^/]' \| \
24151 X"$as_dir" : 'X\(//\)$' \| \
24152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24153echo X"$as_dir" |
24154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24155 s//\1/
24156 q
24157 }
24158 /^X\(\/\/\)[^/].*/{
24159 s//\1/
24160 q
24161 }
24162 /^X\(\/\/\)$/{
24163 s//\1/
24164 q
24165 }
24166 /^X\(\/\).*/{
24167 s//\1/
24168 q
24169 }
24170 s/.*/./; q'`
24171 test -d "$as_dir" && break
24172 done
24173 test -z "$as_dirs" || eval "mkdir $as_dirs"
24174 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24175echo "$as_me: error: cannot create directory $as_dir" >&2;}
24176 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000024177 ac_builddir=.
24178
Reid Spencera773bd52006-08-04 18:18:08 +000024179case "$ac_dir" in
24180.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24181*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024182 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024183 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024184 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024185 case $ac_top_builddir_sub in
24186 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24187 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24188 esac ;;
24189esac
24190ac_abs_top_builddir=$ac_pwd
24191ac_abs_builddir=$ac_pwd$ac_dir_suffix
24192# for backward compatibility:
24193ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000024194
24195case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000024196 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000024197 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000024198 ac_top_srcdir=$ac_top_builddir_sub
24199 ac_abs_top_srcdir=$ac_pwd ;;
24200 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000024201 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000024202 ac_top_srcdir=$srcdir
24203 ac_abs_top_srcdir=$srcdir ;;
24204 *) # Relative name.
24205 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24206 ac_top_srcdir=$ac_top_build_prefix$srcdir
24207 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000024208esac
Reid Spencera773bd52006-08-04 18:18:08 +000024209ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000024210
24211
Reid Spencera773bd52006-08-04 18:18:08 +000024212 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000024213
24214 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000024215 if test -f "$ac_srcdir/configure.gnu"; then
24216 ac_sub_configure=$ac_srcdir/configure.gnu
24217 elif test -f "$ac_srcdir/configure"; then
24218 ac_sub_configure=$ac_srcdir/configure
24219 elif test -f "$ac_srcdir/configure.in"; then
24220 # This should be Cygnus configure.
24221 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000024222 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024223 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24224echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000024225 ac_sub_configure=
24226 fi
24227
24228 # The recursion is here.
24229 if test -n "$ac_sub_configure"; then
24230 # Make the cache file name correct relative to the subdirectory.
24231 case $cache_file in
24232 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024233 *) # Relative name.
24234 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024235 esac
24236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024237 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24238echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell12399a12003-09-30 15:55:44 +000024239 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000024240 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24241 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024242 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24243echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24244 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000024245 fi
24246
Reid Spencera773bd52006-08-04 18:18:08 +000024247 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000024248 done
24249fi
24250