blob: ae7fcd77a95ce91d68ea2cfd5ca91ffdc72f636c [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.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001474 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1476 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001477 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001478 --with-oprofile=<prefix>
1479 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001480
1481Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001482 CC C compiler command
1483 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001487 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001488 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001491
1492Use these variables to override the choices made by `configure' or to help
1493it to find libraries and programs with nonstandard names/locations.
1494
1495Report bugs to <llvmbugs@cs.uiuc.edu>.
1496_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001497ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001498fi
1499
1500if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001503 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_builddir=.
1505
Reid Spencera773bd52006-08-04 18:18:08 +00001506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001510 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001521
1522case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001523 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001524 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001528 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001535esac
Reid Spencera773bd52006-08-04 18:18:08 +00001536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001537
Reid Spencera773bd52006-08-04 18:18:08 +00001538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001546 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001550 done
1551fi
1552
Reid Spencera773bd52006-08-04 18:18:08 +00001553test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001554if $ac_init_version; then
1555 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001556llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001557generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15602002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001564Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001565_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001566 exit
John Criswell7a73b802003-06-30 21:59:07 +00001567fi
Reid Spencera773bd52006-08-04 18:18:08 +00001568cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001569This file contains any messages produced by compilers while
1570running configure, to aid debugging if configure makes a mistake.
1571
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001572It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001573generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001574
1575 $ $0 $@
1576
1577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001578exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001579{
1580cat <<_ASUNAME
1581## --------- ##
1582## Platform. ##
1583## --------- ##
1584
1585hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1593
1594/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001597/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001598/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601
1602_ASUNAME
1603
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001609 echo "PATH: $as_dir"
1610done
Reid Spencera773bd52006-08-04 18:18:08 +00001611IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001612
1613} >&5
1614
1615cat >&5 <<_ACEOF
1616
1617
1618## ----------- ##
1619## Core tests. ##
1620## ----------- ##
1621
1622_ACEOF
1623
1624
1625# Keep a trace of the command line.
1626# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001628# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001630ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001631ac_configure_args0=
1632ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001633ac_must_keep_next=false
1634for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001635do
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 for ac_arg
1637 do
1638 case $ac_arg in
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1642 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001643 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 esac
1646 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001648 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001651 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001653 case $ac_arg in
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 esac
1661 ;;
1662 -* ) ac_must_keep_next=true ;;
1663 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001665 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 ;;
1667 esac
1668 done
John Criswell7a73b802003-06-30 21:59:07 +00001669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001670$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671$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 +00001672
1673# When interrupted or exit'd, cleanup temporary files, and complete
1674# config.log. We remove comments because anyway the quotes in there
1675# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001676# WARNING: Use '\'' to represent an apostrophe within the trap.
1677# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001678trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1680 {
1681 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001682
John Criswell7a73b802003-06-30 21:59:07 +00001683 cat <<\_ASBOX
1684## ---------------- ##
1685## Cache variables. ##
1686## ---------------- ##
1687_ASBOX
1688 echo
1689 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001690(
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in #(
1694 *${as_nl}*)
1695 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001698 esac
1699 case $ac_var in #(
1700 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001701 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001702 esac ;;
1703 esac
1704 done
John Criswell7a73b802003-06-30 21:59:07 +00001705 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001708 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001712 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001714 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001715 esac |
1716 sort
1717)
John Criswell7a73b802003-06-30 21:59:07 +00001718 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001719
1720 cat <<\_ASBOX
1721## ----------------- ##
1722## Output variables. ##
1723## ----------------- ##
1724_ASBOX
1725 echo
1726 for ac_var in $ac_subst_vars
1727 do
Reid Spencera773bd52006-08-04 18:18:08 +00001728 eval ac_val=\$$ac_var
1729 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001731 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 done | sort
1734 echo
1735
1736 if test -n "$ac_subst_files"; then
1737 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001738## ------------------- ##
1739## File substitutions. ##
1740## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001741_ASBOX
1742 echo
1743 for ac_var in $ac_subst_files
1744 do
Reid Spencera773bd52006-08-04 18:18:08 +00001745 eval ac_val=\$$ac_var
1746 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001748 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 done | sort
1751 echo
1752 fi
1753
John Criswell7a73b802003-06-30 21:59:07 +00001754 if test -s confdefs.h; then
1755 cat <<\_ASBOX
1756## ----------- ##
1757## confdefs.h. ##
1758## ----------- ##
1759_ASBOX
1760 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001761 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001762 echo
1763 fi
1764 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001767 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001770 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001771' 0
John Criswell7a73b802003-06-30 21:59:07 +00001772for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001774done
1775ac_signal=0
1776
1777# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001778rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001779
1780# Predefined preprocessor variables.
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_NAME "$PACKAGE_NAME"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789_ACEOF
1790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791
John Criswell7a73b802003-06-30 21:59:07 +00001792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_VERSION "$PACKAGE_VERSION"
1794_ACEOF
1795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796
John Criswell7a73b802003-06-30 21:59:07 +00001797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_STRING "$PACKAGE_STRING"
1799_ACEOF
1800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801
John Criswell7a73b802003-06-30 21:59:07 +00001802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804_ACEOF
1805
1806
1807# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001809if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001811elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817shift
1818for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001819do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file"
1825 fi
1826done
1827
1828if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001834 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001837 esac
1838 fi
1839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 >$cache_file
1843fi
1844
1845# Check that the precious variables saved in the cache have kept the same
1846# value.
1847ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001848for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001853 case $ac_old_set,$ac_new_set in
1854 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001857 ac_cache_corrupted=: ;;
1858 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001861 ac_cache_corrupted=: ;;
1862 ,);;
1863 *)
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001883 esac
1884 fi
1885done
1886if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
Reid Spencera773bd52006-08-04 18:18:08 +00001917
John Criswell7a73b802003-06-30 21:59:07 +00001918ac_ext=c
1919ac_cpp='$CPP $CPPFLAGS'
1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001926LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001927
1928
1929
1930
1931
1932
1933
John Criswell7a73b802003-06-30 21:59:07 +00001934ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001935for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1948 fi
John Criswell7a73b802003-06-30 21:59:07 +00001949done
1950if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001954fi
Reid Spencera773bd52006-08-04 18:18:08 +00001955
1956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963
John Criswell7a73b802003-06-30 21:59:07 +00001964
John Criswell392aaa32003-07-22 19:18:09 +00001965
Reid Spencer2706f8c2004-09-19 23:53:36 +00001966if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001971 fi
John Criswell93e1c722003-09-15 17:04:06 +00001972fi
1973
John Criswell0157f502010-03-19 21:31:39 +00001974
1975
1976if test -d ${srcdir}/projects/llvm-gcc ; then
1977 subdirs="$subdirs projects/llvm-gcc"
1978
1979fi
1980
1981if test -d ${srcdir}/projects/test-suite ; then
1982 subdirs="$subdirs projects/test-suite"
1983
1984fi
1985
1986if test -d ${srcdir}/projects/llvm-test ; then
1987 subdirs="$subdirs projects/llvm-test"
1988
1989fi
1990
1991if test -d ${srcdir}/projects/poolalloc ; then
1992 subdirs="$subdirs projects/poolalloc"
1993
1994fi
1995
1996if test -d ${srcdir}/projects/llvm-poolalloc ; then
1997 subdirs="$subdirs projects/llvm-poolalloc"
1998
1999fi
2000
John Criswell33a911a2003-11-25 20:36:46 +00002001for i in `ls ${srcdir}/projects`
2002do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002003 if test -d ${srcdir}/projects/${i} ; then
2004 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002005 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002006 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002007 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002008 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002009 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002011 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002012;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002013 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002014 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002015 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002016 ;;
John Criswell7def2932010-02-25 22:57:19 +00002017 safecode) subdirs="$subdirs projects/safecode"
2018 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002019 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002020 ;;
John Criswell52c02862010-03-25 13:59:09 +00002021 llvm-gcc) ;;
2022 test-suite) ;;
2023 llvm-test) ;;
2024 poolalloc) ;;
2025 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002026 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002029 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002030 esac
John Criswell33a911a2003-11-25 20:36:46 +00002031 fi
2032done
John Criswell559a6c12003-09-30 16:31:48 +00002033
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002034# Check whether --enable-polly was given.
2035if test "${enable_polly+set}" = set; then
2036 enableval=$enable_polly;
2037else
2038 enableval=default
2039fi
2040
2041case "$enableval" in
2042 yes) ENABLE_POLLY=1
2043 ;;
2044 no) ENABLE_POLLY=0
2045 ;;
2046 default) ENABLE_POLLY=1
2047 ;;
2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050 { (exit 1); exit 1; }; } ;;
2051esac
2052
2053
2054if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2055 LLVM_HAS_POLLY=1
2056
2057 subdirs="$subdirs tools/polly"
2058
2059fi
2060
John Criswell7a73b802003-06-30 21:59:07 +00002061
2062# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002063$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068{ echo "$as_me:$LINENO: checking build system type" >&5
2069echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070if test "${ac_cv_build+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002072else
Reid Spencera773bd52006-08-04 18:18:08 +00002073 ac_build_alias=$build_alias
2074test "x$ac_build_alias" = x &&
2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002080ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002084
2085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002088case $ac_cv_build in
2089*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002090*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002093esac
John Criswell7a73b802003-06-30 21:59:07 +00002094build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002095ac_save_IFS=$IFS; IFS='-'
2096set x $ac_cv_build
2097shift
2098build_cpu=$1
2099build_vendor=$2
2100shift; shift
2101# Remember, the first character of IFS is used to create $*,
2102# except with old shells:
2103build_os=$*
2104IFS=$ac_save_IFS
2105case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002106
2107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108{ echo "$as_me:$LINENO: checking host system type" >&5
2109echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002112else
Reid Spencera773bd52006-08-04 18:18:08 +00002113 if test "x$host_alias" = x; then
2114 ac_cv_host=$ac_cv_build
2115else
2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002120fi
John Criswell7a73b802003-06-30 21:59:07 +00002121
2122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002123{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002125case $ac_cv_host in
2126*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002127*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002130esac
John Criswell7a73b802003-06-30 21:59:07 +00002131host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002132ac_save_IFS=$IFS; IFS='-'
2133set x $ac_cv_host
2134shift
2135host_cpu=$1
2136host_vendor=$2
2137shift; shift
2138# Remember, the first character of IFS is used to create $*,
2139# except with old shells:
2140host_os=$*
2141IFS=$ac_save_IFS
2142case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002143
2144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002145{ echo "$as_me:$LINENO: checking target system type" >&5
2146echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147if test "${ac_cv_target+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002149else
Reid Spencera773bd52006-08-04 18:18:08 +00002150 if test "x$target_alias" = x; then
2151 ac_cv_target=$ac_cv_host
2152else
2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002157fi
John Criswell7a73b802003-06-30 21:59:07 +00002158
2159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002162case $ac_cv_target in
2163*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002164*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165echo "$as_me: error: invalid value of canonical target" >&2;}
2166 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002167esac
John Criswell7a73b802003-06-30 21:59:07 +00002168target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002169ac_save_IFS=$IFS; IFS='-'
2170set x $ac_cv_target
2171shift
2172target_cpu=$1
2173target_vendor=$2
2174shift; shift
2175# Remember, the first character of IFS is used to create $*,
2176# except with old shells:
2177target_os=$*
2178IFS=$ac_save_IFS
2179case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002180
2181
2182# The aliases save the names the user supplied, while $host etc.
2183# will get canonicalized.
2184test -n "$target_alias" &&
2185 test "$program_prefix$program_suffix$program_transform_name" = \
2186 NONENONEs,x,x, &&
2187 program_prefix=${target_alias}-
2188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191if test "${llvm_cv_os_type+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002193else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002194 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002195 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 llvm_cv_os_type="AIX"
2199 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002200 *-*-irix*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="IRIX"
2204 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002205 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002208 llvm_cv_os_type="Cygwin"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002211 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002212 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002213 llvm_cv_os_type="Darwin"
2214 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002215 *-*-minix*)
2216 llvm_cv_link_all_option="-Wl,-all_load"
2217 llvm_cv_no_link_all_option="-Wl,-noall_load"
2218 llvm_cv_os_type="Minix"
2219 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002220 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002223 llvm_cv_os_type="FreeBSD"
2224 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002225 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002228 llvm_cv_os_type="OpenBSD"
2229 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002230 *-*-netbsd*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="NetBSD"
2234 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002235 *-*-dragonfly*)
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="DragonFly"
2239 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002240 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002243 llvm_cv_os_type="HP-UX"
2244 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002248 llvm_cv_os_type="Interix"
2249 llvm_cv_platform_type="Unix" ;;
2250 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 llvm_cv_os_type="Linux"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002256 llvm_cv_link_all_option="-Wl,-z,allextract"
2257 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 llvm_cv_os_type="SunOS"
2259 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002260 *-*-auroraux*)
2261 llvm_cv_link_all_option="-Wl,-z,allextract"
2262 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2263 llvm_cv_os_type="AuroraUX"
2264 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="Win32"
2269 llvm_cv_platform_type="Win32" ;;
2270 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 llvm_cv_os_type="MingW"
2274 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002275 *-*-haiku*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Haiku"
2279 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002280 *-unknown-eabi*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="Freestanding"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-unknown-elf*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Freestanding"
2289 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option=""
2292 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 llvm_cv_os_type="Unknown"
2294 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002295esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302if test "${llvm_cv_target_os_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002304else
2305 case $target in
2306 *-*-aix*)
2307 llvm_cv_target_os_type="AIX" ;;
2308 *-*-irix*)
2309 llvm_cv_target_os_type="IRIX" ;;
2310 *-*-cygwin*)
2311 llvm_cv_target_os_type="Cygwin" ;;
2312 *-*-darwin*)
2313 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002314 *-*-minix*)
2315 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002316 *-*-freebsd*)
2317 llvm_cv_target_os_type="FreeBSD" ;;
2318 *-*-openbsd*)
2319 llvm_cv_target_os_type="OpenBSD" ;;
2320 *-*-netbsd*)
2321 llvm_cv_target_os_type="NetBSD" ;;
2322 *-*-dragonfly*)
2323 llvm_cv_target_os_type="DragonFly" ;;
2324 *-*-hpux*)
2325 llvm_cv_target_os_type="HP-UX" ;;
2326 *-*-interix*)
2327 llvm_cv_target_os_type="Interix" ;;
2328 *-*-linux*)
2329 llvm_cv_target_os_type="Linux" ;;
2330 *-*-solaris*)
2331 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002332 *-*-auroraux*)
2333 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002334 *-*-win32*)
2335 llvm_cv_target_os_type="Win32" ;;
2336 *-*-mingw*)
2337 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002338 *-*-haiku*)
2339 llvm_cv_target_os_type="Haiku" ;;
Douglas Gregor6ced1d12011-07-01 22:41:06 +00002340 *-*-rtems*)
2341 llvm_cv_target_os_type="RTEMS" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002342 *-unknown-eabi*)
2343 llvm_cv_target_os_type="Freestanding" ;;
2344 *)
2345 llvm_cv_target_os_type="Unknown" ;;
2346esac
2347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2349echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002350
Reid Spencer7b3e8512004-12-24 06:29:05 +00002351if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2353echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2354 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002355fi
2356
Reid Spencer7b3e8512004-12-24 06:29:05 +00002357OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002358
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002359HOST_OS=$llvm_cv_os_type
2360
2361TARGET_OS=$llvm_cv_target_os_type
2362
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002363
Reid Spencera773bd52006-08-04 18:18:08 +00002364LINKALL=$llvm_cv_link_all_option
2365
2366NOLINKALL=$llvm_cv_no_link_all_option
2367
2368
Reid Spencer7b3e8512004-12-24 06:29:05 +00002369case $llvm_cv_platform_type in
2370 Unix)
2371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372cat >>confdefs.h <<\_ACEOF
2373#define LLVM_ON_UNIX 1
2374_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002375
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002376 LLVM_ON_UNIX=1
2377
2378 LLVM_ON_WIN32=0
2379
Reid Spencer7b3e8512004-12-24 06:29:05 +00002380 ;;
2381 Win32)
2382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002383cat >>confdefs.h <<\_ACEOF
2384#define LLVM_ON_WIN32 1
2385_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002386
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002387 LLVM_ON_UNIX=0
2388
2389 LLVM_ON_WIN32=1
2390
Reid Spencer7b3e8512004-12-24 06:29:05 +00002391 ;;
2392esac
2393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002394{ echo "$as_me:$LINENO: checking target architecture" >&5
2395echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398else
2399 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002400 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002402 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002404 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002405 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002406 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002407 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002408 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002409 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002410 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002411 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002412 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002413 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002414esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2417echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002418
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2421echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422fi
John Criswell76595452003-07-01 22:07:39 +00002423
Nick Lewycky83fc4472009-09-29 05:48:51 +00002424# Determine the LLVM native architecture for the target
2425case "$llvm_cv_target_arch" in
2426 x86) LLVM_NATIVE_ARCH="X86" ;;
2427 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2428 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2429esac
2430
2431ARCH=$llvm_cv_target_arch
2432
2433
2434ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435ac_cpp='$CPP $CPPFLAGS'
2436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002439if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444if test "${ac_cv_prog_CC+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446else
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC="$CC" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 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 +00002457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459 break 2
2460 fi
2461done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002462done
Reid Spencera773bd52006-08-04 18:18:08 +00002463IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464
2465fi
2466fi
2467CC=$ac_cv_prog_CC
2468if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002469 { echo "$as_me:$LINENO: result: $CC" >&5
2470echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002472 { echo "$as_me:$LINENO: result: no" >&5
2473echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474fi
2475
Reid Spencera773bd52006-08-04 18:18:08 +00002476
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477fi
2478if test -z "$ac_cv_prog_CC"; then
2479 ac_ct_CC=$CC
2480 # Extract the first word of "gcc", so it can be a program name with args.
2481set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486else
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 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 +00002497 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499 break 2
2500 fi
2501done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002502done
Reid Spencera773bd52006-08-04 18:18:08 +00002503IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504
2505fi
2506fi
2507ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002512 { echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514fi
2515
Reid Spencera773bd52006-08-04 18:18:08 +00002516 if test "x$ac_ct_CC" = x; then
2517 CC=""
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522whose name does not start with the host triplet. If you think this
2523configuration is useful to you, please write to autoconf@gnu.org." >&5
2524echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525whose name does not start with the host triplet. If you think this
2526configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002527ac_tool_warned=yes ;;
2528esac
2529 CC=$ac_ct_CC
2530 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531else
2532 CC="$ac_cv_prog_CC"
2533fi
2534
2535if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002536 if test -n "$ac_tool_prefix"; then
2537 # 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 +00002538set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002539{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546else
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 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 +00002554 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556 break 2
2557 fi
2558done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559done
Reid Spencera773bd52006-08-04 18:18:08 +00002560IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561
2562fi
2563fi
2564CC=$ac_cv_prog_CC
2565if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002566 { echo "$as_me:$LINENO: result: $CC" >&5
2567echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002569 { echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571fi
2572
Reid Spencera773bd52006-08-04 18:18:08 +00002573
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002574 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575fi
2576if test -z "$CC"; then
2577 # Extract the first word of "cc", so it can be a program name with args.
2578set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
2587 ac_prog_rejected=no
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 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 +00002595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2596 ac_prog_rejected=yes
2597 continue
2598 fi
2599 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601 break 2
2602 fi
2603done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604done
Reid Spencera773bd52006-08-04 18:18:08 +00002605IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606
2607if test $ac_prog_rejected = yes; then
2608 # We found a bogon in the path, so make sure we never use it.
2609 set dummy $ac_cv_prog_CC
2610 shift
2611 if test $# != 0; then
2612 # We chose a different compiler from the bogus one.
2613 # However, it has the same basename, so the bogon will be chosen
2614 # first if we set CC to just the basename; use the full file name.
2615 shift
2616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 fi
2618fi
2619fi
2620fi
2621CC=$ac_cv_prog_CC
2622if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623 { echo "$as_me:$LINENO: result: $CC" >&5
2624echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002626 { echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628fi
2629
Reid Spencera773bd52006-08-04 18:18:08 +00002630
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631fi
2632if test -z "$CC"; then
2633 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002634 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002635 do
2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640if test "${ac_cv_prog_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002642else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 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 +00002653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002655 break 2
2656 fi
2657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002658done
Reid Spencera773bd52006-08-04 18:18:08 +00002659IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002660
2661fi
2662fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663CC=$ac_cv_prog_CC
2664if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002665 { echo "$as_me:$LINENO: result: $CC" >&5
2666echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002668 { echo "$as_me:$LINENO: result: no" >&5
2669echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002670fi
2671
Reid Spencera773bd52006-08-04 18:18:08 +00002672
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002673 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002674 done
2675fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676if test -z "$CC"; then
2677 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002678 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002679do
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002686else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 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 +00002697 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002699 break 2
2700 fi
2701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002702done
Reid Spencera773bd52006-08-04 18:18:08 +00002703IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002704
2705fi
2706fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002707ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002711else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002712 { echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002714fi
2715
Reid Spencera773bd52006-08-04 18:18:08 +00002716
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002717 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002718done
John Criswell7a73b802003-06-30 21:59:07 +00002719
Reid Spencera773bd52006-08-04 18:18:08 +00002720 if test "x$ac_ct_CC" = x; then
2721 CC=""
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002725{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2726whose name does not start with the host triplet. If you think this
2727configuration is useful to you, please write to autoconf@gnu.org." >&5
2728echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2729whose name does not start with the host triplet. If you think this
2730configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002731ac_tool_warned=yes ;;
2732esac
2733 CC=$ac_ct_CC
2734 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002735fi
2736
John Criswell7a73b802003-06-30 21:59:07 +00002737fi
2738
2739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2741See \`config.log' for more details." >&5
2742echo "$as_me: error: no acceptable C compiler found in \$PATH
2743See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745
John Criswell7a73b802003-06-30 21:59:07 +00002746# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747echo "$as_me:$LINENO: checking for C compiler version" >&5
2748ac_compiler=`set X $ac_compile; echo $2`
2749{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002750case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002756 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759{ (ac_try="$ac_compiler -v >&5"
2760case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763esac
2764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -v >&5") 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2769{ (ac_try="$ac_compiler -V >&5"
2770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler -V >&5") 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002780cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h. */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002785/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002786
John Criswell7a73b802003-06-30 21:59:07 +00002787int
2788main ()
2789{
2790
2791 ;
2792 return 0;
2793}
2794_ACEOF
2795ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002796ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002797# Try to create an executable without -o first, disregard a.out.
2798# It will help us diagnose broken compilers, and finding out an intuition
2799# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002800{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2802ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2803#
2804# List of possible output files, starting from the most likely.
2805# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2806# only as a last resort. b.out is created by i960 compilers.
2807ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2808#
2809# The IRIX 6 linker writes into existing files which may not be
2810# executable, retaining their permissions. Remove them first so a
2811# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002812ac_rmfiles=
2813for ac_file in $ac_files
2814do
2815 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002817 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 esac
2819done
2820rm -f $ac_rmfiles
2821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002822if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002823case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002828 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002829 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834# in a Makefile. We should not override ac_cv_exeext if it was cached,
2835# so that the user can short-circuit this test for compilers unknown to
2836# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002837for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002838do
2839 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002840 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002842 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002843 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002844 # We found the default executable, but exeext='' is most
2845 # certainly right.
2846 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002847 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002849 then :; else
2850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 fi
2852 # We set ac_cv_exeext here because the later test for it is not
2853 # safe: cross compilers may not add the suffix if given an `-o'
2854 # argument, so we may need to know it at that point already.
2855 # Even if this section looks crufty: it has the advantage of
2856 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002857 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002858 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002859 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002860 esac
2861done
Reid Spencera773bd52006-08-04 18:18:08 +00002862test "$ac_cv_exeext" = no && ac_cv_exeext=
2863
John Criswell7a73b802003-06-30 21:59:07 +00002864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002866sed 's/^/| /' conftest.$ac_ext >&5
2867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002868{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869See \`config.log' for more details." >&5
2870echo "$as_me: error: C compiler cannot create executables
2871See \`config.log' for more details." >&2;}
2872 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002873fi
John Criswell7a73b802003-06-30 21:59:07 +00002874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002875ac_exeext=$ac_cv_exeext
2876{ echo "$as_me:$LINENO: result: $ac_file" >&5
2877echo "${ECHO_T}$ac_file" >&6; }
2878
2879# Check that the compiler produces executables we can run. If not, either
2880# the compiler is broken, or we cross compile.
2881{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884# If not cross compiling, check that we can run a simple program.
2885if test "$cross_compiling" != yes; then
2886 if { ac_try='./$ac_file'
2887 { (case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 cross_compiling=no
2897 else
2898 if test "$cross_compiling" = maybe; then
2899 cross_compiling=yes
2900 else
2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902If you meant to cross compile, use \`--host'.
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot run C compiled programs.
2905If you meant to cross compile, use \`--host'.
2906See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2908 fi
2909 fi
2910fi
2911{ echo "$as_me:$LINENO: result: yes" >&5
2912echo "${ECHO_T}yes" >&6; }
2913
2914rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002915ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002916# Check that the compiler produces executables we can run. If not, either
2917# the compiler is broken, or we cross compile.
2918{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921echo "${ECHO_T}$cross_compiling" >&6; }
2922
2923{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002931 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002932 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002935 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2937# work properly (i.e., refer to `conftest.exe'), while it won't with
2938# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002939for ac_file in conftest.exe conftest conftest.*; do
2940 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002941 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002944 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002945 * ) break;;
2946 esac
2947done
2948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950See \`config.log' for more details." >&5
2951echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002954fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002955
2956rm -f conftest$ac_cv_exeext
2957{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002959
2960rm -f conftest.$ac_ext
2961EXEEXT=$ac_cv_exeext
2962ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002963{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965if test "${ac_cv_objext+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002968 cat >conftest.$ac_ext <<_ACEOF
2969/* confdefs.h. */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002973/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002974
John Criswell7a73b802003-06-30 21:59:07 +00002975int
2976main ()
2977{
2978
2979 ;
2980 return 0;
2981}
2982_ACEOF
2983rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002984if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002990 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002991 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002996 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999 break;;
3000 esac
3001done
3002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003004sed 's/^/| /' conftest.$ac_ext >&5
3005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003006{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007See \`config.log' for more details." >&5
3008echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003012
John Criswell7a73b802003-06-30 21:59:07 +00003013rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003015{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003017OBJEXT=$ac_cv_objext
3018ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003019{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003024 cat >conftest.$ac_ext <<_ACEOF
3025/* confdefs.h. */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003030
John Criswell7a73b802003-06-30 21:59:07 +00003031int
3032main ()
3033{
3034#ifndef __GNUC__
3035 choke me
3036#endif
3037
3038 ;
3039 return 0;
3040}
3041_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003042rm -f conftest.$ac_objext
3043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003076 ac_compiler_gnu=yes
3077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003078 echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003082fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003083
Reid Spencera773bd52006-08-04 18:18:08 +00003084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003085ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003086
3087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003088{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3089echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3090GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003091ac_test_CFLAGS=${CFLAGS+set}
3092ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003093{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3094echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3095if test "${ac_cv_prog_cc_g+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003097else
Reid Spencera773bd52006-08-04 18:18:08 +00003098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
3100 ac_cv_prog_cc_g=no
3101 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003102 cat >conftest.$ac_ext <<_ACEOF
3103/* confdefs.h. */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003108
John Criswell7a73b802003-06-30 21:59:07 +00003109int
3110main ()
3111{
3112
3113 ;
3114 return 0;
3115}
3116_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003117rm -f conftest.$ac_objext
3118if { (ac_try="$ac_compile"
3119case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003151 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003153 echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 CFLAGS=""
3157 cat >conftest.$ac_ext <<_ACEOF
3158/* confdefs.h. */
3159_ACEOF
3160cat confdefs.h >>conftest.$ac_ext
3161cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003162/* end confdefs.h. */
3163
3164int
3165main ()
3166{
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003172rm -f conftest.$ac_objext
3173if { (ac_try="$ac_compile"
3174case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 :
Torok Edwin871384f2010-01-26 08:50:50 +00003207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003208 echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003212 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003218/* end confdefs.h. */
3219
3220int
3221main ()
3222{
3223
3224 ;
3225 return 0;
3226}
3227_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003228rm -f conftest.$ac_objext
3229if { (ac_try="$ac_compile"
3230case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233esac
3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_try") 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_try") 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003262 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003263else
3264 echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
3267
John Criswell7a73b802003-06-30 21:59:07 +00003268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003269
Reid Spencera773bd52006-08-04 18:18:08 +00003270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003272
Reid Spencera773bd52006-08-04 18:18:08 +00003273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003275
Reid Spencera773bd52006-08-04 18:18:08 +00003276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_c_werror_flag=$ac_save_c_werror_flag
3278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003279{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3280echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281if test "$ac_test_CFLAGS" = set; then
3282 CFLAGS=$ac_save_CFLAGS
3283elif test $ac_cv_prog_cc_g = yes; then
3284 if test "$GCC" = yes; then
3285 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003286 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003288 fi
3289else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290 if test "$GCC" = yes; then
3291 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003292 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003294 fi
3295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003296{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3297echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3298if test "${ac_cv_prog_cc_c89+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003300else
Reid Spencera773bd52006-08-04 18:18:08 +00003301 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003303cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308/* end confdefs.h. */
3309#include <stdarg.h>
3310#include <stdio.h>
3311#include <sys/types.h>
3312#include <sys/stat.h>
3313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314struct buf { int x; };
3315FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316static char *e (p, i)
3317 char **p;
3318 int i;
3319{
3320 return p[i];
3321}
3322static char *f (char * (*g) (char **, int), char **p, ...)
3323{
3324 char *s;
3325 va_list v;
3326 va_start (v,p);
3327 s = g (p, va_arg (v,int));
3328 va_end (v);
3329 return s;
3330}
3331
3332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003335 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003338 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3340
Reid Spencera773bd52006-08-04 18:18:08 +00003341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3343#define FOO(x) 'x'
3344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3345
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346int test (int i, double x);
3347struct s1 {int (*f) (int a);};
3348struct s2 {int (*f) (double a);};
3349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350int argc;
3351char **argv;
3352int
3353main ()
3354{
3355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356 ;
3357 return 0;
3358}
3359_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362do
3363 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003364 rm -f conftest.$ac_objext
3365if { (ac_try="$ac_compile"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_compile") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3379 { (case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
3383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_try") 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_try") 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003398 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003399else
3400 echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405
Reid Spencera773bd52006-08-04 18:18:08 +00003406rm -f core conftest.err conftest.$ac_objext
3407 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408done
Reid Spencera773bd52006-08-04 18:18:08 +00003409rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410CC=$ac_save_CC
3411
3412fi
Reid Spencera773bd52006-08-04 18:18:08 +00003413# AC_CACHE_VAL
3414case "x$ac_cv_prog_cc_c89" in
3415 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003416 { echo "$as_me:$LINENO: result: none needed" >&5
3417echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003418 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419 { echo "$as_me:$LINENO: result: unsupported" >&5
3420echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003422 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003423 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3424echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425esac
3426
John Criswell0c38eaf2003-09-10 15:17:25 +00003427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435ac_ext=c
3436ac_cpp='$CPP $CPPFLAGS'
3437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442# On Suns, sometimes $CPP names a directory.
3443if test -n "$CPP" && test -d "$CPP"; then
3444 CPP=
3445fi
3446if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003447 if test "${ac_cv_prog_CPP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449else
3450 # Double quotes because CPP needs to be expanded
3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3452 do
3453 ac_preproc_ok=false
3454for ac_c_preproc_warn_flag in '' yes
3455do
3456 # Use a header file that comes with gcc, so configuring glibc
3457 # with a fresh cross-compiler works.
3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459 # <limits.h> exists even on freestanding compilers.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003462 cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467/* end confdefs.h. */
3468#ifdef __STDC__
3469# include <limits.h>
3470#else
3471# include <assert.h>
3472#endif
3473 Syntax error
3474_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003475if { (ac_try="$ac_cpp conftest.$ac_ext"
3476case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479esac
3480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491 else
3492 ac_cpp_err=
3493 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003495 ac_cpp_err=yes
3496fi
3497if test -z "$ac_cpp_err"; then
3498 :
3499else
3500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503 # Broken: fails on valid input.
3504continue
3505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003506
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003507rm -f conftest.err conftest.$ac_ext
3508
Reid Spencera773bd52006-08-04 18:18:08 +00003509 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003511 cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003516/* end confdefs.h. */
3517#include <ac_nonexistent.h>
3518_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003519if { (ac_try="$ac_cpp conftest.$ac_ext"
3520case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523esac
3524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535 else
3536 ac_cpp_err=
3537 fi
3538else
3539 ac_cpp_err=yes
3540fi
3541if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003542 # Broken: success on invalid input.
3543continue
3544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003545 echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548 # Passes both tests.
3549ac_preproc_ok=:
3550break
3551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003552
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003553rm -f conftest.err conftest.$ac_ext
3554
3555done
3556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003558if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003559 break
3560fi
3561
3562 done
3563 ac_cv_prog_CPP=$CPP
3564
3565fi
3566 CPP=$ac_cv_prog_CPP
3567else
3568 ac_cv_prog_CPP=$CPP
3569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003570{ echo "$as_me:$LINENO: result: $CPP" >&5
3571echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572ac_preproc_ok=false
3573for ac_c_preproc_warn_flag in '' yes
3574do
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003581 cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586/* end confdefs.h. */
3587#ifdef __STDC__
3588# include <limits.h>
3589#else
3590# include <assert.h>
3591#endif
3592 Syntax error
3593_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003594if { (ac_try="$ac_cpp conftest.$ac_ext"
3595case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598esac
3599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610 else
3611 ac_cpp_err=
3612 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003614 ac_cpp_err=yes
3615fi
3616if test -z "$ac_cpp_err"; then
3617 :
3618else
3619 echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622 # Broken: fails on valid input.
3623continue
3624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003625
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003626rm -f conftest.err conftest.$ac_ext
3627
Reid Spencera773bd52006-08-04 18:18:08 +00003628 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003629 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003630 cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003635/* end confdefs.h. */
3636#include <ac_nonexistent.h>
3637_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003638if { (ac_try="$ac_cpp conftest.$ac_ext"
3639case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642esac
3643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } >/dev/null; then
3651 if test -s conftest.err; then
3652 ac_cpp_err=$ac_c_preproc_warn_flag
3653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3654 else
3655 ac_cpp_err=
3656 fi
3657else
3658 ac_cpp_err=yes
3659fi
3660if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003661 # Broken: success on invalid input.
3662continue
3663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003664 echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003667 # Passes both tests.
3668ac_preproc_ok=:
3669break
3670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003671
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003672rm -f conftest.err conftest.$ac_ext
3673
3674done
3675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3676rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003677if $ac_preproc_ok; then
3678 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003680 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3681See \`config.log' for more details." >&5
3682echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3683See \`config.log' for more details." >&2;}
3684 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003685fi
3686
John Criswell7a73b802003-06-30 21:59:07 +00003687ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
John Criswell7a73b802003-06-30 21:59:07 +00003693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003694{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3695echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3696if test "${ac_cv_path_GREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003699 # Extract the first word of "grep ggrep" to use in msg output
3700if test -z "$GREP"; then
3701set dummy grep ggrep; ac_prog_name=$2
3702if test "${ac_cv_path_GREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
Reid Spencera773bd52006-08-04 18:18:08 +00003705 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003706# Loop through the user's path and test for each of PROGNAME-LIST
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003712 for ac_prog in grep ggrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003717 # Check for GNU $ac_path_GREP
3718case `"$ac_path_GREP" --version 2>&1` in
3719*GNU*)
3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3721*)
3722 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003724 while :
3725 do
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003729 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003732 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP="$ac_path_GREP"
3736 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003737 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3740 done
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742esac
3743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003744
3745 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003746 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003747done
3748
3749done
Reid Spencera773bd52006-08-04 18:18:08 +00003750IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003751
3752
3753fi
3754
3755GREP="$ac_cv_path_GREP"
3756if test -z "$GREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3760fi
3761
Reid Spencera773bd52006-08-04 18:18:08 +00003762else
3763 ac_cv_path_GREP=$GREP
3764fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766
Reid Spencera773bd52006-08-04 18:18:08 +00003767fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003768{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3769echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003770 GREP="$ac_cv_path_GREP"
3771
3772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003773{ echo "$as_me:$LINENO: checking for egrep" >&5
3774echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3775if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003777else
3778 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3779 then ac_cv_path_EGREP="$GREP -E"
3780 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003781 # Extract the first word of "egrep" to use in msg output
3782if test -z "$EGREP"; then
3783set dummy egrep; ac_prog_name=$2
3784if test "${ac_cv_path_EGREP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
Reid Spencera773bd52006-08-04 18:18:08 +00003787 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003788# Loop through the user's path and test for each of PROGNAME-LIST
3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003790for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003794 for ac_prog in egrep; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3797 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3798 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003799 # Check for GNU $ac_path_EGREP
3800case `"$ac_path_EGREP" --version 2>&1` in
3801*GNU*)
3802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3803*)
3804 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003805 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003806 while :
3807 do
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003811 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003814 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_EGREP="$ac_path_EGREP"
3818 ac_path_EGREP_max=$ac_count
3819 fi
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3822 done
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824esac
3825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003826
3827 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003828 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003829done
3830
3831done
Reid Spencera773bd52006-08-04 18:18:08 +00003832IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003833
3834
3835fi
3836
3837EGREP="$ac_cv_path_EGREP"
3838if test -z "$EGREP"; then
3839 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841 { (exit 1); exit 1; }; }
3842fi
3843
Reid Spencera773bd52006-08-04 18:18:08 +00003844else
3845 ac_cv_path_EGREP=$EGREP
3846fi
3847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003848
Reid Spencera773bd52006-08-04 18:18:08 +00003849 fi
3850fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003851{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3852echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003853 EGREP="$ac_cv_path_EGREP"
3854
3855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003856{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3858if test "${ac_cv_header_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003861 cat >conftest.$ac_ext <<_ACEOF
3862/* confdefs.h. */
3863_ACEOF
3864cat confdefs.h >>conftest.$ac_ext
3865cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003867#include <stdlib.h>
3868#include <stdarg.h>
3869#include <string.h>
3870#include <float.h>
3871
John Criswell0c38eaf2003-09-10 15:17:25 +00003872int
3873main ()
3874{
3875
3876 ;
3877 return 0;
3878}
John Criswell7a73b802003-06-30 21:59:07 +00003879_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003880rm -f conftest.$ac_objext
3881if { (ac_try="$ac_compile"
3882case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885esac
3886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3895 { (case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898esac
3899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_try") 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest.$ac_objext'
3905 { (case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908esac
3909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_try") 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003914 ac_cv_header_stdc=yes
3915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003916 echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003921
Reid Spencera773bd52006-08-04 18:18:08 +00003922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003923
3924if test $ac_cv_header_stdc = yes; then
3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 cat >conftest.$ac_ext <<_ACEOF
3927/* confdefs.h. */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003932#include <string.h>
3933
3934_ACEOF
3935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003936 $EGREP "memchr" >/dev/null 2>&1; then
3937 :
John Criswell7a73b802003-06-30 21:59:07 +00003938else
3939 ac_cv_header_stdc=no
3940fi
3941rm -f conftest*
3942
3943fi
3944
3945if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947 cat >conftest.$ac_ext <<_ACEOF
3948/* confdefs.h. */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003952/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003953#include <stdlib.h>
3954
3955_ACEOF
3956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957 $EGREP "free" >/dev/null 2>&1; then
3958 :
John Criswell7a73b802003-06-30 21:59:07 +00003959else
3960 ac_cv_header_stdc=no
3961fi
3962rm -f conftest*
3963
3964fi
3965
3966if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003968 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003969 :
3970else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003971 cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003976/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003977#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003978#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003979#if ((' ' & 0x0FF) == 0x020)
3980# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3982#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003983# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003984 (('a' <= (c) && (c) <= 'i') \
3985 || ('j' <= (c) && (c) <= 'r') \
3986 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003987# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3988#endif
3989
3990#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991int
3992main ()
3993{
3994 int i;
3995 for (i = 0; i < 256; i++)
3996 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003997 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003998 return 2;
3999 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004000}
4001_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002rm -f conftest$ac_exeext
4003if { (ac_try="$ac_link"
4004case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_link") 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4022 :
John Criswell7a73b802003-06-30 21:59:07 +00004023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004024 echo "$as_me: program exited with status $ac_status" >&5
4025echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028( exit $ac_status )
4029ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004031rm -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 +00004032fi
4033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034
John Criswell7a73b802003-06-30 21:59:07 +00004035fi
4036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004037{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004039if test $ac_cv_header_stdc = yes; then
4040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041cat >>confdefs.h <<\_ACEOF
4042#define STDC_HEADERS 1
4043_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004044
4045fi
4046
Reid Spencera773bd52006-08-04 18:18:08 +00004047# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004048
4049
4050
4051
4052
4053
4054
4055
4056
Reid Spencera773bd52006-08-04 18:18:08 +00004057for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059do
4060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066 cat >conftest.$ac_ext <<_ACEOF
4067/* confdefs.h. */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h. */
4072$ac_includes_default
4073
4074#include <$ac_header>
4075_ACEOF
4076rm -f conftest.$ac_objext
4077if { (ac_try="$ac_compile"
4078case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
4095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 eval "$as_ac_Header=yes"
4111else
4112 echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 eval "$as_ac_Header=no"
4116fi
4117
4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119fi
4120ac_res=`eval echo '${'$as_ac_Header'}'`
4121 { echo "$as_me:$LINENO: result: $ac_res" >&5
4122echo "${ECHO_T}$ac_res" >&6; }
4123if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004124 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004126_ACEOF
4127
4128fi
4129
4130done
4131
4132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004133{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4134echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4135if test "${ac_cv_c_bigendian+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004137else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004138 # See if sys/param.h defines the BYTE_ORDER macro.
4139cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004141_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004144/* end confdefs.h. */
4145#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004146#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004147
4148int
4149main ()
4150{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004151#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4152 bogus endian macros
4153#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004154
4155 ;
4156 return 0;
4157}
4158_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159rm -f conftest.$ac_objext
4160if { (ac_try="$ac_compile"
4161case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004193 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194cat >conftest.$ac_ext <<_ACEOF
4195/* confdefs.h. */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004199/* end confdefs.h. */
4200#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004202
4203int
4204main ()
4205{
4206#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004207 not big endian
4208#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004209
4210 ;
4211 return 0;
4212}
4213_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004214rm -f conftest.$ac_objext
4215if { (ac_try="$ac_compile"
4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004248 ac_cv_c_bigendian=yes
4249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004250 echo "$as_me: failed program was:" >&5
4251sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004253 ac_cv_c_bigendian=no
4254fi
4255
4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257else
4258 echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 # It does not; compile a test program.
4262if test "$cross_compiling" = yes; then
4263 # try to guess the endianness by grepping values into an object file
4264 ac_cv_c_bigendian=unknown
4265 cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h. */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h. */
4271short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4272short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4273void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4274short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4275short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4276void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004277int
4278main ()
4279{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004280 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004281 ;
4282 return 0;
4283}
4284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004285rm -f conftest.$ac_objext
4286if { (ac_try="$ac_compile"
4287case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest.$ac_objext'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004320 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004321fi
4322if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4323 if test "$ac_cv_c_bigendian" = unknown; then
4324 ac_cv_c_bigendian=no
4325 else
4326 # finding both strings is unlikely to happen, but who knows?
4327 ac_cv_c_bigendian=unknown
4328 fi
4329fi
Reid Spencera773bd52006-08-04 18:18:08 +00004330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004331 echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004334
Torok Edwin871384f2010-01-26 08:50:50 +00004335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336
Reid Spencera773bd52006-08-04 18:18:08 +00004337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004344/* end confdefs.h. */
4345$ac_includes_default
4346int
4347main ()
4348{
4349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350 /* Are we little or big endian? From Harbison&Steele. */
4351 union
4352 {
4353 long int l;
4354 char c[sizeof (long int)];
4355 } u;
4356 u.l = 1;
4357 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004358
4359 ;
4360 return 0;
4361}
4362_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004363rm -f conftest$ac_exeext
4364if { (ac_try="$ac_link"
4365case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_link") 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004383 ac_cv_c_bigendian=no
4384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385 echo "$as_me: program exited with status $ac_status" >&5
4386echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389( exit $ac_status )
4390ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392rm -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 +00004393fi
4394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004395
Reid Spencera773bd52006-08-04 18:18:08 +00004396fi
4397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399fi
4400{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4401echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4402case $ac_cv_c_bigendian in
4403 yes)
4404 ENDIAN=big
4405 ;;
4406 no)
4407 ENDIAN=little
4408 ;;
4409 *)
4410 { { echo "$as_me:$LINENO: error: unknown endianness
4411presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4412echo "$as_me: error: unknown endianness
4413presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4414 { (exit 1); exit 1; }; } ;;
4415esac
Reid Spencera773bd52006-08-04 18:18:08 +00004416
4417
4418if test "$cross_compiling" = yes; then
4419 LLVM_CROSS_COMPILING=1
4420
4421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004422{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4423echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4424if test "${ac_cv_build_exeext+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004426else
4427 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4428 ac_cv_build_exeext=.exe
4429else
4430 ac_build_prefix=${build_alias}-
4431
4432 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4433set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004438else
4439 if test -n "$BUILD_CC"; then
4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4441else
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 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 +00004449 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004451 break 2
4452 fi
4453done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454done
Reid Spencera773bd52006-08-04 18:18:08 +00004455IFS=$as_save_IFS
4456
4457fi
4458fi
4459BUILD_CC=$ac_cv_prog_BUILD_CC
4460if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 { echo "$as_me:$LINENO: result: no" >&5
4465echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004466fi
4467
4468
4469 if test -z "$BUILD_CC"; then
4470 # Extract the first word of "gcc", so it can be a program name with args.
4471set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004476else
4477 if test -n "$BUILD_CC"; then
4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 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 +00004487 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004489 break 2
4490 fi
4491done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004492done
Reid Spencera773bd52006-08-04 18:18:08 +00004493IFS=$as_save_IFS
4494
4495fi
4496fi
4497BUILD_CC=$ac_cv_prog_BUILD_CC
4498if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004502 { echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004504fi
4505
4506
4507 if test -z "$BUILD_CC"; then
4508 # Extract the first word of "cc", so it can be a program name with args.
4509set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004514else
4515 if test -n "$BUILD_CC"; then
4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4517else
4518 ac_prog_rejected=no
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 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 +00004526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527 ac_prog_rejected=yes
4528 continue
4529 fi
4530 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004532 break 2
4533 fi
4534done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535done
Reid Spencera773bd52006-08-04 18:18:08 +00004536IFS=$as_save_IFS
4537
4538if test $ac_prog_rejected = yes; then
4539 # We found a bogon in the path, so make sure we never use it.
4540 set dummy $ac_cv_prog_BUILD_CC
4541 shift
4542 if test $# != 0; then
4543 # We chose a different compiler from the bogus one.
4544 # However, it has the same basename, so the bogon will be chosen
4545 # first if we set BUILD_CC to just the basename; use the full file name.
4546 shift
4547 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548 fi
4549fi
4550fi
4551fi
4552BUILD_CC=$ac_cv_prog_BUILD_CC
4553if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4555echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004557 { echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004559fi
4560
4561
4562 fi
4563 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4565echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004567 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4568 rm -f conftest*
4569 echo 'int main () { return 0; }' > conftest.$ac_ext
4570 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004571 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004572 (eval $ac_build_link) 2>&5
4573 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004576 for file in conftest.*; do
4577 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004578 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004579 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4580 esac
4581 done
4582 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4584echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4585 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004586 fi
4587 rm -f conftest*
4588 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4589fi
4590fi
4591
4592BUILD_EXEEXT=""
4593test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4595echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004596ac_build_exeext=$BUILD_EXEEXT
4597
Jim Grosbach673612e2008-10-02 22:56:44 +00004598 ac_build_prefix=${build_alias}-
4599 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4600set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004605else
4606 if test -n "$BUILD_CXX"; then
4607 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 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 +00004616 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004618 break 2
4619 fi
4620done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621done
Jim Grosbach673612e2008-10-02 22:56:44 +00004622IFS=$as_save_IFS
4623
4624fi
4625fi
4626BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004631 { echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004633fi
4634
4635
4636 if test -z "$BUILD_CXX"; then
4637 # Extract the first word of "g++", so it can be a program name with args.
4638set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004643else
4644 if test -n "$BUILD_CXX"; then
4645 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 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 +00004654 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004656 break 2
4657 fi
4658done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004659done
Jim Grosbach673612e2008-10-02 22:56:44 +00004660IFS=$as_save_IFS
4661
4662fi
4663fi
4664BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004669 { echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004671fi
4672
4673
4674 if test -z "$BUILD_CXX"; then
4675 # Extract the first word of "c++", so it can be a program name with args.
4676set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004681else
4682 if test -n "$BUILD_CXX"; then
4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4684else
4685 ac_prog_rejected=no
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 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 +00004693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4694 ac_prog_rejected=yes
4695 continue
4696 fi
4697 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004699 break 2
4700 fi
4701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702done
Jim Grosbach673612e2008-10-02 22:56:44 +00004703IFS=$as_save_IFS
4704
4705if test $ac_prog_rejected = yes; then
4706 # We found a bogon in the path, so make sure we never use it.
4707 set dummy $ac_cv_prog_BUILD_CXX
4708 shift
4709 if test $# != 0; then
4710 # We chose a different compiler from the bogus one.
4711 # However, it has the same basename, so the bogon will be chosen
4712 # first if we set BUILD_CXX to just the basename; use the full file name.
4713 shift
4714 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715 fi
4716fi
4717fi
4718fi
4719BUILD_CXX=$ac_cv_prog_BUILD_CXX
4720if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004721 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4722echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724 { echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004726fi
4727
4728
4729 fi
4730 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004731else
4732 LLVM_CROSS_COMPILING=0
4733
4734fi
4735
Dan Gohman56fb5f92010-08-04 16:25:01 +00004736if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004737 cvsbuild="yes"
4738 optimize="no"
4739 CVSBUILD=CVSBUILD=1
4740
4741else
4742 cvsbuild="no"
4743 optimize="yes"
4744fi
4745
4746
4747# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004749 enableval=$enable_optimized;
4750else
4751 enableval=$optimize
4752fi
4753
4754if test ${enableval} = "no" ; then
4755 ENABLE_OPTIMIZED=
4756
4757else
4758 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4759
4760fi
4761
David Greene2a5a12c2009-04-17 14:50:39 +00004762# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004764 enableval=$enable_profiling;
4765else
4766 enableval="no"
4767fi
4768
4769if test ${enableval} = "no" ; then
4770 ENABLE_PROFILING=
4771
4772else
4773 ENABLE_PROFILING=ENABLE_PROFILING=1
4774
4775fi
4776
Reid Spencera773bd52006-08-04 18:18:08 +00004777# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004779 enableval=$enable_assertions;
4780else
4781 enableval="yes"
4782fi
4783
4784if test ${enableval} = "yes" ; then
4785 DISABLE_ASSERTIONS=
4786
4787else
4788 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4789
4790fi
4791
David Greenea696d242007-06-28 19:36:08 +00004792# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004793if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004794 enableval=$enable_expensive_checks;
4795else
4796 enableval="no"
4797fi
4798
4799if test ${enableval} = "yes" ; then
4800 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4801
4802 EXPENSIVE_CHECKS=yes
4803
4804else
4805 ENABLE_EXPENSIVE_CHECKS=
4806
4807 EXPENSIVE_CHECKS=no
4808
4809fi
4810
Reid Spencer8b2e1412006-11-17 03:32:33 +00004811# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004813 enableval=$enable_debug_runtime;
4814else
4815 enableval=no
4816fi
4817
4818if test ${enableval} = "no" ; then
4819 DEBUG_RUNTIME=
4820
4821else
4822 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4823
4824fi
4825
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004826# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004828 enableval=$enable_debug_symbols;
4829else
4830 enableval=no
4831fi
4832
4833if test ${enableval} = "no" ; then
4834 DEBUG_SYMBOLS=
4835
4836else
4837 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4838
4839fi
4840
Reid Spencera773bd52006-08-04 18:18:08 +00004841# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004843 enableval=$enable_jit;
4844else
4845 enableval=default
4846fi
4847
4848if test ${enableval} = "no"
4849then
4850 JIT=
4851
4852else
4853 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004854 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004855 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004856 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004857 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004858 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004859 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004860 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004861 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004862 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004863 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004864 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004865 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004866 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004867 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004868 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004869 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004870 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004871 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004872 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004873 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004874 Blackfin) TARGET_HAS_JIT=0
4875 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004876 MBlaze) TARGET_HAS_JIT=0
4877 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004878 PTX) TARGET_HAS_JIT=0
4879 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004880 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004881 ;;
4882 esac
4883fi
4884
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004885# Check whether --enable-docs was given.
4886if test "${enable_docs+set}" = set; then
4887 enableval=$enable_docs;
4888else
4889 enableval=default
4890fi
4891
4892case "$enableval" in
4893 yes) ENABLE_DOCS=1
4894 ;;
4895 no) ENABLE_DOCS=0
4896 ;;
4897 default) ENABLE_DOCS=1
4898 ;;
4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4900echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4902esac
4903
Reid Spencera773bd52006-08-04 18:18:08 +00004904# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004906 enableval=$enable_doxygen;
4907else
4908 enableval=default
4909fi
4910
4911case "$enableval" in
4912 yes) ENABLE_DOXYGEN=1
4913 ;;
4914 no) ENABLE_DOXYGEN=0
4915 ;;
4916 default) ENABLE_DOXYGEN=0
4917 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4919echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004921esac
4922
4923# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004925 enableval=$enable_threads;
4926else
Reid Spencer65c5d752006-11-05 17:08:18 +00004927 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004928fi
4929
4930case "$enableval" in
4931 yes) ENABLE_THREADS=1
4932 ;;
4933 no) ENABLE_THREADS=0
4934 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004935 default) ENABLE_THREADS=1
4936 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4938echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4939 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004940esac
4941
Owen Andersona8603702009-05-19 22:18:56 +00004942cat >>confdefs.h <<_ACEOF
4943#define ENABLE_THREADS $ENABLE_THREADS
4944_ACEOF
4945
4946
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00004947# Check whether --enable-pthreads was given.
4948if test "${enable_pthreads+set}" = set; then
4949 enableval=$enable_pthreads;
4950else
4951 enableval=default
4952fi
4953
4954case "$enableval" in
4955 yes) ENABLE_PTHREADS=1
4956 ;;
4957 no) ENABLE_PTHREADS=0
4958 ;;
4959 default) ENABLE_PTHREADS=1
4960 ;;
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4962echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4964esac
4965
Reid Spencer89b0d992006-12-16 22:07:52 +00004966# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004967if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004968 enableval=$enable_pic;
4969else
4970 enableval=default
4971fi
4972
4973case "$enableval" in
4974 yes) ENABLE_PIC=1
4975 ;;
4976 no) ENABLE_PIC=0
4977 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004978 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004979 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4981echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4982 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004983esac
4984
4985cat >>confdefs.h <<_ACEOF
4986#define ENABLE_PIC $ENABLE_PIC
4987_ACEOF
4988
4989
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004990# Check whether --enable-shared was given.
4991if test "${enable_shared+set}" = set; then
4992 enableval=$enable_shared;
4993else
4994 enableval=default
4995fi
4996
4997case "$enableval" in
4998 yes) ENABLE_SHARED=1
4999 ;;
5000 no) ENABLE_SHARED=0
5001 ;;
5002 default) ENABLE_SHARED=0
5003 ;;
5004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5005echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5007esac
5008
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005009# Check whether --enable-embed-stdcxx was given.
5010if test "${enable_embed_stdcxx+set}" = set; then
5011 enableval=$enable_embed_stdcxx;
5012else
5013 enableval=default
5014fi
5015
5016case "$enableval" in
5017 yes) ENABLE_EMBED_STDCXX=1
5018 ;;
5019 no) ENABLE_EMBED_STDCXX=0
5020 ;;
5021 default) ENABLE_EMBED_STDCXX=1
5022 ;;
5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5024echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5025 { (exit 1); exit 1; }; } ;;
5026esac
5027
Daniel Dunbardd464df2010-05-10 20:11:56 +00005028# Check whether --enable-timestamps was given.
5029if test "${enable_timestamps+set}" = set; then
5030 enableval=$enable_timestamps;
5031else
5032 enableval=default
5033fi
5034
5035case "$enableval" in
5036 yes) ENABLE_TIMESTAMPS=1
5037 ;;
5038 no) ENABLE_TIMESTAMPS=0
5039 ;;
5040 default) ENABLE_TIMESTAMPS=1
5041 ;;
5042 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5043echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5044 { (exit 1); exit 1; }; } ;;
5045esac
5046
5047cat >>confdefs.h <<_ACEOF
5048#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5049_ACEOF
5050
5051
Reid Spencera773bd52006-08-04 18:18:08 +00005052TARGETS_TO_BUILD=""
5053# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005054if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005055 enableval=$enable_targets;
5056else
5057 enableval=all
5058fi
5059
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005060if test "$enableval" = host-only ; then
5061 enableval=host
5062fi
Reid Spencera773bd52006-08-04 18:18:08 +00005063case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005064 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 +00005065 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5066 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005067 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5068 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5069 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5070 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5071 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5072 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5073 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5074 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005075 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5076 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5077 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5078 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5079 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005080 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005081 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005082 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005083 host) case "$llvm_cv_target_arch" in
5084 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5085 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5086 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5087 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5088 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5089 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5090 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005091 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005092 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005093 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5094 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005095 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005096 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005097 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005098 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5099echo "$as_me: error: Can not set target to build" >&2;}
5100 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005101 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005102 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5103echo "$as_me: error: Unrecognized target $a_target" >&2;}
5104 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005105 esac
5106 done
5107 ;;
5108esac
Reid Spencera773bd52006-08-04 18:18:08 +00005109TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5110
5111
Douglas Gregor0711c302009-06-17 00:43:20 +00005112# Determine whether we are building LLVM support for the native architecture.
5113# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5114for a_target in $TARGETS_TO_BUILD; do
5115 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5116
5117cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005118#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5119_ACEOF
5120
5121 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5122 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng1abf2cb2011-07-14 23:50:31 +00005123 LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo"
Eric Christopher753f3262010-08-30 18:34:48 +00005124 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005125 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5126 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5127 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005128
5129cat >>confdefs.h <<_ACEOF
5130#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005131_ACEOF
5132
5133
5134cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005135#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5136_ACEOF
5137
5138
5139cat >>confdefs.h <<_ACEOF
Evan Cheng1abf2cb2011-07-14 23:50:31 +00005140#define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO
5141_ACEOF
5142
5143
5144cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005145#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005146_ACEOF
5147
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005148 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005149
5150cat >>confdefs.h <<_ACEOF
5151#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5152_ACEOF
5153
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005154 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005155 fi
5156done
5157
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005158# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5159# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005160LLVM_ENUM_TARGETS=""
5161LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005162LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005163LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005164for target_to_build in $TARGETS_TO_BUILD; do
5165 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005166 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005167 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5168 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005169 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5170 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5171 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005172 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5173 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5174 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005175done
5176
5177
5178
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005179
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005180
Reid Spencer65c5d752006-11-05 17:08:18 +00005181# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005182if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005183 enableval=$enable_cbe_printf_a;
5184else
5185 enableval=default
5186fi
5187
5188case "$enableval" in
5189 yes) ENABLE_CBE_PRINTF_A=1
5190 ;;
5191 no) ENABLE_CBE_PRINTF_A=0
5192 ;;
5193 default) ENABLE_CBE_PRINTF_A=1
5194 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005195 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5196echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5197 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005198esac
5199
5200cat >>confdefs.h <<_ACEOF
5201#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5202_ACEOF
5203
5204
Reid Spencera773bd52006-08-04 18:18:08 +00005205
5206# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005207if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005208 withval=$with_llvmgccdir;
5209else
5210 withval=default
5211fi
5212
5213case "$withval" in
5214 default) WITH_LLVMGCCDIR=default ;;
5215 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005216 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5217echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5218 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005219esac
5220
5221
Devang Patel5d28b882007-12-04 22:54:47 +00005222# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005223if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005224 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5225 WITH_LLVMGCCDIR=""
5226fi
5227
5228
5229
5230# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005231if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005232 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5233 WITH_LLVMGCCDIR=""
5234fi
5235
Douglas Gregor01746742009-05-11 18:05:52 +00005236
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005237if test -n "$LLVMGCC"; then
5238 LLVMGCCCOMMAND="$LLVMGCC"
5239fi
5240
5241if test -n "$LLVMGXX"; then
5242 LLVMGXXCOMMAND="$LLVMGXX"
5243fi
Devang Patel5d28b882007-12-04 22:54:47 +00005244
5245if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005246 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5247echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5248 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005249fi
5250
5251if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005252 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5253echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5254 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005255fi
5256
5257
Daniel Dunbar98515672010-02-23 10:00:49 +00005258# Check whether --with-clang was given.
5259if test "${with_clang+set}" = set; then
5260 withval=$with_clang;
5261else
5262 with_clang=default
5263fi
5264
5265
5266
5267# Check whether --with-built-clang was given.
5268if test "${with_built_clang+set}" = set; then
5269 withval=$with_built_clang;
5270else
5271 with_built_clang=check
5272fi
5273
5274
5275{ echo "$as_me:$LINENO: checking clang compiler" >&5
5276echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5277WITH_CLANGPATH=""
5278WITH_BUILT_CLANG=0
5279if test "$with_clang" != "default"; then
5280 WITH_CLANGPATH="$with_clang"
5281 if ! test -x "$WITH_CLANGPATH"; then
5282 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5283echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5284 { (exit 1); exit 1; }; }
5285 fi
5286elif test "$with_built_clang" = "yes"; then
5287 WITH_BUILT_CLANG=1
5288elif test "$with_built_clang" = "no"; then
5289 WITH_BUILT_CLANG=0
5290else
5291 if test "$with_built_clang" != "check"; then
5292 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5293echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5294 { (exit 1); exit 1; }; }
5295 fi
5296
5297 if test -f ${srcdir}/tools/clang/README.txt; then
5298 WITH_BUILT_CLANG=1
5299 fi
5300fi
5301
5302if ! test -z "$WITH_CLANGPATH"; then
5303 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5304echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5305 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5306elif test "$WITH_BUILT_CLANG" = "1"; then
5307 { echo "$as_me:$LINENO: result: built" >&5
5308echo "${ECHO_T}built" >&6; }
5309else
5310 { echo "$as_me:$LINENO: result: none" >&5
5311echo "${ECHO_T}none" >&6; }
5312fi
5313CLANGPATH=$WITH_CLANGPATH
5314
5315CLANGXXPATH=$WITH_CLANGXXPATH
5316
5317ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5318
5319
5320
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005321# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005322if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005323 withval=$with_optimize_option;
5324else
5325 withval=default
5326fi
5327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005328{ echo "$as_me:$LINENO: checking optimization flags" >&5
5329echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005330case "$withval" in
5331 default)
5332 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005333 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005334 MingW) optimize_option=-O2 ;;
5335 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005336 esac ;;
5337 *) optimize_option="$withval" ;;
5338esac
5339OPTIMIZE_OPTION=$optimize_option
5340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005341{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5342echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005343
5344
Reid Spencera773bd52006-08-04 18:18:08 +00005345# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005346if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005347 withval=$with_extra_options;
5348else
5349 withval=default
5350fi
5351
5352case "$withval" in
5353 default) EXTRA_OPTIONS= ;;
5354 *) EXTRA_OPTIONS=$withval ;;
5355esac
5356EXTRA_OPTIONS=$EXTRA_OPTIONS
5357
5358
Daniel Dunbared344d22011-06-16 22:30:41 +00005359
5360# Check whether --with-extra-ld-options was given.
5361if test "${with_extra_ld_options+set}" = set; then
5362 withval=$with_extra_ld_options;
5363else
5364 withval=default
5365fi
5366
5367case "$withval" in
5368 default) EXTRA_LD_OPTIONS= ;;
5369 *) EXTRA_LD_OPTIONS=$withval ;;
5370esac
5371EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5372
5373
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005374# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005375if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005376 enableval=$enable_bindings;
5377else
5378 enableval=default
5379fi
5380
5381BINDINGS_TO_BUILD=""
5382case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005383 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005384 all ) BINDINGS_TO_BUILD="ocaml" ;;
5385 none | no) BINDINGS_TO_BUILD="" ;;
5386 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5387 case "$a_binding" in
5388 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005389 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5390echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5391 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005392 esac
5393 done
5394 ;;
5395esac
5396
Reid Spencera773bd52006-08-04 18:18:08 +00005397
Gordon Henriksenf0915682007-10-02 16:42:22 +00005398# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005399if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005400 withval=$with_ocaml_libdir;
5401else
5402 withval=auto
5403fi
5404
5405case "$withval" in
5406 auto) with_ocaml_libdir="$withval" ;;
5407 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005408 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5409echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5410 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005411esac
5412
5413
Chandler Carruth6b241162010-10-19 08:21:25 +00005414# Check whether --with-clang-resource-dir was given.
5415if test "${with_clang_resource_dir+set}" = set; then
5416 withval=$with_clang_resource_dir;
5417else
5418 withval=""
5419fi
5420
5421
5422cat >>confdefs.h <<_ACEOF
5423#define CLANG_RESOURCE_DIR "$withval"
5424_ACEOF
5425
5426
5427
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005428# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005429if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005430 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005431else
5432 withval=""
5433fi
5434
5435
5436cat >>confdefs.h <<_ACEOF
5437#define C_INCLUDE_DIRS "$withval"
5438_ACEOF
5439
5440
5441
Rafael Espindola420d23c2009-11-16 19:46:55 +00005442# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005443if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005444 withval=$with_cxx_include_root;
5445else
5446 withval=""
5447fi
5448
5449
5450cat >>confdefs.h <<_ACEOF
5451#define CXX_INCLUDE_ROOT "$withval"
5452_ACEOF
5453
5454
5455
5456# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005457if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005458 withval=$with_cxx_include_arch;
5459else
5460 withval=""
5461fi
5462
5463
5464cat >>confdefs.h <<_ACEOF
5465#define CXX_INCLUDE_ARCH "$withval"
5466_ACEOF
5467
5468
5469
5470# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005471if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005472 withval=$with_cxx_include_32bit_dir;
5473else
5474 withval=""
5475fi
5476
5477
5478cat >>confdefs.h <<_ACEOF
5479#define CXX_INCLUDE_32BIT_DIR "$withval"
5480_ACEOF
5481
5482
5483
5484# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005485if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005486 withval=$with_cxx_include_64bit_dir;
5487else
5488 withval=""
5489fi
5490
5491
5492cat >>confdefs.h <<_ACEOF
5493#define CXX_INCLUDE_64BIT_DIR "$withval"
5494_ACEOF
5495
5496
5497
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005498# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005499if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005500 withval=$with_binutils_include;
5501else
5502 withval=default
5503fi
5504
5505case "$withval" in
5506 default) WITH_BINUTILS_INCDIR=default ;;
5507 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005508 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5509echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5510 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005511esac
5512if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5513 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5514
5515 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5516 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005517 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5518echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5519 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005520 fi
5521fi
5522
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005523# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005524if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005525 enableval=$enable_libffi; case "$enableval" in
5526 yes) llvm_cv_enable_libffi="yes" ;;
5527 no) llvm_cv_enable_libffi="no" ;;
5528 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005529echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5530 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005531 esac
5532else
5533 llvm_cv_enable_libffi=no
5534fi
5535
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005536
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005537
Reid Spencera773bd52006-08-04 18:18:08 +00005538ac_ext=c
5539ac_cpp='$CPP $CPPFLAGS'
5540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005543{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5544echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005545# On Suns, sometimes $CPP names a directory.
5546if test -n "$CPP" && test -d "$CPP"; then
5547 CPP=
5548fi
5549if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005550 if test "${ac_cv_prog_CPP+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005552else
5553 # Double quotes because CPP needs to be expanded
5554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5555 do
5556 ac_preproc_ok=false
5557for ac_c_preproc_warn_flag in '' yes
5558do
5559 # Use a header file that comes with gcc, so configuring glibc
5560 # with a fresh cross-compiler works.
5561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562 # <limits.h> exists even on freestanding compilers.
5563 # On the NeXT, cc -E runs the code through the compiler's parser,
5564 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005565 cat >conftest.$ac_ext <<_ACEOF
5566/* confdefs.h. */
5567_ACEOF
5568cat confdefs.h >>conftest.$ac_ext
5569cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005570/* end confdefs.h. */
5571#ifdef __STDC__
5572# include <limits.h>
5573#else
5574# include <assert.h>
5575#endif
5576 Syntax error
5577_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005578if { (ac_try="$ac_cpp conftest.$ac_ext"
5579case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582esac
5583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } >/dev/null; then
5591 if test -s conftest.err; then
5592 ac_cpp_err=$ac_c_preproc_warn_flag
5593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5594 else
5595 ac_cpp_err=
5596 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005598 ac_cpp_err=yes
5599fi
5600if test -z "$ac_cpp_err"; then
5601 :
5602else
5603 echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
Reid Spencera773bd52006-08-04 18:18:08 +00005606 # Broken: fails on valid input.
5607continue
5608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005609
Reid Spencera773bd52006-08-04 18:18:08 +00005610rm -f conftest.err conftest.$ac_ext
5611
5612 # OK, works on sane cases. Now check whether nonexistent headers
5613 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005614 cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h. */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005619/* end confdefs.h. */
5620#include <ac_nonexistent.h>
5621_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005622if { (ac_try="$ac_cpp conftest.$ac_ext"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } >/dev/null; then
5635 if test -s conftest.err; then
5636 ac_cpp_err=$ac_c_preproc_warn_flag
5637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5638 else
5639 ac_cpp_err=
5640 fi
5641else
5642 ac_cpp_err=yes
5643fi
5644if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005645 # Broken: success on invalid input.
5646continue
5647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005648 echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
Reid Spencera773bd52006-08-04 18:18:08 +00005651 # Passes both tests.
5652ac_preproc_ok=:
5653break
5654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655
Reid Spencera773bd52006-08-04 18:18:08 +00005656rm -f conftest.err conftest.$ac_ext
5657
5658done
5659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5660rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005661if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005662 break
5663fi
5664
5665 done
5666 ac_cv_prog_CPP=$CPP
5667
5668fi
5669 CPP=$ac_cv_prog_CPP
5670else
5671 ac_cv_prog_CPP=$CPP
5672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005673{ echo "$as_me:$LINENO: result: $CPP" >&5
5674echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005675ac_preproc_ok=false
5676for ac_c_preproc_warn_flag in '' yes
5677do
5678 # Use a header file that comes with gcc, so configuring glibc
5679 # with a fresh cross-compiler works.
5680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681 # <limits.h> exists even on freestanding compilers.
5682 # On the NeXT, cc -E runs the code through the compiler's parser,
5683 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005684 cat >conftest.$ac_ext <<_ACEOF
5685/* confdefs.h. */
5686_ACEOF
5687cat confdefs.h >>conftest.$ac_ext
5688cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005689/* end confdefs.h. */
5690#ifdef __STDC__
5691# include <limits.h>
5692#else
5693# include <assert.h>
5694#endif
5695 Syntax error
5696_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005697if { (ac_try="$ac_cpp conftest.$ac_ext"
5698case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } >/dev/null; then
5710 if test -s conftest.err; then
5711 ac_cpp_err=$ac_c_preproc_warn_flag
5712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5713 else
5714 ac_cpp_err=
5715 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005717 ac_cpp_err=yes
5718fi
5719if test -z "$ac_cpp_err"; then
5720 :
5721else
5722 echo "$as_me: failed program was:" >&5
5723sed 's/^/| /' conftest.$ac_ext >&5
5724
Reid Spencera773bd52006-08-04 18:18:08 +00005725 # Broken: fails on valid input.
5726continue
5727fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005728
Reid Spencera773bd52006-08-04 18:18:08 +00005729rm -f conftest.err conftest.$ac_ext
5730
5731 # OK, works on sane cases. Now check whether nonexistent headers
5732 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005733 cat >conftest.$ac_ext <<_ACEOF
5734/* confdefs.h. */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005738/* end confdefs.h. */
5739#include <ac_nonexistent.h>
5740_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741if { (ac_try="$ac_cpp conftest.$ac_ext"
5742case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745esac
5746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } >/dev/null; then
5754 if test -s conftest.err; then
5755 ac_cpp_err=$ac_c_preproc_warn_flag
5756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5757 else
5758 ac_cpp_err=
5759 fi
5760else
5761 ac_cpp_err=yes
5762fi
5763if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005764 # Broken: success on invalid input.
5765continue
5766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767 echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
Reid Spencera773bd52006-08-04 18:18:08 +00005770 # Passes both tests.
5771ac_preproc_ok=:
5772break
5773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774
Reid Spencera773bd52006-08-04 18:18:08 +00005775rm -f conftest.err conftest.$ac_ext
5776
5777done
5778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005780if $ac_preproc_ok; then
5781 :
Reid Spencera773bd52006-08-04 18:18:08 +00005782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5784See \`config.log' for more details." >&5
5785echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5786See \`config.log' for more details." >&2;}
5787 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005788fi
5789
5790ac_ext=c
5791ac_cpp='$CPP $CPPFLAGS'
5792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795
5796ac_ext=c
5797ac_cpp='$CPP $CPPFLAGS'
5798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800ac_compiler_gnu=$ac_cv_c_compiler_gnu
5801if test -n "$ac_tool_prefix"; then
5802 for ac_prog in gcc
5803 do
5804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808if test "${ac_cv_prog_CC+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005810else
5811 if test -n "$CC"; then
5812 ac_cv_prog_CC="$CC" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 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 +00005821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005823 break 2
5824 fi
5825done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005826done
Reid Spencera773bd52006-08-04 18:18:08 +00005827IFS=$as_save_IFS
5828
5829fi
5830fi
5831CC=$ac_cv_prog_CC
5832if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005833 { echo "$as_me:$LINENO: result: $CC" >&5
5834echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005836 { echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005838fi
5839
5840
5841 test -n "$CC" && break
5842 done
5843fi
5844if test -z "$CC"; then
5845 ac_ct_CC=$CC
5846 for ac_prog in gcc
5847do
5848 # Extract the first word of "$ac_prog", so it can be a program name with args.
5849set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005854else
5855 if test -n "$ac_ct_CC"; then
5856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 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 +00005865 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005867 break 2
5868 fi
5869done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005870done
Reid Spencera773bd52006-08-04 18:18:08 +00005871IFS=$as_save_IFS
5872
5873fi
5874fi
5875ac_ct_CC=$ac_cv_prog_ac_ct_CC
5876if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005877 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5878echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005879else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005880 { echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005882fi
5883
5884
5885 test -n "$ac_ct_CC" && break
5886done
5887
5888 if test "x$ac_ct_CC" = x; then
5889 CC=""
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005893{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5894whose name does not start with the host triplet. If you think this
5895configuration is useful to you, please write to autoconf@gnu.org." >&5
5896echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5897whose name does not start with the host triplet. If you think this
5898configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005899ac_tool_warned=yes ;;
5900esac
5901 CC=$ac_ct_CC
5902 fi
5903fi
5904
5905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005906test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5907See \`config.log' for more details." >&5
5908echo "$as_me: error: no acceptable C compiler found in \$PATH
5909See \`config.log' for more details." >&2;}
5910 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005911
5912# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005913echo "$as_me:$LINENO: checking for C compiler version" >&5
5914ac_compiler=`set X $ac_compile; echo $2`
5915{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005916case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005922 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }
5925{ (ac_try="$ac_compiler -v >&5"
5926case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929esac
5930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compiler -v >&5") 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }
5935{ (ac_try="$ac_compiler -V >&5"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compiler -V >&5") 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005946{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5947echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5948if test "${ac_cv_c_compiler_gnu+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005950else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951 cat >conftest.$ac_ext <<_ACEOF
5952/* confdefs.h. */
5953_ACEOF
5954cat confdefs.h >>conftest.$ac_ext
5955cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005956/* end confdefs.h. */
5957
5958int
5959main ()
5960{
5961#ifndef __GNUC__
5962 choke me
5963#endif
5964
5965 ;
5966 return 0;
5967}
5968_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005969rm -f conftest.$ac_objext
5970if { (ac_try="$ac_compile"
5971case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974esac
5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest.$ac_objext'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006003 ac_compiler_gnu=yes
6004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006005 echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006009fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006010
Reid Spencera773bd52006-08-04 18:18:08 +00006011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012ac_cv_c_compiler_gnu=$ac_compiler_gnu
6013
6014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6016echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6017GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006018ac_test_CFLAGS=${CFLAGS+set}
6019ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006020{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6021echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6022if test "${ac_cv_prog_cc_g+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006024else
6025 ac_save_c_werror_flag=$ac_c_werror_flag
6026 ac_c_werror_flag=yes
6027 ac_cv_prog_cc_g=no
6028 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006029 cat >conftest.$ac_ext <<_ACEOF
6030/* confdefs.h. */
6031_ACEOF
6032cat confdefs.h >>conftest.$ac_ext
6033cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006034/* end confdefs.h. */
6035
6036int
6037main ()
6038{
6039
6040 ;
6041 return 0;
6042}
6043_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044rm -f conftest.$ac_objext
6045if { (ac_try="$ac_compile"
6046case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049esac
6050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } &&
6058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6059 { (case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_try") 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; } &&
6068 { ac_try='test -s conftest.$ac_objext'
6069 { (case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072esac
6073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_try") 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006078 ac_cv_prog_cc_g=yes
6079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006080 echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 CFLAGS=""
6084 cat >conftest.$ac_ext <<_ACEOF
6085/* confdefs.h. */
6086_ACEOF
6087cat confdefs.h >>conftest.$ac_ext
6088cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006089/* end confdefs.h. */
6090
6091int
6092main ()
6093{
6094
6095 ;
6096 return 0;
6097}
6098_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006099rm -f conftest.$ac_objext
6100if { (ac_try="$ac_compile"
6101case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104esac
6105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_compile") 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6114 { (case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117esac
6118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_try") 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_try") 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 :
Torok Edwin871384f2010-01-26 08:50:50 +00006134else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006135 echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006139 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006140 cat >conftest.$ac_ext <<_ACEOF
6141/* confdefs.h. */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006145/* end confdefs.h. */
6146
6147int
6148main ()
6149{
6150
6151 ;
6152 return 0;
6153}
6154_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006155rm -f conftest.$ac_objext
6156if { (ac_try="$ac_compile"
6157case "(($ac_try" in
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6160esac
6161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_compile") 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_try") 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; } &&
6179 { ac_try='test -s conftest.$ac_objext'
6180 { (case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183esac
6184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_try") 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006189 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006190else
6191 echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
6193
6194
Reid Spencera773bd52006-08-04 18:18:08 +00006195fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196
Reid Spencera773bd52006-08-04 18:18:08 +00006197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006199
Reid Spencera773bd52006-08-04 18:18:08 +00006200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202
Reid Spencera773bd52006-08-04 18:18:08 +00006203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 ac_c_werror_flag=$ac_save_c_werror_flag
6205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6207echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006208if test "$ac_test_CFLAGS" = set; then
6209 CFLAGS=$ac_save_CFLAGS
6210elif test $ac_cv_prog_cc_g = yes; then
6211 if test "$GCC" = yes; then
6212 CFLAGS="-g -O2"
6213 else
6214 CFLAGS="-g"
6215 fi
6216else
6217 if test "$GCC" = yes; then
6218 CFLAGS="-O2"
6219 else
6220 CFLAGS=
6221 fi
6222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006223{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6224echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6225if test "${ac_cv_prog_cc_c89+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006227else
6228 ac_cv_prog_cc_c89=no
6229ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006230cat >conftest.$ac_ext <<_ACEOF
6231/* confdefs.h. */
6232_ACEOF
6233cat confdefs.h >>conftest.$ac_ext
6234cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006235/* end confdefs.h. */
6236#include <stdarg.h>
6237#include <stdio.h>
6238#include <sys/types.h>
6239#include <sys/stat.h>
6240/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6241struct buf { int x; };
6242FILE * (*rcsopen) (struct buf *, struct stat *, int);
6243static char *e (p, i)
6244 char **p;
6245 int i;
6246{
6247 return p[i];
6248}
6249static char *f (char * (*g) (char **, int), char **p, ...)
6250{
6251 char *s;
6252 va_list v;
6253 va_start (v,p);
6254 s = g (p, va_arg (v,int));
6255 va_end (v);
6256 return s;
6257}
6258
6259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6260 function prototypes and stuff, but not '\xHH' hex character constants.
6261 These don't provoke an error unfortunately, instead are silently treated
6262 as 'x'. The following induces an error, until -std is added to get
6263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6264 array size at least. It's necessary to write '\x00'==0 to get something
6265 that's true only with -std. */
6266int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6267
6268/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6269 inside strings and character constants. */
6270#define FOO(x) 'x'
6271int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6272
6273int test (int i, double x);
6274struct s1 {int (*f) (int a);};
6275struct s2 {int (*f) (double a);};
6276int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6277int argc;
6278char **argv;
6279int
6280main ()
6281{
6282return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6289do
6290 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291 rm -f conftest.$ac_objext
6292if { (ac_try="$ac_compile"
6293case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296esac
6297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest.$ac_objext'
6316 { (case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319esac
6320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_try") 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006325 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006326else
6327 echo "$as_me: failed program was:" >&5
6328sed 's/^/| /' conftest.$ac_ext >&5
6329
6330
Reid Spencera773bd52006-08-04 18:18:08 +00006331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332
Reid Spencera773bd52006-08-04 18:18:08 +00006333rm -f core conftest.err conftest.$ac_objext
6334 test "x$ac_cv_prog_cc_c89" != "xno" && break
6335done
6336rm -f conftest.$ac_ext
6337CC=$ac_save_CC
6338
6339fi
6340# AC_CACHE_VAL
6341case "x$ac_cv_prog_cc_c89" in
6342 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006343 { echo "$as_me:$LINENO: result: none needed" >&5
6344echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006345 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006346 { echo "$as_me:$LINENO: result: unsupported" >&5
6347echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006348 *)
6349 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006350 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6351echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006352esac
6353
6354
6355ac_ext=c
6356ac_cpp='$CPP $CPPFLAGS'
6357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6359ac_compiler_gnu=$ac_cv_c_compiler_gnu
6360
6361ac_ext=cpp
6362ac_cpp='$CXXCPP $CPPFLAGS'
6363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6366if test -z "$CXX"; then
6367 if test -n "$CCC"; then
6368 CXX=$CCC
6369 else
6370 if test -n "$ac_tool_prefix"; then
6371 for ac_prog in g++
6372 do
6373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6374set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6377if test "${ac_cv_prog_CXX+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006379else
6380 if test -n "$CXX"; then
6381 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 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 +00006390 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006392 break 2
6393 fi
6394done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006395done
Reid Spencera773bd52006-08-04 18:18:08 +00006396IFS=$as_save_IFS
6397
6398fi
6399fi
6400CXX=$ac_cv_prog_CXX
6401if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402 { echo "$as_me:$LINENO: result: $CXX" >&5
6403echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006404else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006405 { echo "$as_me:$LINENO: result: no" >&5
6406echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006407fi
6408
6409
6410 test -n "$CXX" && break
6411 done
6412fi
6413if test -z "$CXX"; then
6414 ac_ct_CXX=$CXX
6415 for ac_prog in g++
6416do
6417 # Extract the first word of "$ac_prog", so it can be a program name with args.
6418set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6421if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006423else
6424 if test -n "$ac_ct_CXX"; then
6425 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 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 +00006434 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006436 break 2
6437 fi
6438done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006439done
Reid Spencera773bd52006-08-04 18:18:08 +00006440IFS=$as_save_IFS
6441
6442fi
6443fi
6444ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6445if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006446 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6447echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006448else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006449 { echo "$as_me:$LINENO: result: no" >&5
6450echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006451fi
6452
6453
6454 test -n "$ac_ct_CXX" && break
6455done
6456
6457 if test "x$ac_ct_CXX" = x; then
6458 CXX="g++"
6459 else
6460 case $cross_compiling:$ac_tool_warned in
6461yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6463whose name does not start with the host triplet. If you think this
6464configuration is useful to you, please write to autoconf@gnu.org." >&5
6465echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6466whose name does not start with the host triplet. If you think this
6467configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006468ac_tool_warned=yes ;;
6469esac
6470 CXX=$ac_ct_CXX
6471 fi
6472fi
6473
6474 fi
6475fi
6476# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006477echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6478ac_compiler=`set X $ac_compile; echo $2`
6479{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006480case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006486 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }
6489{ (ac_try="$ac_compiler -v >&5"
6490case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493esac
6494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compiler -v >&5") 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }
6499{ (ac_try="$ac_compiler -V >&5"
6500case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503esac
6504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_compiler -V >&5") 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006510{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6511echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6512if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006515 cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h. */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006520/* end confdefs.h. */
6521
6522int
6523main ()
6524{
6525#ifndef __GNUC__
6526 choke me
6527#endif
6528
6529 ;
6530 return 0;
6531}
6532_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006533rm -f conftest.$ac_objext
6534if { (ac_try="$ac_compile"
6535case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6548 { (case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6551esac
6552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_try") 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try='test -s conftest.$ac_objext'
6558 { (case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561esac
6562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_try") 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006567 ac_compiler_gnu=yes
6568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006569 echo "$as_me: failed program was:" >&5
6570sed 's/^/| /' conftest.$ac_ext >&5
6571
6572 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006574
Reid Spencera773bd52006-08-04 18:18:08 +00006575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6577
6578fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6580echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6581GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006582ac_test_CXXFLAGS=${CXXFLAGS+set}
6583ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006584{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6585echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6586if test "${ac_cv_prog_cxx_g+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006588else
6589 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6590 ac_cxx_werror_flag=yes
6591 ac_cv_prog_cxx_g=no
6592 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006593 cat >conftest.$ac_ext <<_ACEOF
6594/* confdefs.h. */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006598/* end confdefs.h. */
6599
6600int
6601main ()
6602{
6603
6604 ;
6605 return 0;
6606}
6607_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608rm -f conftest.$ac_objext
6609if { (ac_try="$ac_compile"
6610case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613esac
6614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_compile") 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6623 { (case "(($ac_try" in
6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6626esac
6627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_try") 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; } &&
6632 { ac_try='test -s conftest.$ac_objext'
6633 { (case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6636esac
6637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638 (eval "$ac_try") 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006642 ac_cv_prog_cxx_g=yes
6643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006644 echo "$as_me: failed program was:" >&5
6645sed 's/^/| /' conftest.$ac_ext >&5
6646
6647 CXXFLAGS=""
6648 cat >conftest.$ac_ext <<_ACEOF
6649/* confdefs.h. */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006653/* end confdefs.h. */
6654
6655int
6656main ()
6657{
6658
6659 ;
6660 return 0;
6661}
6662_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006663rm -f conftest.$ac_objext
6664if { (ac_try="$ac_compile"
6665case "(($ac_try" in
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6668esac
6669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_compile") 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6678 { (case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6681esac
6682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_try") 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; } &&
6687 { ac_try='test -s conftest.$ac_objext'
6688 { (case "(($ac_try" in
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6691esac
6692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_try") 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 :
Torok Edwin871384f2010-01-26 08:50:50 +00006698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006699 echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006703 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006704 cat >conftest.$ac_ext <<_ACEOF
6705/* confdefs.h. */
6706_ACEOF
6707cat confdefs.h >>conftest.$ac_ext
6708cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006709/* end confdefs.h. */
6710
6711int
6712main ()
6713{
6714
6715 ;
6716 return 0;
6717}
6718_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719rm -f conftest.$ac_objext
6720if { (ac_try="$ac_compile"
6721case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724esac
6725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726 (eval "$ac_compile") 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6734 { (case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737esac
6738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_try") 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; } &&
6743 { ac_try='test -s conftest.$ac_objext'
6744 { (case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6747esac
6748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_try") 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006753 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006754else
6755 echo "$as_me: failed program was:" >&5
6756sed 's/^/| /' conftest.$ac_ext >&5
6757
6758
Reid Spencera773bd52006-08-04 18:18:08 +00006759fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760
Reid Spencera773bd52006-08-04 18:18:08 +00006761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006763
Reid Spencera773bd52006-08-04 18:18:08 +00006764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766
Reid Spencera773bd52006-08-04 18:18:08 +00006767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6769fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006770{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6771echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006772if test "$ac_test_CXXFLAGS" = set; then
6773 CXXFLAGS=$ac_save_CXXFLAGS
6774elif test $ac_cv_prog_cxx_g = yes; then
6775 if test "$GXX" = yes; then
6776 CXXFLAGS="-g -O2"
6777 else
6778 CXXFLAGS="-g"
6779 fi
6780else
6781 if test "$GXX" = yes; then
6782 CXXFLAGS="-O2"
6783 else
6784 CXXFLAGS=
6785 fi
6786fi
6787ac_ext=c
6788ac_cpp='$CPP $CPPFLAGS'
6789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792
Reid Spencera773bd52006-08-04 18:18:08 +00006793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006794{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6795echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6796if test "${lt_cv_path_NM+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006798else
6799 if test -n "$NM"; then
6800 # Let the user override the test.
6801 lt_cv_path_NM="$NM"
6802else
6803 lt_nm_to_check="${ac_tool_prefix}nm"
6804 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6805 lt_nm_to_check="$lt_nm_to_check nm"
6806 fi
6807 for lt_tmp_nm in $lt_nm_to_check; do
6808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6809 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6810 IFS="$lt_save_ifs"
6811 test -z "$ac_dir" && ac_dir=.
6812 tmp_nm="$ac_dir/$lt_tmp_nm"
6813 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6814 # Check to see if the nm accepts a BSD-compat flag.
6815 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6816 # nm: unknown option "B" ignored
6817 # Tru64's nm complains that /dev/null is an invalid object file
6818 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6819 */dev/null* | *'Invalid file or object type'*)
6820 lt_cv_path_NM="$tmp_nm -B"
6821 break
6822 ;;
6823 *)
6824 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6825 */dev/null*)
6826 lt_cv_path_NM="$tmp_nm -p"
6827 break
6828 ;;
6829 *)
6830 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6831 continue # so that we can try to find one that supports BSD flags
6832 ;;
6833 esac
6834 ;;
6835 esac
6836 fi
6837 done
6838 IFS="$lt_save_ifs"
6839 done
6840 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6841fi
6842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6844echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006845NM="$lt_cv_path_NM"
6846
6847
6848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849{ echo "$as_me:$LINENO: checking for GNU make" >&5
6850echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6851if test "${llvm_cv_gnu_make_command+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006853else
6854 llvm_cv_gnu_make_command=''
6855 for a in "$MAKE" make gmake gnumake ; do
6856 if test -z "$a" ; then continue ; fi ;
6857 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6858 then
6859 llvm_cv_gnu_make_command=$a ;
6860 break;
6861 fi
6862 done
6863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6865echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006866 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6867 ifGNUmake='' ;
6868 else
6869 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006870 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6871echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006872 fi
6873
6874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6876echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006877LN_S=$as_ln_s
6878if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006879 { echo "$as_me:$LINENO: result: yes" >&5
6880echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6883echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006884fi
6885
6886# Extract the first word of "cmp", so it can be a program name with args.
6887set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890if test "${ac_cv_path_CMP+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006892else
6893 case $CMP in
6894 [\\/]* | ?:[\\/]*)
6895 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6896 ;;
6897 *)
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 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 +00006905 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006907 break 2
6908 fi
6909done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006910done
Reid Spencera773bd52006-08-04 18:18:08 +00006911IFS=$as_save_IFS
6912
6913 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6914 ;;
6915esac
6916fi
6917CMP=$ac_cv_path_CMP
6918if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006919 { echo "$as_me:$LINENO: result: $CMP" >&5
6920echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922 { echo "$as_me:$LINENO: result: no" >&5
6923echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006924fi
6925
6926
6927# Extract the first word of "cp", so it can be a program name with args.
6928set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931if test "${ac_cv_path_CP+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006933else
6934 case $CP in
6935 [\\/]* | ?:[\\/]*)
6936 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6937 ;;
6938 *)
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006946 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006948 break 2
6949 fi
6950done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006951done
Reid Spencera773bd52006-08-04 18:18:08 +00006952IFS=$as_save_IFS
6953
6954 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6955 ;;
6956esac
6957fi
6958CP=$ac_cv_path_CP
6959if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 { echo "$as_me:$LINENO: result: $CP" >&5
6961echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 { echo "$as_me:$LINENO: result: no" >&5
6964echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006965fi
6966
6967
6968# Extract the first word of "date", so it can be a program name with args.
6969set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972if test "${ac_cv_path_DATE+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006974else
6975 case $DATE in
6976 [\\/]* | ?:[\\/]*)
6977 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6978 ;;
6979 *)
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH
6982do
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 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 +00006987 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006989 break 2
6990 fi
6991done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006992done
Reid Spencera773bd52006-08-04 18:18:08 +00006993IFS=$as_save_IFS
6994
6995 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6996 ;;
6997esac
6998fi
6999DATE=$ac_cv_path_DATE
7000if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007001 { echo "$as_me:$LINENO: result: $DATE" >&5
7002echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007003else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004 { echo "$as_me:$LINENO: result: no" >&5
7005echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007006fi
7007
7008
7009# Extract the first word of "find", so it can be a program name with args.
7010set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013if test "${ac_cv_path_FIND+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007015else
7016 case $FIND in
7017 [\\/]* | ?:[\\/]*)
7018 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7019 ;;
7020 *)
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 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 +00007028 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007030 break 2
7031 fi
7032done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007033done
Reid Spencera773bd52006-08-04 18:18:08 +00007034IFS=$as_save_IFS
7035
7036 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7037 ;;
7038esac
7039fi
7040FIND=$ac_cv_path_FIND
7041if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007042 { echo "$as_me:$LINENO: result: $FIND" >&5
7043echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007045 { echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007047fi
7048
7049
7050# Extract the first word of "grep", so it can be a program name with args.
7051set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054if test "${ac_cv_path_GREP+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007056else
7057 case $GREP in
7058 [\\/]* | ?:[\\/]*)
7059 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7060 ;;
7061 *)
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 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 +00007069 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007071 break 2
7072 fi
7073done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074done
Reid Spencera773bd52006-08-04 18:18:08 +00007075IFS=$as_save_IFS
7076
7077 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7078 ;;
7079esac
7080fi
7081GREP=$ac_cv_path_GREP
7082if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 { echo "$as_me:$LINENO: result: $GREP" >&5
7084echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086 { echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007088fi
7089
7090
7091# Extract the first word of "mkdir", so it can be a program name with args.
7092set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095if test "${ac_cv_path_MKDIR+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007097else
7098 case $MKDIR in
7099 [\\/]* | ?:[\\/]*)
7100 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7101 ;;
7102 *)
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104for as_dir in $PATH
7105do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 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 +00007110 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007112 break 2
7113 fi
7114done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115done
Reid Spencera773bd52006-08-04 18:18:08 +00007116IFS=$as_save_IFS
7117
7118 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7119 ;;
7120esac
7121fi
7122MKDIR=$ac_cv_path_MKDIR
7123if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007124 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7125echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007127 { echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007129fi
7130
7131
7132# Extract the first word of "mv", so it can be a program name with args.
7133set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136if test "${ac_cv_path_MV+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007138else
7139 case $MV in
7140 [\\/]* | ?:[\\/]*)
7141 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7142 ;;
7143 *)
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 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 +00007151 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007153 break 2
7154 fi
7155done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156done
Reid Spencera773bd52006-08-04 18:18:08 +00007157IFS=$as_save_IFS
7158
7159 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7160 ;;
7161esac
7162fi
7163MV=$ac_cv_path_MV
7164if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165 { echo "$as_me:$LINENO: result: $MV" >&5
7166echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168 { echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007170fi
7171
7172
7173if test -n "$ac_tool_prefix"; then
7174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7175set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178if test "${ac_cv_prog_RANLIB+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007180else
7181 if test -n "$RANLIB"; then
7182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7183else
7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 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 +00007191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007193 break 2
7194 fi
7195done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196done
Reid Spencera773bd52006-08-04 18:18:08 +00007197IFS=$as_save_IFS
7198
7199fi
7200fi
7201RANLIB=$ac_cv_prog_RANLIB
7202if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7204echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007206 { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007208fi
7209
7210
7211fi
7212if test -z "$ac_cv_prog_RANLIB"; then
7213 ac_ct_RANLIB=$RANLIB
7214 # Extract the first word of "ranlib", so it can be a program name with args.
7215set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007220else
7221 if test -n "$ac_ct_RANLIB"; then
7222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 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 +00007231 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007233 break 2
7234 fi
7235done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236done
Reid Spencera773bd52006-08-04 18:18:08 +00007237IFS=$as_save_IFS
7238
7239fi
7240fi
7241ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7242if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007243 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7244echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007246 { echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007248fi
7249
7250 if test "x$ac_ct_RANLIB" = x; then
7251 RANLIB=":"
7252 else
7253 case $cross_compiling:$ac_tool_warned in
7254yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7256whose name does not start with the host triplet. If you think this
7257configuration is useful to you, please write to autoconf@gnu.org." >&5
7258echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7259whose name does not start with the host triplet. If you think this
7260configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007261ac_tool_warned=yes ;;
7262esac
7263 RANLIB=$ac_ct_RANLIB
7264 fi
7265else
7266 RANLIB="$ac_cv_prog_RANLIB"
7267fi
7268
Torok Edwin871384f2010-01-26 08:50:50 +00007269if test -n "$ac_tool_prefix"; then
7270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7271set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274if test "${ac_cv_prog_AR+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007276else
7277 if test -n "$AR"; then
7278 ac_cv_prog_AR="$AR" # Let the user override the test.
7279else
7280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281for as_dir in $PATH
7282do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 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 +00007287 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007289 break 2
7290 fi
7291done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007292done
Torok Edwin871384f2010-01-26 08:50:50 +00007293IFS=$as_save_IFS
7294
7295fi
7296fi
7297AR=$ac_cv_prog_AR
7298if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007299 { echo "$as_me:$LINENO: result: $AR" >&5
7300echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 { echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007304fi
7305
7306
7307fi
7308if test -z "$ac_cv_prog_AR"; then
7309 ac_ct_AR=$AR
7310 # Extract the first word of "ar", so it can be a program name with args.
7311set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007316else
7317 if test -n "$ac_ct_AR"; then
7318 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7319else
7320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321for as_dir in $PATH
7322do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 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 +00007327 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007329 break 2
7330 fi
7331done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332done
Torok Edwin871384f2010-01-26 08:50:50 +00007333IFS=$as_save_IFS
7334
7335fi
7336fi
7337ac_ct_AR=$ac_cv_prog_ac_ct_AR
7338if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7340echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342 { echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007344fi
7345
7346 if test "x$ac_ct_AR" = x; then
7347 AR="false"
7348 else
7349 case $cross_compiling:$ac_tool_warned in
7350yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007351{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7352whose name does not start with the host triplet. If you think this
7353configuration is useful to you, please write to autoconf@gnu.org." >&5
7354echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7355whose name does not start with the host triplet. If you think this
7356configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007357ac_tool_warned=yes ;;
7358esac
7359 AR=$ac_ct_AR
7360 fi
7361else
7362 AR="$ac_cv_prog_AR"
7363fi
7364
Reid Spencera773bd52006-08-04 18:18:08 +00007365# Extract the first word of "rm", so it can be a program name with args.
7366set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369if test "${ac_cv_path_RM+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007371else
7372 case $RM in
7373 [\\/]* | ?:[\\/]*)
7374 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7375 ;;
7376 *)
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 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 +00007384 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007386 break 2
7387 fi
7388done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007389done
Reid Spencera773bd52006-08-04 18:18:08 +00007390IFS=$as_save_IFS
7391
7392 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7393 ;;
7394esac
7395fi
7396RM=$ac_cv_path_RM
7397if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007398 { echo "$as_me:$LINENO: result: $RM" >&5
7399echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 { echo "$as_me:$LINENO: result: no" >&5
7402echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007403fi
7404
7405
7406# Extract the first word of "sed", so it can be a program name with args.
7407set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410if test "${ac_cv_path_SED+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007412else
7413 case $SED in
7414 [\\/]* | ?:[\\/]*)
7415 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7416 ;;
7417 *)
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419for as_dir in $PATH
7420do
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 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 +00007425 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007427 break 2
7428 fi
7429done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007430done
Reid Spencera773bd52006-08-04 18:18:08 +00007431IFS=$as_save_IFS
7432
7433 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7434 ;;
7435esac
7436fi
7437SED=$ac_cv_path_SED
7438if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439 { echo "$as_me:$LINENO: result: $SED" >&5
7440echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442 { echo "$as_me:$LINENO: result: no" >&5
7443echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007444fi
7445
7446
7447# Extract the first word of "tar", so it can be a program name with args.
7448set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451if test "${ac_cv_path_TAR+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007453else
7454 case $TAR in
7455 [\\/]* | ?:[\\/]*)
7456 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7457 ;;
7458 *)
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 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 +00007466 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007468 break 2
7469 fi
7470done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007471done
Reid Spencera773bd52006-08-04 18:18:08 +00007472IFS=$as_save_IFS
7473
7474 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7475 ;;
7476esac
7477fi
7478TAR=$ac_cv_path_TAR
7479if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480 { echo "$as_me:$LINENO: result: $TAR" >&5
7481echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483 { echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007485fi
7486
7487
7488# Extract the first word of "pwd", so it can be a program name with args.
7489set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492if test "${ac_cv_path_BINPWD+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007494else
7495 case $BINPWD in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7498 ;;
7499 *)
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 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 +00007507 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007509 break 2
7510 fi
7511done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512done
Reid Spencera773bd52006-08-04 18:18:08 +00007513IFS=$as_save_IFS
7514
7515 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7516 ;;
7517esac
7518fi
7519BINPWD=$ac_cv_path_BINPWD
7520if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007521 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7522echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524 { echo "$as_me:$LINENO: result: no" >&5
7525echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007526fi
7527
7528
7529
7530# Extract the first word of "Graphviz", so it can be a program name with args.
7531set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007536else
7537 case $GRAPHVIZ in
7538 [\\/]* | ?:[\\/]*)
7539 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7540 ;;
7541 *)
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 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 +00007549 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007551 break 2
7552 fi
7553done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554done
Reid Spencera773bd52006-08-04 18:18:08 +00007555IFS=$as_save_IFS
7556
7557 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7558 ;;
7559esac
7560fi
7561GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7562if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7564echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566 { echo "$as_me:$LINENO: result: no" >&5
7567echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007568fi
7569
7570
7571if test "$GRAPHVIZ" != "echo Graphviz" ; then
7572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007573cat >>confdefs.h <<\_ACEOF
7574#define HAVE_GRAPHVIZ 1
7575_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007576
Jeff Cohen28783c32007-01-12 18:22:38 +00007577 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007578 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7579 fi
7580
7581cat >>confdefs.h <<_ACEOF
7582#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7583_ACEOF
7584
7585fi
7586# Extract the first word of "dot", so it can be a program name with args.
7587set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_DOT+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007592else
7593 case $DOT in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 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 +00007605 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007607 break 2
7608 fi
7609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610done
Reid Spencera773bd52006-08-04 18:18:08 +00007611IFS=$as_save_IFS
7612
7613 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7614 ;;
7615esac
7616fi
7617DOT=$ac_cv_path_DOT
7618if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007619 { echo "$as_me:$LINENO: result: $DOT" >&5
7620echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007622 { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007624fi
7625
7626
7627if test "$DOT" != "echo dot" ; then
7628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007629cat >>confdefs.h <<\_ACEOF
7630#define HAVE_DOT 1
7631_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007632
Jeff Cohen28783c32007-01-12 18:22:38 +00007633 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007634 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7635 fi
7636
7637cat >>confdefs.h <<_ACEOF
7638#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7639_ACEOF
7640
7641fi
David Greenef0b9eff2009-07-09 17:16:26 +00007642# Extract the first word of "fdp", so it can be a program name with args.
7643set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646if test "${ac_cv_path_FDP+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007648else
7649 case $FDP in
7650 [\\/]* | ?:[\\/]*)
7651 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7652 ;;
7653 *)
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007661 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007663 break 2
7664 fi
7665done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666done
David Greenef0b9eff2009-07-09 17:16:26 +00007667IFS=$as_save_IFS
7668
7669 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7670 ;;
7671esac
7672fi
7673FDP=$ac_cv_path_FDP
7674if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007675 { echo "$as_me:$LINENO: result: $FDP" >&5
7676echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007678 { echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007680fi
7681
7682
7683if test "$FDP" != "echo fdp" ; then
7684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007685cat >>confdefs.h <<\_ACEOF
7686#define HAVE_FDP 1
7687_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007688
7689 if test "$llvm_cv_os_type" = "MingW" ; then
7690 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7691 fi
7692
7693cat >>confdefs.h <<_ACEOF
7694#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7695_ACEOF
7696
7697fi
7698# Extract the first word of "neato", so it can be a program name with args.
7699set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7702if test "${ac_cv_path_NEATO+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007704else
7705 case $NEATO in
7706 [\\/]* | ?:[\\/]*)
7707 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7708 ;;
7709 *)
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 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 +00007717 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007719 break 2
7720 fi
7721done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722done
David Greenef0b9eff2009-07-09 17:16:26 +00007723IFS=$as_save_IFS
7724
7725 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7726 ;;
7727esac
7728fi
7729NEATO=$ac_cv_path_NEATO
7730if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007731 { echo "$as_me:$LINENO: result: $NEATO" >&5
7732echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734 { echo "$as_me:$LINENO: result: no" >&5
7735echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007736fi
7737
7738
7739if test "$NEATO" != "echo neato" ; then
7740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741cat >>confdefs.h <<\_ACEOF
7742#define HAVE_NEATO 1
7743_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007744
7745 if test "$llvm_cv_os_type" = "MingW" ; then
7746 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7747 fi
7748
7749cat >>confdefs.h <<_ACEOF
7750#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7751_ACEOF
7752
7753fi
7754# Extract the first word of "twopi", so it can be a program name with args.
7755set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7758if test "${ac_cv_path_TWOPI+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007760else
7761 case $TWOPI in
7762 [\\/]* | ?:[\\/]*)
7763 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7764 ;;
7765 *)
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 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 +00007773 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007775 break 2
7776 fi
7777done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007778done
David Greenef0b9eff2009-07-09 17:16:26 +00007779IFS=$as_save_IFS
7780
7781 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7782 ;;
7783esac
7784fi
7785TWOPI=$ac_cv_path_TWOPI
7786if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007787 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7788echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790 { echo "$as_me:$LINENO: result: no" >&5
7791echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007792fi
7793
7794
7795if test "$TWOPI" != "echo twopi" ; then
7796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007797cat >>confdefs.h <<\_ACEOF
7798#define HAVE_TWOPI 1
7799_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007800
7801 if test "$llvm_cv_os_type" = "MingW" ; then
7802 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7803 fi
7804
7805cat >>confdefs.h <<_ACEOF
7806#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7807_ACEOF
7808
7809fi
7810# Extract the first word of "circo", so it can be a program name with args.
7811set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7814if test "${ac_cv_path_CIRCO+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007816else
7817 case $CIRCO in
7818 [\\/]* | ?:[\\/]*)
7819 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7820 ;;
7821 *)
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 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 +00007829 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007831 break 2
7832 fi
7833done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007834done
David Greenef0b9eff2009-07-09 17:16:26 +00007835IFS=$as_save_IFS
7836
7837 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7838 ;;
7839esac
7840fi
7841CIRCO=$ac_cv_path_CIRCO
7842if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007843 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7844echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007846 { echo "$as_me:$LINENO: result: no" >&5
7847echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007848fi
7849
7850
7851if test "$CIRCO" != "echo circo" ; then
7852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007853cat >>confdefs.h <<\_ACEOF
7854#define HAVE_CIRCO 1
7855_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007856
7857 if test "$llvm_cv_os_type" = "MingW" ; then
7858 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7859 fi
7860
7861cat >>confdefs.h <<_ACEOF
7862#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7863_ACEOF
7864
7865fi
Reid Spencera773bd52006-08-04 18:18:08 +00007866for ac_prog in gv gsview32
7867do
7868 # Extract the first word of "$ac_prog", so it can be a program name with args.
7869set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7872if test "${ac_cv_path_GV+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007874else
7875 case $GV in
7876 [\\/]* | ?:[\\/]*)
7877 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7878 ;;
7879 *)
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881for as_dir in $PATH
7882do
7883 IFS=$as_save_IFS
7884 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 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 +00007887 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007889 break 2
7890 fi
7891done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007892done
Reid Spencera773bd52006-08-04 18:18:08 +00007893IFS=$as_save_IFS
7894
7895 ;;
7896esac
7897fi
7898GV=$ac_cv_path_GV
7899if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007900 { echo "$as_me:$LINENO: result: $GV" >&5
7901echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903 { echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007905fi
7906
7907
7908 test -n "$GV" && break
7909done
7910test -n "$GV" || GV="echo gv"
7911
7912if test "$GV" != "echo gv" ; then
7913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007914cat >>confdefs.h <<\_ACEOF
7915#define HAVE_GV 1
7916_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007917
Jeff Cohen28783c32007-01-12 18:22:38 +00007918 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007919 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7920 fi
7921
7922cat >>confdefs.h <<_ACEOF
7923#define LLVM_PATH_GV "$GV${EXEEXT}"
7924_ACEOF
7925
7926fi
7927# Extract the first word of "dotty", so it can be a program name with args.
7928set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931if test "${ac_cv_path_DOTTY+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007933else
7934 case $DOTTY in
7935 [\\/]* | ?:[\\/]*)
7936 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7937 ;;
7938 *)
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007946 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007948 break 2
7949 fi
7950done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007951done
Reid Spencera773bd52006-08-04 18:18:08 +00007952IFS=$as_save_IFS
7953
7954 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7955 ;;
7956esac
7957fi
7958DOTTY=$ac_cv_path_DOTTY
7959if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007960 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7961echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007963 { echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007965fi
7966
7967
7968if test "$DOTTY" != "echo dotty" ; then
7969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007970cat >>confdefs.h <<\_ACEOF
7971#define HAVE_DOTTY 1
7972_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007973
Jeff Cohen28783c32007-01-12 18:22:38 +00007974 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007975 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7976 fi
7977
7978cat >>confdefs.h <<_ACEOF
7979#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7980_ACEOF
7981
7982fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007983# Extract the first word of "xdot.py", so it can be a program name with args.
7984set dummy xdot.py; ac_word=$2
7985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7987if test "${ac_cv_path_XDOT_PY+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990 case $XDOT_PY in
7991 [\\/]* | ?:[\\/]*)
7992 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7993 ;;
7994 *)
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996for as_dir in $PATH
7997do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006done
8007done
8008IFS=$as_save_IFS
8009
8010 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8011 ;;
8012esac
8013fi
8014XDOT_PY=$ac_cv_path_XDOT_PY
8015if test -n "$XDOT_PY"; then
8016 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8017echo "${ECHO_T}$XDOT_PY" >&6; }
8018else
8019 { echo "$as_me:$LINENO: result: no" >&5
8020echo "${ECHO_T}no" >&6; }
8021fi
8022
8023
8024if test "$XDOT_PY" != "echo xdot.py" ; then
8025
8026cat >>confdefs.h <<\_ACEOF
8027#define HAVE_XDOT_PY 1
8028_ACEOF
8029
8030 if test "$llvm_cv_os_type" = "MingW" ; then
8031 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8032 fi
8033
8034cat >>confdefs.h <<_ACEOF
8035#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8036_ACEOF
8037
8038fi
Reid Spencera773bd52006-08-04 18:18:08 +00008039
8040
8041# Extract the first word of "perl", so it can be a program name with args.
8042set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8045if test "${ac_cv_path_PERL+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008047else
8048 case $PERL in
8049 [\\/]* | ?:[\\/]*)
8050 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8051 ;;
8052 *)
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054for as_dir in $PATH
8055do
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 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 +00008060 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008062 break 2
8063 fi
8064done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065done
Reid Spencera773bd52006-08-04 18:18:08 +00008066IFS=$as_save_IFS
8067
8068 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8069 ;;
8070esac
8071fi
8072PERL=$ac_cv_path_PERL
8073if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008074 { echo "$as_me:$LINENO: result: $PERL" >&5
8075echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008076else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008077 { echo "$as_me:$LINENO: result: no" >&5
8078echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008079fi
8080
8081
8082if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008083 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8084echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008085 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008086 { echo "$as_me:$LINENO: result: yes" >&5
8087echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008088 else
8089 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008090 { echo "$as_me:$LINENO: result: not found" >&5
8091echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008092 fi
8093fi
8094
8095
8096if test x"$PERL" = xnone; then
8097 HAVE_PERL=0
8098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008099 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8100echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8101 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008102else
8103 HAVE_PERL=1
8104
8105fi
8106
8107# Find a good install program. We prefer a C program (faster),
8108# so one script is as good as another. But avoid the broken or
8109# incompatible versions:
8110# SysV /etc/install, /usr/sbin/install
8111# SunOS /usr/etc/install
8112# IRIX /sbin/install
8113# AIX /bin/install
8114# AmigaOS /C/install, which installs bootblocks on floppy discs
8115# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8116# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8117# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8118# OS/2's system install, which has a completely different semantic
8119# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008120{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8121echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008122if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008123if test "${ac_cv_path_install+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008125else
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131 # Account for people who put trailing slashes in PATH elements.
8132case $as_dir/ in
8133 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008135 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008136 /usr/ucb/* ) ;;
8137 *)
8138 # OSF1 and SCO ODT 3.0 have their own names for install.
8139 # Don't use installbsd from OSF since it installs stuff as root
8140 # by default.
8141 for ac_prog in ginstall scoinst install; do
8142 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008143 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 +00008144 if test $ac_prog = install &&
8145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8146 # AIX install. It has an incompatible calling convention.
8147 :
8148 elif test $ac_prog = install &&
8149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8150 # program-specific install script used by HP pwplus--don't use.
8151 :
8152 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8154 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008155 fi
8156 fi
8157 done
8158 done
8159 ;;
8160esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008161done
Reid Spencera773bd52006-08-04 18:18:08 +00008162IFS=$as_save_IFS
8163
8164
8165fi
8166 if test "${ac_cv_path_install+set}" = set; then
8167 INSTALL=$ac_cv_path_install
8168 else
8169 # As a last resort, use the slow shell script. Don't cache a
8170 # value for INSTALL within a source directory, because that will
8171 # break other packages using the cache if that directory is
8172 # removed, or if the value is a relative name.
8173 INSTALL=$ac_install_sh
8174 fi
8175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008176{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8177echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008178
8179# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8180# It thinks the first close brace ends the variable substitution.
8181test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8182
8183test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8184
8185test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8186
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008187case "$INSTALL" in
8188 [\\/$]* | ?:[\\/]* ) ;;
8189 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8190esac
Reid Spencera773bd52006-08-04 18:18:08 +00008191
8192# Extract the first word of "bzip2", so it can be a program name with args.
8193set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8196if test "${ac_cv_path_BZIP2+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008198else
8199 case $BZIP2 in
8200 [\\/]* | ?:[\\/]*)
8201 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8202 ;;
8203 *)
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 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 +00008211 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008213 break 2
8214 fi
8215done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008216done
Reid Spencera773bd52006-08-04 18:18:08 +00008217IFS=$as_save_IFS
8218
Reid Spencera773bd52006-08-04 18:18:08 +00008219 ;;
8220esac
8221fi
8222BZIP2=$ac_cv_path_BZIP2
8223if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008224 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8225echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008227 { echo "$as_me:$LINENO: result: no" >&5
8228echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008229fi
8230
8231
mike-m68cb3192010-05-06 23:45:43 +00008232# Extract the first word of "cat", so it can be a program name with args.
8233set dummy cat; ac_word=$2
8234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8236if test "${ac_cv_path_CAT+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239 case $CAT in
8240 [\\/]* | ?:[\\/]*)
8241 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8242 ;;
8243 *)
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245for as_dir in $PATH
8246do
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8251 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 break 2
8254 fi
8255done
8256done
8257IFS=$as_save_IFS
8258
8259 ;;
8260esac
8261fi
8262CAT=$ac_cv_path_CAT
8263if test -n "$CAT"; then
8264 { echo "$as_me:$LINENO: result: $CAT" >&5
8265echo "${ECHO_T}$CAT" >&6; }
8266else
8267 { echo "$as_me:$LINENO: result: no" >&5
8268echo "${ECHO_T}no" >&6; }
8269fi
8270
8271
Reid Spencera773bd52006-08-04 18:18:08 +00008272# Extract the first word of "doxygen", so it can be a program name with args.
8273set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8276if test "${ac_cv_path_DOXYGEN+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008278else
8279 case $DOXYGEN in
8280 [\\/]* | ?:[\\/]*)
8281 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8282 ;;
8283 *)
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285for as_dir in $PATH
8286do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 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 +00008291 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008293 break 2
8294 fi
8295done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008296done
Reid Spencera773bd52006-08-04 18:18:08 +00008297IFS=$as_save_IFS
8298
Reid Spencera773bd52006-08-04 18:18:08 +00008299 ;;
8300esac
8301fi
8302DOXYGEN=$ac_cv_path_DOXYGEN
8303if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008304 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8305echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307 { echo "$as_me:$LINENO: result: no" >&5
8308echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008309fi
8310
8311
Reid Spencera773bd52006-08-04 18:18:08 +00008312# Extract the first word of "groff", so it can be a program name with args.
8313set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8316if test "${ac_cv_path_GROFF+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008318else
8319 case $GROFF in
8320 [\\/]* | ?:[\\/]*)
8321 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8322 ;;
8323 *)
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 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 +00008331 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008333 break 2
8334 fi
8335done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336done
Reid Spencera773bd52006-08-04 18:18:08 +00008337IFS=$as_save_IFS
8338
Reid Spencera773bd52006-08-04 18:18:08 +00008339 ;;
8340esac
8341fi
8342GROFF=$ac_cv_path_GROFF
8343if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008344 { echo "$as_me:$LINENO: result: $GROFF" >&5
8345echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347 { echo "$as_me:$LINENO: result: no" >&5
8348echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008349fi
8350
8351
8352# Extract the first word of "gzip", so it can be a program name with args.
8353set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008356if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008357 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008358else
Eric Christopher031d3072010-12-10 01:31:51 +00008359 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008360 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008361 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008362 ;;
8363 *)
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 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 +00008371 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008373 break 2
8374 fi
8375done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008376done
Reid Spencera773bd52006-08-04 18:18:08 +00008377IFS=$as_save_IFS
8378
Reid Spencera773bd52006-08-04 18:18:08 +00008379 ;;
8380esac
8381fi
Eric Christopher031d3072010-12-10 01:31:51 +00008382GZIPBIN=$ac_cv_path_GZIPBIN
8383if test -n "$GZIPBIN"; then
8384 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8385echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008387 { echo "$as_me:$LINENO: result: no" >&5
8388echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008389fi
8390
8391
8392# Extract the first word of "pod2html", so it can be a program name with args.
8393set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8396if test "${ac_cv_path_POD2HTML+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008398else
8399 case $POD2HTML in
8400 [\\/]* | ?:[\\/]*)
8401 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8402 ;;
8403 *)
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405for as_dir in $PATH
8406do
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 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 +00008411 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008413 break 2
8414 fi
8415done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008416done
Reid Spencera773bd52006-08-04 18:18:08 +00008417IFS=$as_save_IFS
8418
Reid Spencera773bd52006-08-04 18:18:08 +00008419 ;;
8420esac
8421fi
8422POD2HTML=$ac_cv_path_POD2HTML
8423if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8425echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427 { echo "$as_me:$LINENO: result: no" >&5
8428echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008429fi
8430
8431
8432# Extract the first word of "pod2man", so it can be a program name with args.
8433set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8436if test "${ac_cv_path_POD2MAN+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008438else
8439 case $POD2MAN in
8440 [\\/]* | ?:[\\/]*)
8441 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8442 ;;
8443 *)
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 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 +00008451 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008453 break 2
8454 fi
8455done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008456done
Reid Spencera773bd52006-08-04 18:18:08 +00008457IFS=$as_save_IFS
8458
Reid Spencera773bd52006-08-04 18:18:08 +00008459 ;;
8460esac
8461fi
8462POD2MAN=$ac_cv_path_POD2MAN
8463if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008464 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8465echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008467 { echo "$as_me:$LINENO: result: no" >&5
8468echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008469fi
8470
8471
mike-m68cb3192010-05-06 23:45:43 +00008472# Extract the first word of "pdfroff", so it can be a program name with args.
8473set dummy pdfroff; ac_word=$2
8474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8476if test "${ac_cv_path_PDFROFF+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478else
8479 case $PDFROFF in
8480 [\\/]* | ?:[\\/]*)
8481 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8482 ;;
8483 *)
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8494 fi
8495done
8496done
8497IFS=$as_save_IFS
8498
8499 ;;
8500esac
8501fi
8502PDFROFF=$ac_cv_path_PDFROFF
8503if test -n "$PDFROFF"; then
8504 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8505echo "${ECHO_T}$PDFROFF" >&6; }
8506else
8507 { echo "$as_me:$LINENO: result: no" >&5
8508echo "${ECHO_T}no" >&6; }
8509fi
8510
8511
Reid Spencera773bd52006-08-04 18:18:08 +00008512# Extract the first word of "runtest", so it can be a program name with args.
8513set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8516if test "${ac_cv_path_RUNTEST+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008518else
8519 case $RUNTEST in
8520 [\\/]* | ?:[\\/]*)
8521 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8522 ;;
8523 *)
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525for as_dir in $PATH
8526do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 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 +00008531 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008533 break 2
8534 fi
8535done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536done
Reid Spencera773bd52006-08-04 18:18:08 +00008537IFS=$as_save_IFS
8538
Reid Spencera773bd52006-08-04 18:18:08 +00008539 ;;
8540esac
8541fi
8542RUNTEST=$ac_cv_path_RUNTEST
8543if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008544 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8545echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008547 { echo "$as_me:$LINENO: result: no" >&5
8548echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008549fi
8550
8551
8552
8553no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008554{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8555echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008556
8557# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008559 withval=$with_tclinclude; with_tclinclude=${withval}
8560else
8561 with_tclinclude=''
8562fi
8563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008564if test "${ac_cv_path_tclsh+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008566else
8567
8568if test x"${with_tclinclude}" != x ; then
8569 if test -f ${with_tclinclude}/tclsh ; then
8570 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8571 elif test -f ${with_tclinclude}/src/tclsh ; then
8572 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8573 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008574 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8575echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8576 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008577 fi
8578fi
Torok Edwin871384f2010-01-26 08:50:50 +00008579fi
8580
Reid Spencera773bd52006-08-04 18:18:08 +00008581
8582if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008583 { echo "$as_me:$LINENO: result: none" >&5
8584echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008585 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
8586do
8587 # Extract the first word of "$ac_prog", so it can be a program name with args.
8588set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8591if test "${ac_cv_path_TCLSH+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008593else
8594 case $TCLSH in
8595 [\\/]* | ?:[\\/]*)
8596 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8597 ;;
8598 *)
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600for as_dir in $PATH
8601do
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 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 +00008606 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008608 break 2
8609 fi
8610done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008611done
Reid Spencera773bd52006-08-04 18:18:08 +00008612IFS=$as_save_IFS
8613
8614 ;;
8615esac
8616fi
8617TCLSH=$ac_cv_path_TCLSH
8618if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008619 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8620echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008622 { echo "$as_me:$LINENO: result: no" >&5
8623echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008624fi
8625
8626
8627 test -n "$TCLSH" && break
8628done
8629
8630 if test x"${TCLSH}" = x ; then
8631 ac_cv_path_tclsh='';
8632 else
8633 ac_cv_path_tclsh="${TCLSH}";
8634 fi
8635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008636 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8637echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008638 TCLSH="${ac_cv_path_tclsh}"
8639
8640fi
8641
Reid Spencera773bd52006-08-04 18:18:08 +00008642# Extract the first word of "zip", so it can be a program name with args.
8643set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8646if test "${ac_cv_path_ZIP+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008648else
8649 case $ZIP in
8650 [\\/]* | ?:[\\/]*)
8651 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8652 ;;
8653 *)
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
8656do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 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 +00008661 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008663 break 2
8664 fi
8665done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666done
Reid Spencera773bd52006-08-04 18:18:08 +00008667IFS=$as_save_IFS
8668
Reid Spencera773bd52006-08-04 18:18:08 +00008669 ;;
8670esac
8671fi
8672ZIP=$ac_cv_path_ZIP
8673if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008674 { echo "$as_me:$LINENO: result: $ZIP" >&5
8675echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008677 { echo "$as_me:$LINENO: result: no" >&5
8678echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008679fi
8680
8681
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008682for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008683do
8684 # Extract the first word of "$ac_prog", so it can be a program name with args.
8685set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8688if test "${ac_cv_path_OCAMLC+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008690else
8691 case $OCAMLC in
8692 [\\/]* | ?:[\\/]*)
8693 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8694 ;;
8695 *)
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697for as_dir in $PATH
8698do
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 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 +00008703 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008705 break 2
8706 fi
8707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008708done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008709IFS=$as_save_IFS
8710
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008711 ;;
8712esac
8713fi
8714OCAMLC=$ac_cv_path_OCAMLC
8715if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008716 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8717echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008718else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008719 { echo "$as_me:$LINENO: result: no" >&5
8720echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008721fi
8722
8723
Gordon Henriksene7072162008-03-07 18:20:01 +00008724 test -n "$OCAMLC" && break
8725done
8726
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008727for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008728do
8729 # Extract the first word of "$ac_prog", so it can be a program name with args.
8730set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8733if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008735else
8736 case $OCAMLOPT in
8737 [\\/]* | ?:[\\/]*)
8738 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8739 ;;
8740 *)
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742for as_dir in $PATH
8743do
8744 IFS=$as_save_IFS
8745 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 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 +00008748 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008750 break 2
8751 fi
8752done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008753done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008754IFS=$as_save_IFS
8755
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008756 ;;
8757esac
8758fi
8759OCAMLOPT=$ac_cv_path_OCAMLOPT
8760if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008761 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8762echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008763else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008764 { echo "$as_me:$LINENO: result: no" >&5
8765echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008766fi
8767
8768
Gordon Henriksene7072162008-03-07 18:20:01 +00008769 test -n "$OCAMLOPT" && break
8770done
8771
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008772for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008773do
8774 # Extract the first word of "$ac_prog", so it can be a program name with args.
8775set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8778if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008780else
8781 case $OCAMLDEP in
8782 [\\/]* | ?:[\\/]*)
8783 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8784 ;;
8785 *)
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 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 +00008793 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008795 break 2
8796 fi
8797done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008798done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008799IFS=$as_save_IFS
8800
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008801 ;;
8802esac
8803fi
8804OCAMLDEP=$ac_cv_path_OCAMLDEP
8805if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008806 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8807echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008809 { echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008811fi
8812
8813
Gordon Henriksene7072162008-03-07 18:20:01 +00008814 test -n "$OCAMLDEP" && break
8815done
8816
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008817for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008818do
8819 # Extract the first word of "$ac_prog", so it can be a program name with args.
8820set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8823if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008825else
8826 case $OCAMLDOC in
8827 [\\/]* | ?:[\\/]*)
8828 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8829 ;;
8830 *)
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832for as_dir in $PATH
8833do
8834 IFS=$as_save_IFS
8835 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 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 +00008838 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008840 break 2
8841 fi
8842done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008843done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008844IFS=$as_save_IFS
8845
8846 ;;
8847esac
8848fi
8849OCAMLDOC=$ac_cv_path_OCAMLDOC
8850if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008851 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8852echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008854 { echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008856fi
8857
8858
8859 test -n "$OCAMLDOC" && break
8860done
8861
Torok Edwincc499a42008-10-22 09:56:27 +00008862for ac_prog in gas as
8863do
8864 # Extract the first word of "$ac_prog", so it can be a program name with args.
8865set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8868if test "${ac_cv_path_GAS+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008870else
8871 case $GAS in
8872 [\\/]* | ?:[\\/]*)
8873 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8874 ;;
8875 *)
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877for as_dir in $PATH
8878do
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 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 +00008883 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008885 break 2
8886 fi
8887done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008888done
Torok Edwincc499a42008-10-22 09:56:27 +00008889IFS=$as_save_IFS
8890
8891 ;;
8892esac
8893fi
8894GAS=$ac_cv_path_GAS
8895if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008896 { echo "$as_me:$LINENO: result: $GAS" >&5
8897echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008899 { echo "$as_me:$LINENO: result: no" >&5
8900echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008901fi
8902
8903
8904 test -n "$GAS" && break
8905done
8906
Reid Spencera773bd52006-08-04 18:18:08 +00008907
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008908{ echo "$as_me:$LINENO: checking for linker version" >&5
8909echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8910if test "${llvm_cv_link_version+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912else
8913
8914 version_string="$(ld -v 2>&1 | head -1)"
8915
8916 # Check for ld64.
8917 if (echo "$version_string" | grep -q "ld64"); then
8918 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8919 else
8920 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8921 fi
8922
8923fi
8924{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8925echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8926
8927cat >>confdefs.h <<_ACEOF
8928#define HOST_LINK_VERSION "$llvm_cv_link_version"
8929_ACEOF
8930
8931
8932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008933{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8934echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8935if test "${llvm_cv_link_use_r+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008937else
8938 ac_ext=c
8939ac_cpp='$CPP $CPPFLAGS'
8940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8942ac_compiler_gnu=$ac_cv_c_compiler_gnu
8943
8944 oldcflags="$CFLAGS"
8945 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008946 cat >conftest.$ac_ext <<_ACEOF
8947/* confdefs.h. */
8948_ACEOF
8949cat confdefs.h >>conftest.$ac_ext
8950cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008951/* end confdefs.h. */
8952
8953int
8954main ()
8955{
Dan Gohman39ed6782010-04-25 00:12:20 +00008956
Reid Spencera773bd52006-08-04 18:18:08 +00008957 ;
8958 return 0;
8959}
8960_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008961rm -f conftest.$ac_objext conftest$ac_exeext
8962if { (ac_try="$ac_link"
8963case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966esac
8967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_link") 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8976 { (case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8979esac
8980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_try") 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest$ac_exeext'
8986 { (case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989esac
8990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_try") 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008995 llvm_cv_link_use_r=yes
8996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008997 echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
8999
9000 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00009001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009002
Bill Wendlingebcceee2009-04-18 11:20:33 +00009003rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009004 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009005 CFLAGS="$oldcflags"
9006 ac_ext=c
9007ac_cpp='$CPP $CPPFLAGS'
9008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010ac_compiler_gnu=$ac_cv_c_compiler_gnu
9011
9012
9013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009014{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9015echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009016if test "$llvm_cv_link_use_r" = yes ; then
9017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009018cat >>confdefs.h <<\_ACEOF
9019#define HAVE_LINK_R 1
9020_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009021
9022 fi
9023
9024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009025{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9026echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9027if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009029else
9030 ac_ext=c
9031ac_cpp='$CPP $CPPFLAGS'
9032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9034ac_compiler_gnu=$ac_cv_c_compiler_gnu
9035
9036 oldcflags="$CFLAGS"
9037 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009038 cat >conftest.$ac_ext <<_ACEOF
9039/* confdefs.h. */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009043/* end confdefs.h. */
9044
9045int
9046main ()
9047{
Dan Gohman39ed6782010-04-25 00:12:20 +00009048
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009049 ;
9050 return 0;
9051}
9052_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009053rm -f conftest.$ac_objext conftest$ac_exeext
9054if { (ac_try="$ac_link"
9055case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058esac
9059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_link") 2>conftest.er1
9061 ac_status=$?
9062 grep -v '^ *+' conftest.er1 >conftest.err
9063 rm -f conftest.er1
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } &&
9067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9068 { (case "(($ac_try" in
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9071esac
9072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_try") 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; } &&
9077 { ac_try='test -s conftest$ac_exeext'
9078 { (case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9081esac
9082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_try") 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009087 llvm_cv_link_use_export_dynamic=yes
9088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009089 echo "$as_me: failed program was:" >&5
9090sed 's/^/| /' conftest.$ac_ext >&5
9091
9092 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009093fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009094
Bill Wendlingebcceee2009-04-18 11:20:33 +00009095rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009096 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009097 CFLAGS="$oldcflags"
9098 ac_ext=c
9099ac_cpp='$CPP $CPPFLAGS'
9100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9102ac_compiler_gnu=$ac_cv_c_compiler_gnu
9103
9104
9105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009106{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9107echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009108if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009110cat >>confdefs.h <<\_ACEOF
9111#define HAVE_LINK_EXPORT_DYNAMIC 1
9112_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009113
9114 fi
9115
9116
Dan Gohmanda612d62010-06-01 14:56:56 +00009117{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9118echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9119if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121else
9122 ac_ext=c
9123ac_cpp='$CPP $CPPFLAGS'
9124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9126ac_compiler_gnu=$ac_cv_c_compiler_gnu
9127
9128 oldcflags="$CFLAGS"
9129
9130 # The following code is from the autoconf manual,
9131 # "11.13: Limitations of Usual Tools".
9132 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9133 # Use mktemp if possible; otherwise fall back on mkdir,
9134 # with $RANDOM to make collisions less likely.
9135 : ${TMPDIR=/tmp}
9136 {
9137 tmp=`
9138 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9139 ` &&
9140 test -n "$tmp" && test -d "$tmp"
9141 } || {
9142 tmp=$TMPDIR/foo$$-$RANDOM
9143 (umask 077 && mkdir "$tmp")
9144 } || exit $?
9145
Dan Gohmanda612d62010-06-01 14:56:56 +00009146 echo "{" > "$tmp/export.map"
9147 echo " global: main;" >> "$tmp/export.map"
9148 echo " local: *;" >> "$tmp/export.map"
9149 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009150
Dan Gohmanda612d62010-06-01 14:56:56 +00009151 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009152 cat >conftest.$ac_ext <<_ACEOF
9153/* confdefs.h. */
9154_ACEOF
9155cat confdefs.h >>conftest.$ac_ext
9156cat >>conftest.$ac_ext <<_ACEOF
9157/* end confdefs.h. */
9158
9159int
9160main ()
9161{
Dan Gohman39ed6782010-04-25 00:12:20 +00009162
Dan Gohman391569c2010-04-16 22:59:06 +00009163 ;
9164 return 0;
9165}
9166_ACEOF
9167rm -f conftest.$ac_objext conftest$ac_exeext
9168if { (ac_try="$ac_link"
9169case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172esac
9173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_link") 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9182 { (case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185esac
9186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_try") 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; } &&
9191 { ac_try='test -s conftest$ac_exeext'
9192 { (case "(($ac_try" in
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9195esac
9196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_try") 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009201 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009202else
9203 echo "$as_me: failed program was:" >&5
9204sed 's/^/| /' conftest.$ac_ext >&5
9205
Dan Gohman943005e2010-06-01 16:22:27 +00009206 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009207fi
9208
9209rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009211 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009212 rmdir "$tmp"
9213 CFLAGS="$oldcflags"
9214 ac_ext=c
9215ac_cpp='$CPP $CPPFLAGS'
9216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9218ac_compiler_gnu=$ac_cv_c_compiler_gnu
9219
9220
9221fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009222{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9223echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9224if test "$llvm_cv_link_use_version_script" = yes ; then
9225 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009226
9227 fi
9228
9229
Reid Spencera773bd52006-08-04 18:18:08 +00009230
9231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009232{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9233echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9234if test "${ac_cv_c_const+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009237 cat >conftest.$ac_ext <<_ACEOF
9238/* confdefs.h. */
9239_ACEOF
9240cat confdefs.h >>conftest.$ac_ext
9241cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009242/* end confdefs.h. */
9243
9244int
9245main ()
9246{
9247/* FIXME: Include the comments suggested by Paul. */
9248#ifndef __cplusplus
9249 /* Ultrix mips cc rejects this. */
9250 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009251 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009252 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009253 char const *const *ccp;
9254 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009255 /* NEC SVR4.0.2 mips cc rejects this. */
9256 struct point {int x, y;};
9257 static struct point const zero = {0,0};
9258 /* AIX XL C 1.02.0.0 rejects this.
9259 It does not let you subtract one const X* pointer from another in
9260 an arm of an if-expression whose if-part is not a constant
9261 expression */
9262 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009263 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009264 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009265 ++ccp;
9266 p = (char**) ccp;
9267 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009268 { /* SCO 3.2v4 cc rejects this. */
9269 char *t;
9270 char const *s = 0 ? (char *) 0 : (char const *) 0;
9271
9272 *t++ = 0;
9273 if (s) return 0;
9274 }
9275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9276 int x[] = {25, 17};
9277 const int *foo = &x[0];
9278 ++foo;
9279 }
9280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9281 typedef const int *iptr;
9282 iptr p = 0;
9283 ++p;
9284 }
9285 { /* AIX XL C 1.02.0.0 rejects this saying
9286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9287 struct s { int j; const int *ap[3]; };
9288 struct s *b; b->j = 5;
9289 }
9290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9291 const int foo = 10;
9292 if (!foo) return 0;
9293 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009294 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009295#endif
9296
9297 ;
9298 return 0;
9299}
9300_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009301rm -f conftest.$ac_objext
9302if { (ac_try="$ac_compile"
9303case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306esac
9307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_compile") 2>conftest.er1
9309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9316 { (case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319esac
9320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_try") 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (case "(($ac_try" in
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9329esac
9330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 (eval "$ac_try") 2>&5
9332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009335 ac_cv_c_const=yes
9336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009337 echo "$as_me: failed program was:" >&5
9338sed 's/^/| /' conftest.$ac_ext >&5
9339
9340 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009342
Reid Spencera773bd52006-08-04 18:18:08 +00009343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009345{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9346echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009347if test $ac_cv_c_const = no; then
9348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009349cat >>confdefs.h <<\_ACEOF
9350#define const
9351_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009352
9353fi
9354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009355
9356
9357
9358
9359
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009360ac_header_dirent=no
9361for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009362 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9363{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9364echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009368 cat >conftest.$ac_ext <<_ACEOF
9369/* confdefs.h. */
9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373/* end confdefs.h. */
9374#include <sys/types.h>
9375#include <$ac_hdr>
9376
9377int
9378main ()
9379{
9380if ((DIR *) 0)
9381return 0;
9382 ;
9383 return 0;
9384}
9385_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009386rm -f conftest.$ac_objext
9387if { (ac_try="$ac_compile"
9388case "(($ac_try" in
9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9391esac
9392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393 (eval "$ac_compile") 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9401 { (case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404esac
9405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_try") 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (case "(($ac_try" in
9412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413 *) ac_try_echo=$ac_try;;
9414esac
9415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9416 (eval "$ac_try") 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420 eval "$as_ac_Header=yes"
9421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009422 echo "$as_me: failed program was:" >&5
9423sed 's/^/| /' conftest.$ac_ext >&5
9424
9425 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009427
Reid Spencera773bd52006-08-04 18:18:08 +00009428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009430ac_res=`eval echo '${'$as_ac_Header'}'`
9431 { echo "$as_me:$LINENO: result: $ac_res" >&5
9432echo "${ECHO_T}$ac_res" >&6; }
9433if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009434 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009435#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009436_ACEOF
9437
9438ac_header_dirent=$ac_hdr; break
9439fi
9440
9441done
9442# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9443if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009444 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9445echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9446if test "${ac_cv_search_opendir+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009448else
9449 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009450cat >conftest.$ac_ext <<_ACEOF
9451/* confdefs.h. */
9452_ACEOF
9453cat confdefs.h >>conftest.$ac_ext
9454cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009455/* end confdefs.h. */
9456
Reid Spencera773bd52006-08-04 18:18:08 +00009457/* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009460#ifdef __cplusplus
9461extern "C"
9462#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009463char opendir ();
9464int
9465main ()
9466{
Reid Spencera773bd52006-08-04 18:18:08 +00009467return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468 ;
9469 return 0;
9470}
9471_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009472for ac_lib in '' dir; do
9473 if test -z "$ac_lib"; then
9474 ac_res="none required"
9475 else
9476 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009478 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009479 rm -f conftest.$ac_objext conftest$ac_exeext
9480if { (ac_try="$ac_link"
9481case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484esac
9485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9497esac
9498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507esac
9508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_try") 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009513 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009514else
9515 echo "$as_me: failed program was:" >&5
9516sed 's/^/| /' conftest.$ac_ext >&5
9517
9518
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009520
Bill Wendlingebcceee2009-04-18 11:20:33 +00009521rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009522 conftest$ac_exeext
9523 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009524 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525fi
John Criswell7a73b802003-06-30 21:59:07 +00009526done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009527if test "${ac_cv_search_opendir+set}" = set; then
9528 :
Reid Spencera773bd52006-08-04 18:18:08 +00009529else
9530 ac_cv_search_opendir=no
9531fi
9532rm conftest.$ac_ext
9533LIBS=$ac_func_search_save_LIBS
9534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009535{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9536echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009537ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009538if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009540
Reid Spencera773bd52006-08-04 18:18:08 +00009541fi
9542
9543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9545echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9546if test "${ac_cv_search_opendir+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009548else
9549 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009550cat >conftest.$ac_ext <<_ACEOF
9551/* confdefs.h. */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009555/* end confdefs.h. */
9556
9557/* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9560#ifdef __cplusplus
9561extern "C"
9562#endif
9563char opendir ();
9564int
9565main ()
9566{
9567return opendir ();
9568 ;
9569 return 0;
9570}
9571_ACEOF
9572for ac_lib in '' x; do
9573 if test -z "$ac_lib"; then
9574 ac_res="none required"
9575 else
9576 ac_res=-l$ac_lib
9577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9578 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009579 rm -f conftest.$ac_objext conftest$ac_exeext
9580if { (ac_try="$ac_link"
9581case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584esac
9585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9594 { (case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597esac
9598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_try") 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; } &&
9603 { ac_try='test -s conftest$ac_exeext'
9604 { (case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9607esac
9608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_try") 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009613 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009614else
9615 echo "$as_me: failed program was:" >&5
9616sed 's/^/| /' conftest.$ac_ext >&5
9617
9618
Reid Spencera773bd52006-08-04 18:18:08 +00009619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009620
Bill Wendlingebcceee2009-04-18 11:20:33 +00009621rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009622 conftest$ac_exeext
9623 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009624 break
9625fi
9626done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009627if test "${ac_cv_search_opendir+set}" = set; then
9628 :
Reid Spencera773bd52006-08-04 18:18:08 +00009629else
9630 ac_cv_search_opendir=no
9631fi
9632rm conftest.$ac_ext
9633LIBS=$ac_func_search_save_LIBS
9634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009635{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9636echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009637ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009638if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9640
9641fi
9642
9643fi
John Criswell7a73b802003-06-30 21:59:07 +00009644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009645
John Criswell7a73b802003-06-30 21:59:07 +00009646for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009647do
9648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9654fi
9655ac_res=`eval echo '${'$as_ac_Header'}'`
9656 { echo "$as_me:$LINENO: result: $ac_res" >&5
9657echo "${ECHO_T}$ac_res" >&6; }
9658else
9659 # Is the header compilable?
9660{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9662cat >conftest.$ac_ext <<_ACEOF
9663/* confdefs.h. */
9664_ACEOF
9665cat confdefs.h >>conftest.$ac_ext
9666cat >>conftest.$ac_ext <<_ACEOF
9667/* end confdefs.h. */
9668$ac_includes_default
9669#include <$ac_header>
9670_ACEOF
9671rm -f conftest.$ac_objext
9672if { (ac_try="$ac_compile"
9673case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9676esac
9677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_compile") 2>conftest.er1
9679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689esac
9690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest.$ac_objext'
9696 { (case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699esac
9700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_try") 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_header_compiler=yes
9706else
9707 echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ac_header_compiler=no
9711fi
9712
9713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9715echo "${ECHO_T}$ac_header_compiler" >&6; }
9716
9717# Is the header present?
9718{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9720cat >conftest.$ac_ext <<_ACEOF
9721/* confdefs.h. */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h. */
9726#include <$ac_header>
9727_ACEOF
9728if { (ac_try="$ac_cpp conftest.$ac_ext"
9729case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732esac
9733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } >/dev/null; then
9741 if test -s conftest.err; then
9742 ac_cpp_err=$ac_c_preproc_warn_flag
9743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9744 else
9745 ac_cpp_err=
9746 fi
9747else
9748 ac_cpp_err=yes
9749fi
9750if test -z "$ac_cpp_err"; then
9751 ac_header_preproc=yes
9752else
9753 echo "$as_me: failed program was:" >&5
9754sed 's/^/| /' conftest.$ac_ext >&5
9755
9756 ac_header_preproc=no
9757fi
9758
9759rm -f conftest.err conftest.$ac_ext
9760{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9761echo "${ECHO_T}$ac_header_preproc" >&6; }
9762
9763# So? What about this header?
9764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9765 yes:no: )
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9770 ac_header_preproc=yes
9771 ;;
9772 no:yes:* )
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9776echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9780echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9785 ( cat <<\_ASBOX
9786## ----------------------------------- ##
9787## Report this to llvmbugs@cs.uiuc.edu ##
9788## ----------------------------------- ##
9789_ASBOX
9790 ) | sed "s/^/$as_me: WARNING: /" >&2
9791 ;;
9792esac
9793{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798 eval "$as_ac_Header=\$ac_header_preproc"
9799fi
9800ac_res=`eval echo '${'$as_ac_Header'}'`
9801 { echo "$as_me:$LINENO: result: $ac_res" >&5
9802echo "${ECHO_T}$ac_res" >&6; }
9803
9804fi
9805if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009806 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009808_ACEOF
9809
9810fi
9811
9812done
9813
Reid Spencera773bd52006-08-04 18:18:08 +00009814# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009815if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009816 enableval=$enable_ltdl_install;
9817fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009820
9821
9822if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823 INSTALL_LTDL_TRUE=
9824 INSTALL_LTDL_FALSE='#'
9825else
9826 INSTALL_LTDL_TRUE='#'
9827 INSTALL_LTDL_FALSE=
9828fi
9829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009830
9831
9832if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833 CONVENIENCE_LTDL_TRUE=
9834 CONVENIENCE_LTDL_FALSE='#'
9835else
9836 CONVENIENCE_LTDL_TRUE='#'
9837 CONVENIENCE_LTDL_FALSE=
9838fi
9839
9840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009841{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9842echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009843library_names_spec=
9844libname_spec='lib$name'
9845soname_spec=
9846shrext_cmds=".so"
9847postinstall_cmds=
9848postuninstall_cmds=
9849finish_cmds=
9850finish_eval=
9851shlibpath_var=
9852shlibpath_overrides_runpath=unknown
9853version_type=none
9854dynamic_linker="$host_os ld.so"
9855sys_lib_dlsearch_path_spec="/lib /usr/lib"
9856if test "$GCC" = yes; then
9857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9858 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9859 # if the path contains ";" then we assume it to be the separator
9860 # otherwise default to the standard path separator (i.e. ":") - it is
9861 # assumed that no part of a normal pathname contains ";" but that should
9862 # okay in the real world where ";" in dirpaths is itself problematic.
9863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9864 else
9865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9866 fi
9867else
9868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9869fi
9870need_lib_prefix=unknown
9871hardcode_into_libs=no
9872
9873# when you set need_version to no, make sure it does not cause -set_version
9874# flags to be left without arguments
9875need_version=unknown
9876
9877case $host_os in
9878aix3*)
9879 version_type=linux
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9881 shlibpath_var=LIBPATH
9882
9883 # AIX 3 has no versioning support, so we append a major version to the name.
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 ;;
9886
9887aix4* | aix5*)
9888 version_type=linux
9889 need_lib_prefix=no
9890 need_version=no
9891 hardcode_into_libs=yes
9892 if test "$host_cpu" = ia64; then
9893 # AIX 5 supports IA64
9894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 else
9897 # With GCC up to 2.95.x, collect2 would create an import file
9898 # for dependence libraries. The import file would start with
9899 # the line `#! .'. This would cause the generated library to
9900 # depend on `.', always an invalid library. This was fixed in
9901 # development snapshots of GCC prior to 3.0.
9902 case $host_os in
9903 aix4 | aix4.[01] | aix4.[01].*)
9904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9905 echo ' yes '
9906 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9907 :
9908 else
9909 can_build_shared=no
9910 fi
9911 ;;
9912 esac
9913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9914 # soname into executable. Probably we can add versioning support to
9915 # collect2, so additional links can be useful in future.
9916 if test "$aix_use_runtimelinking" = yes; then
9917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9918 # instead of lib<name>.a to let people know that these are not
9919 # typical AIX shared libraries.
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 else
9922 # We preserve .a as extension for shared libraries through AIX4.2
9923 # and later when we are not doing run time linking.
9924 library_names_spec='${libname}${release}.a $libname.a'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 fi
9927 shlibpath_var=LIBPATH
9928 fi
9929 ;;
9930
9931amigaos*)
9932 library_names_spec='$libname.ixlibrary $libname.a'
9933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9934 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'
9935 ;;
9936
9937beos*)
9938 library_names_spec='${libname}${shared_ext}'
9939 dynamic_linker="$host_os ld.so"
9940 shlibpath_var=LIBRARY_PATH
9941 ;;
9942
9943bsdi[45]*)
9944 version_type=linux
9945 need_version=no
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9952 # the default ld.so.conf also contains /usr/contrib/lib and
9953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9954 # libtool to hard-code these into programs
9955 ;;
9956
9957cygwin* | mingw* | pw32*)
9958 version_type=windows
9959 shrext_cmds=".dll"
9960 need_version=no
9961 need_lib_prefix=no
9962
9963 case $GCC,$host_os in
9964 yes,cygwin* | yes,mingw* | yes,pw32*)
9965 library_names_spec='$libname.dll.a'
9966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9967 postinstall_cmds='base_file=`basename \${file}`~
9968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9969 dldir=$destdir/`dirname \$dlpath`~
9970 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009971 $install_prog $dir/$dlname \$dldir/$dlname~
9972 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9974 dlpath=$dir/\$dldll~
9975 $rm \$dlpath'
9976 shlibpath_overrides_runpath=yes
9977
9978 case $host_os in
9979 cygwin*)
9980 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9982 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9983 ;;
9984 mingw*)
9985 # MinGW DLLs use traditional 'lib' prefix
9986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9988 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9989 # It is most probably a Windows format PATH printed by
9990 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9991 # path with ; separators, and with drive letters. We can handle the
9992 # drive letters (cygwin fileutils understands them), so leave them,
9993 # especially as we might pass files found there to a mingw objdump,
9994 # which wouldn't understand a cygwinified path. Ahh.
9995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9996 else
9997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9998 fi
9999 ;;
10000 pw32*)
10001 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000010002 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 +000010003 ;;
10004 esac
10005 ;;
10006
10007 *)
10008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10009 ;;
10010 esac
10011 dynamic_linker='Win32 ld.exe'
10012 # FIXME: first we should search . and the directory the executable is in
10013 shlibpath_var=PATH
10014 ;;
10015
10016darwin* | rhapsody*)
10017 dynamic_linker="$host_os dyld"
10018 version_type=darwin
10019 need_lib_prefix=no
10020 need_version=no
10021 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10022 soname_spec='${libname}${release}${major}$shared_ext'
10023 shlibpath_overrides_runpath=yes
10024 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000010025 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10027 if test "$GCC" = yes; then
10028 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"`
10029 else
10030 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10031 fi
10032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10033 ;;
10034
10035dgux*)
10036 version_type=linux
10037 need_lib_prefix=no
10038 need_version=no
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 ;;
10043
10044freebsd1*)
10045 dynamic_linker=no
10046 ;;
10047
10048kfreebsd*-gnu)
10049 version_type=linux
10050 need_lib_prefix=no
10051 need_version=no
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10053 soname_spec='${libname}${release}${shared_ext}$major'
10054 shlibpath_var=LD_LIBRARY_PATH
10055 shlibpath_overrides_runpath=no
10056 hardcode_into_libs=yes
10057 dynamic_linker='GNU ld.so'
10058 ;;
10059
Reid Spencera773bd52006-08-04 18:18:08 +000010060freebsd* | dragonfly*)
10061 # DragonFly does not have aout. When/if they implement a new
10062 # versioning mechanism, adjust this.
10063 if test -x /usr/bin/objformat; then
10064 objformat=`/usr/bin/objformat`
10065 else
10066 case $host_os in
10067 freebsd[123]*) objformat=aout ;;
10068 *) objformat=elf ;;
10069 esac
10070 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010071 version_type=freebsd-$objformat
10072 case $version_type in
10073 freebsd-elf*)
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10075 need_version=no
10076 need_lib_prefix=no
10077 ;;
10078 freebsd-*)
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10080 need_version=yes
10081 ;;
10082 esac
10083 shlibpath_var=LD_LIBRARY_PATH
10084 case $host_os in
10085 freebsd2*)
10086 shlibpath_overrides_runpath=yes
10087 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010088 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089 shlibpath_overrides_runpath=yes
10090 hardcode_into_libs=yes
10091 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010094 shlibpath_overrides_runpath=no
10095 hardcode_into_libs=yes
10096 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010097 freebsd*) # from 4.6 on
10098 shlibpath_overrides_runpath=yes
10099 hardcode_into_libs=yes
10100 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010101 esac
10102 ;;
10103
10104gnu*)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 hardcode_into_libs=yes
10112 ;;
10113
10114hpux9* | hpux10* | hpux11*)
10115 # Give a soname corresponding to the major version so that dld.sl refuses to
10116 # link against other versions.
10117 version_type=sunos
10118 need_lib_prefix=no
10119 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010120 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010121 ia64*)
10122 shrext_cmds='.so'
10123 hardcode_into_libs=yes
10124 dynamic_linker="$host_os dld.so"
10125 shlibpath_var=LD_LIBRARY_PATH
10126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 if test "X$HPUX_IA64_MODE" = X32; then
10130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10131 else
10132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10133 fi
10134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10135 ;;
10136 hppa*64*)
10137 shrext_cmds='.sl'
10138 hardcode_into_libs=yes
10139 dynamic_linker="$host_os dld.sl"
10140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10146 ;;
10147 *)
10148 shrext_cmds='.sl'
10149 dynamic_linker="$host_os dld.sl"
10150 shlibpath_var=SHLIB_PATH
10151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153 soname_spec='${libname}${release}${shared_ext}$major'
10154 ;;
10155 esac
10156 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10157 postinstall_cmds='chmod 555 $lib'
10158 ;;
10159
Reid Spencera773bd52006-08-04 18:18:08 +000010160interix3*)
10161 version_type=linux
10162 need_lib_prefix=no
10163 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 shlibpath_overrides_runpath=no
10169 hardcode_into_libs=yes
10170 ;;
10171
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010172irix5* | irix6* | nonstopux*)
10173 case $host_os in
10174 nonstopux*) version_type=nonstopux ;;
10175 *)
10176 if test "$lt_cv_prog_gnu_ld" = yes; then
10177 version_type=linux
10178 else
10179 version_type=irix
10180 fi ;;
10181 esac
10182 need_lib_prefix=no
10183 need_version=no
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10186 case $host_os in
10187 irix5* | nonstopux*)
10188 libsuff= shlibsuff=
10189 ;;
10190 *)
10191 case $LD in # libtool.m4 will add one of these switches to LD
10192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10193 libsuff= shlibsuff= libmagic=32-bit;;
10194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10195 libsuff=32 shlibsuff=N32 libmagic=N32;;
10196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10198 *) libsuff= shlibsuff= libmagic=never-match;;
10199 esac
10200 ;;
10201 esac
10202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10203 shlibpath_overrides_runpath=no
10204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10206 hardcode_into_libs=yes
10207 ;;
10208
10209# No shared lib support for Linux oldld, aout, or coff.
10210linux*oldld* | linux*aout* | linux*coff*)
10211 dynamic_linker=no
10212 ;;
10213
10214# This must be Linux ELF.
10215linux*)
10216 version_type=linux
10217 need_lib_prefix=no
10218 need_version=no
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 shlibpath_overrides_runpath=no
10224 # This implies no fast_install, which is unacceptable.
10225 # Some rework will be needed to allow for fast_install
10226 # before this can be enabled.
10227 hardcode_into_libs=yes
10228
10229 # Append ld.so.conf contents to the search path
10230 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010231 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 +000010232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10233 fi
10234
10235 # We used to test for /lib/ld.so.1 and disable shared libraries on
10236 # powerpc, because MkLinux only supported shared libraries with the
10237 # GNU dynamic linker. Since this was broken with cross compilers,
10238 # most powerpc-linux boxes support dynamic linking these days and
10239 # people can always --disable-shared, the test was removed, and we
10240 # assume the GNU/Linux dynamic linker is in use.
10241 dynamic_linker='GNU/Linux ld.so'
10242 ;;
10243
10244knetbsd*-gnu)
10245 version_type=linux
10246 need_lib_prefix=no
10247 need_version=no
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 shlibpath_var=LD_LIBRARY_PATH
10251 shlibpath_overrides_runpath=no
10252 hardcode_into_libs=yes
10253 dynamic_linker='GNU ld.so'
10254 ;;
10255
10256netbsd*)
10257 version_type=sunos
10258 need_lib_prefix=no
10259 need_version=no
10260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10263 dynamic_linker='NetBSD (a.out) ld.so'
10264 else
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 dynamic_linker='NetBSD ld.elf_so'
10268 fi
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 hardcode_into_libs=yes
10272 ;;
10273
10274newsos6)
10275 version_type=linux
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes
10279 ;;
10280
10281nto-qnx*)
10282 version_type=linux
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 ;;
10290
10291openbsd*)
10292 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010293 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010294 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10296 case $host_os in
10297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10298 *) need_version=no ;;
10299 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10304 case $host_os in
10305 openbsd2.[89] | openbsd2.[89].*)
10306 shlibpath_overrides_runpath=no
10307 ;;
10308 *)
10309 shlibpath_overrides_runpath=yes
10310 ;;
10311 esac
10312 else
10313 shlibpath_overrides_runpath=yes
10314 fi
10315 ;;
10316
10317os2*)
10318 libname_spec='$name'
10319 shrext_cmds=".dll"
10320 need_lib_prefix=no
10321 library_names_spec='$libname${shared_ext} $libname.a'
10322 dynamic_linker='OS/2 ld.exe'
10323 shlibpath_var=LIBPATH
10324 ;;
10325
10326osf3* | osf4* | osf5*)
10327 version_type=osf
10328 need_lib_prefix=no
10329 need_version=no
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10335 ;;
10336
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010337solaris*)
10338 version_type=linux
10339 need_lib_prefix=no
10340 need_version=no
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 shlibpath_overrides_runpath=yes
10345 hardcode_into_libs=yes
10346 # ldd complains unless libraries are executable
10347 postinstall_cmds='chmod +x $lib'
10348 ;;
10349
10350sunos4*)
10351 version_type=sunos
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=yes
10356 if test "$with_gnu_ld" = yes; then
10357 need_lib_prefix=no
10358 fi
10359 need_version=yes
10360 ;;
10361
Reid Spencera773bd52006-08-04 18:18:08 +000010362sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363 version_type=linux
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 case $host_vendor in
10368 sni)
10369 shlibpath_overrides_runpath=no
10370 need_lib_prefix=no
10371 export_dynamic_flag_spec='${wl}-Blargedynsym'
10372 runpath_var=LD_RUN_PATH
10373 ;;
10374 siemens)
10375 need_lib_prefix=no
10376 ;;
10377 motorola)
10378 need_lib_prefix=no
10379 need_version=no
10380 shlibpath_overrides_runpath=no
10381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10382 ;;
10383 esac
10384 ;;
10385
10386sysv4*MP*)
10387 if test -d /usr/nec ;then
10388 version_type=linux
10389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10390 soname_spec='$libname${shared_ext}.$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 fi
10393 ;;
10394
Reid Spencera773bd52006-08-04 18:18:08 +000010395sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10396 version_type=freebsd-elf
10397 need_lib_prefix=no
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 hardcode_into_libs=yes
10403 if test "$with_gnu_ld" = yes; then
10404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10405 shlibpath_overrides_runpath=no
10406 else
10407 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10408 shlibpath_overrides_runpath=yes
10409 case $host_os in
10410 sco3.2v5*)
10411 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10412 ;;
10413 esac
10414 fi
10415 sys_lib_dlsearch_path_spec='/usr/lib'
10416 ;;
10417
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418uts4*)
10419 version_type=linux
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 ;;
10424
10425*)
10426 dynamic_linker=no
10427 ;;
10428esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010429{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10430echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431test "$dynamic_linker" = no && can_build_shared=no
10432
Reid Spencera773bd52006-08-04 18:18:08 +000010433variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10434if test "$GCC" = yes; then
10435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10436fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010437
Reid Spencera773bd52006-08-04 18:18:08 +000010438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010439{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10440echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10441if test "${libltdl_cv_shlibext+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443else
10444
10445module=yes
10446eval libltdl_cv_shlibext=$shrext_cmds
10447
10448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010449{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10450echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451if test -n "$libltdl_cv_shlibext"; then
10452
10453cat >>confdefs.h <<_ACEOF
10454#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10455_ACEOF
10456
10457fi
10458
10459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010460{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10461echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10462if test "${libltdl_cv_shlibpath_var+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464else
10465 libltdl_cv_shlibpath_var="$shlibpath_var"
10466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010467{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10468echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469if test -n "$libltdl_cv_shlibpath_var"; then
10470
10471cat >>confdefs.h <<_ACEOF
10472#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10473_ACEOF
10474
10475fi
10476
10477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010478{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10479echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10480if test "${libltdl_cv_sys_search_path+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482else
10483 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010485{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10486echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487if test -n "$libltdl_cv_sys_search_path"; then
10488 sys_search_path=
10489 for dir in $libltdl_cv_sys_search_path; do
10490 if test -z "$sys_search_path"; then
10491 sys_search_path="$dir"
10492 else
10493 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10494 fi
10495 done
10496
10497cat >>confdefs.h <<_ACEOF
10498#define LTDL_SYSSEARCHPATH "$sys_search_path"
10499_ACEOF
10500
10501fi
10502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010503{ echo "$as_me:$LINENO: checking for objdir" >&5
10504echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10505if test "${libltdl_cv_objdir+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507else
10508 libltdl_cv_objdir="$objdir"
10509 if test -n "$objdir"; then
10510 :
10511 else
10512 rm -f .libs 2>/dev/null
10513 mkdir .libs 2>/dev/null
10514 if test -d .libs; then
10515 libltdl_cv_objdir=.libs
10516 else
10517 # MS-DOS does not allow filenames that begin with a dot.
10518 libltdl_cv_objdir=_libs
10519 fi
10520 rmdir .libs 2>/dev/null
10521 fi
10522
10523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010524{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10525echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526
10527cat >>confdefs.h <<_ACEOF
10528#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10529_ACEOF
10530
10531
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532
10533
10534
10535
10536# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010537{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10538echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10539if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541else
10542
10543# These are sane defaults that work on at least a few old systems.
10544# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10545
10546# Character class describing NM global symbol codes.
10547symcode='[BCDEGRST]'
10548
10549# Regexp to match symbols that can be accessed directly from C.
10550sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10551
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010552# Transform an extracted symbol line into a proper C declaration
10553lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10554
10555# Transform an extracted symbol line into symbol name and symbol address
10556lt_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'"
10557
10558# Define system-specific variables.
10559case $host_os in
10560aix*)
10561 symcode='[BCDT]'
10562 ;;
10563cygwin* | mingw* | pw32*)
10564 symcode='[ABCDGISTW]'
10565 ;;
10566hpux*) # Its linker distinguishes data from code symbols
10567 if test "$host_cpu" = ia64; then
10568 symcode='[ABCDEGRST]'
10569 fi
10570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10571 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'"
10572 ;;
10573linux*)
10574 if test "$host_cpu" = ia64; then
10575 symcode='[ABCDGIRSTW]'
10576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10577 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'"
10578 fi
10579 ;;
10580irix* | nonstopux*)
10581 symcode='[BCDEGRST]'
10582 ;;
10583osf*)
10584 symcode='[BCDEGQRST]'
10585 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010586solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010587 symcode='[BDRT]'
10588 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010589sco3.2v5*)
10590 symcode='[DT]'
10591 ;;
10592sysv4.2uw2*)
10593 symcode='[DT]'
10594 ;;
10595sysv5* | sco5v6* | unixware* | OpenUNIX*)
10596 symcode='[ABDT]'
10597 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598sysv4)
10599 symcode='[DFNSTU]'
10600 ;;
10601esac
10602
10603# Handle CRLF in mingw tool chain
10604opt_cr=
10605case $build_os in
10606mingw*)
10607 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10608 ;;
10609esac
10610
10611# If we're using GNU nm, then use its standard symbol codes.
10612case `$NM -V 2>&1` in
10613*GNU* | *'with BFD'*)
10614 symcode='[ABCDGIRSTW]' ;;
10615esac
10616
10617# Try without a prefix undercore, then with it.
10618for ac_symprfx in "" "_"; do
10619
Reid Spencera773bd52006-08-04 18:18:08 +000010620 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10621 symxfrm="\\1 $ac_symprfx\\2 \\2"
10622
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010623 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010624 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 +000010625
10626 # Check to see that the pipe works correctly.
10627 pipe_works=no
10628
10629 rm -f conftest*
10630 cat > conftest.$ac_ext <<EOF
10631#ifdef __cplusplus
10632extern "C" {
10633#endif
10634char nm_test_var;
10635void nm_test_func(){}
10636#ifdef __cplusplus
10637}
10638#endif
10639int main(){nm_test_var='a';nm_test_func();return(0);}
10640EOF
10641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643 (eval $ac_compile) 2>&5
10644 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647 # Now try to grab the symbols.
10648 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010649 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 +000010650 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10651 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010654 # Try sorting and uniquifying the output.
10655 if sort "$nlist" | uniq > "$nlist"T; then
10656 mv -f "$nlist"T "$nlist"
10657 else
10658 rm -f "$nlist"T
10659 fi
10660
10661 # Make sure that we snagged all the symbols we need.
10662 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10663 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10664 cat <<EOF > conftest.$ac_ext
10665#ifdef __cplusplus
10666extern "C" {
10667#endif
10668
10669EOF
10670 # Now generate the symbol file.
10671 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10672
10673 cat <<EOF >> conftest.$ac_ext
10674#if defined (__STDC__) && __STDC__
10675# define lt_ptr_t void *
10676#else
10677# define lt_ptr_t char *
10678# define const
10679#endif
10680
10681/* The mapping between symbol names and symbols. */
10682const struct {
10683 const char *name;
10684 lt_ptr_t address;
10685}
10686lt_preloaded_symbols[] =
10687{
10688EOF
10689 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10690 cat <<\EOF >> conftest.$ac_ext
10691 {0, (lt_ptr_t) 0}
10692};
10693
10694#ifdef __cplusplus
10695}
10696#endif
10697EOF
10698 # Now try linking the two files.
10699 mv conftest.$ac_objext conftstm.$ac_objext
10700 lt_save_LIBS="$LIBS"
10701 lt_save_CFLAGS="$CFLAGS"
10702 LIBS="conftstm.$ac_objext"
10703 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705 (eval $ac_link) 2>&5
10706 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709 pipe_works=yes
10710 fi
10711 LIBS="$lt_save_LIBS"
10712 CFLAGS="$lt_save_CFLAGS"
10713 else
10714 echo "cannot find nm_test_func in $nlist" >&5
10715 fi
10716 else
10717 echo "cannot find nm_test_var in $nlist" >&5
10718 fi
10719 else
10720 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10721 fi
10722 else
10723 echo "$progname: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10725 fi
10726 rm -f conftest* conftst*
10727
10728 # Do not use the global_symbol_pipe unless it works.
10729 if test "$pipe_works" = yes; then
10730 break
10731 else
10732 lt_cv_sys_global_symbol_pipe=
10733 fi
10734done
10735
10736fi
10737
10738if test -z "$lt_cv_sys_global_symbol_pipe"; then
10739 lt_cv_sys_global_symbol_to_cdecl=
10740fi
10741if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010742 { echo "$as_me:$LINENO: result: failed" >&5
10743echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010745 { echo "$as_me:$LINENO: result: ok" >&5
10746echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010747fi
10748
10749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010750{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10751echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10752if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754else
10755 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10756 libltdl_cv_preloaded_symbols=yes
10757 else
10758 libltdl_cv_preloaded_symbols=no
10759 fi
10760
10761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010762{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10763echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010766cat >>confdefs.h <<\_ACEOF
10767#define HAVE_PRELOADED_SYMBOLS 1
10768_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769
10770fi
10771
10772LIBADD_DL=
10773
10774ac_ext=c
10775ac_cpp='$CPP $CPPFLAGS'
10776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10778ac_compiler_gnu=$ac_cv_c_compiler_gnu
10779
10780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010781{ echo "$as_me:$LINENO: checking for shl_load" >&5
10782echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10783if test "${ac_cv_func_shl_load+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786 cat >conftest.$ac_ext <<_ACEOF
10787/* confdefs.h. */
10788_ACEOF
10789cat confdefs.h >>conftest.$ac_ext
10790cat >>conftest.$ac_ext <<_ACEOF
10791/* end confdefs.h. */
10792/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10794#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010796/* System header to define __stub macros and hopefully few prototypes,
10797 which can conflict with char shl_load (); below.
10798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10799 <limits.h> exists even on freestanding compilers. */
10800
10801#ifdef __STDC__
10802# include <limits.h>
10803#else
10804# include <assert.h>
10805#endif
10806
10807#undef shl_load
10808
10809/* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10812#ifdef __cplusplus
10813extern "C"
10814#endif
10815char shl_load ();
10816/* The GNU C library defines this for functions which it implements
10817 to always fail with ENOSYS. Some functions are actually named
10818 something starting with __ and the normal name is an alias. */
10819#if defined __stub_shl_load || defined __stub___shl_load
10820choke me
10821#endif
10822
10823int
10824main ()
10825{
10826return shl_load ();
10827 ;
10828 return 0;
10829}
10830_ACEOF
10831rm -f conftest.$ac_objext conftest$ac_exeext
10832if { (ac_try="$ac_link"
10833case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836esac
10837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_link") 2>conftest.er1
10839 ac_status=$?
10840 grep -v '^ *+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } &&
10845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10846 { (case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849esac
10850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_try") 2>&5
10852 ac_status=$?
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }; } &&
10855 { ac_try='test -s conftest$ac_exeext'
10856 { (case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859esac
10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_try") 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; }; then
10865 ac_cv_func_shl_load=yes
10866else
10867 echo "$as_me: failed program was:" >&5
10868sed 's/^/| /' conftest.$ac_ext >&5
10869
10870 ac_cv_func_shl_load=no
10871fi
10872
10873rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875fi
10876{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10877echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10878if test $ac_cv_func_shl_load = yes; then
10879
10880cat >>confdefs.h <<\_ACEOF
10881#define HAVE_SHL_LOAD 1
10882_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883
10884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010885 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10886echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10887if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889else
10890 ac_check_lib_save_LIBS=$LIBS
10891LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010892cat >conftest.$ac_ext <<_ACEOF
10893/* confdefs.h. */
10894_ACEOF
10895cat confdefs.h >>conftest.$ac_ext
10896cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897/* end confdefs.h. */
10898
Reid Spencera773bd52006-08-04 18:18:08 +000010899/* Override any GCC internal prototype to avoid an error.
10900 Use char because int might match the return type of a GCC
10901 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902#ifdef __cplusplus
10903extern "C"
10904#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010905char shl_load ();
10906int
10907main ()
10908{
Reid Spencera773bd52006-08-04 18:18:08 +000010909return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910 ;
10911 return 0;
10912}
10913_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010914rm -f conftest.$ac_objext conftest$ac_exeext
10915if { (ac_try="$ac_link"
10916case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10919esac
10920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_link") 2>conftest.er1
10922 ac_status=$?
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10929 { (case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932esac
10933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_try") 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest$ac_exeext'
10939 { (case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10942esac
10943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944 (eval "$ac_try") 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010948 ac_cv_lib_dld_shl_load=yes
10949else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010950 echo "$as_me: failed program was:" >&5
10951sed 's/^/| /' conftest.$ac_ext >&5
10952
10953 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010955
Bill Wendlingebcceee2009-04-18 11:20:33 +000010956rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010957 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010958LIBS=$ac_check_lib_save_LIBS
10959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010960{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10961echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10962if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010964cat >>confdefs.h <<\_ACEOF
10965#define HAVE_SHL_LOAD 1
10966_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967
10968 LIBADD_DL="$LIBADD_DL -ldld"
10969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010970 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10971echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10972if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974else
10975 ac_check_lib_save_LIBS=$LIBS
10976LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010977cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982/* end confdefs.h. */
10983
Reid Spencera773bd52006-08-04 18:18:08 +000010984/* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987#ifdef __cplusplus
10988extern "C"
10989#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990char dlopen ();
10991int
10992main ()
10993{
Reid Spencera773bd52006-08-04 18:18:08 +000010994return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010995 ;
10996 return 0;
10997}
10998_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010999rm -f conftest.$ac_objext conftest$ac_exeext
11000if { (ac_try="$ac_link"
11001case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_link") 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027esac
11028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033 ac_cv_lib_dl_dlopen=yes
11034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011040
Bill Wendlingebcceee2009-04-18 11:20:33 +000011041rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011042 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011043LIBS=$ac_check_lib_save_LIBS
11044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011045{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11046echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11047if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011049cat >>confdefs.h <<\_ACEOF
11050#define HAVE_LIBDL 1
11051_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011052
11053 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011055 cat >conftest.$ac_ext <<_ACEOF
11056/* confdefs.h. */
11057_ACEOF
11058cat confdefs.h >>conftest.$ac_ext
11059cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060/* end confdefs.h. */
11061#if HAVE_DLFCN_H
11062# include <dlfcn.h>
11063#endif
11064
11065int
11066main ()
11067{
11068dlopen(0, 0);
11069 ;
11070 return 0;
11071}
11072_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011073rm -f conftest.$ac_objext conftest$ac_exeext
11074if { (ac_try="$ac_link"
11075case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
11079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_link") 2>conftest.er1
11081 ac_status=$?
11082 grep -v '^ *+' conftest.er1 >conftest.err
11083 rm -f conftest.er1
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } &&
11087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11088 { (case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091esac
11092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_try") 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; } &&
11097 { ac_try='test -s conftest$ac_exeext'
11098 { (case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_try") 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011108cat >>confdefs.h <<\_ACEOF
11109#define HAVE_LIBDL 1
11110_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011111 libltdl_cv_func_dlopen="yes"
11112else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011113 echo "$as_me: failed program was:" >&5
11114sed 's/^/| /' conftest.$ac_ext >&5
11115
11116 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11117echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11118if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120else
11121 ac_check_lib_save_LIBS=$LIBS
11122LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011123cat >conftest.$ac_ext <<_ACEOF
11124/* confdefs.h. */
11125_ACEOF
11126cat confdefs.h >>conftest.$ac_ext
11127cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128/* end confdefs.h. */
11129
Reid Spencera773bd52006-08-04 18:18:08 +000011130/* Override any GCC internal prototype to avoid an error.
11131 Use char because int might match the return type of a GCC
11132 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011133#ifdef __cplusplus
11134extern "C"
11135#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136char dlopen ();
11137int
11138main ()
11139{
Reid Spencera773bd52006-08-04 18:18:08 +000011140return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011141 ;
11142 return 0;
11143}
11144_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011145rm -f conftest.$ac_objext conftest$ac_exeext
11146if { (ac_try="$ac_link"
11147case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150esac
11151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_link") 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163esac
11164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest$ac_exeext'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11173esac
11174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179 ac_cv_lib_svld_dlopen=yes
11180else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011181 echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011186
Bill Wendlingebcceee2009-04-18 11:20:33 +000011187rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011188 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011189LIBS=$ac_check_lib_save_LIBS
11190fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011191{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11192echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11193if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011195cat >>confdefs.h <<\_ACEOF
11196#define HAVE_LIBDL 1
11197_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011198
11199 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011201 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11202echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11203if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205else
11206 ac_check_lib_save_LIBS=$LIBS
11207LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011208cat >conftest.$ac_ext <<_ACEOF
11209/* confdefs.h. */
11210_ACEOF
11211cat confdefs.h >>conftest.$ac_ext
11212cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011213/* end confdefs.h. */
11214
Reid Spencera773bd52006-08-04 18:18:08 +000011215/* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218#ifdef __cplusplus
11219extern "C"
11220#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221char dld_link ();
11222int
11223main ()
11224{
Reid Spencera773bd52006-08-04 18:18:08 +000011225return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011226 ;
11227 return 0;
11228}
11229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011230rm -f conftest.$ac_objext conftest$ac_exeext
11231if { (ac_try="$ac_link"
11232case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11235esac
11236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_link") 2>conftest.er1
11238 ac_status=$?
11239 grep -v '^ *+' conftest.er1 >conftest.err
11240 rm -f conftest.er1
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11245 { (case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11248esac
11249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_try") 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest$ac_exeext'
11255 { (case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258esac
11259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_try") 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011264 ac_cv_lib_dld_dld_link=yes
11265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011266 echo "$as_me: failed program was:" >&5
11267sed 's/^/| /' conftest.$ac_ext >&5
11268
11269 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011271
Bill Wendlingebcceee2009-04-18 11:20:33 +000011272rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011273 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274LIBS=$ac_check_lib_save_LIBS
11275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011276{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11277echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11278if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011280cat >>confdefs.h <<\_ACEOF
11281#define HAVE_DLD 1
11282_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011283
11284 LIBADD_DL="$LIBADD_DL -ldld"
11285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011286 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11287echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11288if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11299#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011301/* System header to define __stub macros and hopefully few prototypes,
11302 which can conflict with char _dyld_func_lookup (); below.
11303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11304 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011306#ifdef __STDC__
11307# include <limits.h>
11308#else
11309# include <assert.h>
11310#endif
11311
11312#undef _dyld_func_lookup
11313
11314/* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
11317#ifdef __cplusplus
11318extern "C"
11319#endif
11320char _dyld_func_lookup ();
11321/* The GNU C library defines this for functions which it implements
11322 to always fail with ENOSYS. Some functions are actually named
11323 something starting with __ and the normal name is an alias. */
11324#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11325choke me
11326#endif
11327
11328int
11329main ()
11330{
11331return _dyld_func_lookup ();
11332 ;
11333 return 0;
11334}
11335_ACEOF
11336rm -f conftest.$ac_objext conftest$ac_exeext
11337if { (ac_try="$ac_link"
11338case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341esac
11342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_link") 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354esac
11355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest$ac_exeext'
11361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364esac
11365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_try") 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_cv_func__dyld_func_lookup=yes
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011376fi
Reid Spencera773bd52006-08-04 18:18:08 +000011377
Bill Wendlingebcceee2009-04-18 11:20:33 +000011378rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011379 conftest$ac_exeext conftest.$ac_ext
11380fi
11381{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11382echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11383if test $ac_cv_func__dyld_func_lookup = yes; then
11384
11385cat >>confdefs.h <<\_ACEOF
11386#define HAVE_DYLD 1
11387_ACEOF
11388
11389fi
11390
11391
11392fi
11393
11394
11395fi
11396
11397
11398fi
11399
11400rm -f core conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011402
11403fi
11404
11405
11406fi
11407
11408
11409fi
11410
11411
11412if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11413then
11414 lt_save_LIBS="$LIBS"
11415 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011416
11417for ac_func in dlerror
11418do
11419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11420{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424else
11425 cat >conftest.$ac_ext <<_ACEOF
11426/* confdefs.h. */
11427_ACEOF
11428cat confdefs.h >>conftest.$ac_ext
11429cat >>conftest.$ac_ext <<_ACEOF
11430/* end confdefs.h. */
11431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11433#define $ac_func innocuous_$ac_func
11434
11435/* System header to define __stub macros and hopefully few prototypes,
11436 which can conflict with char $ac_func (); below.
11437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11438 <limits.h> exists even on freestanding compilers. */
11439
11440#ifdef __STDC__
11441# include <limits.h>
11442#else
11443# include <assert.h>
11444#endif
11445
11446#undef $ac_func
11447
11448/* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11451#ifdef __cplusplus
11452extern "C"
11453#endif
11454char $ac_func ();
11455/* The GNU C library defines this for functions which it implements
11456 to always fail with ENOSYS. Some functions are actually named
11457 something starting with __ and the normal name is an alias. */
11458#if defined __stub_$ac_func || defined __stub___$ac_func
11459choke me
11460#endif
11461
11462int
11463main ()
11464{
11465return $ac_func ();
11466 ;
11467 return 0;
11468}
11469_ACEOF
11470rm -f conftest.$ac_objext conftest$ac_exeext
11471if { (ac_try="$ac_link"
11472case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475esac
11476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_link") 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11485 { (case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488esac
11489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_try") 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; } &&
11494 { ac_try='test -s conftest$ac_exeext'
11495 { (case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498esac
11499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_try") 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 eval "$as_ac_var=yes"
11505else
11506 echo "$as_me: failed program was:" >&5
11507sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 eval "$as_ac_var=no"
11510fi
11511
11512rm -f core conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11514fi
11515ac_res=`eval echo '${'$as_ac_var'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517echo "${ECHO_T}$ac_res" >&6; }
11518if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011519 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011521_ACEOF
11522
11523fi
11524done
11525
11526 LIBS="$lt_save_LIBS"
11527fi
11528ac_ext=c
11529ac_cpp='$CPP $CPPFLAGS'
11530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11532ac_compiler_gnu=$ac_cv_c_compiler_gnu
11533
11534
11535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011536{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11537echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11538if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011540else
11541 ac_cv_sys_symbol_underscore=no
11542 cat > conftest.$ac_ext <<EOF
11543void nm_test_func(){}
11544int main(){nm_test_func;return 0;}
11545EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547 (eval $ac_compile) 2>&5
11548 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551 # Now try to grab the symbols.
11552 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011553 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 +000011554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11555 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558 # See whether the symbols have a leading underscore.
11559 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11560 ac_cv_sys_symbol_underscore=yes
11561 else
11562 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11563 :
11564 else
11565 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11566 fi
11567 fi
11568 else
11569 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11570 fi
11571 else
11572 echo "configure: failed program was:" >&5
11573 cat conftest.c >&5
11574 fi
11575 rm -rf conftest*
11576
11577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011578{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11579echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580
11581
11582if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11583 if test x"$libltdl_cv_func_dlopen" = xyes ||
11584 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011585 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11586echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11587if test "${libltdl_cv_need_uscore+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011589else
11590 libltdl_cv_need_uscore=unknown
11591 save_LIBS="$LIBS"
11592 LIBS="$LIBS $LIBADD_DL"
11593 if test "$cross_compiling" = yes; then :
11594 libltdl_cv_need_uscore=cross
11595else
11596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597 lt_status=$lt_dlunknown
11598 cat > conftest.$ac_ext <<EOF
Daniel Dunbared344d22011-06-16 22:30:41 +000011599#line 11591 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600#include "confdefs.h"
11601
11602#if HAVE_DLFCN_H
11603#include <dlfcn.h>
11604#endif
11605
11606#include <stdio.h>
11607
11608#ifdef RTLD_GLOBAL
11609# define LT_DLGLOBAL RTLD_GLOBAL
11610#else
11611# ifdef DL_GLOBAL
11612# define LT_DLGLOBAL DL_GLOBAL
11613# else
11614# define LT_DLGLOBAL 0
11615# endif
11616#endif
11617
11618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619 find out it does not work in some platform. */
11620#ifndef LT_DLLAZY_OR_NOW
11621# ifdef RTLD_LAZY
11622# define LT_DLLAZY_OR_NOW RTLD_LAZY
11623# else
11624# ifdef DL_LAZY
11625# define LT_DLLAZY_OR_NOW DL_LAZY
11626# else
11627# ifdef RTLD_NOW
11628# define LT_DLLAZY_OR_NOW RTLD_NOW
11629# else
11630# ifdef DL_NOW
11631# define LT_DLLAZY_OR_NOW DL_NOW
11632# else
11633# define LT_DLLAZY_OR_NOW 0
11634# endif
11635# endif
11636# endif
11637# endif
11638#endif
11639
11640#ifdef __cplusplus
11641extern "C" void exit (int);
11642#endif
11643
11644void fnord() { int i=42;}
11645int main ()
11646{
11647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11648 int status = $lt_dlunknown;
11649
11650 if (self)
11651 {
11652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11654 /* dlclose (self); */
11655 }
Reid Spencera773bd52006-08-04 18:18:08 +000011656 else
11657 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658
11659 exit (status);
11660}
11661EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663 (eval $ac_link) 2>&5
11664 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011667 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011668 lt_status=$?
11669 case x$lt_status in
11670 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11671 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011672 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011673 esac
11674 else :
11675 # compilation failed
11676
11677 fi
11678fi
11679rm -fr conftest*
11680
11681 LIBS="$save_LIBS"
11682
11683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011684{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11685echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686 fi
11687fi
11688
11689if test x"$libltdl_cv_need_uscore" = xyes; then
11690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011691cat >>confdefs.h <<\_ACEOF
11692#define NEED_USCORE 1
11693_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694
11695fi
11696
11697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011698{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11699echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11700if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011702else
11703 # PORTME does your system automatically load deplibs for dlopen?
11704 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11705 # For now, we just catch OSes we know something about -- in the
11706 # future, we'll try test this programmatically.
11707 libltdl_cv_sys_dlopen_deplibs=unknown
11708 case "$host_os" in
11709 aix3*|aix4.1.*|aix4.2.*)
11710 # Unknown whether this is true for these versions of AIX, but
11711 # we want this `case' here to explicitly catch those versions.
11712 libltdl_cv_sys_dlopen_deplibs=unknown
11713 ;;
11714 aix[45]*)
11715 libltdl_cv_sys_dlopen_deplibs=yes
11716 ;;
11717 darwin*)
11718 # Assuming the user has installed a libdl from somewhere, this is true
11719 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11720 libltdl_cv_sys_dlopen_deplibs=yes
11721 ;;
11722 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11723 # GNU and its variants, using gnu ld.so (Glibc)
11724 libltdl_cv_sys_dlopen_deplibs=yes
11725 ;;
11726 hpux10*|hpux11*)
11727 libltdl_cv_sys_dlopen_deplibs=yes
11728 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011729 interix*)
11730 libltdl_cv_sys_dlopen_deplibs=yes
11731 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732 irix[12345]*|irix6.[01]*)
11733 # Catch all versions of IRIX before 6.2, and indicate that we don't
11734 # know how it worked for any of those versions.
11735 libltdl_cv_sys_dlopen_deplibs=unknown
11736 ;;
11737 irix*)
11738 # The case above catches anything before 6.2, and it's known that
11739 # at 6.2 and later dlopen does load deplibs.
11740 libltdl_cv_sys_dlopen_deplibs=yes
11741 ;;
11742 netbsd*)
11743 libltdl_cv_sys_dlopen_deplibs=yes
11744 ;;
11745 openbsd*)
11746 libltdl_cv_sys_dlopen_deplibs=yes
11747 ;;
11748 osf[1234]*)
11749 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11750 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000011751 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 libltdl_cv_sys_dlopen_deplibs=no
11753 ;;
11754 osf5.0|osf5.0a|osf5.1)
11755 # dlopen *does* load deplibs and with the right loader patch applied
11756 # it even uses RPATH in a shared library to search for shared objects
11757 # that the library depends on, but there's no easy way to know if that
11758 # patch is installed. Since this is the case, all we can really
11759 # say is unknown -- it depends on the patch being installed. If
11760 # it is, this changes to `yes'. Without it, it would be `no'.
11761 libltdl_cv_sys_dlopen_deplibs=unknown
11762 ;;
11763 osf*)
11764 # the two cases above should catch all versions of osf <= 5.1. Read
11765 # the comments above for what we know about them.
11766 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11767 # is used to find them so we can finally say `yes'.
11768 libltdl_cv_sys_dlopen_deplibs=yes
11769 ;;
11770 solaris*)
11771 libltdl_cv_sys_dlopen_deplibs=yes
11772 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11774 libltdl_cv_sys_dlopen_deplibs=yes
11775 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011776 esac
11777
11778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011779{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11780echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011781if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011783cat >>confdefs.h <<\_ACEOF
11784#define LTDL_DLOPEN_DEPLIBS 1
11785_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786
11787fi
11788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011789
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011790for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011791do
11792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798fi
11799ac_res=`eval echo '${'$as_ac_Header'}'`
11800 { echo "$as_me:$LINENO: result: $ac_res" >&5
11801echo "${ECHO_T}$ac_res" >&6; }
11802else
11803 # Is the header compilable?
11804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11806cat >conftest.$ac_ext <<_ACEOF
11807/* confdefs.h. */
11808_ACEOF
11809cat confdefs.h >>conftest.$ac_ext
11810cat >>conftest.$ac_ext <<_ACEOF
11811/* end confdefs.h. */
11812$ac_includes_default
11813#include <$ac_header>
11814_ACEOF
11815rm -f conftest.$ac_objext
11816if { (ac_try="$ac_compile"
11817case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_compile") 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830 { (case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833esac
11834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_try") 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest.$ac_objext'
11840 { (case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843esac
11844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_try") 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_header_compiler=yes
11850else
11851 echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
11853
11854 ac_header_compiler=no
11855fi
11856
11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11859echo "${ECHO_T}$ac_header_compiler" >&6; }
11860
11861# Is the header present?
11862{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11864cat >conftest.$ac_ext <<_ACEOF
11865/* confdefs.h. */
11866_ACEOF
11867cat confdefs.h >>conftest.$ac_ext
11868cat >>conftest.$ac_ext <<_ACEOF
11869/* end confdefs.h. */
11870#include <$ac_header>
11871_ACEOF
11872if { (ac_try="$ac_cpp conftest.$ac_ext"
11873case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } >/dev/null; then
11885 if test -s conftest.err; then
11886 ac_cpp_err=$ac_c_preproc_warn_flag
11887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11888 else
11889 ac_cpp_err=
11890 fi
11891else
11892 ac_cpp_err=yes
11893fi
11894if test -z "$ac_cpp_err"; then
11895 ac_header_preproc=yes
11896else
11897 echo "$as_me: failed program was:" >&5
11898sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 ac_header_preproc=no
11901fi
11902
11903rm -f conftest.err conftest.$ac_ext
11904{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11905echo "${ECHO_T}$ac_header_preproc" >&6; }
11906
11907# So? What about this header?
11908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11909 yes:no: )
11910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11914 ac_header_preproc=yes
11915 ;;
11916 no:yes:* )
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11929 ( cat <<\_ASBOX
11930## ----------------------------------- ##
11931## Report this to llvmbugs@cs.uiuc.edu ##
11932## ----------------------------------- ##
11933_ASBOX
11934 ) | sed "s/^/$as_me: WARNING: /" >&2
11935 ;;
11936esac
11937{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 eval "$as_ac_Header=\$ac_header_preproc"
11943fi
11944ac_res=`eval echo '${'$as_ac_Header'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946echo "${ECHO_T}$ac_res" >&6; }
11947
11948fi
11949if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952_ACEOF
11953
11954fi
11955
11956done
11957
11958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011959{ echo "$as_me:$LINENO: checking for error_t" >&5
11960echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11961if test "${ac_cv_type_error_t+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11963else
11964 cat >conftest.$ac_ext <<_ACEOF
11965/* confdefs.h. */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h. */
11970#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971# include <argz.h>
11972#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011973
11974typedef error_t ac__type_new_;
11975int
11976main ()
11977{
11978if ((ac__type_new_ *) 0)
11979 return 0;
11980if (sizeof (ac__type_new_))
11981 return 0;
11982 ;
11983 return 0;
11984}
11985_ACEOF
11986rm -f conftest.$ac_objext
11987if { (ac_try="$ac_compile"
11988case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11991esac
11992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_compile") 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12001 { (case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12004esac
12005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_try") 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest.$ac_objext'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014esac
12015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_cv_type_error_t=yes
12021else
12022 echo "$as_me: failed program was:" >&5
12023sed 's/^/| /' conftest.$ac_ext >&5
12024
12025 ac_cv_type_error_t=no
12026fi
12027
12028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029fi
12030{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12031echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12032if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012033
12034cat >>confdefs.h <<_ACEOF
12035#define HAVE_ERROR_T 1
12036_ACEOF
12037
12038
12039else
12040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012041cat >>confdefs.h <<\_ACEOF
12042#define error_t int
12043_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012044
12045fi
12046
12047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012048
12049
12050
12051
12052
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012053for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012054do
12055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12056{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12058if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060else
12061 cat >conftest.$ac_ext <<_ACEOF
12062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
12067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12069#define $ac_func innocuous_$ac_func
12070
12071/* System header to define __stub macros and hopefully few prototypes,
12072 which can conflict with char $ac_func (); below.
12073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12074 <limits.h> exists even on freestanding compilers. */
12075
12076#ifdef __STDC__
12077# include <limits.h>
12078#else
12079# include <assert.h>
12080#endif
12081
12082#undef $ac_func
12083
12084/* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12087#ifdef __cplusplus
12088extern "C"
12089#endif
12090char $ac_func ();
12091/* The GNU C library defines this for functions which it implements
12092 to always fail with ENOSYS. Some functions are actually named
12093 something starting with __ and the normal name is an alias. */
12094#if defined __stub_$ac_func || defined __stub___$ac_func
12095choke me
12096#endif
12097
12098int
12099main ()
12100{
12101return $ac_func ();
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106rm -f conftest.$ac_objext conftest$ac_exeext
12107if { (ac_try="$ac_link"
12108case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12111esac
12112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_link") 2>conftest.er1
12114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121 { (case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12124esac
12125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_try") 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest$ac_exeext'
12131 { (case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12134esac
12135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_try") 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 eval "$as_ac_var=yes"
12141else
12142 echo "$as_me: failed program was:" >&5
12143sed 's/^/| /' conftest.$ac_ext >&5
12144
12145 eval "$as_ac_var=no"
12146fi
12147
12148rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150fi
12151ac_res=`eval echo '${'$as_ac_var'}'`
12152 { echo "$as_me:$LINENO: result: $ac_res" >&5
12153echo "${ECHO_T}$ac_res" >&6; }
12154if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012155 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012157_ACEOF
12158
12159fi
12160done
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012181
12182
12183
12184
12185
12186
12187
12188
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012189for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12190 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012191do
12192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12198fi
12199ac_res=`eval echo '${'$as_ac_Header'}'`
12200 { echo "$as_me:$LINENO: result: $ac_res" >&5
12201echo "${ECHO_T}$ac_res" >&6; }
12202else
12203 # Is the header compilable?
12204{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12206cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
12212$ac_includes_default
12213#include <$ac_header>
12214_ACEOF
12215rm -f conftest.$ac_objext
12216if { (ac_try="$ac_compile"
12217case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12220esac
12221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222 (eval "$ac_compile") 2>conftest.er1
12223 ac_status=$?
12224 grep -v '^ *+' conftest.er1 >conftest.err
12225 rm -f conftest.er1
12226 cat conftest.err >&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
12229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12230 { (case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12233esac
12234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_try") 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12243esac
12244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_try") 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 ac_header_compiler=yes
12250else
12251 echo "$as_me: failed program was:" >&5
12252sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 ac_header_compiler=no
12255fi
12256
12257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12258{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12259echo "${ECHO_T}$ac_header_compiler" >&6; }
12260
12261# Is the header present?
12262{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12264cat >conftest.$ac_ext <<_ACEOF
12265/* confdefs.h. */
12266_ACEOF
12267cat confdefs.h >>conftest.$ac_ext
12268cat >>conftest.$ac_ext <<_ACEOF
12269/* end confdefs.h. */
12270#include <$ac_header>
12271_ACEOF
12272if { (ac_try="$ac_cpp conftest.$ac_ext"
12273case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12276esac
12277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12279 ac_status=$?
12280 grep -v '^ *+' conftest.er1 >conftest.err
12281 rm -f conftest.er1
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } >/dev/null; then
12285 if test -s conftest.err; then
12286 ac_cpp_err=$ac_c_preproc_warn_flag
12287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12288 else
12289 ac_cpp_err=
12290 fi
12291else
12292 ac_cpp_err=yes
12293fi
12294if test -z "$ac_cpp_err"; then
12295 ac_header_preproc=yes
12296else
12297 echo "$as_me: failed program was:" >&5
12298sed 's/^/| /' conftest.$ac_ext >&5
12299
12300 ac_header_preproc=no
12301fi
12302
12303rm -f conftest.err conftest.$ac_ext
12304{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12305echo "${ECHO_T}$ac_header_preproc" >&6; }
12306
12307# So? What about this header?
12308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12309 yes:no: )
12310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12314 ac_header_preproc=yes
12315 ;;
12316 no:yes:* )
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12329 ( cat <<\_ASBOX
12330## ----------------------------------- ##
12331## Report this to llvmbugs@cs.uiuc.edu ##
12332## ----------------------------------- ##
12333_ASBOX
12334 ) | sed "s/^/$as_me: WARNING: /" >&2
12335 ;;
12336esac
12337{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341else
12342 eval "$as_ac_Header=\$ac_header_preproc"
12343fi
12344ac_res=`eval echo '${'$as_ac_Header'}'`
12345 { echo "$as_me:$LINENO: result: $ac_res" >&5
12346echo "${ECHO_T}$ac_res" >&6; }
12347
12348fi
12349if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012350 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012352_ACEOF
12353
12354fi
12355
12356done
12357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012358
12359
12360
12361
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012362for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012363do
12364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12370fi
12371ac_res=`eval echo '${'$as_ac_Header'}'`
12372 { echo "$as_me:$LINENO: result: $ac_res" >&5
12373echo "${ECHO_T}$ac_res" >&6; }
12374else
12375 # Is the header compilable?
12376{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12378cat >conftest.$ac_ext <<_ACEOF
12379/* confdefs.h. */
12380_ACEOF
12381cat confdefs.h >>conftest.$ac_ext
12382cat >>conftest.$ac_ext <<_ACEOF
12383/* end confdefs.h. */
12384$ac_includes_default
12385#include <$ac_header>
12386_ACEOF
12387rm -f conftest.$ac_objext
12388if { (ac_try="$ac_compile"
12389case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392esac
12393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_compile") 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12402 { (case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12405esac
12406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_try") 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest.$ac_objext'
12412 { (case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415esac
12416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_try") 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_header_compiler=yes
12422else
12423 echo "$as_me: failed program was:" >&5
12424sed 's/^/| /' conftest.$ac_ext >&5
12425
12426 ac_header_compiler=no
12427fi
12428
12429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12431echo "${ECHO_T}$ac_header_compiler" >&6; }
12432
12433# Is the header present?
12434{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12436cat >conftest.$ac_ext <<_ACEOF
12437/* confdefs.h. */
12438_ACEOF
12439cat confdefs.h >>conftest.$ac_ext
12440cat >>conftest.$ac_ext <<_ACEOF
12441/* end confdefs.h. */
12442#include <$ac_header>
12443_ACEOF
12444if { (ac_try="$ac_cpp conftest.$ac_ext"
12445case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12448esac
12449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12451 ac_status=$?
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } >/dev/null; then
12457 if test -s conftest.err; then
12458 ac_cpp_err=$ac_c_preproc_warn_flag
12459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12460 else
12461 ac_cpp_err=
12462 fi
12463else
12464 ac_cpp_err=yes
12465fi
12466if test -z "$ac_cpp_err"; then
12467 ac_header_preproc=yes
12468else
12469 echo "$as_me: failed program was:" >&5
12470sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_header_preproc=no
12473fi
12474
12475rm -f conftest.err conftest.$ac_ext
12476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12477echo "${ECHO_T}$ac_header_preproc" >&6; }
12478
12479# So? What about this header?
12480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12481 yes:no: )
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12486 ac_header_preproc=yes
12487 ;;
12488 no:yes:* )
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12501 ( cat <<\_ASBOX
12502## ----------------------------------- ##
12503## Report this to llvmbugs@cs.uiuc.edu ##
12504## ----------------------------------- ##
12505_ASBOX
12506 ) | sed "s/^/$as_me: WARNING: /" >&2
12507 ;;
12508esac
12509{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513else
12514 eval "$as_ac_Header=\$ac_header_preproc"
12515fi
12516ac_res=`eval echo '${'$as_ac_Header'}'`
12517 { echo "$as_me:$LINENO: result: $ac_res" >&5
12518echo "${ECHO_T}$ac_res" >&6; }
12519
12520fi
12521if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012522 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012524_ACEOF
12525
12526fi
12527
12528done
12529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012530
12531
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012532for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012533do
12534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12540fi
12541ac_res=`eval echo '${'$as_ac_Header'}'`
12542 { echo "$as_me:$LINENO: result: $ac_res" >&5
12543echo "${ECHO_T}$ac_res" >&6; }
12544else
12545 # Is the header compilable?
12546{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12547echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12548cat >conftest.$ac_ext <<_ACEOF
12549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
12554$ac_includes_default
12555#include <$ac_header>
12556_ACEOF
12557rm -f conftest.$ac_objext
12558if { (ac_try="$ac_compile"
12559case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12562esac
12563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_compile") 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12572 { (case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575esac
12576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_try") 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest.$ac_objext'
12582 { (case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585esac
12586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_try") 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_header_compiler=yes
12592else
12593 echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 ac_header_compiler=no
12597fi
12598
12599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12601echo "${ECHO_T}$ac_header_compiler" >&6; }
12602
12603# Is the header present?
12604{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12605echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12606cat >conftest.$ac_ext <<_ACEOF
12607/* confdefs.h. */
12608_ACEOF
12609cat confdefs.h >>conftest.$ac_ext
12610cat >>conftest.$ac_ext <<_ACEOF
12611/* end confdefs.h. */
12612#include <$ac_header>
12613_ACEOF
12614if { (ac_try="$ac_cpp conftest.$ac_ext"
12615case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618esac
12619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } >/dev/null; then
12627 if test -s conftest.err; then
12628 ac_cpp_err=$ac_c_preproc_warn_flag
12629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12630 else
12631 ac_cpp_err=
12632 fi
12633else
12634 ac_cpp_err=yes
12635fi
12636if test -z "$ac_cpp_err"; then
12637 ac_header_preproc=yes
12638else
12639 echo "$as_me: failed program was:" >&5
12640sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 ac_header_preproc=no
12643fi
12644
12645rm -f conftest.err conftest.$ac_ext
12646{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12647echo "${ECHO_T}$ac_header_preproc" >&6; }
12648
12649# So? What about this header?
12650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12651 yes:no: )
12652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12655echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12656 ac_header_preproc=yes
12657 ;;
12658 no:yes:* )
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12660echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12662echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12664echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12666echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12670echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12671 ( cat <<\_ASBOX
12672## ----------------------------------- ##
12673## Report this to llvmbugs@cs.uiuc.edu ##
12674## ----------------------------------- ##
12675_ASBOX
12676 ) | sed "s/^/$as_me: WARNING: /" >&2
12677 ;;
12678esac
12679{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12683else
12684 eval "$as_ac_Header=\$ac_header_preproc"
12685fi
12686ac_res=`eval echo '${'$as_ac_Header'}'`
12687 { echo "$as_me:$LINENO: result: $ac_res" >&5
12688echo "${ECHO_T}$ac_res" >&6; }
12689
12690fi
12691if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012692 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012694_ACEOF
12695 break
12696fi
12697
12698done
12699
12700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012701
12702
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012703for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012704do
12705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12706{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12708if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710else
12711 cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12719#define $ac_func innocuous_$ac_func
12720
12721/* System header to define __stub macros and hopefully few prototypes,
12722 which can conflict with char $ac_func (); below.
12723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12724 <limits.h> exists even on freestanding compilers. */
12725
12726#ifdef __STDC__
12727# include <limits.h>
12728#else
12729# include <assert.h>
12730#endif
12731
12732#undef $ac_func
12733
12734/* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12737#ifdef __cplusplus
12738extern "C"
12739#endif
12740char $ac_func ();
12741/* The GNU C library defines this for functions which it implements
12742 to always fail with ENOSYS. Some functions are actually named
12743 something starting with __ and the normal name is an alias. */
12744#if defined __stub_$ac_func || defined __stub___$ac_func
12745choke me
12746#endif
12747
12748int
12749main ()
12750{
12751return $ac_func ();
12752 ;
12753 return 0;
12754}
12755_ACEOF
12756rm -f conftest.$ac_objext conftest$ac_exeext
12757if { (ac_try="$ac_link"
12758case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761esac
12762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_link") 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest$ac_exeext'
12781 { (case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784esac
12785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_try") 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 eval "$as_ac_var=yes"
12791else
12792 echo "$as_me: failed program was:" >&5
12793sed 's/^/| /' conftest.$ac_ext >&5
12794
12795 eval "$as_ac_var=no"
12796fi
12797
12798rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12800fi
12801ac_res=`eval echo '${'$as_ac_var'}'`
12802 { echo "$as_me:$LINENO: result: $ac_res" >&5
12803echo "${ECHO_T}$ac_res" >&6; }
12804if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012805 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012807_ACEOF
12808 break
12809fi
12810done
12811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012812
12813
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012814for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012815do
12816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821else
12822 cat >conftest.$ac_ext <<_ACEOF
12823/* confdefs.h. */
12824_ACEOF
12825cat confdefs.h >>conftest.$ac_ext
12826cat >>conftest.$ac_ext <<_ACEOF
12827/* end confdefs.h. */
12828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12830#define $ac_func innocuous_$ac_func
12831
12832/* System header to define __stub macros and hopefully few prototypes,
12833 which can conflict with char $ac_func (); below.
12834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12835 <limits.h> exists even on freestanding compilers. */
12836
12837#ifdef __STDC__
12838# include <limits.h>
12839#else
12840# include <assert.h>
12841#endif
12842
12843#undef $ac_func
12844
12845/* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12848#ifdef __cplusplus
12849extern "C"
12850#endif
12851char $ac_func ();
12852/* The GNU C library defines this for functions which it implements
12853 to always fail with ENOSYS. Some functions are actually named
12854 something starting with __ and the normal name is an alias. */
12855#if defined __stub_$ac_func || defined __stub___$ac_func
12856choke me
12857#endif
12858
12859int
12860main ()
12861{
12862return $ac_func ();
12863 ;
12864 return 0;
12865}
12866_ACEOF
12867rm -f conftest.$ac_objext conftest$ac_exeext
12868if { (ac_try="$ac_link"
12869case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895esac
12896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 eval "$as_ac_var=yes"
12902else
12903 echo "$as_me: failed program was:" >&5
12904sed 's/^/| /' conftest.$ac_ext >&5
12905
12906 eval "$as_ac_var=no"
12907fi
12908
12909rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911fi
12912ac_res=`eval echo '${'$as_ac_var'}'`
12913 { echo "$as_me:$LINENO: result: $ac_res" >&5
12914echo "${ECHO_T}$ac_res" >&6; }
12915if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012916 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012918_ACEOF
12919 break
12920fi
12921done
12922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012923
12924
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012925for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012926do
12927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12928{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12930if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12932else
12933 cat >conftest.$ac_ext <<_ACEOF
12934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
12938/* end confdefs.h. */
12939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12941#define $ac_func innocuous_$ac_func
12942
12943/* System header to define __stub macros and hopefully few prototypes,
12944 which can conflict with char $ac_func (); below.
12945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12946 <limits.h> exists even on freestanding compilers. */
12947
12948#ifdef __STDC__
12949# include <limits.h>
12950#else
12951# include <assert.h>
12952#endif
12953
12954#undef $ac_func
12955
12956/* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12959#ifdef __cplusplus
12960extern "C"
12961#endif
12962char $ac_func ();
12963/* The GNU C library defines this for functions which it implements
12964 to always fail with ENOSYS. Some functions are actually named
12965 something starting with __ and the normal name is an alias. */
12966#if defined __stub_$ac_func || defined __stub___$ac_func
12967choke me
12968#endif
12969
12970int
12971main ()
12972{
12973return $ac_func ();
12974 ;
12975 return 0;
12976}
12977_ACEOF
12978rm -f conftest.$ac_objext conftest$ac_exeext
12979if { (ac_try="$ac_link"
12980case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12983esac
12984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_link") 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12993 { (case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996esac
12997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_try") 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006esac
13007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 eval "$as_ac_var=yes"
13013else
13014 echo "$as_me: failed program was:" >&5
13015sed 's/^/| /' conftest.$ac_ext >&5
13016
13017 eval "$as_ac_var=no"
13018fi
13019
13020rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13022fi
13023ac_res=`eval echo '${'$as_ac_var'}'`
13024 { echo "$as_me:$LINENO: result: $ac_res" >&5
13025echo "${ECHO_T}$ac_res" >&6; }
13026if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013027 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013029_ACEOF
13030 break
13031fi
13032done
13033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013034
13035
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013036for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013037do
13038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13039{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13041if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043else
13044 cat >conftest.$ac_ext <<_ACEOF
13045/* confdefs.h. */
13046_ACEOF
13047cat confdefs.h >>conftest.$ac_ext
13048cat >>conftest.$ac_ext <<_ACEOF
13049/* end confdefs.h. */
13050/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13052#define $ac_func innocuous_$ac_func
13053
13054/* System header to define __stub macros and hopefully few prototypes,
13055 which can conflict with char $ac_func (); below.
13056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13057 <limits.h> exists even on freestanding compilers. */
13058
13059#ifdef __STDC__
13060# include <limits.h>
13061#else
13062# include <assert.h>
13063#endif
13064
13065#undef $ac_func
13066
13067/* Override any GCC internal prototype to avoid an error.
13068 Use char because int might match the return type of a GCC
13069 builtin and then its argument prototype would still apply. */
13070#ifdef __cplusplus
13071extern "C"
13072#endif
13073char $ac_func ();
13074/* The GNU C library defines this for functions which it implements
13075 to always fail with ENOSYS. Some functions are actually named
13076 something starting with __ and the normal name is an alias. */
13077#if defined __stub_$ac_func || defined __stub___$ac_func
13078choke me
13079#endif
13080
13081int
13082main ()
13083{
13084return $ac_func ();
13085 ;
13086 return 0;
13087}
13088_ACEOF
13089rm -f conftest.$ac_objext conftest$ac_exeext
13090if { (ac_try="$ac_link"
13091case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094esac
13095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_link") 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13104 { (case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13107esac
13108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_try") 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13117esac
13118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_try") 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 eval "$as_ac_var=yes"
13124else
13125 echo "$as_me: failed program was:" >&5
13126sed 's/^/| /' conftest.$ac_ext >&5
13127
13128 eval "$as_ac_var=no"
13129fi
13130
13131rm -f core conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13133fi
13134ac_res=`eval echo '${'$as_ac_var'}'`
13135 { echo "$as_me:$LINENO: result: $ac_res" >&5
13136echo "${ECHO_T}$ac_res" >&6; }
13137if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013138 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013140_ACEOF
13141
13142fi
13143done
13144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145
13146
13147
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013148for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013149do
13150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13151{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13155else
13156 cat >conftest.$ac_ext <<_ACEOF
13157/* confdefs.h. */
13158_ACEOF
13159cat confdefs.h >>conftest.$ac_ext
13160cat >>conftest.$ac_ext <<_ACEOF
13161/* end confdefs.h. */
13162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13164#define $ac_func innocuous_$ac_func
13165
13166/* System header to define __stub macros and hopefully few prototypes,
13167 which can conflict with char $ac_func (); below.
13168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13169 <limits.h> exists even on freestanding compilers. */
13170
13171#ifdef __STDC__
13172# include <limits.h>
13173#else
13174# include <assert.h>
13175#endif
13176
13177#undef $ac_func
13178
13179/* Override any GCC internal prototype to avoid an error.
13180 Use char because int might match the return type of a GCC
13181 builtin and then its argument prototype would still apply. */
13182#ifdef __cplusplus
13183extern "C"
13184#endif
13185char $ac_func ();
13186/* The GNU C library defines this for functions which it implements
13187 to always fail with ENOSYS. Some functions are actually named
13188 something starting with __ and the normal name is an alias. */
13189#if defined __stub_$ac_func || defined __stub___$ac_func
13190choke me
13191#endif
13192
13193int
13194main ()
13195{
13196return $ac_func ();
13197 ;
13198 return 0;
13199}
13200_ACEOF
13201rm -f conftest.$ac_objext conftest$ac_exeext
13202if { (ac_try="$ac_link"
13203case "(($ac_try" in
13204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13206esac
13207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208 (eval "$ac_link") 2>conftest.er1
13209 ac_status=$?
13210 grep -v '^ *+' conftest.er1 >conftest.err
13211 rm -f conftest.er1
13212 cat conftest.err >&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13216 { (case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13219esac
13220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_try") 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; } &&
13225 { ac_try='test -s conftest$ac_exeext'
13226 { (case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229esac
13230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_try") 2>&5
13232 ac_status=$?
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }; then
13235 eval "$as_ac_var=yes"
13236else
13237 echo "$as_me: failed program was:" >&5
13238sed 's/^/| /' conftest.$ac_ext >&5
13239
13240 eval "$as_ac_var=no"
13241fi
13242
13243rm -f core conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13245fi
13246ac_res=`eval echo '${'$as_ac_var'}'`
13247 { echo "$as_me:$LINENO: result: $ac_res" >&5
13248echo "${ECHO_T}$ac_res" >&6; }
13249if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013250 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013252_ACEOF
13253
13254fi
13255done
13256
13257
Douglas Gregor01746742009-05-11 18:05:52 +000013258
Reid Spencer7931a782004-12-27 06:15:02 +000013259if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013260 LLVMGCC="llvm-gcc${EXEEXT}"
13261 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013262 LLVMGCCCOMMAND="$LLVMGCC"
13263 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013264 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13265
13266 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13267
Reid Spencerc84492c2005-06-02 22:34:49 +000013268 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13269set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13272if test "${ac_cv_path_LLVMGCC+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013274else
13275 case $LLVMGCC in
13276 [\\/]* | ?:[\\/]*)
13277 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13278 ;;
13279 *)
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281for as_dir in $PATH
13282do
13283 IFS=$as_save_IFS
13284 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 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 +000013287 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013289 break 2
13290 fi
13291done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013292done
Reid Spencera773bd52006-08-04 18:18:08 +000013293IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013294
Reid Spencer59473af2004-12-25 07:31:29 +000013295 ;;
13296esac
13297fi
13298LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013299if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013300 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13301echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303 { echo "$as_me:$LINENO: result: no" >&5
13304echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013305fi
13306
Reid Spencera773bd52006-08-04 18:18:08 +000013307
Reid Spencerc84492c2005-06-02 22:34:49 +000013308 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13309set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13312if test "${ac_cv_path_LLVMGXX+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013314else
13315 case $LLVMGXX in
13316 [\\/]* | ?:[\\/]*)
13317 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13318 ;;
13319 *)
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321for as_dir in $PATH
13322do
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 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 +000013327 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013329 break 2
13330 fi
13331done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013332done
Reid Spencera773bd52006-08-04 18:18:08 +000013333IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013334
Reid Spencer59473af2004-12-25 07:31:29 +000013335 ;;
13336esac
13337fi
13338LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013339if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013340 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13341echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013343 { echo "$as_me:$LINENO: result: no" >&5
13344echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013345fi
13346
Reid Spencera773bd52006-08-04 18:18:08 +000013347
Reid Spencer59473af2004-12-25 07:31:29 +000013348else
Devang Patel5d28b882007-12-04 22:54:47 +000013349 if test -z "$LLVMGCC"; then
13350 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013351 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013352 fi
13353 if test -z "$LLVMGXX"; then
13354 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013355 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013356 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013357
Reid Spencer59473af2004-12-25 07:31:29 +000013358 LLVMGCC=$LLVMGCC
13359
13360 LLVMGXX=$LLVMGXX
13361
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013362 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13363
13364 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13365
Reid Spencer59473af2004-12-25 07:31:29 +000013366fi
13367
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013368
Daniel Dunbar98515672010-02-23 10:00:49 +000013369# Check whether --with-llvmcc was given.
13370if test "${with_llvmcc+set}" = set; then
13371 withval=$with_llvmcc;
13372else
13373 with_llvmcc=check
13374fi
13375
13376{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13377echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13378if test "$with_llvmcc" != "check"; then
13379 if (test "$with_llvmcc" != "llvm-gcc" &&
13380 test "$with_llvmcc" != "clang" &&
13381 test "$with_llvmcc" != "none"); then
13382 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13383echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13384 { (exit 1); exit 1; }; }
13385 fi
13386 WITH_LLVMCC="$with_llvmcc"
13387elif test -n "$LLVMGCC"; then
13388 WITH_LLVMCC=llvm-gcc
13389elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13390 WITH_LLVMCC=clang
13391else
13392 WITH_LLVMCC=none
13393fi
13394{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13395echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13396LLVMCC_OPTION=$WITH_LLVMCC
13397
13398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013399{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13400echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013401
Reid Spencer86901802004-12-08 23:07:27 +000013402ICC=no
13403IXX=no
13404case $CC in
13405 icc*|icpc*)
13406 ICC=yes
13407 IXX=yes
13408 ;;
13409 *)
13410 ;;
13411esac
13412
Duraid Madina937c60a2006-02-15 07:57:42 +000013413if test "$GCC" != "yes" && test "$ICC" != "yes"
13414then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13416echo "$as_me: error: gcc|icc required but not found" >&2;}
13417 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013418fi
13419
13420if test "$GXX" != "yes" && test "$IXX" != "yes"
13421then
Eric Christopher73e36da2010-12-08 02:02:14 +000013422 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13423echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013424 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013425fi
13426
Reid Spencer86901802004-12-08 23:07:27 +000013427if test "$GCC" = "yes"
13428then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013429 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013430#if !defined(__GNUC__) || __GNUC__ < 3
13431#error Unsupported GCC version
13432#endif
13433
13434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013435rm -f conftest.$ac_objext
13436if { (ac_try="$ac_compile"
13437case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440esac
13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_compile") 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13450 { (case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13453esac
13454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455 (eval "$ac_try") 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try='test -s conftest.$ac_objext'
13460 { (case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463esac
13464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_try") 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; }; then
13469 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013471 echo "$as_me: failed program was:" >&5
13472sed 's/^/| /' conftest.$ac_ext >&5
13473
13474 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13475echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13476 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013478
Chris Lattner399c7c72008-02-05 19:43:53 +000013479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013480fi
13481
13482if test -z "$llvm_cv_gnu_make_command"
13483then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013484 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13485echo "$as_me: error: GNU Make required but not found" >&2;}
13486 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013487fi
13488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013489{ echo "$as_me:$LINENO: result: ok" >&5
13490echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013492{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13493echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013494NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13495
13496NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013498{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13499echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013500
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013502
13503{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13504echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13505if test "${ac_cv_lib_m_sin+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013507else
13508 ac_check_lib_save_LIBS=$LIBS
13509LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013510cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013515/* end confdefs.h. */
13516
Reid Spencera773bd52006-08-04 18:18:08 +000013517/* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013520#ifdef __cplusplus
13521extern "C"
13522#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013523char sin ();
13524int
13525main ()
13526{
Reid Spencera773bd52006-08-04 18:18:08 +000013527return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013528 ;
13529 return 0;
13530}
13531_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013532rm -f conftest.$ac_objext conftest$ac_exeext
13533if { (ac_try="$ac_link"
13534case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537esac
13538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_link") 2>conftest.er1
13540 ac_status=$?
13541 grep -v '^ *+' conftest.er1 >conftest.err
13542 rm -f conftest.er1
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13547 { (case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
13551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_try") 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560esac
13561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013566 ac_cv_lib_m_sin=yes
13567else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013568 echo "$as_me: failed program was:" >&5
13569sed 's/^/| /' conftest.$ac_ext >&5
13570
13571 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013573
Bill Wendlingebcceee2009-04-18 11:20:33 +000013574rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013575 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013576LIBS=$ac_check_lib_save_LIBS
13577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013578{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13579echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13580if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013581 cat >>confdefs.h <<_ACEOF
13582#define HAVE_LIBM 1
13583_ACEOF
13584
13585 LIBS="-lm $LIBS"
13586
13587fi
13588
Jeff Cohen28783c32007-01-12 18:22:38 +000013589if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013590
13591{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13592echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13593if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013595else
13596 ac_check_lib_save_LIBS=$LIBS
13597LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013598cat >conftest.$ac_ext <<_ACEOF
13599/* confdefs.h. */
13600_ACEOF
13601cat confdefs.h >>conftest.$ac_ext
13602cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013603/* end confdefs.h. */
13604
Reid Spencer48fdf912006-06-01 19:03:21 +000013605
Reid Spencer484fc8e2006-06-01 16:55:59 +000013606int
13607main ()
13608{
Reid Spencera773bd52006-08-04 18:18:08 +000013609return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013610 ;
13611 return 0;
13612}
13613_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013614rm -f conftest.$ac_objext conftest$ac_exeext
13615if { (ac_try="$ac_link"
13616case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619esac
13620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_link") 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629 { (case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13632esac
13633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_try") 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest$ac_exeext'
13639 { (case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642esac
13643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_try") 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013648 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013650 echo "$as_me: failed program was:" >&5
13651sed 's/^/| /' conftest.$ac_ext >&5
13652
13653 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013655
Bill Wendlingebcceee2009-04-18 11:20:33 +000013656rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013657 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013658LIBS=$ac_check_lib_save_LIBS
13659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013660{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13661echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13662if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013663 cat >>confdefs.h <<_ACEOF
13664#define HAVE_LIBIMAGEHLP 1
13665_ACEOF
13666
13667 LIBS="-limagehlp $LIBS"
13668
13669fi
13670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013671
13672{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13673echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13674if test "${ac_cv_lib_psapi_main+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013676else
13677 ac_check_lib_save_LIBS=$LIBS
13678LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013679cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013684/* end confdefs.h. */
13685
Reid Spencer48fdf912006-06-01 19:03:21 +000013686
Reid Spencer484fc8e2006-06-01 16:55:59 +000013687int
13688main ()
13689{
Reid Spencera773bd52006-08-04 18:18:08 +000013690return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013691 ;
13692 return 0;
13693}
13694_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013695rm -f conftest.$ac_objext conftest$ac_exeext
13696if { (ac_try="$ac_link"
13697case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13700esac
13701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723esac
13724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_try") 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013729 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013731 echo "$as_me: failed program was:" >&5
13732sed 's/^/| /' conftest.$ac_ext >&5
13733
13734 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013736
Bill Wendlingebcceee2009-04-18 11:20:33 +000013737rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013738 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013739LIBS=$ac_check_lib_save_LIBS
13740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013741{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13742echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13743if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013744 cat >>confdefs.h <<_ACEOF
13745#define HAVE_LIBPSAPI 1
13746_ACEOF
13747
13748 LIBS="-lpsapi $LIBS"
13749
13750fi
13751
13752fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13755echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13756if test "${ac_cv_search_dlopen+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013758else
13759 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013760cat >conftest.$ac_ext <<_ACEOF
13761/* confdefs.h. */
13762_ACEOF
13763cat confdefs.h >>conftest.$ac_ext
13764cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013765/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013766
Reid Spencera773bd52006-08-04 18:18:08 +000013767/* Override any GCC internal prototype to avoid an error.
13768 Use char because int might match the return type of a GCC
13769 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013770#ifdef __cplusplus
13771extern "C"
13772#endif
John Criswell7a73b802003-06-30 21:59:07 +000013773char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013774int
13775main ()
13776{
Reid Spencera773bd52006-08-04 18:18:08 +000013777return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013778 ;
13779 return 0;
13780}
13781_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013782for ac_lib in '' dl; do
13783 if test -z "$ac_lib"; then
13784 ac_res="none required"
13785 else
13786 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013788 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013789 rm -f conftest.$ac_objext conftest$ac_exeext
13790if { (ac_try="$ac_link"
13791case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794esac
13795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_link") 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13804 { (case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807esac
13808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_try") 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest$ac_exeext'
13814 { (case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817esac
13818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013823 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013824else
13825 echo "$as_me: failed program was:" >&5
13826sed 's/^/| /' conftest.$ac_ext >&5
13827
13828
John Criswell7a73b802003-06-30 21:59:07 +000013829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013830
Bill Wendlingebcceee2009-04-18 11:20:33 +000013831rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013832 conftest$ac_exeext
13833 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013834 break
John Criswell7a73b802003-06-30 21:59:07 +000013835fi
Reid Spencera773bd52006-08-04 18:18:08 +000013836done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837if test "${ac_cv_search_dlopen+set}" = set; then
13838 :
Reid Spencera773bd52006-08-04 18:18:08 +000013839else
13840 ac_cv_search_dlopen=no
13841fi
13842rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013843LIBS=$ac_func_search_save_LIBS
13844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013845{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13846echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013847ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013848if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013851cat >>confdefs.h <<\_ACEOF
13852#define HAVE_DLOPEN 1
13853_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013854
13855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013856 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13857echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013858fi
13859
13860
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013861if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013862 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13863echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13864if test "${ac_cv_search_ffi_call+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013866else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013867 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013868cat >conftest.$ac_ext <<_ACEOF
13869/* confdefs.h. */
13870_ACEOF
13871cat confdefs.h >>conftest.$ac_ext
13872cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013873/* end confdefs.h. */
13874
13875/* Override any GCC internal prototype to avoid an error.
13876 Use char because int might match the return type of a GCC
13877 builtin and then its argument prototype would still apply. */
13878#ifdef __cplusplus
13879extern "C"
13880#endif
13881char ffi_call ();
13882int
13883main ()
13884{
13885return ffi_call ();
13886 ;
13887 return 0;
13888}
13889_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013890for ac_lib in '' ffi; do
13891 if test -z "$ac_lib"; then
13892 ac_res="none required"
13893 else
13894 ac_res=-l$ac_lib
13895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13896 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897 rm -f conftest.$ac_objext conftest$ac_exeext
13898if { (ac_try="$ac_link"
13899case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902esac
13903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_link") 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13912 { (case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13915esac
13916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13917 (eval "$ac_try") 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest$ac_exeext'
13922 { (case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13925esac
13926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_try") 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013931 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013932else
13933 echo "$as_me: failed program was:" >&5
13934sed 's/^/| /' conftest.$ac_ext >&5
13935
13936
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013938
Bill Wendlingebcceee2009-04-18 11:20:33 +000013939rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013940 conftest$ac_exeext
13941 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013942 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013943fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013944done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013945if test "${ac_cv_search_ffi_call+set}" = set; then
13946 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013947else
13948 ac_cv_search_ffi_call=no
13949fi
13950rm conftest.$ac_ext
13951LIBS=$ac_func_search_save_LIBS
13952fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013953{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13954echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013955ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013956if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013959cat >>confdefs.h <<\_ACEOF
13960#define HAVE_FFI_CALL 1
13961_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013962
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013963else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013964 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13965echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13966 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013967fi
13968
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013969fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13972echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13973if test "${ac_cv_search_mallinfo+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013975else
13976 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013977cat >conftest.$ac_ext <<_ACEOF
13978/* confdefs.h. */
13979_ACEOF
13980cat confdefs.h >>conftest.$ac_ext
13981cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013983
Reid Spencera773bd52006-08-04 18:18:08 +000013984/* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013987#ifdef __cplusplus
13988extern "C"
13989#endif
John Criswell7a73b802003-06-30 21:59:07 +000013990char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013991int
13992main ()
13993{
Reid Spencera773bd52006-08-04 18:18:08 +000013994return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013995 ;
13996 return 0;
13997}
13998_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013999for ac_lib in '' malloc; do
14000 if test -z "$ac_lib"; then
14001 ac_res="none required"
14002 else
14003 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000014004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014005 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014006 rm -f conftest.$ac_objext conftest$ac_exeext
14007if { (ac_try="$ac_link"
14008case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011esac
14012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_link") 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024esac
14025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; } &&
14030 { ac_try='test -s conftest$ac_exeext'
14031 { (case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034esac
14035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_try") 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014040 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041else
14042 echo "$as_me: failed program was:" >&5
14043sed 's/^/| /' conftest.$ac_ext >&5
14044
14045
John Criswell7a73b802003-06-30 21:59:07 +000014046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014047
Bill Wendlingebcceee2009-04-18 11:20:33 +000014048rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014049 conftest$ac_exeext
14050 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014051 break
John Criswell7a73b802003-06-30 21:59:07 +000014052fi
Reid Spencera773bd52006-08-04 18:18:08 +000014053done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054if test "${ac_cv_search_mallinfo+set}" = set; then
14055 :
Reid Spencera773bd52006-08-04 18:18:08 +000014056else
14057 ac_cv_search_mallinfo=no
14058fi
14059rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014060LIBS=$ac_func_search_save_LIBS
14061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014062{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14063echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014064ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014068cat >>confdefs.h <<\_ACEOF
14069#define HAVE_MALLINFO 1
14070_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014071
14072fi
14073
14074
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014075if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014076
14077{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14078echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14079if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014081else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014082 ac_check_lib_save_LIBS=$LIBS
14083LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014084cat >conftest.$ac_ext <<_ACEOF
14085/* confdefs.h. */
14086_ACEOF
14087cat confdefs.h >>conftest.$ac_ext
14088cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014089/* end confdefs.h. */
14090
Reid Spencera773bd52006-08-04 18:18:08 +000014091/* Override any GCC internal prototype to avoid an error.
14092 Use char because int might match the return type of a GCC
14093 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014094#ifdef __cplusplus
14095extern "C"
14096#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014097char pthread_mutex_init ();
14098int
14099main ()
14100{
Reid Spencera773bd52006-08-04 18:18:08 +000014101return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014102 ;
14103 return 0;
14104}
14105_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014106rm -f conftest.$ac_objext conftest$ac_exeext
14107if { (ac_try="$ac_link"
14108case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14111esac
14112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_link") 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14121 { (case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124esac
14125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_try") 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try='test -s conftest$ac_exeext'
14131 { (case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14134esac
14135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_try") 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014140 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142 echo "$as_me: failed program was:" >&5
14143sed 's/^/| /' conftest.$ac_ext >&5
14144
14145 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014147
Bill Wendlingebcceee2009-04-18 11:20:33 +000014148rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014149 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014150LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14153echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14154if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014155 cat >>confdefs.h <<_ACEOF
14156#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014157_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014158
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014159 LIBS="-lpthread $LIBS"
14160
Reid Spencer22177fe2005-07-12 15:24:20 +000014161fi
14162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014163 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14164echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14165if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014167else
14168 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169cat >conftest.$ac_ext <<_ACEOF
14170/* confdefs.h. */
14171_ACEOF
14172cat confdefs.h >>conftest.$ac_ext
14173cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014174/* end confdefs.h. */
14175
Reid Spencera773bd52006-08-04 18:18:08 +000014176/* Override any GCC internal prototype to avoid an error.
14177 Use char because int might match the return type of a GCC
14178 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014179#ifdef __cplusplus
14180extern "C"
14181#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014182char pthread_mutex_lock ();
14183int
14184main ()
14185{
Reid Spencera773bd52006-08-04 18:18:08 +000014186return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014187 ;
14188 return 0;
14189}
14190_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014191for ac_lib in '' pthread; do
14192 if test -z "$ac_lib"; then
14193 ac_res="none required"
14194 else
14195 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014197 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014198 rm -f conftest.$ac_objext conftest$ac_exeext
14199if { (ac_try="$ac_link"
14200case "(($ac_try" in
14201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14203esac
14204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205 (eval "$ac_link") 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14213 { (case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14216esac
14217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_try") 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest$ac_exeext'
14223 { (case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14226esac
14227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_try") 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014232 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014233else
14234 echo "$as_me: failed program was:" >&5
14235sed 's/^/| /' conftest.$ac_ext >&5
14236
14237
Brian Gaeke5f268f72003-12-05 19:29:01 +000014238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014239
Bill Wendlingebcceee2009-04-18 11:20:33 +000014240rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241 conftest$ac_exeext
14242 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014243 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014244fi
Reid Spencera773bd52006-08-04 18:18:08 +000014245done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014246if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14247 :
Reid Spencera773bd52006-08-04 18:18:08 +000014248else
14249 ac_cv_search_pthread_mutex_lock=no
14250fi
14251rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014252LIBS=$ac_func_search_save_LIBS
14253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14255echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014256ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014257if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014260cat >>confdefs.h <<\_ACEOF
14261#define HAVE_PTHREAD_MUTEX_LOCK 1
14262_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014263
14264fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14267echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14268if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014270else
14271 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272cat >conftest.$ac_ext <<_ACEOF
14273/* confdefs.h. */
14274_ACEOF
14275cat confdefs.h >>conftest.$ac_ext
14276cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014277/* end confdefs.h. */
14278
14279/* Override any GCC internal prototype to avoid an error.
14280 Use char because int might match the return type of a GCC
14281 builtin and then its argument prototype would still apply. */
14282#ifdef __cplusplus
14283extern "C"
14284#endif
14285char pthread_rwlock_init ();
14286int
14287main ()
14288{
14289return pthread_rwlock_init ();
14290 ;
14291 return 0;
14292}
14293_ACEOF
14294for ac_lib in '' pthread; do
14295 if test -z "$ac_lib"; then
14296 ac_res="none required"
14297 else
14298 ac_res=-l$ac_lib
14299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14300 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014301 rm -f conftest.$ac_objext conftest$ac_exeext
14302if { (ac_try="$ac_link"
14303case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14306esac
14307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_link") 2>conftest.er1
14309 ac_status=$?
14310 grep -v '^ *+' conftest.er1 >conftest.err
14311 rm -f conftest.er1
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14319esac
14320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest$ac_exeext'
14326 { (case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14329esac
14330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_try") 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014335 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014336else
14337 echo "$as_me: failed program was:" >&5
14338sed 's/^/| /' conftest.$ac_ext >&5
14339
14340
Owen Andersonde8aed22009-06-16 18:20:20 +000014341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014342
Owen Andersonde8aed22009-06-16 18:20:20 +000014343rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344 conftest$ac_exeext
14345 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014346 break
14347fi
14348done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014349if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14350 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014351else
14352 ac_cv_search_pthread_rwlock_init=no
14353fi
14354rm conftest.$ac_ext
14355LIBS=$ac_func_search_save_LIBS
14356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014357{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14358echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014359ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014360if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014363cat >>confdefs.h <<\_ACEOF
14364#define HAVE_PTHREAD_RWLOCK_INIT 1
14365_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014366
14367fi
14368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014369 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14370echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14371if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014373else
14374 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014375cat >conftest.$ac_ext <<_ACEOF
14376/* confdefs.h. */
14377_ACEOF
14378cat confdefs.h >>conftest.$ac_ext
14379cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014380/* end confdefs.h. */
14381
14382/* Override any GCC internal prototype to avoid an error.
14383 Use char because int might match the return type of a GCC
14384 builtin and then its argument prototype would still apply. */
14385#ifdef __cplusplus
14386extern "C"
14387#endif
14388char pthread_getspecific ();
14389int
14390main ()
14391{
14392return pthread_getspecific ();
14393 ;
14394 return 0;
14395}
14396_ACEOF
14397for ac_lib in '' pthread; do
14398 if test -z "$ac_lib"; then
14399 ac_res="none required"
14400 else
14401 ac_res=-l$ac_lib
14402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14403 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014404 rm -f conftest.$ac_objext conftest$ac_exeext
14405if { (ac_try="$ac_link"
14406case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14409esac
14410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_link") 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14419 { (case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14422esac
14423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_try") 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; } &&
14428 { ac_try='test -s conftest$ac_exeext'
14429 { (case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432esac
14433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_try") 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014438 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014439else
14440 echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443
Owen Anderson27fcfe12009-06-25 23:10:26 +000014444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014445
Owen Anderson27fcfe12009-06-25 23:10:26 +000014446rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014447 conftest$ac_exeext
14448 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014449 break
14450fi
14451done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014452if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14453 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014454else
14455 ac_cv_search_pthread_getspecific=no
14456fi
14457rm conftest.$ac_ext
14458LIBS=$ac_func_search_save_LIBS
14459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014460{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14461echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014462ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014463if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014466cat >>confdefs.h <<\_ACEOF
14467#define HAVE_PTHREAD_GETSPECIFIC 1
14468_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014469
14470fi
14471
Reid Spencer0a262ba2005-08-24 10:07:20 +000014472fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014473
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014474
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014475# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014477 withval=$with_udis86;
14478 USE_UDIS86=1
14479
14480 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014481 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014482 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14483 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014484
14485{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14486echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14487if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014489else
14490 ac_check_lib_save_LIBS=$LIBS
14491LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014492cat >conftest.$ac_ext <<_ACEOF
14493/* confdefs.h. */
14494_ACEOF
14495cat confdefs.h >>conftest.$ac_ext
14496cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014497/* end confdefs.h. */
14498
14499/* Override any GCC internal prototype to avoid an error.
14500 Use char because int might match the return type of a GCC
14501 builtin and then its argument prototype would still apply. */
14502#ifdef __cplusplus
14503extern "C"
14504#endif
14505char ud_init ();
14506int
14507main ()
14508{
14509return ud_init ();
14510 ;
14511 return 0;
14512}
14513_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014514rm -f conftest.$ac_objext conftest$ac_exeext
14515if { (ac_try="$ac_link"
14516case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14519esac
14520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521 (eval "$ac_link") 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14529 { (case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532esac
14533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_try") 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; } &&
14538 { ac_try='test -s conftest$ac_exeext'
14539 { (case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14542esac
14543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_try") 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014548 ac_cv_lib_udis86_ud_init=yes
14549else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014550 echo "$as_me: failed program was:" >&5
14551sed 's/^/| /' conftest.$ac_ext >&5
14552
14553 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555
Bill Wendlingebcceee2009-04-18 11:20:33 +000014556rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014557 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014558LIBS=$ac_check_lib_save_LIBS
14559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014560{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14561echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14562if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014563 cat >>confdefs.h <<_ACEOF
14564#define HAVE_LIBUDIS86 1
14565_ACEOF
14566
14567 LIBS="-ludis86 $LIBS"
14568
14569else
14570
14571 echo "Error! You need to have libudis86 around."
14572 exit -1
14573
14574fi
14575
14576
14577else
14578 USE_UDIS86=0
14579
14580fi
14581
14582
14583cat >>confdefs.h <<_ACEOF
14584#define USE_UDIS86 $USE_UDIS86
14585_ACEOF
14586
14587
14588
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014589# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014590if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014591 withval=$with_oprofile;
14592 USE_OPROFILE=1
14593
14594 case "$withval" in
14595 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014596 no) llvm_cv_oppath=
14597 USE_OPROFILE=0
14598 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014599 *) llvm_cv_oppath="${withval}/lib/oprofile"
14600 CPPFLAGS="-I${withval}/include";;
14601 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014602 if test -n "$llvm_cv_oppath" ; then
14603 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014604 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14605echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14606if test "${ac_cv_search_bfd_init+set}" = set; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014608else
14609 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014610cat >conftest.$ac_ext <<_ACEOF
14611/* confdefs.h. */
14612_ACEOF
14613cat confdefs.h >>conftest.$ac_ext
14614cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014615/* end confdefs.h. */
14616
14617/* Override any GCC internal prototype to avoid an error.
14618 Use char because int might match the return type of a GCC
14619 builtin and then its argument prototype would still apply. */
14620#ifdef __cplusplus
14621extern "C"
14622#endif
14623char bfd_init ();
14624int
14625main ()
14626{
14627return bfd_init ();
14628 ;
14629 return 0;
14630}
14631_ACEOF
14632for ac_lib in '' bfd; do
14633 if test -z "$ac_lib"; then
14634 ac_res="none required"
14635 else
14636 ac_res=-l$ac_lib
14637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14638 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014639 rm -f conftest.$ac_objext conftest$ac_exeext
14640if { (ac_try="$ac_link"
14641case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644esac
14645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_link") 2>conftest.er1
14647 ac_status=$?
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14654 { (case "(($ac_try" in
14655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656 *) ac_try_echo=$ac_try;;
14657esac
14658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659 (eval "$ac_try") 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; } &&
14663 { ac_try='test -s conftest$ac_exeext'
14664 { (case "(($ac_try" in
14665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14666 *) ac_try_echo=$ac_try;;
14667esac
14668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14669 (eval "$ac_try") 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014673 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014674else
14675 echo "$as_me: failed program was:" >&5
14676sed 's/^/| /' conftest.$ac_ext >&5
14677
14678
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014680
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014681rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014682 conftest$ac_exeext
14683 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014684 break
14685fi
14686done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014687if test "${ac_cv_search_bfd_init+set}" = set; then
14688 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014689else
14690 ac_cv_search_bfd_init=no
14691fi
14692rm conftest.$ac_ext
14693LIBS=$ac_func_search_save_LIBS
14694fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014695{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14696echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014697ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014698if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14700
14701fi
14702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014703 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14704echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14705if test "${ac_cv_search_op_open_agent+set}" = set; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014707else
14708 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014709cat >conftest.$ac_ext <<_ACEOF
14710/* confdefs.h. */
14711_ACEOF
14712cat confdefs.h >>conftest.$ac_ext
14713cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014714/* end confdefs.h. */
14715
14716/* Override any GCC internal prototype to avoid an error.
14717 Use char because int might match the return type of a GCC
14718 builtin and then its argument prototype would still apply. */
14719#ifdef __cplusplus
14720extern "C"
14721#endif
14722char op_open_agent ();
14723int
14724main ()
14725{
14726return op_open_agent ();
14727 ;
14728 return 0;
14729}
14730_ACEOF
14731for ac_lib in '' opagent; do
14732 if test -z "$ac_lib"; then
14733 ac_res="none required"
14734 else
14735 ac_res=-l$ac_lib
14736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14737 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014738 rm -f conftest.$ac_objext conftest$ac_exeext
14739if { (ac_try="$ac_link"
14740case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14743esac
14744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_link") 2>conftest.er1
14746 ac_status=$?
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14753 { (case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756esac
14757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_try") 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; } &&
14762 { ac_try='test -s conftest$ac_exeext'
14763 { (case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14766esac
14767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_try") 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014772 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014773else
14774 echo "$as_me: failed program was:" >&5
14775sed 's/^/| /' conftest.$ac_ext >&5
14776
14777
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014779
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014780rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014781 conftest$ac_exeext
14782 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014783 break
14784fi
14785done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014786if test "${ac_cv_search_op_open_agent+set}" = set; then
14787 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014788else
14789 ac_cv_search_op_open_agent=no
14790fi
14791rm conftest.$ac_ext
14792LIBS=$ac_func_search_save_LIBS
14793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014794{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14795echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014796ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014797if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14799
14800else
14801
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014802 echo "Error! You need to have libopagent around."
14803 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014804
14805fi
14806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014807 if test "${ac_cv_header_opagent_h+set}" = set; then
14808 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14809echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14810if test "${ac_cv_header_opagent_h+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14812fi
14813{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14814echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14815else
14816 # Is the header compilable?
14817{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14818echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14819cat >conftest.$ac_ext <<_ACEOF
14820/* confdefs.h. */
14821_ACEOF
14822cat confdefs.h >>conftest.$ac_ext
14823cat >>conftest.$ac_ext <<_ACEOF
14824/* end confdefs.h. */
14825$ac_includes_default
14826#include <opagent.h>
14827_ACEOF
14828rm -f conftest.$ac_objext
14829if { (ac_try="$ac_compile"
14830case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833esac
14834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_compile") 2>conftest.er1
14836 ac_status=$?
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14843 { (case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14846esac
14847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_try") 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; } &&
14852 { ac_try='test -s conftest.$ac_objext'
14853 { (case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14856esac
14857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_try") 2>&5
14859 ac_status=$?
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 ac_header_compiler=yes
14863else
14864 echo "$as_me: failed program was:" >&5
14865sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014867 ac_header_compiler=no
14868fi
14869
14870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14872echo "${ECHO_T}$ac_header_compiler" >&6; }
14873
14874# Is the header present?
14875{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14876echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14877cat >conftest.$ac_ext <<_ACEOF
14878/* confdefs.h. */
14879_ACEOF
14880cat confdefs.h >>conftest.$ac_ext
14881cat >>conftest.$ac_ext <<_ACEOF
14882/* end confdefs.h. */
14883#include <opagent.h>
14884_ACEOF
14885if { (ac_try="$ac_cpp conftest.$ac_ext"
14886case "(($ac_try" in
14887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888 *) ac_try_echo=$ac_try;;
14889esac
14890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14892 ac_status=$?
14893 grep -v '^ *+' conftest.er1 >conftest.err
14894 rm -f conftest.er1
14895 cat conftest.err >&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } >/dev/null; then
14898 if test -s conftest.err; then
14899 ac_cpp_err=$ac_c_preproc_warn_flag
14900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14901 else
14902 ac_cpp_err=
14903 fi
14904else
14905 ac_cpp_err=yes
14906fi
14907if test -z "$ac_cpp_err"; then
14908 ac_header_preproc=yes
14909else
14910 echo "$as_me: failed program was:" >&5
14911sed 's/^/| /' conftest.$ac_ext >&5
14912
14913 ac_header_preproc=no
14914fi
14915
14916rm -f conftest.err conftest.$ac_ext
14917{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14918echo "${ECHO_T}$ac_header_preproc" >&6; }
14919
14920# So? What about this header?
14921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14922 yes:no: )
14923 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14924echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14926echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14927 ac_header_preproc=yes
14928 ;;
14929 no:yes:* )
14930 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14931echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14933echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14935echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14937echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14938 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14939echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14940 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14941echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14942 ( cat <<\_ASBOX
14943## ----------------------------------- ##
14944## Report this to llvmbugs@cs.uiuc.edu ##
14945## ----------------------------------- ##
14946_ASBOX
14947 ) | sed "s/^/$as_me: WARNING: /" >&2
14948 ;;
14949esac
14950{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14951echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14952if test "${ac_cv_header_opagent_h+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14954else
14955 ac_cv_header_opagent_h=$ac_header_preproc
14956fi
14957{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14958echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14959
14960fi
14961if test $ac_cv_header_opagent_h = yes; then
14962 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014963else
14964
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014965 echo "Error! You need to have opagent.h around."
14966 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014967
14968fi
14969
14970
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014971 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014972
14973else
14974
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014975 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014976
14977
14978fi
14979
14980
14981cat >>confdefs.h <<_ACEOF
14982#define USE_OPROFILE $USE_OPROFILE
14983_ACEOF
14984
14985
14986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014987
14988
14989
14990
14991
Reid Spencer59473af2004-12-25 07:31:29 +000014992ac_header_dirent=no
14993for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014994 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14995{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14996echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015000 cat >conftest.$ac_ext <<_ACEOF
15001/* confdefs.h. */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015005/* end confdefs.h. */
15006#include <sys/types.h>
15007#include <$ac_hdr>
15008
15009int
15010main ()
15011{
15012if ((DIR *) 0)
15013return 0;
15014 ;
15015 return 0;
15016}
15017_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015018rm -f conftest.$ac_objext
15019if { (ac_try="$ac_compile"
15020case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15023esac
15024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025 (eval "$ac_compile") 2>conftest.er1
15026 ac_status=$?
15027 grep -v '^ *+' conftest.er1 >conftest.err
15028 rm -f conftest.er1
15029 cat conftest.err >&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
15032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15033 { (case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15036esac
15037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_try") 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; } &&
15042 { ac_try='test -s conftest.$ac_objext'
15043 { (case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15046esac
15047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_try") 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015052 eval "$as_ac_Header=yes"
15053else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015054 echo "$as_me: failed program was:" >&5
15055sed 's/^/| /' conftest.$ac_ext >&5
15056
15057 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015059
Reid Spencera773bd52006-08-04 18:18:08 +000015060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015062ac_res=`eval echo '${'$as_ac_Header'}'`
15063 { echo "$as_me:$LINENO: result: $ac_res" >&5
15064echo "${ECHO_T}$ac_res" >&6; }
15065if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015066 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015067#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015068_ACEOF
15069
15070ac_header_dirent=$ac_hdr; break
15071fi
15072
15073done
15074# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15075if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15077echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15078if test "${ac_cv_search_opendir+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015080else
15081 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015082cat >conftest.$ac_ext <<_ACEOF
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015087/* end confdefs.h. */
15088
Reid Spencera773bd52006-08-04 18:18:08 +000015089/* Override any GCC internal prototype to avoid an error.
15090 Use char because int might match the return type of a GCC
15091 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015092#ifdef __cplusplus
15093extern "C"
15094#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015095char opendir ();
15096int
15097main ()
15098{
Reid Spencera773bd52006-08-04 18:18:08 +000015099return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015100 ;
15101 return 0;
15102}
15103_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015104for ac_lib in '' dir; do
15105 if test -z "$ac_lib"; then
15106 ac_res="none required"
15107 else
15108 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015110 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015111 rm -f conftest.$ac_objext conftest$ac_exeext
15112if { (ac_try="$ac_link"
15113case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15116esac
15117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_link") 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15126 { (case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129esac
15130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_try") 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; } &&
15135 { ac_try='test -s conftest$ac_exeext'
15136 { (case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15139esac
15140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_try") 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015145 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015146else
15147 echo "$as_me: failed program was:" >&5
15148sed 's/^/| /' conftest.$ac_ext >&5
15149
15150
Reid Spencer59473af2004-12-25 07:31:29 +000015151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015152
Bill Wendlingebcceee2009-04-18 11:20:33 +000015153rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015154 conftest$ac_exeext
15155 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015156 break
Reid Spencer59473af2004-12-25 07:31:29 +000015157fi
Reid Spencera773bd52006-08-04 18:18:08 +000015158done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015159if test "${ac_cv_search_opendir+set}" = set; then
15160 :
Reid Spencera773bd52006-08-04 18:18:08 +000015161else
15162 ac_cv_search_opendir=no
15163fi
15164rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015165LIBS=$ac_func_search_save_LIBS
15166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015167{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15168echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015169ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015170if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015172
15173fi
15174
15175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15177echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15178if test "${ac_cv_search_opendir+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015180else
15181 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015182cat >conftest.$ac_ext <<_ACEOF
15183/* confdefs.h. */
15184_ACEOF
15185cat confdefs.h >>conftest.$ac_ext
15186cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015187/* end confdefs.h. */
15188
Reid Spencera773bd52006-08-04 18:18:08 +000015189/* Override any GCC internal prototype to avoid an error.
15190 Use char because int might match the return type of a GCC
15191 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015192#ifdef __cplusplus
15193extern "C"
15194#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015195char opendir ();
15196int
15197main ()
15198{
Reid Spencera773bd52006-08-04 18:18:08 +000015199return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015200 ;
15201 return 0;
15202}
15203_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015204for ac_lib in '' x; do
15205 if test -z "$ac_lib"; then
15206 ac_res="none required"
15207 else
15208 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015210 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015211 rm -f conftest.$ac_objext conftest$ac_exeext
15212if { (ac_try="$ac_link"
15213case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216esac
15217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_link") 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
15225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15226 { (case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229esac
15230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_try") 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest$ac_exeext'
15236 { (case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15239esac
15240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_try") 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015245 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015246else
15247 echo "$as_me: failed program was:" >&5
15248sed 's/^/| /' conftest.$ac_ext >&5
15249
15250
Reid Spencer59473af2004-12-25 07:31:29 +000015251fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015252
Bill Wendlingebcceee2009-04-18 11:20:33 +000015253rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015254 conftest$ac_exeext
15255 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015256 break
Reid Spencer59473af2004-12-25 07:31:29 +000015257fi
Reid Spencera773bd52006-08-04 18:18:08 +000015258done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015259if test "${ac_cv_search_opendir+set}" = set; then
15260 :
Reid Spencera773bd52006-08-04 18:18:08 +000015261else
15262 ac_cv_search_opendir=no
15263fi
15264rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015265LIBS=$ac_func_search_save_LIBS
15266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015267{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15268echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015269ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015270if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015272
15273fi
15274
15275fi
15276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015277{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15278echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15279if test "${ac_cv_header_mmap_anon+set}" = set; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015281else
15282 ac_ext=c
15283ac_cpp='$CPP $CPPFLAGS'
15284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15286ac_compiler_gnu=$ac_cv_c_compiler_gnu
15287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015288 cat >conftest.$ac_ext <<_ACEOF
15289/* confdefs.h. */
15290_ACEOF
15291cat confdefs.h >>conftest.$ac_ext
15292cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015293/* end confdefs.h. */
15294#include <sys/mman.h>
15295#include <unistd.h>
15296#include <fcntl.h>
15297int
15298main ()
15299{
15300mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15301 ;
15302 return 0;
15303}
15304_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015305rm -f conftest.$ac_objext
15306if { (ac_try="$ac_compile"
15307case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15310esac
15311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_compile") 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15323esac
15324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_try") 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest.$ac_objext'
15330 { (case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15333esac
15334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_try") 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015339 ac_cv_header_mmap_anon=yes
15340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015341 echo "$as_me: failed program was:" >&5
15342sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015346
Reid Spencera773bd52006-08-04 18:18:08 +000015347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015348 ac_ext=c
15349ac_cpp='$CPP $CPPFLAGS'
15350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15352ac_compiler_gnu=$ac_cv_c_compiler_gnu
15353
15354
15355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015356{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15357echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015358if test "$ac_cv_header_mmap_anon" = yes; then
15359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015360cat >>confdefs.h <<\_ACEOF
15361#define HAVE_MMAP_ANONYMOUS 1
15362_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015363
15364fi
15365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015366{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15367echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15368if test "${ac_cv_header_stat_broken+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015371 cat >conftest.$ac_ext <<_ACEOF
15372/* confdefs.h. */
15373_ACEOF
15374cat confdefs.h >>conftest.$ac_ext
15375cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015376/* end confdefs.h. */
15377#include <sys/types.h>
15378#include <sys/stat.h>
15379
Reid Spencera773bd52006-08-04 18:18:08 +000015380#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015381# if S_ISBLK (S_IFDIR)
15382You lose.
15383# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015384#endif
15385
Reid Spencera773bd52006-08-04 18:18:08 +000015386#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015387# if S_ISBLK (S_IFCHR)
15388You lose.
15389# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015390#endif
15391
Reid Spencera773bd52006-08-04 18:18:08 +000015392#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015393# if S_ISLNK (S_IFREG)
15394You lose.
15395# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015396#endif
15397
Reid Spencera773bd52006-08-04 18:18:08 +000015398#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015399# if S_ISSOCK (S_IFREG)
15400You lose.
15401# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015402#endif
15403
15404_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15406 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015407 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015408else
15409 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015411rm -f conftest*
15412
Reid Spencer59473af2004-12-25 07:31:29 +000015413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015414{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15415echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015416if test $ac_cv_header_stat_broken = yes; then
15417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015418cat >>confdefs.h <<\_ACEOF
15419#define STAT_MACROS_BROKEN 1
15420_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015421
15422fi
15423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015424{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15425echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15426if test "${ac_cv_header_stdc+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015429 cat >conftest.$ac_ext <<_ACEOF
15430/* confdefs.h. */
15431_ACEOF
15432cat confdefs.h >>conftest.$ac_ext
15433cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015434/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015435#include <stdlib.h>
15436#include <stdarg.h>
15437#include <string.h>
15438#include <float.h>
15439
John Criswell0c38eaf2003-09-10 15:17:25 +000015440int
15441main ()
15442{
15443
15444 ;
15445 return 0;
15446}
John Criswell7a73b802003-06-30 21:59:07 +000015447_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015448rm -f conftest.$ac_objext
15449if { (ac_try="$ac_compile"
15450case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15453esac
15454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_compile") 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
15462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15463 { (case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15466esac
15467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_try") 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; } &&
15472 { ac_try='test -s conftest.$ac_objext'
15473 { (case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15476esac
15477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_try") 2>&5
15479 ac_status=$?
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015482 ac_cv_header_stdc=yes
15483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015484 echo "$as_me: failed program was:" >&5
15485sed 's/^/| /' conftest.$ac_ext >&5
15486
15487 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015489
Reid Spencera773bd52006-08-04 18:18:08 +000015490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015491
15492if test $ac_cv_header_stdc = yes; then
15493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015494 cat >conftest.$ac_ext <<_ACEOF
15495/* confdefs.h. */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015500#include <string.h>
15501
15502_ACEOF
15503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015504 $EGREP "memchr" >/dev/null 2>&1; then
15505 :
John Criswell7a73b802003-06-30 21:59:07 +000015506else
15507 ac_cv_header_stdc=no
15508fi
15509rm -f conftest*
15510
15511fi
15512
15513if test $ac_cv_header_stdc = yes; then
15514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015515 cat >conftest.$ac_ext <<_ACEOF
15516/* confdefs.h. */
15517_ACEOF
15518cat confdefs.h >>conftest.$ac_ext
15519cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015521#include <stdlib.h>
15522
15523_ACEOF
15524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015525 $EGREP "free" >/dev/null 2>&1; then
15526 :
John Criswell7a73b802003-06-30 21:59:07 +000015527else
15528 ac_cv_header_stdc=no
15529fi
15530rm -f conftest*
15531
15532fi
15533
15534if test $ac_cv_header_stdc = yes; then
15535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015536 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015537 :
15538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015539 cat >conftest.$ac_ext <<_ACEOF
15540/* confdefs.h. */
15541_ACEOF
15542cat confdefs.h >>conftest.$ac_ext
15543cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015545#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015546#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015547#if ((' ' & 0x0FF) == 0x020)
15548# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15549# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15550#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015551# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015552 (('a' <= (c) && (c) <= 'i') \
15553 || ('j' <= (c) && (c) <= 'r') \
15554 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015555# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15556#endif
15557
15558#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15559int
15560main ()
15561{
15562 int i;
15563 for (i = 0; i < 256; i++)
15564 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015565 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015566 return 2;
15567 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015568}
15569_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015570rm -f conftest$ac_exeext
15571if { (ac_try="$ac_link"
15572case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575esac
15576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_link") 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15581 { (case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15584esac
15585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_try") 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 :
John Criswell7a73b802003-06-30 21:59:07 +000015591else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015592 echo "$as_me: program exited with status $ac_status" >&5
15593echo "$as_me: failed program was:" >&5
15594sed 's/^/| /' conftest.$ac_ext >&5
15595
15596( exit $ac_status )
15597ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015599rm -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 +000015600fi
15601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015602
John Criswell7a73b802003-06-30 21:59:07 +000015603fi
15604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015605{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15606echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015607if test $ac_cv_header_stdc = yes; then
15608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015609cat >>confdefs.h <<\_ACEOF
15610#define STDC_HEADERS 1
15611_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015612
15613fi
15614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015615{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15616echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15617if test "${ac_cv_header_sys_wait_h+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015620 cat >conftest.$ac_ext <<_ACEOF
15621/* confdefs.h. */
15622_ACEOF
15623cat confdefs.h >>conftest.$ac_ext
15624cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015625/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015626#include <sys/types.h>
15627#include <sys/wait.h>
15628#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015629# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015630#endif
15631#ifndef WIFEXITED
15632# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15633#endif
15634
John Criswell7a73b802003-06-30 21:59:07 +000015635int
15636main ()
15637{
15638 int s;
15639 wait (&s);
15640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15641 ;
15642 return 0;
15643}
15644_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015645rm -f conftest.$ac_objext
15646if { (ac_try="$ac_compile"
15647case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15650esac
15651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652 (eval "$ac_compile") 2>conftest.er1
15653 ac_status=$?
15654 grep -v '^ *+' conftest.er1 >conftest.err
15655 rm -f conftest.er1
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15660 { (case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15663esac
15664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_try") 2>&5
15666 ac_status=$?
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673esac
15674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015679 ac_cv_header_sys_wait_h=yes
15680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015681 echo "$as_me: failed program was:" >&5
15682sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015686
Reid Spencera773bd52006-08-04 18:18:08 +000015687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015689{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15690echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015691if test $ac_cv_header_sys_wait_h = yes; then
15692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015693cat >>confdefs.h <<\_ACEOF
15694#define HAVE_SYS_WAIT_H 1
15695_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015696
15697fi
15698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015699{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15700echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15701if test "${ac_cv_header_time+set}" = set; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015703else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015704 cat >conftest.$ac_ext <<_ACEOF
15705/* confdefs.h. */
15706_ACEOF
15707cat confdefs.h >>conftest.$ac_ext
15708cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015709/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015710#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015711#include <sys/time.h>
15712#include <time.h>
15713
15714int
15715main ()
15716{
15717if ((struct tm *) 0)
15718return 0;
15719 ;
15720 return 0;
15721}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015722_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015723rm -f conftest.$ac_objext
15724if { (ac_try="$ac_compile"
15725case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15728esac
15729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15738 { (case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741esac
15742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_try") 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15751esac
15752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015757 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015758else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015759 echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5
15761
15762 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015764
Reid Spencera773bd52006-08-04 18:18:08 +000015765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015767{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15768echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015769if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015771cat >>confdefs.h <<\_ACEOF
15772#define TIME_WITH_SYS_TIME 1
15773_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015774
15775fi
15776
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015778
15779
15780
15781
15782
15783
Reid Spencer59473af2004-12-25 07:31:29 +000015784for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015785do
15786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15792fi
15793ac_res=`eval echo '${'$as_ac_Header'}'`
15794 { echo "$as_me:$LINENO: result: $ac_res" >&5
15795echo "${ECHO_T}$ac_res" >&6; }
15796else
15797 # Is the header compilable?
15798{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15800cat >conftest.$ac_ext <<_ACEOF
15801/* confdefs.h. */
15802_ACEOF
15803cat confdefs.h >>conftest.$ac_ext
15804cat >>conftest.$ac_ext <<_ACEOF
15805/* end confdefs.h. */
15806$ac_includes_default
15807#include <$ac_header>
15808_ACEOF
15809rm -f conftest.$ac_objext
15810if { (ac_try="$ac_compile"
15811case "(($ac_try" in
15812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15813 *) ac_try_echo=$ac_try;;
15814esac
15815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15816 (eval "$ac_compile") 2>conftest.er1
15817 ac_status=$?
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15824 { (case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15827esac
15828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_try") 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; } &&
15833 { ac_try='test -s conftest.$ac_objext'
15834 { (case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837esac
15838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_try") 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_header_compiler=yes
15844else
15845 echo "$as_me: failed program was:" >&5
15846sed 's/^/| /' conftest.$ac_ext >&5
15847
15848 ac_header_compiler=no
15849fi
15850
15851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15852{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15853echo "${ECHO_T}$ac_header_compiler" >&6; }
15854
15855# Is the header present?
15856{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15858cat >conftest.$ac_ext <<_ACEOF
15859/* confdefs.h. */
15860_ACEOF
15861cat confdefs.h >>conftest.$ac_ext
15862cat >>conftest.$ac_ext <<_ACEOF
15863/* end confdefs.h. */
15864#include <$ac_header>
15865_ACEOF
15866if { (ac_try="$ac_cpp conftest.$ac_ext"
15867case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15870esac
15871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15873 ac_status=$?
15874 grep -v '^ *+' conftest.er1 >conftest.err
15875 rm -f conftest.er1
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } >/dev/null; then
15879 if test -s conftest.err; then
15880 ac_cpp_err=$ac_c_preproc_warn_flag
15881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15882 else
15883 ac_cpp_err=
15884 fi
15885else
15886 ac_cpp_err=yes
15887fi
15888if test -z "$ac_cpp_err"; then
15889 ac_header_preproc=yes
15890else
15891 echo "$as_me: failed program was:" >&5
15892sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 ac_header_preproc=no
15895fi
15896
15897rm -f conftest.err conftest.$ac_ext
15898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15899echo "${ECHO_T}$ac_header_preproc" >&6; }
15900
15901# So? What about this header?
15902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15903 yes:no: )
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15908 ac_header_preproc=yes
15909 ;;
15910 no:yes:* )
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15923 ( cat <<\_ASBOX
15924## ----------------------------------- ##
15925## Report this to llvmbugs@cs.uiuc.edu ##
15926## ----------------------------------- ##
15927_ASBOX
15928 ) | sed "s/^/$as_me: WARNING: /" >&2
15929 ;;
15930esac
15931{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15935else
15936 eval "$as_ac_Header=\$ac_header_preproc"
15937fi
15938ac_res=`eval echo '${'$as_ac_Header'}'`
15939 { echo "$as_me:$LINENO: result: $ac_res" >&5
15940echo "${ECHO_T}$ac_res" >&6; }
15941
15942fi
15943if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015944 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015946_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015947
15948fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015949
Reid Spencer59473af2004-12-25 07:31:29 +000015950done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015952
15953
15954
15955
15956
15957
Douglas Gregor071d73d2009-05-18 17:21:34 +000015958for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015959do
15960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966fi
15967ac_res=`eval echo '${'$as_ac_Header'}'`
15968 { echo "$as_me:$LINENO: result: $ac_res" >&5
15969echo "${ECHO_T}$ac_res" >&6; }
15970else
15971 # Is the header compilable?
15972{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15974cat >conftest.$ac_ext <<_ACEOF
15975/* confdefs.h. */
15976_ACEOF
15977cat confdefs.h >>conftest.$ac_ext
15978cat >>conftest.$ac_ext <<_ACEOF
15979/* end confdefs.h. */
15980$ac_includes_default
15981#include <$ac_header>
15982_ACEOF
15983rm -f conftest.$ac_objext
15984if { (ac_try="$ac_compile"
15985case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_compile") 2>conftest.er1
15991 ac_status=$?
15992 grep -v '^ *+' conftest.er1 >conftest.err
15993 rm -f conftest.er1
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } &&
15997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15998 { (case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16001esac
16002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_try") 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; } &&
16007 { ac_try='test -s conftest.$ac_objext'
16008 { (case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16011esac
16012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_try") 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16017 ac_header_compiler=yes
16018else
16019 echo "$as_me: failed program was:" >&5
16020sed 's/^/| /' conftest.$ac_ext >&5
16021
16022 ac_header_compiler=no
16023fi
16024
16025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16027echo "${ECHO_T}$ac_header_compiler" >&6; }
16028
16029# Is the header present?
16030{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16032cat >conftest.$ac_ext <<_ACEOF
16033/* confdefs.h. */
16034_ACEOF
16035cat confdefs.h >>conftest.$ac_ext
16036cat >>conftest.$ac_ext <<_ACEOF
16037/* end confdefs.h. */
16038#include <$ac_header>
16039_ACEOF
16040if { (ac_try="$ac_cpp conftest.$ac_ext"
16041case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16044esac
16045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16047 ac_status=$?
16048 grep -v '^ *+' conftest.er1 >conftest.err
16049 rm -f conftest.er1
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } >/dev/null; then
16053 if test -s conftest.err; then
16054 ac_cpp_err=$ac_c_preproc_warn_flag
16055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16056 else
16057 ac_cpp_err=
16058 fi
16059else
16060 ac_cpp_err=yes
16061fi
16062if test -z "$ac_cpp_err"; then
16063 ac_header_preproc=yes
16064else
16065 echo "$as_me: failed program was:" >&5
16066sed 's/^/| /' conftest.$ac_ext >&5
16067
16068 ac_header_preproc=no
16069fi
16070
16071rm -f conftest.err conftest.$ac_ext
16072{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16073echo "${ECHO_T}$ac_header_preproc" >&6; }
16074
16075# So? What about this header?
16076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16077 yes:no: )
16078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16079echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16081echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16082 ac_header_preproc=yes
16083 ;;
16084 no:yes:* )
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16086echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16088echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16090echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16092echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16096echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16097 ( cat <<\_ASBOX
16098## ----------------------------------- ##
16099## Report this to llvmbugs@cs.uiuc.edu ##
16100## ----------------------------------- ##
16101_ASBOX
16102 ) | sed "s/^/$as_me: WARNING: /" >&2
16103 ;;
16104esac
16105{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109else
16110 eval "$as_ac_Header=\$ac_header_preproc"
16111fi
16112ac_res=`eval echo '${'$as_ac_Header'}'`
16113 { echo "$as_me:$LINENO: result: $ac_res" >&5
16114echo "${ECHO_T}$ac_res" >&6; }
16115
16116fi
16117if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016118 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016120_ACEOF
16121
16122fi
16123
16124done
16125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016126
16127
Douglas Gregor071d73d2009-05-18 17:21:34 +000016128for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016129do
16130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136fi
16137ac_res=`eval echo '${'$as_ac_Header'}'`
16138 { echo "$as_me:$LINENO: result: $ac_res" >&5
16139echo "${ECHO_T}$ac_res" >&6; }
16140else
16141 # Is the header compilable?
16142{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16144cat >conftest.$ac_ext <<_ACEOF
16145/* confdefs.h. */
16146_ACEOF
16147cat confdefs.h >>conftest.$ac_ext
16148cat >>conftest.$ac_ext <<_ACEOF
16149/* end confdefs.h. */
16150$ac_includes_default
16151#include <$ac_header>
16152_ACEOF
16153rm -f conftest.$ac_objext
16154if { (ac_try="$ac_compile"
16155case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16158esac
16159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_compile") 2>conftest.er1
16161 ac_status=$?
16162 grep -v '^ *+' conftest.er1 >conftest.err
16163 rm -f conftest.er1
16164 cat conftest.err >&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } &&
16167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16168 { (case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16171esac
16172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173 (eval "$ac_try") 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest.$ac_objext'
16178 { (case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181esac
16182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_try") 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_header_compiler=yes
16188else
16189 echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192 ac_header_compiler=no
16193fi
16194
16195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16197echo "${ECHO_T}$ac_header_compiler" >&6; }
16198
16199# Is the header present?
16200{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16202cat >conftest.$ac_ext <<_ACEOF
16203/* confdefs.h. */
16204_ACEOF
16205cat confdefs.h >>conftest.$ac_ext
16206cat >>conftest.$ac_ext <<_ACEOF
16207/* end confdefs.h. */
16208#include <$ac_header>
16209_ACEOF
16210if { (ac_try="$ac_cpp conftest.$ac_ext"
16211case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16214esac
16215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16217 ac_status=$?
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } >/dev/null; then
16223 if test -s conftest.err; then
16224 ac_cpp_err=$ac_c_preproc_warn_flag
16225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16226 else
16227 ac_cpp_err=
16228 fi
16229else
16230 ac_cpp_err=yes
16231fi
16232if test -z "$ac_cpp_err"; then
16233 ac_header_preproc=yes
16234else
16235 echo "$as_me: failed program was:" >&5
16236sed 's/^/| /' conftest.$ac_ext >&5
16237
16238 ac_header_preproc=no
16239fi
16240
16241rm -f conftest.err conftest.$ac_ext
16242{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16243echo "${ECHO_T}$ac_header_preproc" >&6; }
16244
16245# So? What about this header?
16246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16247 yes:no: )
16248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16249echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16251echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16252 ac_header_preproc=yes
16253 ;;
16254 no:yes:* )
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16256echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16258echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16260echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16262echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16264echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16266echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16267 ( cat <<\_ASBOX
16268## ----------------------------------- ##
16269## Report this to llvmbugs@cs.uiuc.edu ##
16270## ----------------------------------- ##
16271_ASBOX
16272 ) | sed "s/^/$as_me: WARNING: /" >&2
16273 ;;
16274esac
16275{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16279else
16280 eval "$as_ac_Header=\$ac_header_preproc"
16281fi
16282ac_res=`eval echo '${'$as_ac_Header'}'`
16283 { echo "$as_me:$LINENO: result: $ac_res" >&5
16284echo "${ECHO_T}$ac_res" >&6; }
16285
16286fi
16287if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016288 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016290_ACEOF
16291
16292fi
16293
16294done
Reid Spencer59473af2004-12-25 07:31:29 +000016295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016296
16297
16298
16299
Daniel Dunbar3e462932011-02-03 02:40:02 +000016300
16301for 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 +000016302do
16303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16309fi
16310ac_res=`eval echo '${'$as_ac_Header'}'`
16311 { echo "$as_me:$LINENO: result: $ac_res" >&5
16312echo "${ECHO_T}$ac_res" >&6; }
16313else
16314 # Is the header compilable?
16315{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16317cat >conftest.$ac_ext <<_ACEOF
16318/* confdefs.h. */
16319_ACEOF
16320cat confdefs.h >>conftest.$ac_ext
16321cat >>conftest.$ac_ext <<_ACEOF
16322/* end confdefs.h. */
16323$ac_includes_default
16324#include <$ac_header>
16325_ACEOF
16326rm -f conftest.$ac_objext
16327if { (ac_try="$ac_compile"
16328case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331esac
16332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_compile") 2>conftest.er1
16334 ac_status=$?
16335 grep -v '^ *+' conftest.er1 >conftest.err
16336 rm -f conftest.er1
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
16340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16341 { (case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16344esac
16345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_try") 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; } &&
16350 { ac_try='test -s conftest.$ac_objext'
16351 { (case "(($ac_try" in
16352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353 *) ac_try_echo=$ac_try;;
16354esac
16355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356 (eval "$ac_try") 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_header_compiler=yes
16361else
16362 echo "$as_me: failed program was:" >&5
16363sed 's/^/| /' conftest.$ac_ext >&5
16364
16365 ac_header_compiler=no
16366fi
16367
16368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16370echo "${ECHO_T}$ac_header_compiler" >&6; }
16371
16372# Is the header present?
16373{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16375cat >conftest.$ac_ext <<_ACEOF
16376/* confdefs.h. */
16377_ACEOF
16378cat confdefs.h >>conftest.$ac_ext
16379cat >>conftest.$ac_ext <<_ACEOF
16380/* end confdefs.h. */
16381#include <$ac_header>
16382_ACEOF
16383if { (ac_try="$ac_cpp conftest.$ac_ext"
16384case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16387esac
16388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16390 ac_status=$?
16391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } >/dev/null; then
16396 if test -s conftest.err; then
16397 ac_cpp_err=$ac_c_preproc_warn_flag
16398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16399 else
16400 ac_cpp_err=
16401 fi
16402else
16403 ac_cpp_err=yes
16404fi
16405if test -z "$ac_cpp_err"; then
16406 ac_header_preproc=yes
16407else
16408 echo "$as_me: failed program was:" >&5
16409sed 's/^/| /' conftest.$ac_ext >&5
16410
16411 ac_header_preproc=no
16412fi
16413
16414rm -f conftest.err conftest.$ac_ext
16415{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16416echo "${ECHO_T}$ac_header_preproc" >&6; }
16417
16418# So? What about this header?
16419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16420 yes:no: )
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16425 ac_header_preproc=yes
16426 ;;
16427 no:yes:* )
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16440 ( cat <<\_ASBOX
16441## ----------------------------------- ##
16442## Report this to llvmbugs@cs.uiuc.edu ##
16443## ----------------------------------- ##
16444_ASBOX
16445 ) | sed "s/^/$as_me: WARNING: /" >&2
16446 ;;
16447esac
16448{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16452else
16453 eval "$as_ac_Header=\$ac_header_preproc"
16454fi
16455ac_res=`eval echo '${'$as_ac_Header'}'`
16456 { echo "$as_me:$LINENO: result: $ac_res" >&5
16457echo "${ECHO_T}$ac_res" >&6; }
16458
16459fi
16460if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016461 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016463_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016464
16465fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016466
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016467done
16468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016469
16470
16471
16472
Douglas Gregor01746742009-05-11 18:05:52 +000016473for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016474do
16475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481fi
16482ac_res=`eval echo '${'$as_ac_Header'}'`
16483 { echo "$as_me:$LINENO: result: $ac_res" >&5
16484echo "${ECHO_T}$ac_res" >&6; }
16485else
16486 # Is the header compilable?
16487{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16489cat >conftest.$ac_ext <<_ACEOF
16490/* confdefs.h. */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h. */
16495$ac_includes_default
16496#include <$ac_header>
16497_ACEOF
16498rm -f conftest.$ac_objext
16499if { (ac_try="$ac_compile"
16500case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503esac
16504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_compile") 2>conftest.er1
16506 ac_status=$?
16507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
16512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513 { (case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516esac
16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_try") 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526esac
16527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_try") 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_header_compiler=yes
16533else
16534 echo "$as_me: failed program was:" >&5
16535sed 's/^/| /' conftest.$ac_ext >&5
16536
16537 ac_header_compiler=no
16538fi
16539
16540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16542echo "${ECHO_T}$ac_header_compiler" >&6; }
16543
16544# Is the header present?
16545{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16547cat >conftest.$ac_ext <<_ACEOF
16548/* confdefs.h. */
16549_ACEOF
16550cat confdefs.h >>conftest.$ac_ext
16551cat >>conftest.$ac_ext <<_ACEOF
16552/* end confdefs.h. */
16553#include <$ac_header>
16554_ACEOF
16555if { (ac_try="$ac_cpp conftest.$ac_ext"
16556case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559esac
16560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } >/dev/null; then
16568 if test -s conftest.err; then
16569 ac_cpp_err=$ac_c_preproc_warn_flag
16570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16571 else
16572 ac_cpp_err=
16573 fi
16574else
16575 ac_cpp_err=yes
16576fi
16577if test -z "$ac_cpp_err"; then
16578 ac_header_preproc=yes
16579else
16580 echo "$as_me: failed program was:" >&5
16581sed 's/^/| /' conftest.$ac_ext >&5
16582
16583 ac_header_preproc=no
16584fi
16585
16586rm -f conftest.err conftest.$ac_ext
16587{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16588echo "${ECHO_T}$ac_header_preproc" >&6; }
16589
16590# So? What about this header?
16591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16592 yes:no: )
16593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16596echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16597 ac_header_preproc=yes
16598 ;;
16599 no:yes:* )
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16601echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16603echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16605echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16607echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16611echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16612 ( cat <<\_ASBOX
16613## ----------------------------------- ##
16614## Report this to llvmbugs@cs.uiuc.edu ##
16615## ----------------------------------- ##
16616_ASBOX
16617 ) | sed "s/^/$as_me: WARNING: /" >&2
16618 ;;
16619esac
16620{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16624else
16625 eval "$as_ac_Header=\$ac_header_preproc"
16626fi
16627ac_res=`eval echo '${'$as_ac_Header'}'`
16628 { echo "$as_me:$LINENO: result: $ac_res" >&5
16629echo "${ECHO_T}$ac_res" >&6; }
16630
16631fi
16632if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016633 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016635_ACEOF
16636
16637fi
16638
16639done
16640
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016641
16642for ac_header in valgrind/valgrind.h
16643do
16644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650fi
16651ac_res=`eval echo '${'$as_ac_Header'}'`
16652 { echo "$as_me:$LINENO: result: $ac_res" >&5
16653echo "${ECHO_T}$ac_res" >&6; }
16654else
16655 # Is the header compilable?
16656{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16658cat >conftest.$ac_ext <<_ACEOF
16659/* confdefs.h. */
16660_ACEOF
16661cat confdefs.h >>conftest.$ac_ext
16662cat >>conftest.$ac_ext <<_ACEOF
16663/* end confdefs.h. */
16664$ac_includes_default
16665#include <$ac_header>
16666_ACEOF
16667rm -f conftest.$ac_objext
16668if { (ac_try="$ac_compile"
16669case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16672esac
16673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_compile") 2>conftest.er1
16675 ac_status=$?
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
16681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16682 { (case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16685esac
16686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_try") 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695esac
16696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_try") 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_header_compiler=yes
16702else
16703 echo "$as_me: failed program was:" >&5
16704sed 's/^/| /' conftest.$ac_ext >&5
16705
16706 ac_header_compiler=no
16707fi
16708
16709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16711echo "${ECHO_T}$ac_header_compiler" >&6; }
16712
16713# Is the header present?
16714{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16716cat >conftest.$ac_ext <<_ACEOF
16717/* confdefs.h. */
16718_ACEOF
16719cat confdefs.h >>conftest.$ac_ext
16720cat >>conftest.$ac_ext <<_ACEOF
16721/* end confdefs.h. */
16722#include <$ac_header>
16723_ACEOF
16724if { (ac_try="$ac_cpp conftest.$ac_ext"
16725case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728esac
16729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } >/dev/null; then
16737 if test -s conftest.err; then
16738 ac_cpp_err=$ac_c_preproc_warn_flag
16739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16740 else
16741 ac_cpp_err=
16742 fi
16743else
16744 ac_cpp_err=yes
16745fi
16746if test -z "$ac_cpp_err"; then
16747 ac_header_preproc=yes
16748else
16749 echo "$as_me: failed program was:" >&5
16750sed 's/^/| /' conftest.$ac_ext >&5
16751
16752 ac_header_preproc=no
16753fi
16754
16755rm -f conftest.err conftest.$ac_ext
16756{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16757echo "${ECHO_T}$ac_header_preproc" >&6; }
16758
16759# So? What about this header?
16760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16761 yes:no: )
16762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16766 ac_header_preproc=yes
16767 ;;
16768 no:yes:* )
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16781 ( cat <<\_ASBOX
16782## ----------------------------------- ##
16783## Report this to llvmbugs@cs.uiuc.edu ##
16784## ----------------------------------- ##
16785_ASBOX
16786 ) | sed "s/^/$as_me: WARNING: /" >&2
16787 ;;
16788esac
16789{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793else
16794 eval "$as_ac_Header=\$ac_header_preproc"
16795fi
16796ac_res=`eval echo '${'$as_ac_Header'}'`
16797 { echo "$as_me:$LINENO: result: $ac_res" >&5
16798echo "${ECHO_T}$ac_res" >&6; }
16799
16800fi
16801if test `eval echo '${'$as_ac_Header'}'` = yes; then
16802 cat >>confdefs.h <<_ACEOF
16803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16804_ACEOF
16805
16806fi
16807
16808done
16809
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016810
16811for ac_header in fenv.h
16812do
16813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16819fi
16820ac_res=`eval echo '${'$as_ac_Header'}'`
16821 { echo "$as_me:$LINENO: result: $ac_res" >&5
16822echo "${ECHO_T}$ac_res" >&6; }
16823else
16824 # Is the header compilable?
16825{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16827cat >conftest.$ac_ext <<_ACEOF
16828/* confdefs.h. */
16829_ACEOF
16830cat confdefs.h >>conftest.$ac_ext
16831cat >>conftest.$ac_ext <<_ACEOF
16832/* end confdefs.h. */
16833$ac_includes_default
16834#include <$ac_header>
16835_ACEOF
16836rm -f conftest.$ac_objext
16837if { (ac_try="$ac_compile"
16838case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841esac
16842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_compile") 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16854esac
16855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest.$ac_objext'
16861 { (case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864esac
16865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_try") 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 ac_header_compiler=yes
16871else
16872 echo "$as_me: failed program was:" >&5
16873sed 's/^/| /' conftest.$ac_ext >&5
16874
16875 ac_header_compiler=no
16876fi
16877
16878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16880echo "${ECHO_T}$ac_header_compiler" >&6; }
16881
16882# Is the header present?
16883{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16885cat >conftest.$ac_ext <<_ACEOF
16886/* confdefs.h. */
16887_ACEOF
16888cat confdefs.h >>conftest.$ac_ext
16889cat >>conftest.$ac_ext <<_ACEOF
16890/* end confdefs.h. */
16891#include <$ac_header>
16892_ACEOF
16893if { (ac_try="$ac_cpp conftest.$ac_ext"
16894case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } >/dev/null; then
16906 if test -s conftest.err; then
16907 ac_cpp_err=$ac_c_preproc_warn_flag
16908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16909 else
16910 ac_cpp_err=
16911 fi
16912else
16913 ac_cpp_err=yes
16914fi
16915if test -z "$ac_cpp_err"; then
16916 ac_header_preproc=yes
16917else
16918 echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ac_header_preproc=no
16922fi
16923
16924rm -f conftest.err conftest.$ac_ext
16925{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16926echo "${ECHO_T}$ac_header_preproc" >&6; }
16927
16928# So? What about this header?
16929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16930 yes:no: )
16931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16934echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16935 ac_header_preproc=yes
16936 ;;
16937 no:yes:* )
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16939echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16941echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16943echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16945echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16947echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16949echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16950 ( cat <<\_ASBOX
16951## ----------------------------------- ##
16952## Report this to llvmbugs@cs.uiuc.edu ##
16953## ----------------------------------- ##
16954_ASBOX
16955 ) | sed "s/^/$as_me: WARNING: /" >&2
16956 ;;
16957esac
16958{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962else
16963 eval "$as_ac_Header=\$ac_header_preproc"
16964fi
16965ac_res=`eval echo '${'$as_ac_Header'}'`
16966 { echo "$as_me:$LINENO: result: $ac_res" >&5
16967echo "${ECHO_T}$ac_res" >&6; }
16968
16969fi
16970if test `eval echo '${'$as_ac_Header'}'` = yes; then
16971 cat >>confdefs.h <<_ACEOF
16972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16973_ACEOF
16974
16975fi
16976
16977done
16978
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016979if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016980
16981for ac_header in pthread.h
16982do
16983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16988 echo $ECHO_N "(cached) $ECHO_C" >&6
16989fi
16990ac_res=`eval echo '${'$as_ac_Header'}'`
16991 { echo "$as_me:$LINENO: result: $ac_res" >&5
16992echo "${ECHO_T}$ac_res" >&6; }
16993else
16994 # Is the header compilable?
16995{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16997cat >conftest.$ac_ext <<_ACEOF
16998/* confdefs.h. */
16999_ACEOF
17000cat confdefs.h >>conftest.$ac_ext
17001cat >>conftest.$ac_ext <<_ACEOF
17002/* end confdefs.h. */
17003$ac_includes_default
17004#include <$ac_header>
17005_ACEOF
17006rm -f conftest.$ac_objext
17007if { (ac_try="$ac_compile"
17008case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011esac
17012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_compile") 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021 { (case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17024esac
17025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_try") 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest.$ac_objext'
17031 { (case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17034esac
17035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_try") 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_header_compiler=yes
17041else
17042 echo "$as_me: failed program was:" >&5
17043sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 ac_header_compiler=no
17046fi
17047
17048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17050echo "${ECHO_T}$ac_header_compiler" >&6; }
17051
17052# Is the header present?
17053{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17055cat >conftest.$ac_ext <<_ACEOF
17056/* confdefs.h. */
17057_ACEOF
17058cat confdefs.h >>conftest.$ac_ext
17059cat >>conftest.$ac_ext <<_ACEOF
17060/* end confdefs.h. */
17061#include <$ac_header>
17062_ACEOF
17063if { (ac_try="$ac_cpp conftest.$ac_ext"
17064case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17070 ac_status=$?
17071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } >/dev/null; then
17076 if test -s conftest.err; then
17077 ac_cpp_err=$ac_c_preproc_warn_flag
17078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17079 else
17080 ac_cpp_err=
17081 fi
17082else
17083 ac_cpp_err=yes
17084fi
17085if test -z "$ac_cpp_err"; then
17086 ac_header_preproc=yes
17087else
17088 echo "$as_me: failed program was:" >&5
17089sed 's/^/| /' conftest.$ac_ext >&5
17090
17091 ac_header_preproc=no
17092fi
17093
17094rm -f conftest.err conftest.$ac_ext
17095{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17096echo "${ECHO_T}$ac_header_preproc" >&6; }
17097
17098# So? What about this header?
17099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17100 yes:no: )
17101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17105 ac_header_preproc=yes
17106 ;;
17107 no:yes:* )
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17120 ( cat <<\_ASBOX
17121## ----------------------------------- ##
17122## Report this to llvmbugs@cs.uiuc.edu ##
17123## ----------------------------------- ##
17124_ASBOX
17125 ) | sed "s/^/$as_me: WARNING: /" >&2
17126 ;;
17127esac
17128{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132else
17133 eval "$as_ac_Header=\$ac_header_preproc"
17134fi
17135ac_res=`eval echo '${'$as_ac_Header'}'`
17136 { echo "$as_me:$LINENO: result: $ac_res" >&5
17137echo "${ECHO_T}$ac_res" >&6; }
17138
17139fi
17140if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017141 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017143_ACEOF
17144 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017145
17146else
17147 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017148
17149fi
17150
Reid Spencerbe3e4192007-08-17 05:45:26 +000017151done
Reid Spencer1000b732006-12-01 00:37:14 +000017152
17153else
17154 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017155
17156fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017157
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017158if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017159
17160
17161for ac_header in ffi.h ffi/ffi.h
17162do
17163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17169fi
17170ac_res=`eval echo '${'$as_ac_Header'}'`
17171 { echo "$as_me:$LINENO: result: $ac_res" >&5
17172echo "${ECHO_T}$ac_res" >&6; }
17173else
17174 # Is the header compilable?
17175{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17177cat >conftest.$ac_ext <<_ACEOF
17178/* confdefs.h. */
17179_ACEOF
17180cat confdefs.h >>conftest.$ac_ext
17181cat >>conftest.$ac_ext <<_ACEOF
17182/* end confdefs.h. */
17183$ac_includes_default
17184#include <$ac_header>
17185_ACEOF
17186rm -f conftest.$ac_objext
17187if { (ac_try="$ac_compile"
17188case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17191esac
17192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_compile") 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17204esac
17205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; } &&
17210 { ac_try='test -s conftest.$ac_objext'
17211 { (case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214esac
17215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_try") 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 ac_header_compiler=yes
17221else
17222 echo "$as_me: failed program was:" >&5
17223sed 's/^/| /' conftest.$ac_ext >&5
17224
17225 ac_header_compiler=no
17226fi
17227
17228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17230echo "${ECHO_T}$ac_header_compiler" >&6; }
17231
17232# Is the header present?
17233{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17235cat >conftest.$ac_ext <<_ACEOF
17236/* confdefs.h. */
17237_ACEOF
17238cat confdefs.h >>conftest.$ac_ext
17239cat >>conftest.$ac_ext <<_ACEOF
17240/* end confdefs.h. */
17241#include <$ac_header>
17242_ACEOF
17243if { (ac_try="$ac_cpp conftest.$ac_ext"
17244case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247esac
17248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17250 ac_status=$?
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } >/dev/null; then
17256 if test -s conftest.err; then
17257 ac_cpp_err=$ac_c_preproc_warn_flag
17258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17259 else
17260 ac_cpp_err=
17261 fi
17262else
17263 ac_cpp_err=yes
17264fi
17265if test -z "$ac_cpp_err"; then
17266 ac_header_preproc=yes
17267else
17268 echo "$as_me: failed program was:" >&5
17269sed 's/^/| /' conftest.$ac_ext >&5
17270
17271 ac_header_preproc=no
17272fi
17273
17274rm -f conftest.err conftest.$ac_ext
17275{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17276echo "${ECHO_T}$ac_header_preproc" >&6; }
17277
17278# So? What about this header?
17279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17280 yes:no: )
17281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17285 ac_header_preproc=yes
17286 ;;
17287 no:yes:* )
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17300 ( cat <<\_ASBOX
17301## ----------------------------------- ##
17302## Report this to llvmbugs@cs.uiuc.edu ##
17303## ----------------------------------- ##
17304_ASBOX
17305 ) | sed "s/^/$as_me: WARNING: /" >&2
17306 ;;
17307esac
17308{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312else
17313 eval "$as_ac_Header=\$ac_header_preproc"
17314fi
17315ac_res=`eval echo '${'$as_ac_Header'}'`
17316 { echo "$as_me:$LINENO: result: $ac_res" >&5
17317echo "${ECHO_T}$ac_res" >&6; }
17318
17319fi
17320if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017321 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017323_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017324
17325fi
17326
17327done
17328
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017329fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017330
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017331
Eric Christopher654dee42010-06-22 21:01:04 +000017332for ac_header in CrashReporterClient.h
17333do
17334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340fi
17341ac_res=`eval echo '${'$as_ac_Header'}'`
17342 { echo "$as_me:$LINENO: result: $ac_res" >&5
17343echo "${ECHO_T}$ac_res" >&6; }
17344else
17345 # Is the header compilable?
17346{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17348cat >conftest.$ac_ext <<_ACEOF
17349/* confdefs.h. */
17350_ACEOF
17351cat confdefs.h >>conftest.$ac_ext
17352cat >>conftest.$ac_ext <<_ACEOF
17353/* end confdefs.h. */
17354$ac_includes_default
17355#include <$ac_header>
17356_ACEOF
17357rm -f conftest.$ac_objext
17358if { (ac_try="$ac_compile"
17359case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17362esac
17363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_compile") 2>conftest.er1
17365 ac_status=$?
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17375esac
17376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest.$ac_objext'
17382 { (case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17385esac
17386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387 (eval "$ac_try") 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 ac_header_compiler=yes
17392else
17393 echo "$as_me: failed program was:" >&5
17394sed 's/^/| /' conftest.$ac_ext >&5
17395
17396 ac_header_compiler=no
17397fi
17398
17399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17401echo "${ECHO_T}$ac_header_compiler" >&6; }
17402
17403# Is the header present?
17404{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17406cat >conftest.$ac_ext <<_ACEOF
17407/* confdefs.h. */
17408_ACEOF
17409cat confdefs.h >>conftest.$ac_ext
17410cat >>conftest.$ac_ext <<_ACEOF
17411/* end confdefs.h. */
17412#include <$ac_header>
17413_ACEOF
17414if { (ac_try="$ac_cpp conftest.$ac_ext"
17415case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418esac
17419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17421 ac_status=$?
17422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } >/dev/null; then
17427 if test -s conftest.err; then
17428 ac_cpp_err=$ac_c_preproc_warn_flag
17429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17430 else
17431 ac_cpp_err=
17432 fi
17433else
17434 ac_cpp_err=yes
17435fi
17436if test -z "$ac_cpp_err"; then
17437 ac_header_preproc=yes
17438else
17439 echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
17442 ac_header_preproc=no
17443fi
17444
17445rm -f conftest.err conftest.$ac_ext
17446{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17447echo "${ECHO_T}$ac_header_preproc" >&6; }
17448
17449# So? What about this header?
17450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17451 yes:no: )
17452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17456 ac_header_preproc=yes
17457 ;;
17458 no:yes:* )
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17471 ( cat <<\_ASBOX
17472## ----------------------------------- ##
17473## Report this to llvmbugs@cs.uiuc.edu ##
17474## ----------------------------------- ##
17475_ASBOX
17476 ) | sed "s/^/$as_me: WARNING: /" >&2
17477 ;;
17478esac
17479{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483else
17484 eval "$as_ac_Header=\$ac_header_preproc"
17485fi
17486ac_res=`eval echo '${'$as_ac_Header'}'`
17487 { echo "$as_me:$LINENO: result: $ac_res" >&5
17488echo "${ECHO_T}$ac_res" >&6; }
17489
17490fi
17491if test `eval echo '${'$as_ac_Header'}'` = yes; then
17492 cat >>confdefs.h <<_ACEOF
17493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17494_ACEOF
17495
17496fi
17497
17498done
17499
17500
Eric Christopher51e57132010-12-07 02:05:42 +000017501{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17502echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017503cat >conftest.$ac_ext <<_ACEOF
17504/* confdefs.h. */
17505_ACEOF
17506cat confdefs.h >>conftest.$ac_ext
17507cat >>conftest.$ac_ext <<_ACEOF
17508/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017509extern const char *__crashreporter_info__;
17510 int main() {
17511 __crashreporter_info__ = "test";
17512 return 0;
17513 }
Eric Christopher481d4022010-12-03 07:45:22 +000017514
Eric Christopher481d4022010-12-03 07:45:22 +000017515_ACEOF
17516rm -f conftest.$ac_objext conftest$ac_exeext
17517if { (ac_try="$ac_link"
17518case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521esac
17522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17524 ac_status=$?
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
17530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17531 { (case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534esac
17535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_try") 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest$ac_exeext'
17541 { (case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17544esac
17545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_try") 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017550 { echo "$as_me:$LINENO: result: yes" >&5
17551echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017552
17553cat >>confdefs.h <<\_ACEOF
17554#define HAVE_CRASHREPORTER_INFO 1
17555_ACEOF
17556
Eric Christopher51e57132010-12-07 02:05:42 +000017557else
17558 echo "$as_me: failed program was:" >&5
17559sed 's/^/| /' conftest.$ac_ext >&5
17560
17561 { echo "$as_me:$LINENO: result: no" >&5
17562echo "${ECHO_T}no" >&6; }
17563
17564cat >>confdefs.h <<\_ACEOF
17565#define HAVE_CRASHREPORTER_INFO 0
17566_ACEOF
17567
Eric Christopher481d4022010-12-03 07:45:22 +000017568fi
Eric Christopher654dee42010-06-22 21:01:04 +000017569
Eric Christopher51e57132010-12-07 02:05:42 +000017570rm -f core conftest.err conftest.$ac_objext \
17571 conftest$ac_exeext conftest.$ac_ext
17572
17573
Reid Spencer8085cff2005-01-16 02:58:39 +000017574
Torok Edwin871384f2010-01-26 08:50:50 +000017575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017576 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17577echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17578if test "${ac_cv_huge_val_sanity+set}" = set; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017580else
17581
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017582 ac_ext=cpp
17583ac_cpp='$CXXCPP $CPPFLAGS'
17584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017587
Eric Christopherc7718502010-03-02 05:06:54 +000017588 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017589 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017590 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017591 ac_cv_huge_val_sanity=yes
17592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017593 cat >conftest.$ac_ext <<_ACEOF
17594/* confdefs.h. */
17595_ACEOF
17596cat confdefs.h >>conftest.$ac_ext
17597cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017598/* end confdefs.h. */
17599#include <math.h>
17600int
17601main ()
17602{
17603double x = HUGE_VAL; return x != x;
17604 ;
17605 return 0;
17606}
17607_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017608rm -f conftest$ac_exeext
17609if { (ac_try="$ac_link"
17610case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17613esac
17614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_link") 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622esac
17623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017628 ac_cv_huge_val_sanity=yes
17629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017630 echo "$as_me: program exited with status $ac_status" >&5
17631echo "$as_me: failed program was:" >&5
17632sed 's/^/| /' conftest.$ac_ext >&5
17633
17634( exit $ac_status )
17635ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017637rm -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 +000017638fi
17639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017640
Eric Christopherc7718502010-03-02 05:06:54 +000017641 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017642 ac_ext=c
17643ac_cpp='$CPP $CPPFLAGS'
17644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17646ac_compiler_gnu=$ac_cv_c_compiler_gnu
17647
17648
17649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017650{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17651echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017652 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17653
17654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017655{ echo "$as_me:$LINENO: checking for pid_t" >&5
17656echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17657if test "${ac_cv_type_pid_t+set}" = set; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17659else
17660 cat >conftest.$ac_ext <<_ACEOF
17661/* confdefs.h. */
17662_ACEOF
17663cat confdefs.h >>conftest.$ac_ext
17664cat >>conftest.$ac_ext <<_ACEOF
17665/* end confdefs.h. */
17666$ac_includes_default
17667typedef pid_t ac__type_new_;
17668int
17669main ()
17670{
17671if ((ac__type_new_ *) 0)
17672 return 0;
17673if (sizeof (ac__type_new_))
17674 return 0;
17675 ;
17676 return 0;
17677}
17678_ACEOF
17679rm -f conftest.$ac_objext
17680if { (ac_try="$ac_compile"
17681case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17684esac
17685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_compile") 2>conftest.er1
17687 ac_status=$?
17688 grep -v '^ *+' conftest.er1 >conftest.err
17689 rm -f conftest.er1
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17694 { (case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17697esac
17698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699 (eval "$ac_try") 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest.$ac_objext'
17704 { (case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17707esac
17708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_try") 2>&5
17710 ac_status=$?
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); }; }; then
17713 ac_cv_type_pid_t=yes
17714else
17715 echo "$as_me: failed program was:" >&5
17716sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017718 ac_cv_type_pid_t=no
17719fi
17720
17721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17722fi
17723{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17724echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17725if test $ac_cv_type_pid_t = yes; then
17726 :
John Criswell7a73b802003-06-30 21:59:07 +000017727else
17728
17729cat >>confdefs.h <<_ACEOF
17730#define pid_t int
17731_ACEOF
17732
17733fi
17734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017735{ echo "$as_me:$LINENO: checking for size_t" >&5
17736echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17737if test "${ac_cv_type_size_t+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739else
17740 cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h. */
17746$ac_includes_default
17747typedef size_t ac__type_new_;
17748int
17749main ()
17750{
17751if ((ac__type_new_ *) 0)
17752 return 0;
17753if (sizeof (ac__type_new_))
17754 return 0;
17755 ;
17756 return 0;
17757}
17758_ACEOF
17759rm -f conftest.$ac_objext
17760if { (ac_try="$ac_compile"
17761case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17764esac
17765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766 (eval "$ac_compile") 2>conftest.er1
17767 ac_status=$?
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17774 { (case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17777esac
17778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_try") 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17787esac
17788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_try") 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ac_cv_type_size_t=yes
17794else
17795 echo "$as_me: failed program was:" >&5
17796sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017798 ac_cv_type_size_t=no
17799fi
17800
17801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17802fi
17803{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17804echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17805if test $ac_cv_type_size_t = yes; then
17806 :
John Criswell7a73b802003-06-30 21:59:07 +000017807else
17808
17809cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017810#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017811_ACEOF
17812
17813fi
17814
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017815
17816cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017817#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017818_ACEOF
17819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017820{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17821echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17822if test "${ac_cv_struct_tm+set}" = set; then
17823 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017825 cat >conftest.$ac_ext <<_ACEOF
17826/* confdefs.h. */
17827_ACEOF
17828cat confdefs.h >>conftest.$ac_ext
17829cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017830/* end confdefs.h. */
17831#include <sys/types.h>
17832#include <time.h>
17833
17834int
17835main ()
17836{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017837struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017838 ;
17839 return 0;
17840}
17841_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017842rm -f conftest.$ac_objext
17843if { (ac_try="$ac_compile"
17844case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17847esac
17848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_compile") 2>conftest.er1
17850 ac_status=$?
17851 grep -v '^ *+' conftest.er1 >conftest.err
17852 rm -f conftest.er1
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857 { (case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17860esac
17861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_try") 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest.$ac_objext'
17867 { (case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17870esac
17871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_try") 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017876 ac_cv_struct_tm=time.h
17877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017878 echo "$as_me: failed program was:" >&5
17879sed 's/^/| /' conftest.$ac_ext >&5
17880
17881 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017882fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017883
Reid Spencera773bd52006-08-04 18:18:08 +000017884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017886{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17887echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017888if test $ac_cv_struct_tm = sys/time.h; then
17889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017890cat >>confdefs.h <<\_ACEOF
17891#define TM_IN_SYS_TIME 1
17892_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017893
17894fi
17895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017896{ echo "$as_me:$LINENO: checking for int64_t" >&5
17897echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17898if test "${ac_cv_type_int64_t+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17900else
17901 cat >conftest.$ac_ext <<_ACEOF
17902/* confdefs.h. */
17903_ACEOF
17904cat confdefs.h >>conftest.$ac_ext
17905cat >>conftest.$ac_ext <<_ACEOF
17906/* end confdefs.h. */
17907$ac_includes_default
17908typedef int64_t ac__type_new_;
17909int
17910main ()
17911{
17912if ((ac__type_new_ *) 0)
17913 return 0;
17914if (sizeof (ac__type_new_))
17915 return 0;
17916 ;
17917 return 0;
17918}
17919_ACEOF
17920rm -f conftest.$ac_objext
17921if { (ac_try="$ac_compile"
17922case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17925esac
17926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_compile") 2>conftest.er1
17928 ac_status=$?
17929 grep -v '^ *+' conftest.er1 >conftest.err
17930 rm -f conftest.er1
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17935 { (case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17938esac
17939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_try") 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
17945 { (case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17948esac
17949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_try") 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_cv_type_int64_t=yes
17955else
17956 echo "$as_me: failed program was:" >&5
17957sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 ac_cv_type_int64_t=no
17960fi
17961
17962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963fi
17964{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17965echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17966if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017967
17968cat >>confdefs.h <<_ACEOF
17969#define HAVE_INT64_T 1
17970_ACEOF
17971
17972
17973else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017974 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17975echo "$as_me: error: Type int64_t required but not found" >&2;}
17976 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017977fi
17978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017979{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17980echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17981if test "${ac_cv_type_uint64_t+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17983else
17984 cat >conftest.$ac_ext <<_ACEOF
17985/* confdefs.h. */
17986_ACEOF
17987cat confdefs.h >>conftest.$ac_ext
17988cat >>conftest.$ac_ext <<_ACEOF
17989/* end confdefs.h. */
17990$ac_includes_default
17991typedef uint64_t ac__type_new_;
17992int
17993main ()
17994{
17995if ((ac__type_new_ *) 0)
17996 return 0;
17997if (sizeof (ac__type_new_))
17998 return 0;
17999 ;
18000 return 0;
18001}
18002_ACEOF
18003rm -f conftest.$ac_objext
18004if { (ac_try="$ac_compile"
18005case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18008esac
18009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010 (eval "$ac_compile") 2>conftest.er1
18011 ac_status=$?
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18018 { (case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021esac
18022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_try") 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; } &&
18027 { ac_try='test -s conftest.$ac_objext'
18028 { (case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18031esac
18032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_try") 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 ac_cv_type_uint64_t=yes
18038else
18039 echo "$as_me: failed program was:" >&5
18040sed 's/^/| /' conftest.$ac_ext >&5
18041
18042 ac_cv_type_uint64_t=no
18043fi
18044
18045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18046fi
18047{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18048echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18049if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018050
18051cat >>confdefs.h <<_ACEOF
18052#define HAVE_UINT64_T 1
18053_ACEOF
18054
18055
18056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018057 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18058echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18059if test "${ac_cv_type_u_int64_t+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18061else
18062 cat >conftest.$ac_ext <<_ACEOF
18063/* confdefs.h. */
18064_ACEOF
18065cat confdefs.h >>conftest.$ac_ext
18066cat >>conftest.$ac_ext <<_ACEOF
18067/* end confdefs.h. */
18068$ac_includes_default
18069typedef u_int64_t ac__type_new_;
18070int
18071main ()
18072{
18073if ((ac__type_new_ *) 0)
18074 return 0;
18075if (sizeof (ac__type_new_))
18076 return 0;
18077 ;
18078 return 0;
18079}
18080_ACEOF
18081rm -f conftest.$ac_objext
18082if { (ac_try="$ac_compile"
18083case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18086esac
18087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_compile") 2>conftest.er1
18089 ac_status=$?
18090 grep -v '^ *+' conftest.er1 >conftest.err
18091 rm -f conftest.er1
18092 cat conftest.err >&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } &&
18095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18096 { (case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18099esac
18100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_try") 2>&5
18102 ac_status=$?
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; } &&
18105 { ac_try='test -s conftest.$ac_objext'
18106 { (case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18109esac
18110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_try") 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18115 ac_cv_type_u_int64_t=yes
18116else
18117 echo "$as_me: failed program was:" >&5
18118sed 's/^/| /' conftest.$ac_ext >&5
18119
18120 ac_cv_type_u_int64_t=no
18121fi
18122
18123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124fi
18125{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18126echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18127if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018128
18129cat >>confdefs.h <<_ACEOF
18130#define HAVE_U_INT64_T 1
18131_ACEOF
18132
18133
Misha Brukmanceca9042004-09-02 23:02:30 +000018134else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018135 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18136echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18137 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018138fi
18139
John Criswell679ff312004-09-02 18:44:44 +000018140fi
18141
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018142
18143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018144
18145
18146
18147
18148
18149
18150
Reid Spencerdf3be822006-01-23 08:15:53 +000018151for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018152do
18153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18154{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18156if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18158else
18159 cat >conftest.$ac_ext <<_ACEOF
18160/* confdefs.h. */
18161_ACEOF
18162cat confdefs.h >>conftest.$ac_ext
18163cat >>conftest.$ac_ext <<_ACEOF
18164/* end confdefs.h. */
18165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18167#define $ac_func innocuous_$ac_func
18168
18169/* System header to define __stub macros and hopefully few prototypes,
18170 which can conflict with char $ac_func (); below.
18171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18172 <limits.h> exists even on freestanding compilers. */
18173
18174#ifdef __STDC__
18175# include <limits.h>
18176#else
18177# include <assert.h>
18178#endif
18179
18180#undef $ac_func
18181
18182/* Override any GCC internal prototype to avoid an error.
18183 Use char because int might match the return type of a GCC
18184 builtin and then its argument prototype would still apply. */
18185#ifdef __cplusplus
18186extern "C"
18187#endif
18188char $ac_func ();
18189/* The GNU C library defines this for functions which it implements
18190 to always fail with ENOSYS. Some functions are actually named
18191 something starting with __ and the normal name is an alias. */
18192#if defined __stub_$ac_func || defined __stub___$ac_func
18193choke me
18194#endif
18195
18196int
18197main ()
18198{
18199return $ac_func ();
18200 ;
18201 return 0;
18202}
18203_ACEOF
18204rm -f conftest.$ac_objext conftest$ac_exeext
18205if { (ac_try="$ac_link"
18206case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18209esac
18210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_link") 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18219 { (case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18222esac
18223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_try") 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest$ac_exeext'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232esac
18233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 eval "$as_ac_var=yes"
18239else
18240 echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243 eval "$as_ac_var=no"
18244fi
18245
18246rm -f core conftest.err conftest.$ac_objext \
18247 conftest$ac_exeext conftest.$ac_ext
18248fi
18249ac_res=`eval echo '${'$as_ac_var'}'`
18250 { echo "$as_me:$LINENO: result: $ac_res" >&5
18251echo "${ECHO_T}$ac_res" >&6; }
18252if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018253 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018255_ACEOF
18256
18257fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018258done
John Criswell7a73b802003-06-30 21:59:07 +000018259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018260
18261
18262
18263
Reid Spencer96cf5872007-07-13 10:05:30 +000018264for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018265do
18266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18267{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18269if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18271else
18272 cat >conftest.$ac_ext <<_ACEOF
18273/* confdefs.h. */
18274_ACEOF
18275cat confdefs.h >>conftest.$ac_ext
18276cat >>conftest.$ac_ext <<_ACEOF
18277/* end confdefs.h. */
18278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18280#define $ac_func innocuous_$ac_func
18281
18282/* System header to define __stub macros and hopefully few prototypes,
18283 which can conflict with char $ac_func (); below.
18284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18285 <limits.h> exists even on freestanding compilers. */
18286
18287#ifdef __STDC__
18288# include <limits.h>
18289#else
18290# include <assert.h>
18291#endif
18292
18293#undef $ac_func
18294
18295/* Override any GCC internal prototype to avoid an error.
18296 Use char because int might match the return type of a GCC
18297 builtin and then its argument prototype would still apply. */
18298#ifdef __cplusplus
18299extern "C"
18300#endif
18301char $ac_func ();
18302/* The GNU C library defines this for functions which it implements
18303 to always fail with ENOSYS. Some functions are actually named
18304 something starting with __ and the normal name is an alias. */
18305#if defined __stub_$ac_func || defined __stub___$ac_func
18306choke me
18307#endif
18308
18309int
18310main ()
18311{
18312return $ac_func ();
18313 ;
18314 return 0;
18315}
18316_ACEOF
18317rm -f conftest.$ac_objext conftest$ac_exeext
18318if { (ac_try="$ac_link"
18319case "(($ac_try" in
18320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321 *) ac_try_echo=$ac_try;;
18322esac
18323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_link") 2>conftest.er1
18325 ac_status=$?
18326 grep -v '^ *+' conftest.er1 >conftest.err
18327 rm -f conftest.er1
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
18331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18332 { (case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335esac
18336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_try") 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; } &&
18341 { ac_try='test -s conftest$ac_exeext'
18342 { (case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18345esac
18346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_try") 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 eval "$as_ac_var=yes"
18352else
18353 echo "$as_me: failed program was:" >&5
18354sed 's/^/| /' conftest.$ac_ext >&5
18355
18356 eval "$as_ac_var=no"
18357fi
18358
18359rm -f core conftest.err conftest.$ac_objext \
18360 conftest$ac_exeext conftest.$ac_ext
18361fi
18362ac_res=`eval echo '${'$as_ac_var'}'`
18363 { echo "$as_me:$LINENO: result: $ac_res" >&5
18364echo "${ECHO_T}$ac_res" >&6; }
18365if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018366 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018368_ACEOF
18369
18370fi
18371done
18372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018373
18374
18375
18376
18377
Reid Spencerb90645c2007-02-16 19:17:20 +000018378for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018379do
18380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18381{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18385else
18386 cat >conftest.$ac_ext <<_ACEOF
18387/* confdefs.h. */
18388_ACEOF
18389cat confdefs.h >>conftest.$ac_ext
18390cat >>conftest.$ac_ext <<_ACEOF
18391/* end confdefs.h. */
18392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18394#define $ac_func innocuous_$ac_func
18395
18396/* System header to define __stub macros and hopefully few prototypes,
18397 which can conflict with char $ac_func (); below.
18398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18399 <limits.h> exists even on freestanding compilers. */
18400
18401#ifdef __STDC__
18402# include <limits.h>
18403#else
18404# include <assert.h>
18405#endif
18406
18407#undef $ac_func
18408
18409/* Override any GCC internal prototype to avoid an error.
18410 Use char because int might match the return type of a GCC
18411 builtin and then its argument prototype would still apply. */
18412#ifdef __cplusplus
18413extern "C"
18414#endif
18415char $ac_func ();
18416/* The GNU C library defines this for functions which it implements
18417 to always fail with ENOSYS. Some functions are actually named
18418 something starting with __ and the normal name is an alias. */
18419#if defined __stub_$ac_func || defined __stub___$ac_func
18420choke me
18421#endif
18422
18423int
18424main ()
18425{
18426return $ac_func ();
18427 ;
18428 return 0;
18429}
18430_ACEOF
18431rm -f conftest.$ac_objext conftest$ac_exeext
18432if { (ac_try="$ac_link"
18433case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436esac
18437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_link") 2>conftest.er1
18439 ac_status=$?
18440 grep -v '^ *+' conftest.er1 >conftest.err
18441 rm -f conftest.er1
18442 cat conftest.err >&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } &&
18445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18446 { (case "(($ac_try" in
18447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448 *) ac_try_echo=$ac_try;;
18449esac
18450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451 (eval "$ac_try") 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; } &&
18455 { ac_try='test -s conftest$ac_exeext'
18456 { (case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18459esac
18460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_try") 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 eval "$as_ac_var=yes"
18466else
18467 echo "$as_me: failed program was:" >&5
18468sed 's/^/| /' conftest.$ac_ext >&5
18469
18470 eval "$as_ac_var=no"
18471fi
18472
18473rm -f core conftest.err conftest.$ac_objext \
18474 conftest$ac_exeext conftest.$ac_ext
18475fi
18476ac_res=`eval echo '${'$as_ac_var'}'`
18477 { echo "$as_me:$LINENO: result: $ac_res" >&5
18478echo "${ECHO_T}$ac_res" >&6; }
18479if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018480 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018482_ACEOF
18483
18484fi
18485done
18486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018487
18488
18489
Reid Spencerb90645c2007-02-16 19:17:20 +000018490for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018491do
18492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18493{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18495if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497else
18498 cat >conftest.$ac_ext <<_ACEOF
18499/* confdefs.h. */
18500_ACEOF
18501cat confdefs.h >>conftest.$ac_ext
18502cat >>conftest.$ac_ext <<_ACEOF
18503/* end confdefs.h. */
18504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18506#define $ac_func innocuous_$ac_func
18507
18508/* System header to define __stub macros and hopefully few prototypes,
18509 which can conflict with char $ac_func (); below.
18510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18511 <limits.h> exists even on freestanding compilers. */
18512
18513#ifdef __STDC__
18514# include <limits.h>
18515#else
18516# include <assert.h>
18517#endif
18518
18519#undef $ac_func
18520
18521/* Override any GCC internal prototype to avoid an error.
18522 Use char because int might match the return type of a GCC
18523 builtin and then its argument prototype would still apply. */
18524#ifdef __cplusplus
18525extern "C"
18526#endif
18527char $ac_func ();
18528/* The GNU C library defines this for functions which it implements
18529 to always fail with ENOSYS. Some functions are actually named
18530 something starting with __ and the normal name is an alias. */
18531#if defined __stub_$ac_func || defined __stub___$ac_func
18532choke me
18533#endif
18534
18535int
18536main ()
18537{
18538return $ac_func ();
18539 ;
18540 return 0;
18541}
18542_ACEOF
18543rm -f conftest.$ac_objext conftest$ac_exeext
18544if { (ac_try="$ac_link"
18545case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548esac
18549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_link") 2>conftest.er1
18551 ac_status=$?
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18558 { (case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18561esac
18562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_try") 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; } &&
18567 { ac_try='test -s conftest$ac_exeext'
18568 { (case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18571esac
18572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_try") 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 eval "$as_ac_var=yes"
18578else
18579 echo "$as_me: failed program was:" >&5
18580sed 's/^/| /' conftest.$ac_ext >&5
18581
18582 eval "$as_ac_var=no"
18583fi
18584
18585rm -f core conftest.err conftest.$ac_objext \
18586 conftest$ac_exeext conftest.$ac_ext
18587fi
18588ac_res=`eval echo '${'$as_ac_var'}'`
18589 { echo "$as_me:$LINENO: result: $ac_res" >&5
18590echo "${ECHO_T}$ac_res" >&6; }
18591if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018592 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018594_ACEOF
18595
18596fi
18597done
18598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018599
18600
18601
18602
18603
Eric Christophere4291822010-04-16 05:14:21 +000018604
18605for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018606do
18607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
18612else
18613 cat >conftest.$ac_ext <<_ACEOF
18614/* confdefs.h. */
18615_ACEOF
18616cat confdefs.h >>conftest.$ac_ext
18617cat >>conftest.$ac_ext <<_ACEOF
18618/* end confdefs.h. */
18619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18621#define $ac_func innocuous_$ac_func
18622
18623/* System header to define __stub macros and hopefully few prototypes,
18624 which can conflict with char $ac_func (); below.
18625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18626 <limits.h> exists even on freestanding compilers. */
18627
18628#ifdef __STDC__
18629# include <limits.h>
18630#else
18631# include <assert.h>
18632#endif
18633
18634#undef $ac_func
18635
18636/* Override any GCC internal prototype to avoid an error.
18637 Use char because int might match the return type of a GCC
18638 builtin and then its argument prototype would still apply. */
18639#ifdef __cplusplus
18640extern "C"
18641#endif
18642char $ac_func ();
18643/* The GNU C library defines this for functions which it implements
18644 to always fail with ENOSYS. Some functions are actually named
18645 something starting with __ and the normal name is an alias. */
18646#if defined __stub_$ac_func || defined __stub___$ac_func
18647choke me
18648#endif
18649
18650int
18651main ()
18652{
18653return $ac_func ();
18654 ;
18655 return 0;
18656}
18657_ACEOF
18658rm -f conftest.$ac_objext conftest$ac_exeext
18659if { (ac_try="$ac_link"
18660case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18663esac
18664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_link") 2>conftest.er1
18666 ac_status=$?
18667 grep -v '^ *+' conftest.er1 >conftest.err
18668 rm -f conftest.er1
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18673 { (case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676esac
18677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_try") 2>&5
18679 ac_status=$?
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; } &&
18682 { ac_try='test -s conftest$ac_exeext'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18686esac
18687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; }; then
18692 eval "$as_ac_var=yes"
18693else
18694 echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697 eval "$as_ac_var=no"
18698fi
18699
18700rm -f core conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
18702fi
18703ac_res=`eval echo '${'$as_ac_var'}'`
18704 { echo "$as_me:$LINENO: result: $ac_res" >&5
18705echo "${ECHO_T}$ac_res" >&6; }
18706if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018707 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018709_ACEOF
18710
18711fi
18712done
Reid Spencerdf3be822006-01-23 08:15:53 +000018713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018714
18715
18716
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018717for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018718do
18719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18720{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18722if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18724else
18725 cat >conftest.$ac_ext <<_ACEOF
18726/* confdefs.h. */
18727_ACEOF
18728cat confdefs.h >>conftest.$ac_ext
18729cat >>conftest.$ac_ext <<_ACEOF
18730/* end confdefs.h. */
18731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18733#define $ac_func innocuous_$ac_func
18734
18735/* System header to define __stub macros and hopefully few prototypes,
18736 which can conflict with char $ac_func (); below.
18737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18738 <limits.h> exists even on freestanding compilers. */
18739
18740#ifdef __STDC__
18741# include <limits.h>
18742#else
18743# include <assert.h>
18744#endif
18745
18746#undef $ac_func
18747
18748/* Override any GCC internal prototype to avoid an error.
18749 Use char because int might match the return type of a GCC
18750 builtin and then its argument prototype would still apply. */
18751#ifdef __cplusplus
18752extern "C"
18753#endif
18754char $ac_func ();
18755/* The GNU C library defines this for functions which it implements
18756 to always fail with ENOSYS. Some functions are actually named
18757 something starting with __ and the normal name is an alias. */
18758#if defined __stub_$ac_func || defined __stub___$ac_func
18759choke me
18760#endif
18761
18762int
18763main ()
18764{
18765return $ac_func ();
18766 ;
18767 return 0;
18768}
18769_ACEOF
18770rm -f conftest.$ac_objext conftest$ac_exeext
18771if { (ac_try="$ac_link"
18772case "(($ac_try" in
18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774 *) ac_try_echo=$ac_try;;
18775esac
18776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777 (eval "$ac_link") 2>conftest.er1
18778 ac_status=$?
18779 grep -v '^ *+' conftest.er1 >conftest.err
18780 rm -f conftest.er1
18781 cat conftest.err >&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } &&
18784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18785 { (case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788esac
18789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest$ac_exeext'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18798esac
18799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 eval "$as_ac_var=yes"
18805else
18806 echo "$as_me: failed program was:" >&5
18807sed 's/^/| /' conftest.$ac_ext >&5
18808
18809 eval "$as_ac_var=no"
18810fi
18811
18812rm -f core conftest.err conftest.$ac_objext \
18813 conftest$ac_exeext conftest.$ac_ext
18814fi
18815ac_res=`eval echo '${'$as_ac_var'}'`
18816 { echo "$as_me:$LINENO: result: $ac_res" >&5
18817echo "${ECHO_T}$ac_res" >&6; }
18818if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018819 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018821_ACEOF
18822
18823fi
18824done
18825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018826
18827
18828
18829
Chris Lattner511f11d2005-11-14 07:25:50 +000018830for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018831do
18832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18833{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18837else
18838 cat >conftest.$ac_ext <<_ACEOF
18839/* confdefs.h. */
18840_ACEOF
18841cat confdefs.h >>conftest.$ac_ext
18842cat >>conftest.$ac_ext <<_ACEOF
18843/* end confdefs.h. */
18844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18846#define $ac_func innocuous_$ac_func
18847
18848/* System header to define __stub macros and hopefully few prototypes,
18849 which can conflict with char $ac_func (); below.
18850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18851 <limits.h> exists even on freestanding compilers. */
18852
18853#ifdef __STDC__
18854# include <limits.h>
18855#else
18856# include <assert.h>
18857#endif
18858
18859#undef $ac_func
18860
18861/* Override any GCC internal prototype to avoid an error.
18862 Use char because int might match the return type of a GCC
18863 builtin and then its argument prototype would still apply. */
18864#ifdef __cplusplus
18865extern "C"
18866#endif
18867char $ac_func ();
18868/* The GNU C library defines this for functions which it implements
18869 to always fail with ENOSYS. Some functions are actually named
18870 something starting with __ and the normal name is an alias. */
18871#if defined __stub_$ac_func || defined __stub___$ac_func
18872choke me
18873#endif
18874
18875int
18876main ()
18877{
18878return $ac_func ();
18879 ;
18880 return 0;
18881}
18882_ACEOF
18883rm -f conftest.$ac_objext conftest$ac_exeext
18884if { (ac_try="$ac_link"
18885case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18888esac
18889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_link") 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18898 { (case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901esac
18902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_try") 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; } &&
18907 { ac_try='test -s conftest$ac_exeext'
18908 { (case "(($ac_try" in
18909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18911esac
18912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913 (eval "$ac_try") 2>&5
18914 ac_status=$?
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 eval "$as_ac_var=yes"
18918else
18919 echo "$as_me: failed program was:" >&5
18920sed 's/^/| /' conftest.$ac_ext >&5
18921
18922 eval "$as_ac_var=no"
18923fi
18924
18925rm -f core conftest.err conftest.$ac_objext \
18926 conftest$ac_exeext conftest.$ac_ext
18927fi
18928ac_res=`eval echo '${'$as_ac_var'}'`
18929 { echo "$as_me:$LINENO: result: $ac_res" >&5
18930echo "${ECHO_T}$ac_res" >&6; }
18931if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018932 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018934_ACEOF
18935
18936fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018937done
John Criswell7a73b802003-06-30 21:59:07 +000018938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018939
18940
18941
18942
Daniel Dunbar3e462932011-02-03 02:40:02 +000018943
18944for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018945do
18946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18947{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18951else
18952 cat >conftest.$ac_ext <<_ACEOF
18953/* confdefs.h. */
18954_ACEOF
18955cat confdefs.h >>conftest.$ac_ext
18956cat >>conftest.$ac_ext <<_ACEOF
18957/* end confdefs.h. */
18958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18960#define $ac_func innocuous_$ac_func
18961
18962/* System header to define __stub macros and hopefully few prototypes,
18963 which can conflict with char $ac_func (); below.
18964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965 <limits.h> exists even on freestanding compilers. */
18966
18967#ifdef __STDC__
18968# include <limits.h>
18969#else
18970# include <assert.h>
18971#endif
18972
18973#undef $ac_func
18974
18975/* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18978#ifdef __cplusplus
18979extern "C"
18980#endif
18981char $ac_func ();
18982/* The GNU C library defines this for functions which it implements
18983 to always fail with ENOSYS. Some functions are actually named
18984 something starting with __ and the normal name is an alias. */
18985#if defined __stub_$ac_func || defined __stub___$ac_func
18986choke me
18987#endif
18988
18989int
18990main ()
18991{
18992return $ac_func ();
18993 ;
18994 return 0;
18995}
18996_ACEOF
18997rm -f conftest.$ac_objext conftest$ac_exeext
18998if { (ac_try="$ac_link"
18999case "(($ac_try" in
19000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001 *) ac_try_echo=$ac_try;;
19002esac
19003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19004 (eval "$ac_link") 2>conftest.er1
19005 ac_status=$?
19006 grep -v '^ *+' conftest.er1 >conftest.err
19007 rm -f conftest.er1
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } &&
19011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19012 { (case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19015esac
19016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_try") 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; } &&
19021 { ac_try='test -s conftest$ac_exeext'
19022 { (case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19025esac
19026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19027 (eval "$ac_try") 2>&5
19028 ac_status=$?
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; }; then
19031 eval "$as_ac_var=yes"
19032else
19033 echo "$as_me: failed program was:" >&5
19034sed 's/^/| /' conftest.$ac_ext >&5
19035
19036 eval "$as_ac_var=no"
19037fi
19038
19039rm -f core conftest.err conftest.$ac_objext \
19040 conftest$ac_exeext conftest.$ac_ext
19041fi
19042ac_res=`eval echo '${'$as_ac_var'}'`
19043 { echo "$as_me:$LINENO: result: $ac_res" >&5
19044echo "${ECHO_T}$ac_res" >&6; }
19045if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019046 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019048_ACEOF
19049
19050fi
19051done
19052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019053{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19054echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19055if test "${llvm_cv_c_printf_a+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019057else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019058 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019059ac_cpp='$CPP $CPPFLAGS'
19060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19062ac_compiler_gnu=$ac_cv_c_compiler_gnu
19063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019064 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019065 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019066else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019067 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019069 /* confdefs.h. */
19070_ACEOF
19071cat confdefs.h >>conftest.$ac_ext
19072cat >>conftest.$ac_ext <<_ACEOF
19073/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019074
John Criswella0137d32003-10-13 16:22:01 +000019075#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019076#include <stdlib.h>
19077
John Criswella0137d32003-10-13 16:22:01 +000019078int
19079main ()
19080{
19081
Reid Spencer2706f8c2004-09-19 23:53:36 +000019082volatile double A, B;
19083char Buffer[100];
19084A = 1;
19085A /= 10.0;
19086sprintf(Buffer, "%a", A);
19087B = atof(Buffer);
19088if (A != B)
19089 return (1);
19090if (A != 0x1.999999999999ap-4)
19091 return (1);
19092return (0);
John Criswella0137d32003-10-13 16:22:01 +000019093 ;
19094 return 0;
19095}
19096_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019097rm -f conftest$ac_exeext
19098if { (ac_try="$ac_link"
19099case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19102esac
19103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_link") 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19108 { (case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19111esac
19112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_try") 2>&5
19114 ac_status=$?
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019117 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019119 echo "$as_me: program exited with status $ac_status" >&5
19120echo "$as_me: failed program was:" >&5
19121sed 's/^/| /' conftest.$ac_ext >&5
19122
19123( exit $ac_status )
19124llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019126rm -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 +000019127fi
Reid Spencera773bd52006-08-04 18:18:08 +000019128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019129
Reid Spencer2706f8c2004-09-19 23:53:36 +000019130 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019131ac_cpp='$CPP $CPPFLAGS'
19132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19134ac_compiler_gnu=$ac_cv_c_compiler_gnu
19135
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019137{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19138echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019139 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019141cat >>confdefs.h <<\_ACEOF
19142#define HAVE_PRINTF_A 1
19143_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019144
Reid Spencer2706f8c2004-09-19 23:53:36 +000019145 fi
John Criswella0137d32003-10-13 16:22:01 +000019146
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019148{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19149echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19150if test "${ac_cv_func_rand48+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019152else
Reid Spencera773bd52006-08-04 18:18:08 +000019153 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019154ac_cpp='$CXXCPP $CPPFLAGS'
19155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019159 cat >conftest.$ac_ext <<_ACEOF
19160/* confdefs.h. */
19161_ACEOF
19162cat confdefs.h >>conftest.$ac_ext
19163cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019164/* end confdefs.h. */
19165#include <stdlib.h>
19166int
19167main ()
19168{
19169srand48(0);lrand48();drand48();
19170 ;
19171 return 0;
19172}
19173_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019174rm -f conftest.$ac_objext
19175if { (ac_try="$ac_compile"
19176case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179esac
19180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_compile") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192esac
19193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19202esac
19203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_try") 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019208 ac_cv_func_rand48=yes
19209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019210 echo "$as_me: failed program was:" >&5
19211sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019215
Reid Spencera773bd52006-08-04 18:18:08 +000019216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019217 ac_ext=c
19218ac_cpp='$CPP $CPPFLAGS'
19219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19221ac_compiler_gnu=$ac_cv_c_compiler_gnu
19222
19223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019224{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19225echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019226
19227if test "$ac_cv_func_rand48" = "yes" ; then
19228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019229cat >>confdefs.h <<\_ACEOF
19230#define HAVE_RAND48 1
19231_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019232
19233fi
John Criswell0021c312004-02-13 21:57:29 +000019234
19235
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000019236{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19237echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19238if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19240else
19241 cat >conftest.$ac_ext <<_ACEOF
19242/* confdefs.h. */
19243_ACEOF
19244cat confdefs.h >>conftest.$ac_ext
19245cat >>conftest.$ac_ext <<_ACEOF
19246/* end confdefs.h. */
19247$ac_includes_default
19248int
19249main ()
19250{
19251#ifndef strerror_s
19252 char *p = (char *) strerror_s;
19253 return !p;
19254#endif
19255
19256 ;
19257 return 0;
19258}
19259_ACEOF
19260rm -f conftest.$ac_objext
19261if { (ac_try="$ac_compile"
19262case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19265esac
19266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_compile") 2>conftest.er1
19268 ac_status=$?
19269 grep -v '^ *+' conftest.er1 >conftest.err
19270 rm -f conftest.er1
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278esac
19279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288esac
19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_cv_have_decl_strerror_s=yes
19295else
19296 echo "$as_me: failed program was:" >&5
19297sed 's/^/| /' conftest.$ac_ext >&5
19298
19299 ac_cv_have_decl_strerror_s=no
19300fi
19301
19302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19303fi
19304{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19305echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19306if test $ac_cv_have_decl_strerror_s = yes; then
19307
19308cat >>confdefs.h <<_ACEOF
19309#define HAVE_DECL_STRERROR_S 1
19310_ACEOF
19311
19312
19313else
19314 cat >>confdefs.h <<_ACEOF
19315#define HAVE_DECL_STRERROR_S 0
19316_ACEOF
19317
19318
19319fi
19320
19321
19322
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000019323if test "$llvm_cv_os_type" = "MingW" ; then
19324 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19325echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19326if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19328else
19329 ac_check_lib_save_LIBS=$LIBS
19330LIBS="-lgcc $LIBS"
19331cat >conftest.$ac_ext <<_ACEOF
19332/* confdefs.h. */
19333_ACEOF
19334cat confdefs.h >>conftest.$ac_ext
19335cat >>conftest.$ac_ext <<_ACEOF
19336/* end confdefs.h. */
19337
19338/* Override any GCC internal prototype to avoid an error.
19339 Use char because int might match the return type of a GCC
19340 builtin and then its argument prototype would still apply. */
19341#ifdef __cplusplus
19342extern "C"
19343#endif
19344char _alloca ();
19345int
19346main ()
19347{
19348return _alloca ();
19349 ;
19350 return 0;
19351}
19352_ACEOF
19353rm -f conftest.$ac_objext conftest$ac_exeext
19354if { (ac_try="$ac_link"
19355case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19358esac
19359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_link") 2>conftest.er1
19361 ac_status=$?
19362 grep -v '^ *+' conftest.er1 >conftest.err
19363 rm -f conftest.er1
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19368 { (case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19371esac
19372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_try") 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest$ac_exeext'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19381esac
19382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
19387 ac_cv_lib_gcc__alloca=yes
19388else
19389 echo "$as_me: failed program was:" >&5
19390sed 's/^/| /' conftest.$ac_ext >&5
19391
19392 ac_cv_lib_gcc__alloca=no
19393fi
19394
19395rm -f core conftest.err conftest.$ac_objext \
19396 conftest$ac_exeext conftest.$ac_ext
19397LIBS=$ac_check_lib_save_LIBS
19398fi
19399{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19400echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19401if test $ac_cv_lib_gcc__alloca = yes; then
19402
19403cat >>confdefs.h <<\_ACEOF
19404#define HAVE__ALLOCA 1
19405_ACEOF
19406
19407fi
19408
19409 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19410echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19411if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19413else
19414 ac_check_lib_save_LIBS=$LIBS
19415LIBS="-lgcc $LIBS"
19416cat >conftest.$ac_ext <<_ACEOF
19417/* confdefs.h. */
19418_ACEOF
19419cat confdefs.h >>conftest.$ac_ext
19420cat >>conftest.$ac_ext <<_ACEOF
19421/* end confdefs.h. */
19422
19423/* Override any GCC internal prototype to avoid an error.
19424 Use char because int might match the return type of a GCC
19425 builtin and then its argument prototype would still apply. */
19426#ifdef __cplusplus
19427extern "C"
19428#endif
19429char __alloca ();
19430int
19431main ()
19432{
19433return __alloca ();
19434 ;
19435 return 0;
19436}
19437_ACEOF
19438rm -f conftest.$ac_objext conftest$ac_exeext
19439if { (ac_try="$ac_link"
19440case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19443esac
19444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_link") 2>conftest.er1
19446 ac_status=$?
19447 grep -v '^ *+' conftest.er1 >conftest.err
19448 rm -f conftest.er1
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } &&
19452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19453 { (case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19456esac
19457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_try") 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; } &&
19462 { ac_try='test -s conftest$ac_exeext'
19463 { (case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19466esac
19467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_try") 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_cv_lib_gcc___alloca=yes
19473else
19474 echo "$as_me: failed program was:" >&5
19475sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 ac_cv_lib_gcc___alloca=no
19478fi
19479
19480rm -f core conftest.err conftest.$ac_objext \
19481 conftest$ac_exeext conftest.$ac_ext
19482LIBS=$ac_check_lib_save_LIBS
19483fi
19484{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19485echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19486if test $ac_cv_lib_gcc___alloca = yes; then
19487
19488cat >>confdefs.h <<\_ACEOF
19489#define HAVE___ALLOCA 1
19490_ACEOF
19491
19492fi
19493
19494 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19495echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19496if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498else
19499 ac_check_lib_save_LIBS=$LIBS
19500LIBS="-lgcc $LIBS"
19501cat >conftest.$ac_ext <<_ACEOF
19502/* confdefs.h. */
19503_ACEOF
19504cat confdefs.h >>conftest.$ac_ext
19505cat >>conftest.$ac_ext <<_ACEOF
19506/* end confdefs.h. */
19507
19508/* Override any GCC internal prototype to avoid an error.
19509 Use char because int might match the return type of a GCC
19510 builtin and then its argument prototype would still apply. */
19511#ifdef __cplusplus
19512extern "C"
19513#endif
19514char __chkstk ();
19515int
19516main ()
19517{
19518return __chkstk ();
19519 ;
19520 return 0;
19521}
19522_ACEOF
19523rm -f conftest.$ac_objext conftest$ac_exeext
19524if { (ac_try="$ac_link"
19525case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528esac
19529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_link") 2>conftest.er1
19531 ac_status=$?
19532 grep -v '^ *+' conftest.er1 >conftest.err
19533 rm -f conftest.er1
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } &&
19537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19538 { (case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19541esac
19542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; } &&
19547 { ac_try='test -s conftest$ac_exeext'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551esac
19552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 ac_cv_lib_gcc___chkstk=yes
19558else
19559 echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 ac_cv_lib_gcc___chkstk=no
19563fi
19564
19565rm -f core conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19567LIBS=$ac_check_lib_save_LIBS
19568fi
19569{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19570echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19571if test $ac_cv_lib_gcc___chkstk = yes; then
19572
19573cat >>confdefs.h <<\_ACEOF
19574#define HAVE___CHKSTK 1
19575_ACEOF
19576
19577fi
19578
19579 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19580echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19581if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19583else
19584 ac_check_lib_save_LIBS=$LIBS
19585LIBS="-lgcc $LIBS"
19586cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
19592
19593/* Override any GCC internal prototype to avoid an error.
19594 Use char because int might match the return type of a GCC
19595 builtin and then its argument prototype would still apply. */
19596#ifdef __cplusplus
19597extern "C"
19598#endif
19599char ___chkstk ();
19600int
19601main ()
19602{
19603return ___chkstk ();
19604 ;
19605 return 0;
19606}
19607_ACEOF
19608rm -f conftest.$ac_objext conftest$ac_exeext
19609if { (ac_try="$ac_link"
19610case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613esac
19614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_link") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19623 { (case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626esac
19627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_try") 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest$ac_exeext'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636esac
19637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 ac_cv_lib_gcc____chkstk=yes
19643else
19644 echo "$as_me: failed program was:" >&5
19645sed 's/^/| /' conftest.$ac_ext >&5
19646
19647 ac_cv_lib_gcc____chkstk=no
19648fi
19649
19650rm -f core conftest.err conftest.$ac_objext \
19651 conftest$ac_exeext conftest.$ac_ext
19652LIBS=$ac_check_lib_save_LIBS
19653fi
19654{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19655echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19656if test $ac_cv_lib_gcc____chkstk = yes; then
19657
19658cat >>confdefs.h <<\_ACEOF
19659#define HAVE____CHKSTK 1
19660_ACEOF
19661
19662fi
19663
19664
19665 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19666echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19667if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669else
19670 ac_check_lib_save_LIBS=$LIBS
19671LIBS="-lgcc $LIBS"
19672cat >conftest.$ac_ext <<_ACEOF
19673/* confdefs.h. */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h. */
19678
19679/* Override any GCC internal prototype to avoid an error.
19680 Use char because int might match the return type of a GCC
19681 builtin and then its argument prototype would still apply. */
19682#ifdef __cplusplus
19683extern "C"
19684#endif
19685char __ashldi3 ();
19686int
19687main ()
19688{
19689return __ashldi3 ();
19690 ;
19691 return 0;
19692}
19693_ACEOF
19694rm -f conftest.$ac_objext conftest$ac_exeext
19695if { (ac_try="$ac_link"
19696case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699esac
19700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_link") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } &&
19708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19709 { (case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712esac
19713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_try") 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest$ac_exeext'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722esac
19723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 ac_cv_lib_gcc___ashldi3=yes
19729else
19730 echo "$as_me: failed program was:" >&5
19731sed 's/^/| /' conftest.$ac_ext >&5
19732
19733 ac_cv_lib_gcc___ashldi3=no
19734fi
19735
19736rm -f core conftest.err conftest.$ac_objext \
19737 conftest$ac_exeext conftest.$ac_ext
19738LIBS=$ac_check_lib_save_LIBS
19739fi
19740{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19741echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19742if test $ac_cv_lib_gcc___ashldi3 = yes; then
19743
19744cat >>confdefs.h <<\_ACEOF
19745#define HAVE___ASHLDI3 1
19746_ACEOF
19747
19748fi
19749
19750 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19751echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19752if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19754else
19755 ac_check_lib_save_LIBS=$LIBS
19756LIBS="-lgcc $LIBS"
19757cat >conftest.$ac_ext <<_ACEOF
19758/* confdefs.h. */
19759_ACEOF
19760cat confdefs.h >>conftest.$ac_ext
19761cat >>conftest.$ac_ext <<_ACEOF
19762/* end confdefs.h. */
19763
19764/* Override any GCC internal prototype to avoid an error.
19765 Use char because int might match the return type of a GCC
19766 builtin and then its argument prototype would still apply. */
19767#ifdef __cplusplus
19768extern "C"
19769#endif
19770char __ashrdi3 ();
19771int
19772main ()
19773{
19774return __ashrdi3 ();
19775 ;
19776 return 0;
19777}
19778_ACEOF
19779rm -f conftest.$ac_objext conftest$ac_exeext
19780if { (ac_try="$ac_link"
19781case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19784esac
19785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_link") 2>conftest.er1
19787 ac_status=$?
19788 grep -v '^ *+' conftest.er1 >conftest.err
19789 rm -f conftest.er1
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19794 { (case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19797esac
19798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_try") 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } &&
19803 { ac_try='test -s conftest$ac_exeext'
19804 { (case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807esac
19808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_try") 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; }; then
19813 ac_cv_lib_gcc___ashrdi3=yes
19814else
19815 echo "$as_me: failed program was:" >&5
19816sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ac_cv_lib_gcc___ashrdi3=no
19819fi
19820
19821rm -f core conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext conftest.$ac_ext
19823LIBS=$ac_check_lib_save_LIBS
19824fi
19825{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19826echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19827if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19828
19829cat >>confdefs.h <<\_ACEOF
19830#define HAVE___ASHRDI3 1
19831_ACEOF
19832
19833fi
19834
19835 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19836echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19837if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19839else
19840 ac_check_lib_save_LIBS=$LIBS
19841LIBS="-lgcc $LIBS"
19842cat >conftest.$ac_ext <<_ACEOF
19843/* confdefs.h. */
19844_ACEOF
19845cat confdefs.h >>conftest.$ac_ext
19846cat >>conftest.$ac_ext <<_ACEOF
19847/* end confdefs.h. */
19848
19849/* Override any GCC internal prototype to avoid an error.
19850 Use char because int might match the return type of a GCC
19851 builtin and then its argument prototype would still apply. */
19852#ifdef __cplusplus
19853extern "C"
19854#endif
19855char __divdi3 ();
19856int
19857main ()
19858{
19859return __divdi3 ();
19860 ;
19861 return 0;
19862}
19863_ACEOF
19864rm -f conftest.$ac_objext conftest$ac_exeext
19865if { (ac_try="$ac_link"
19866case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19869esac
19870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_link") 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19879 { (case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19882esac
19883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_try") 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; } &&
19888 { ac_try='test -s conftest$ac_exeext'
19889 { (case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19892esac
19893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_try") 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_lib_gcc___divdi3=yes
19899else
19900 echo "$as_me: failed program was:" >&5
19901sed 's/^/| /' conftest.$ac_ext >&5
19902
19903 ac_cv_lib_gcc___divdi3=no
19904fi
19905
19906rm -f core conftest.err conftest.$ac_objext \
19907 conftest$ac_exeext conftest.$ac_ext
19908LIBS=$ac_check_lib_save_LIBS
19909fi
19910{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19911echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19912if test $ac_cv_lib_gcc___divdi3 = yes; then
19913
19914cat >>confdefs.h <<\_ACEOF
19915#define HAVE___DIVDI3 1
19916_ACEOF
19917
19918fi
19919
19920 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19921echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19922if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19924else
19925 ac_check_lib_save_LIBS=$LIBS
19926LIBS="-lgcc $LIBS"
19927cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
19933
19934/* Override any GCC internal prototype to avoid an error.
19935 Use char because int might match the return type of a GCC
19936 builtin and then its argument prototype would still apply. */
19937#ifdef __cplusplus
19938extern "C"
19939#endif
19940char __fixdfdi ();
19941int
19942main ()
19943{
19944return __fixdfdi ();
19945 ;
19946 return 0;
19947}
19948_ACEOF
19949rm -f conftest.$ac_objext conftest$ac_exeext
19950if { (ac_try="$ac_link"
19951case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954esac
19955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } &&
19963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19964 { (case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19967esac
19968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_try") 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest$ac_exeext'
19974 { (case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977esac
19978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 ac_cv_lib_gcc___fixdfdi=yes
19984else
19985 echo "$as_me: failed program was:" >&5
19986sed 's/^/| /' conftest.$ac_ext >&5
19987
19988 ac_cv_lib_gcc___fixdfdi=no
19989fi
19990
19991rm -f core conftest.err conftest.$ac_objext \
19992 conftest$ac_exeext conftest.$ac_ext
19993LIBS=$ac_check_lib_save_LIBS
19994fi
19995{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19996echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19997if test $ac_cv_lib_gcc___fixdfdi = yes; then
19998
19999cat >>confdefs.h <<\_ACEOF
20000#define HAVE___FIXDFDI 1
20001_ACEOF
20002
20003fi
20004
20005 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20006echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20007if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20009else
20010 ac_check_lib_save_LIBS=$LIBS
20011LIBS="-lgcc $LIBS"
20012cat >conftest.$ac_ext <<_ACEOF
20013/* confdefs.h. */
20014_ACEOF
20015cat confdefs.h >>conftest.$ac_ext
20016cat >>conftest.$ac_ext <<_ACEOF
20017/* end confdefs.h. */
20018
20019/* Override any GCC internal prototype to avoid an error.
20020 Use char because int might match the return type of a GCC
20021 builtin and then its argument prototype would still apply. */
20022#ifdef __cplusplus
20023extern "C"
20024#endif
20025char __fixsfdi ();
20026int
20027main ()
20028{
20029return __fixsfdi ();
20030 ;
20031 return 0;
20032}
20033_ACEOF
20034rm -f conftest.$ac_objext conftest$ac_exeext
20035if { (ac_try="$ac_link"
20036case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20039esac
20040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_link") 2>conftest.er1
20042 ac_status=$?
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20049 { (case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20052esac
20053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_try") 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; } &&
20058 { ac_try='test -s conftest$ac_exeext'
20059 { (case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20062esac
20063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_try") 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; }; then
20068 ac_cv_lib_gcc___fixsfdi=yes
20069else
20070 echo "$as_me: failed program was:" >&5
20071sed 's/^/| /' conftest.$ac_ext >&5
20072
20073 ac_cv_lib_gcc___fixsfdi=no
20074fi
20075
20076rm -f core conftest.err conftest.$ac_objext \
20077 conftest$ac_exeext conftest.$ac_ext
20078LIBS=$ac_check_lib_save_LIBS
20079fi
20080{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20081echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20082if test $ac_cv_lib_gcc___fixsfdi = yes; then
20083
20084cat >>confdefs.h <<\_ACEOF
20085#define HAVE___FIXSFDI 1
20086_ACEOF
20087
20088fi
20089
20090 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20091echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20092if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094else
20095 ac_check_lib_save_LIBS=$LIBS
20096LIBS="-lgcc $LIBS"
20097cat >conftest.$ac_ext <<_ACEOF
20098/* confdefs.h. */
20099_ACEOF
20100cat confdefs.h >>conftest.$ac_ext
20101cat >>conftest.$ac_ext <<_ACEOF
20102/* end confdefs.h. */
20103
20104/* Override any GCC internal prototype to avoid an error.
20105 Use char because int might match the return type of a GCC
20106 builtin and then its argument prototype would still apply. */
20107#ifdef __cplusplus
20108extern "C"
20109#endif
20110char __floatdidf ();
20111int
20112main ()
20113{
20114return __floatdidf ();
20115 ;
20116 return 0;
20117}
20118_ACEOF
20119rm -f conftest.$ac_objext conftest$ac_exeext
20120if { (ac_try="$ac_link"
20121case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20124esac
20125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_link") 2>conftest.er1
20127 ac_status=$?
20128 grep -v '^ *+' conftest.er1 >conftest.err
20129 rm -f conftest.er1
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } &&
20133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20134 { (case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20137esac
20138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_try") 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; } &&
20143 { ac_try='test -s conftest$ac_exeext'
20144 { (case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20147esac
20148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_try") 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
20153 ac_cv_lib_gcc___floatdidf=yes
20154else
20155 echo "$as_me: failed program was:" >&5
20156sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 ac_cv_lib_gcc___floatdidf=no
20159fi
20160
20161rm -f core conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20163LIBS=$ac_check_lib_save_LIBS
20164fi
20165{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20166echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20167if test $ac_cv_lib_gcc___floatdidf = yes; then
20168
20169cat >>confdefs.h <<\_ACEOF
20170#define HAVE___FLOATDIDF 1
20171_ACEOF
20172
20173fi
20174
20175 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20176echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20177if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179else
20180 ac_check_lib_save_LIBS=$LIBS
20181LIBS="-lgcc $LIBS"
20182cat >conftest.$ac_ext <<_ACEOF
20183/* confdefs.h. */
20184_ACEOF
20185cat confdefs.h >>conftest.$ac_ext
20186cat >>conftest.$ac_ext <<_ACEOF
20187/* end confdefs.h. */
20188
20189/* Override any GCC internal prototype to avoid an error.
20190 Use char because int might match the return type of a GCC
20191 builtin and then its argument prototype would still apply. */
20192#ifdef __cplusplus
20193extern "C"
20194#endif
20195char __lshrdi3 ();
20196int
20197main ()
20198{
20199return __lshrdi3 ();
20200 ;
20201 return 0;
20202}
20203_ACEOF
20204rm -f conftest.$ac_objext conftest$ac_exeext
20205if { (ac_try="$ac_link"
20206case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20209esac
20210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_link") 2>conftest.er1
20212 ac_status=$?
20213 grep -v '^ *+' conftest.er1 >conftest.err
20214 rm -f conftest.er1
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } &&
20218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20219 { (case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20222esac
20223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_try") 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; } &&
20228 { ac_try='test -s conftest$ac_exeext'
20229 { (case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20232esac
20233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_try") 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_cv_lib_gcc___lshrdi3=yes
20239else
20240 echo "$as_me: failed program was:" >&5
20241sed 's/^/| /' conftest.$ac_ext >&5
20242
20243 ac_cv_lib_gcc___lshrdi3=no
20244fi
20245
20246rm -f core conftest.err conftest.$ac_objext \
20247 conftest$ac_exeext conftest.$ac_ext
20248LIBS=$ac_check_lib_save_LIBS
20249fi
20250{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20251echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20252if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20253
20254cat >>confdefs.h <<\_ACEOF
20255#define HAVE___LSHRDI3 1
20256_ACEOF
20257
20258fi
20259
20260 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20261echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20262if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20264else
20265 ac_check_lib_save_LIBS=$LIBS
20266LIBS="-lgcc $LIBS"
20267cat >conftest.$ac_ext <<_ACEOF
20268/* confdefs.h. */
20269_ACEOF
20270cat confdefs.h >>conftest.$ac_ext
20271cat >>conftest.$ac_ext <<_ACEOF
20272/* end confdefs.h. */
20273
20274/* Override any GCC internal prototype to avoid an error.
20275 Use char because int might match the return type of a GCC
20276 builtin and then its argument prototype would still apply. */
20277#ifdef __cplusplus
20278extern "C"
20279#endif
20280char __moddi3 ();
20281int
20282main ()
20283{
20284return __moddi3 ();
20285 ;
20286 return 0;
20287}
20288_ACEOF
20289rm -f conftest.$ac_objext conftest$ac_exeext
20290if { (ac_try="$ac_link"
20291case "(($ac_try" in
20292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293 *) ac_try_echo=$ac_try;;
20294esac
20295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296 (eval "$ac_link") 2>conftest.er1
20297 ac_status=$?
20298 grep -v '^ *+' conftest.er1 >conftest.err
20299 rm -f conftest.er1
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
20303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20304 { (case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20307esac
20308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309 (eval "$ac_try") 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest$ac_exeext'
20314 { (case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20317esac
20318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_try") 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 ac_cv_lib_gcc___moddi3=yes
20324else
20325 echo "$as_me: failed program was:" >&5
20326sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ac_cv_lib_gcc___moddi3=no
20329fi
20330
20331rm -f core conftest.err conftest.$ac_objext \
20332 conftest$ac_exeext conftest.$ac_ext
20333LIBS=$ac_check_lib_save_LIBS
20334fi
20335{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20336echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20337if test $ac_cv_lib_gcc___moddi3 = yes; then
20338
20339cat >>confdefs.h <<\_ACEOF
20340#define HAVE___MODDI3 1
20341_ACEOF
20342
20343fi
20344
20345 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20346echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20347if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20349else
20350 ac_check_lib_save_LIBS=$LIBS
20351LIBS="-lgcc $LIBS"
20352cat >conftest.$ac_ext <<_ACEOF
20353/* confdefs.h. */
20354_ACEOF
20355cat confdefs.h >>conftest.$ac_ext
20356cat >>conftest.$ac_ext <<_ACEOF
20357/* end confdefs.h. */
20358
20359/* Override any GCC internal prototype to avoid an error.
20360 Use char because int might match the return type of a GCC
20361 builtin and then its argument prototype would still apply. */
20362#ifdef __cplusplus
20363extern "C"
20364#endif
20365char __udivdi3 ();
20366int
20367main ()
20368{
20369return __udivdi3 ();
20370 ;
20371 return 0;
20372}
20373_ACEOF
20374rm -f conftest.$ac_objext conftest$ac_exeext
20375if { (ac_try="$ac_link"
20376case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379esac
20380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_link") 2>conftest.er1
20382 ac_status=$?
20383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20389 { (case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392esac
20393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_try") 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; } &&
20398 { ac_try='test -s conftest$ac_exeext'
20399 { (case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402esac
20403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_try") 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 ac_cv_lib_gcc___udivdi3=yes
20409else
20410 echo "$as_me: failed program was:" >&5
20411sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 ac_cv_lib_gcc___udivdi3=no
20414fi
20415
20416rm -f core conftest.err conftest.$ac_objext \
20417 conftest$ac_exeext conftest.$ac_ext
20418LIBS=$ac_check_lib_save_LIBS
20419fi
20420{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20421echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20422if test $ac_cv_lib_gcc___udivdi3 = yes; then
20423
20424cat >>confdefs.h <<\_ACEOF
20425#define HAVE___UDIVDI3 1
20426_ACEOF
20427
20428fi
20429
20430 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20431echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20432if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20433 echo $ECHO_N "(cached) $ECHO_C" >&6
20434else
20435 ac_check_lib_save_LIBS=$LIBS
20436LIBS="-lgcc $LIBS"
20437cat >conftest.$ac_ext <<_ACEOF
20438/* confdefs.h. */
20439_ACEOF
20440cat confdefs.h >>conftest.$ac_ext
20441cat >>conftest.$ac_ext <<_ACEOF
20442/* end confdefs.h. */
20443
20444/* Override any GCC internal prototype to avoid an error.
20445 Use char because int might match the return type of a GCC
20446 builtin and then its argument prototype would still apply. */
20447#ifdef __cplusplus
20448extern "C"
20449#endif
20450char __umoddi3 ();
20451int
20452main ()
20453{
20454return __umoddi3 ();
20455 ;
20456 return 0;
20457}
20458_ACEOF
20459rm -f conftest.$ac_objext conftest$ac_exeext
20460if { (ac_try="$ac_link"
20461case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20464esac
20465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_link") 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474 { (case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20477esac
20478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_try") 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest$ac_exeext'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20487esac
20488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; }; then
20493 ac_cv_lib_gcc___umoddi3=yes
20494else
20495 echo "$as_me: failed program was:" >&5
20496sed 's/^/| /' conftest.$ac_ext >&5
20497
20498 ac_cv_lib_gcc___umoddi3=no
20499fi
20500
20501rm -f core conftest.err conftest.$ac_objext \
20502 conftest$ac_exeext conftest.$ac_ext
20503LIBS=$ac_check_lib_save_LIBS
20504fi
20505{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20506echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20507if test $ac_cv_lib_gcc___umoddi3 = yes; then
20508
20509cat >>confdefs.h <<\_ACEOF
20510#define HAVE___UMODDI3 1
20511_ACEOF
20512
20513fi
20514
20515
20516 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20517echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20518if test "${ac_cv_lib_gcc___main+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20520else
20521 ac_check_lib_save_LIBS=$LIBS
20522LIBS="-lgcc $LIBS"
20523cat >conftest.$ac_ext <<_ACEOF
20524/* confdefs.h. */
20525_ACEOF
20526cat confdefs.h >>conftest.$ac_ext
20527cat >>conftest.$ac_ext <<_ACEOF
20528/* end confdefs.h. */
20529
20530/* Override any GCC internal prototype to avoid an error.
20531 Use char because int might match the return type of a GCC
20532 builtin and then its argument prototype would still apply. */
20533#ifdef __cplusplus
20534extern "C"
20535#endif
20536char __main ();
20537int
20538main ()
20539{
20540return __main ();
20541 ;
20542 return 0;
20543}
20544_ACEOF
20545rm -f conftest.$ac_objext conftest$ac_exeext
20546if { (ac_try="$ac_link"
20547case "(($ac_try" in
20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20550esac
20551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_link") 2>conftest.er1
20553 ac_status=$?
20554 grep -v '^ *+' conftest.er1 >conftest.err
20555 rm -f conftest.er1
20556 cat conftest.err >&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } &&
20559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20560 { (case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20563esac
20564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_try") 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; } &&
20569 { ac_try='test -s conftest$ac_exeext'
20570 { (case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20573esac
20574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_try") 2>&5
20576 ac_status=$?
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; }; then
20579 ac_cv_lib_gcc___main=yes
20580else
20581 echo "$as_me: failed program was:" >&5
20582sed 's/^/| /' conftest.$ac_ext >&5
20583
20584 ac_cv_lib_gcc___main=no
20585fi
20586
20587rm -f core conftest.err conftest.$ac_objext \
20588 conftest$ac_exeext conftest.$ac_ext
20589LIBS=$ac_check_lib_save_LIBS
20590fi
20591{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20592echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20593if test $ac_cv_lib_gcc___main = yes; then
20594
20595cat >>confdefs.h <<\_ACEOF
20596#define HAVE___MAIN 1
20597_ACEOF
20598
20599fi
20600
20601 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20602echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20603if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20605else
20606 ac_check_lib_save_LIBS=$LIBS
20607LIBS="-lgcc $LIBS"
20608cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
20614
20615/* Override any GCC internal prototype to avoid an error.
20616 Use char because int might match the return type of a GCC
20617 builtin and then its argument prototype would still apply. */
20618#ifdef __cplusplus
20619extern "C"
20620#endif
20621char __cmpdi2 ();
20622int
20623main ()
20624{
20625return __cmpdi2 ();
20626 ;
20627 return 0;
20628}
20629_ACEOF
20630rm -f conftest.$ac_objext conftest$ac_exeext
20631if { (ac_try="$ac_link"
20632case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20635esac
20636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_link") 2>conftest.er1
20638 ac_status=$?
20639 grep -v '^ *+' conftest.er1 >conftest.err
20640 rm -f conftest.er1
20641 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } &&
20644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20645 { (case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648esac
20649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_try") 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; } &&
20654 { ac_try='test -s conftest$ac_exeext'
20655 { (case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20658esac
20659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_try") 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; }; then
20664 ac_cv_lib_gcc___cmpdi2=yes
20665else
20666 echo "$as_me: failed program was:" >&5
20667sed 's/^/| /' conftest.$ac_ext >&5
20668
20669 ac_cv_lib_gcc___cmpdi2=no
20670fi
20671
20672rm -f core conftest.err conftest.$ac_objext \
20673 conftest$ac_exeext conftest.$ac_ext
20674LIBS=$ac_check_lib_save_LIBS
20675fi
20676{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20677echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20678if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20679
20680cat >>confdefs.h <<\_ACEOF
20681#define HAVE___CMPDI2 1
20682_ACEOF
20683
20684fi
20685
20686fi
20687
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000020688if test "$llvm_cv_os_type" = "MingW" ; then
20689 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20690echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20691 cat >conftest.$ac_ext <<_ACEOF
20692#include <windows.h>
20693#include <imagehlp.h>
20694extern void foo(PENUMLOADED_MODULES_CALLBACK);
20695extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20696_ACEOF
20697rm -f conftest.$ac_objext
20698if { (ac_try="$ac_compile"
20699case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20702esac
20703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_compile") 2>conftest.er1
20705 ac_status=$?
20706 grep -v '^ *+' conftest.er1 >conftest.err
20707 rm -f conftest.er1
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20712 { (case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20715esac
20716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717 (eval "$ac_try") 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; } &&
20721 { ac_try='test -s conftest.$ac_objext'
20722 { (case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20725esac
20726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_try") 2>&5
20728 ac_status=$?
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20731
20732 { echo "$as_me:$LINENO: result: yes" >&5
20733echo "${ECHO_T}yes" >&6; }
20734 llvm_cv_win32_elmcb_pcstr="PCSTR"
20735
20736else
20737 echo "$as_me: failed program was:" >&5
20738sed 's/^/| /' conftest.$ac_ext >&5
20739
20740
20741 { echo "$as_me:$LINENO: result: no" >&5
20742echo "${ECHO_T}no" >&6; }
20743 llvm_cv_win32_elmcb_pcstr="PSTR"
20744
20745fi
20746
20747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748
20749cat >>confdefs.h <<_ACEOF
20750#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20751_ACEOF
20752
20753fi
20754
Torok Edwin871384f2010-01-26 08:50:50 +000020755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020756{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20757echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20758if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20759 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020760else
Reid Spencera773bd52006-08-04 18:18:08 +000020761 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000020762ac_cpp='$CXXCPP $CPPFLAGS'
20763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020767 cat >conftest.$ac_ext <<_ACEOF
20768/* confdefs.h. */
20769_ACEOF
20770cat confdefs.h >>conftest.$ac_ext
20771cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020772/* end confdefs.h. */
20773#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020774int
20775main ()
20776{
20777float f; isnan(f);
20778 ;
20779 return 0;
20780}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020781_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020782rm -f conftest.$ac_objext
20783if { (ac_try="$ac_compile"
20784case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787esac
20788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_compile") 2>conftest.er1
20790 ac_status=$?
20791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } &&
20796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20797 { (case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800esac
20801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_try") 2>&5
20803 ac_status=$?
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; } &&
20806 { ac_try='test -s conftest.$ac_objext'
20807 { (case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810esac
20811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_try") 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020816 ac_cv_func_isnan_in_math_h=yes
20817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020818 echo "$as_me: failed program was:" >&5
20819sed 's/^/| /' conftest.$ac_ext >&5
20820
20821 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020823
Reid Spencera773bd52006-08-04 18:18:08 +000020824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020825 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020826ac_cpp='$CPP $CPPFLAGS'
20827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829ac_compiler_gnu=$ac_cv_c_compiler_gnu
20830
20831fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020832{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20833echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020834
20835
20836if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020838cat >>confdefs.h <<\_ACEOF
20839#define HAVE_ISNAN_IN_MATH_H 1
20840_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020841
Reid Spencerabec8f92004-10-27 23:03:44 +000020842fi
20843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020844{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20845echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20846if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020848else
Reid Spencera773bd52006-08-04 18:18:08 +000020849 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020850ac_cpp='$CXXCPP $CPPFLAGS'
20851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020855 cat >conftest.$ac_ext <<_ACEOF
20856/* confdefs.h. */
20857_ACEOF
20858cat confdefs.h >>conftest.$ac_ext
20859cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020860/* end confdefs.h. */
20861#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020862int
20863main ()
20864{
20865float f; isnan(f);
20866 ;
20867 return 0;
20868}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020869_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020870rm -f conftest.$ac_objext
20871if { (ac_try="$ac_compile"
20872case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875esac
20876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_compile") 2>conftest.er1
20878 ac_status=$?
20879 grep -v '^ *+' conftest.er1 >conftest.err
20880 rm -f conftest.er1
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } &&
20884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20885 { (case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888esac
20889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_try") 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898esac
20899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_try") 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020904 ac_cv_func_isnan_in_cmath=yes
20905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020906 echo "$as_me: failed program was:" >&5
20907sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020911
Reid Spencera773bd52006-08-04 18:18:08 +000020912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020913 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020914ac_cpp='$CPP $CPPFLAGS'
20915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917ac_compiler_gnu=$ac_cv_c_compiler_gnu
20918
20919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020920{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20921echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020922
20923if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020925cat >>confdefs.h <<\_ACEOF
20926#define HAVE_ISNAN_IN_CMATH 1
20927_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020928
Reid Spencerabec8f92004-10-27 23:03:44 +000020929fi
20930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020931{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20932echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20933if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020935else
Reid Spencera773bd52006-08-04 18:18:08 +000020936 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020937ac_cpp='$CXXCPP $CPPFLAGS'
20938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020942 cat >conftest.$ac_ext <<_ACEOF
20943/* confdefs.h. */
20944_ACEOF
20945cat confdefs.h >>conftest.$ac_ext
20946cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020947/* end confdefs.h. */
20948#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020949int
20950main ()
20951{
20952float f; std::isnan(f);
20953 ;
20954 return 0;
20955}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020956_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020957rm -f conftest.$ac_objext
20958if { (ac_try="$ac_compile"
20959case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962esac
20963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } &&
20971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20972 { (case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20975esac
20976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_try") 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; } &&
20981 { ac_try='test -s conftest.$ac_objext'
20982 { (case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20985esac
20986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_try") 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020991 ac_cv_func_std_isnan_in_cmath=yes
20992else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020993 echo "$as_me: failed program was:" >&5
20994sed 's/^/| /' conftest.$ac_ext >&5
20995
20996 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020997fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020998
Reid Spencera773bd52006-08-04 18:18:08 +000020999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021000 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021001ac_cpp='$CPP $CPPFLAGS'
21002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21004ac_compiler_gnu=$ac_cv_c_compiler_gnu
21005
21006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021007{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21008echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021009
21010if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021012cat >>confdefs.h <<\_ACEOF
21013#define HAVE_STD_ISNAN_IN_CMATH 1
21014_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021015
Reid Spencerabec8f92004-10-27 23:03:44 +000021016fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021017
21018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021019{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21020echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21021if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021023else
Reid Spencera773bd52006-08-04 18:18:08 +000021024 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021025ac_cpp='$CXXCPP $CPPFLAGS'
21026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021030 cat >conftest.$ac_ext <<_ACEOF
21031/* confdefs.h. */
21032_ACEOF
21033cat confdefs.h >>conftest.$ac_ext
21034cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021035/* end confdefs.h. */
21036#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021037int
21038main ()
21039{
21040float f; isinf(f);
21041 ;
21042 return 0;
21043}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021044_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021045rm -f conftest.$ac_objext
21046if { (ac_try="$ac_compile"
21047case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21050esac
21051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_compile") 2>conftest.er1
21053 ac_status=$?
21054 grep -v '^ *+' conftest.er1 >conftest.err
21055 rm -f conftest.er1
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } &&
21059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21060 { (case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21063esac
21064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_try") 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; } &&
21069 { ac_try='test -s conftest.$ac_objext'
21070 { (case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21073esac
21074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075 (eval "$ac_try") 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021079 ac_cv_func_isinf_in_math_h=yes
21080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021081 echo "$as_me: failed program was:" >&5
21082sed 's/^/| /' conftest.$ac_ext >&5
21083
21084 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021086
Reid Spencera773bd52006-08-04 18:18:08 +000021087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021088 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021089ac_cpp='$CPP $CPPFLAGS'
21090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21092ac_compiler_gnu=$ac_cv_c_compiler_gnu
21093
21094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021095{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21096echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021097
21098if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021100cat >>confdefs.h <<\_ACEOF
21101#define HAVE_ISINF_IN_MATH_H 1
21102_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021103
Reid Spencerabec8f92004-10-27 23:03:44 +000021104fi
21105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021106{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21107echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21108if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021110else
Reid Spencera773bd52006-08-04 18:18:08 +000021111 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021112ac_cpp='$CXXCPP $CPPFLAGS'
21113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021117 cat >conftest.$ac_ext <<_ACEOF
21118/* confdefs.h. */
21119_ACEOF
21120cat confdefs.h >>conftest.$ac_ext
21121cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021122/* end confdefs.h. */
21123#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021124int
21125main ()
21126{
21127float f; isinf(f);
21128 ;
21129 return 0;
21130}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021131_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021132rm -f conftest.$ac_objext
21133if { (ac_try="$ac_compile"
21134case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21137esac
21138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_compile") 2>conftest.er1
21140 ac_status=$?
21141 grep -v '^ *+' conftest.er1 >conftest.err
21142 rm -f conftest.er1
21143 cat conftest.err >&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } &&
21146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21147 { (case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21150esac
21151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_try") 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; } &&
21156 { ac_try='test -s conftest.$ac_objext'
21157 { (case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21160esac
21161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_try") 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021166 ac_cv_func_isinf_in_cmath=yes
21167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021168 echo "$as_me: failed program was:" >&5
21169sed 's/^/| /' conftest.$ac_ext >&5
21170
21171 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021173
Reid Spencera773bd52006-08-04 18:18:08 +000021174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021175 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021176ac_cpp='$CPP $CPPFLAGS'
21177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179ac_compiler_gnu=$ac_cv_c_compiler_gnu
21180
21181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021182{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21183echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021184
21185if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021187cat >>confdefs.h <<\_ACEOF
21188#define HAVE_ISINF_IN_CMATH 1
21189_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021190
Reid Spencerabec8f92004-10-27 23:03:44 +000021191fi
21192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021193{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21194echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21195if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021197else
Reid Spencera773bd52006-08-04 18:18:08 +000021198 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021199ac_cpp='$CXXCPP $CPPFLAGS'
21200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021204 cat >conftest.$ac_ext <<_ACEOF
21205/* confdefs.h. */
21206_ACEOF
21207cat confdefs.h >>conftest.$ac_ext
21208cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021209/* end confdefs.h. */
21210#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021211int
21212main ()
21213{
21214float f; std::isinf(f)}
21215 ;
21216 return 0;
21217}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021218_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021219rm -f conftest.$ac_objext
21220if { (ac_try="$ac_compile"
21221case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21224esac
21225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_compile") 2>conftest.er1
21227 ac_status=$?
21228 grep -v '^ *+' conftest.er1 >conftest.err
21229 rm -f conftest.er1
21230 cat conftest.err >&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
21233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21234 { (case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237esac
21238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_try") 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest.$ac_objext'
21244 { (case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21247esac
21248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_try") 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021253 ac_cv_func_std_isinf_in_cmath=yes
21254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021255 echo "$as_me: failed program was:" >&5
21256sed 's/^/| /' conftest.$ac_ext >&5
21257
21258 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021260
Reid Spencera773bd52006-08-04 18:18:08 +000021261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021262 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021263ac_cpp='$CPP $CPPFLAGS'
21264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266ac_compiler_gnu=$ac_cv_c_compiler_gnu
21267
21268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021269{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21270echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021271
21272if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021274cat >>confdefs.h <<\_ACEOF
21275#define HAVE_STD_ISINF_IN_CMATH 1
21276_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021277
Reid Spencerabec8f92004-10-27 23:03:44 +000021278fi
21279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21281echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21282if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000021284else
Reid Spencera773bd52006-08-04 18:18:08 +000021285 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000021286ac_cpp='$CXXCPP $CPPFLAGS'
21287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021291 cat >conftest.$ac_ext <<_ACEOF
21292/* confdefs.h. */
21293_ACEOF
21294cat confdefs.h >>conftest.$ac_ext
21295cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021296/* end confdefs.h. */
21297#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021298int
21299main ()
21300{
21301float f; finite(f);
21302 ;
21303 return 0;
21304}
Brian Gaeked59a6472004-07-21 03:33:58 +000021305_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306rm -f conftest.$ac_objext
21307if { (ac_try="$ac_compile"
21308case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21311esac
21312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313 (eval "$ac_compile") 2>conftest.er1
21314 ac_status=$?
21315 grep -v '^ *+' conftest.er1 >conftest.err
21316 rm -f conftest.er1
21317 cat conftest.err >&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } &&
21320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21321 { (case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21324esac
21325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326 (eval "$ac_try") 2>&5
21327 ac_status=$?
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); }; } &&
21330 { ac_try='test -s conftest.$ac_objext'
21331 { (case "(($ac_try" in
21332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333 *) ac_try_echo=$ac_try;;
21334esac
21335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336 (eval "$ac_try") 2>&5
21337 ac_status=$?
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021340 ac_cv_func_finite_in_ieeefp_h=yes
21341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021342 echo "$as_me: failed program was:" >&5
21343sed 's/^/| /' conftest.$ac_ext >&5
21344
21345 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000021346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021347
Reid Spencera773bd52006-08-04 18:18:08 +000021348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021349 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000021350ac_cpp='$CPP $CPPFLAGS'
21351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21353ac_compiler_gnu=$ac_cv_c_compiler_gnu
21354
21355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21357echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021358
Brian Gaeke6802b552004-10-28 05:06:45 +000021359if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021361cat >>confdefs.h <<\_ACEOF
21362#define HAVE_FINITE_IN_IEEEFP_H 1
21363_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021364
Reid Spencerabec8f92004-10-27 23:03:44 +000021365fi
21366
21367
21368
Reid Spencer30fe5262007-01-20 07:48:49 +000021369if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000021370
21371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021372for ac_header in stdlib.h unistd.h
21373do
21374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380fi
21381ac_res=`eval echo '${'$as_ac_Header'}'`
21382 { echo "$as_me:$LINENO: result: $ac_res" >&5
21383echo "${ECHO_T}$ac_res" >&6; }
21384else
21385 # Is the header compilable?
21386{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21388cat >conftest.$ac_ext <<_ACEOF
21389/* confdefs.h. */
21390_ACEOF
21391cat confdefs.h >>conftest.$ac_ext
21392cat >>conftest.$ac_ext <<_ACEOF
21393/* end confdefs.h. */
21394$ac_includes_default
21395#include <$ac_header>
21396_ACEOF
21397rm -f conftest.$ac_objext
21398if { (ac_try="$ac_compile"
21399case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21402esac
21403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_compile") 2>conftest.er1
21405 ac_status=$?
21406 grep -v '^ *+' conftest.er1 >conftest.err
21407 rm -f conftest.er1
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } &&
21411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21412 { (case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21415esac
21416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_try") 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; } &&
21421 { ac_try='test -s conftest.$ac_objext'
21422 { (case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21425esac
21426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_try") 2>&5
21428 ac_status=$?
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; }; then
21431 ac_header_compiler=yes
21432else
21433 echo "$as_me: failed program was:" >&5
21434sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021436 ac_header_compiler=no
21437fi
21438
21439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21441echo "${ECHO_T}$ac_header_compiler" >&6; }
21442
21443# Is the header present?
21444{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21446cat >conftest.$ac_ext <<_ACEOF
21447/* confdefs.h. */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
21451/* end confdefs.h. */
21452#include <$ac_header>
21453_ACEOF
21454if { (ac_try="$ac_cpp conftest.$ac_ext"
21455case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21458esac
21459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21461 ac_status=$?
21462 grep -v '^ *+' conftest.er1 >conftest.err
21463 rm -f conftest.er1
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } >/dev/null; then
21467 if test -s conftest.err; then
21468 ac_cpp_err=$ac_c_preproc_warn_flag
21469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21470 else
21471 ac_cpp_err=
21472 fi
21473else
21474 ac_cpp_err=yes
21475fi
21476if test -z "$ac_cpp_err"; then
21477 ac_header_preproc=yes
21478else
21479 echo "$as_me: failed program was:" >&5
21480sed 's/^/| /' conftest.$ac_ext >&5
21481
21482 ac_header_preproc=no
21483fi
21484
21485rm -f conftest.err conftest.$ac_ext
21486{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21487echo "${ECHO_T}$ac_header_preproc" >&6; }
21488
21489# So? What about this header?
21490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21491 yes:no: )
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21496 ac_header_preproc=yes
21497 ;;
21498 no:yes:* )
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21511 ( cat <<\_ASBOX
21512## ----------------------------------- ##
21513## Report this to llvmbugs@cs.uiuc.edu ##
21514## ----------------------------------- ##
21515_ASBOX
21516 ) | sed "s/^/$as_me: WARNING: /" >&2
21517 ;;
21518esac
21519{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21523else
21524 eval "$as_ac_Header=\$ac_header_preproc"
21525fi
21526ac_res=`eval echo '${'$as_ac_Header'}'`
21527 { echo "$as_me:$LINENO: result: $ac_res" >&5
21528echo "${ECHO_T}$ac_res" >&6; }
21529
21530fi
21531if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021532 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021534_ACEOF
21535
21536fi
21537
21538done
21539
21540
21541for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542do
21543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21544{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21546if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21548else
21549 cat >conftest.$ac_ext <<_ACEOF
21550/* confdefs.h. */
21551_ACEOF
21552cat confdefs.h >>conftest.$ac_ext
21553cat >>conftest.$ac_ext <<_ACEOF
21554/* end confdefs.h. */
21555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21557#define $ac_func innocuous_$ac_func
21558
21559/* System header to define __stub macros and hopefully few prototypes,
21560 which can conflict with char $ac_func (); below.
21561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21562 <limits.h> exists even on freestanding compilers. */
21563
21564#ifdef __STDC__
21565# include <limits.h>
21566#else
21567# include <assert.h>
21568#endif
21569
21570#undef $ac_func
21571
21572/* Override any GCC internal prototype to avoid an error.
21573 Use char because int might match the return type of a GCC
21574 builtin and then its argument prototype would still apply. */
21575#ifdef __cplusplus
21576extern "C"
21577#endif
21578char $ac_func ();
21579/* The GNU C library defines this for functions which it implements
21580 to always fail with ENOSYS. Some functions are actually named
21581 something starting with __ and the normal name is an alias. */
21582#if defined __stub_$ac_func || defined __stub___$ac_func
21583choke me
21584#endif
21585
21586int
21587main ()
21588{
21589return $ac_func ();
21590 ;
21591 return 0;
21592}
21593_ACEOF
21594rm -f conftest.$ac_objext conftest$ac_exeext
21595if { (ac_try="$ac_link"
21596case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21599esac
21600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601 (eval "$ac_link") 2>conftest.er1
21602 ac_status=$?
21603 grep -v '^ *+' conftest.er1 >conftest.err
21604 rm -f conftest.er1
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
21608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21609 { (case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21612esac
21613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_try") 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; } &&
21618 { ac_try='test -s conftest$ac_exeext'
21619 { (case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21622esac
21623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_try") 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 eval "$as_ac_var=yes"
21629else
21630 echo "$as_me: failed program was:" >&5
21631sed 's/^/| /' conftest.$ac_ext >&5
21632
21633 eval "$as_ac_var=no"
21634fi
21635
21636rm -f core conftest.err conftest.$ac_objext \
21637 conftest$ac_exeext conftest.$ac_ext
21638fi
21639ac_res=`eval echo '${'$as_ac_var'}'`
21640 { echo "$as_me:$LINENO: result: $ac_res" >&5
21641echo "${ECHO_T}$ac_res" >&6; }
21642if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021643 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021645_ACEOF
21646
21647fi
21648done
21649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650{ echo "$as_me:$LINENO: checking for working mmap" >&5
21651echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21652if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021655 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021656 ac_cv_func_mmap_fixed_mapped=no
21657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021658 cat >conftest.$ac_ext <<_ACEOF
21659/* confdefs.h. */
21660_ACEOF
21661cat confdefs.h >>conftest.$ac_ext
21662cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021663/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021664$ac_includes_default
21665/* malloc might have been renamed as rpl_malloc. */
21666#undef malloc
21667
21668/* Thanks to Mike Haertel and Jim Avera for this test.
21669 Here is a matrix of mmap possibilities:
21670 mmap private not fixed
21671 mmap private fixed at somewhere currently unmapped
21672 mmap private fixed at somewhere already mapped
21673 mmap shared not fixed
21674 mmap shared fixed at somewhere currently unmapped
21675 mmap shared fixed at somewhere already mapped
21676 For private mappings, we should verify that changes cannot be read()
21677 back from the file, nor mmap's back from the file at a different
21678 address. (There have been systems where private was not correctly
21679 implemented like the infamous i386 svr4.0, and systems where the
21680 VM page cache was not coherent with the file system buffer cache
21681 like early versions of FreeBSD and possibly contemporary NetBSD.)
21682 For shared mappings, we should conversely verify that changes get
21683 propagated back to all the places they're supposed to be.
21684
21685 Grep wants private fixed already mapped.
21686 The main things grep needs to know about mmap are:
21687 * does it exist and is it safe to write into the mmap'd area
21688 * how to use it (BSD variants) */
21689
21690#include <fcntl.h>
21691#include <sys/mman.h>
21692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021693#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000021694char *malloc ();
21695#endif
21696
21697/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021698#if !HAVE_GETPAGESIZE
21699/* Assume that all systems that can run configure have sys/param.h. */
21700# if !HAVE_SYS_PARAM_H
21701# define HAVE_SYS_PARAM_H 1
21702# endif
21703
John Criswell7a73b802003-06-30 21:59:07 +000021704# ifdef _SC_PAGESIZE
21705# define getpagesize() sysconf(_SC_PAGESIZE)
21706# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021707# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000021708# include <sys/param.h>
21709# ifdef EXEC_PAGESIZE
21710# define getpagesize() EXEC_PAGESIZE
21711# else /* no EXEC_PAGESIZE */
21712# ifdef NBPG
21713# define getpagesize() NBPG * CLSIZE
21714# ifndef CLSIZE
21715# define CLSIZE 1
21716# endif /* no CLSIZE */
21717# else /* no NBPG */
21718# ifdef NBPC
21719# define getpagesize() NBPC
21720# else /* no NBPC */
21721# ifdef PAGESIZE
21722# define getpagesize() PAGESIZE
21723# endif /* PAGESIZE */
21724# endif /* no NBPC */
21725# endif /* no NBPG */
21726# endif /* no EXEC_PAGESIZE */
21727# else /* no HAVE_SYS_PARAM_H */
21728# define getpagesize() 8192 /* punt totally */
21729# endif /* no HAVE_SYS_PARAM_H */
21730# endif /* no _SC_PAGESIZE */
21731
21732#endif /* no HAVE_GETPAGESIZE */
21733
21734int
21735main ()
21736{
21737 char *data, *data2, *data3;
21738 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021739 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000021740
21741 pagesize = getpagesize ();
21742
21743 /* First, make a file with some known garbage in it. */
21744 data = (char *) malloc (pagesize);
21745 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000021746 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021747 for (i = 0; i < pagesize; ++i)
21748 *(data + i) = rand ();
21749 umask (0);
21750 fd = creat ("conftest.mmap", 0600);
21751 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021753 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021755 close (fd);
21756
21757 /* Next, try to mmap the file at a fixed address which already has
21758 something else allocated at it. If we can, also make sure that
21759 we see the same garbage. */
21760 fd = open ("conftest.mmap", O_RDWR);
21761 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021762 return 1;
21763 data2 = (char *) malloc (2 * pagesize);
21764 if (!data2)
21765 return 1;
21766 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021767 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000021768 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021770 for (i = 0; i < pagesize; ++i)
21771 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021773
21774 /* Finally, make sure that changes to the mapped area do not
21775 percolate back to the file as seen by read(). (This is a bug on
21776 some variants of i386 svr4.0.) */
21777 for (i = 0; i < pagesize; ++i)
21778 *(data2 + i) = *(data2 + i) + 1;
21779 data3 = (char *) malloc (pagesize);
21780 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021781 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021782 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021783 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021784 for (i = 0; i < pagesize; ++i)
21785 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021786 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021787 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000021788 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021789}
21790_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791rm -f conftest$ac_exeext
21792if { (ac_try="$ac_link"
21793case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21796esac
21797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_link") 2>&5
21799 ac_status=$?
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21802 { (case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21805esac
21806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_try") 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021811 ac_cv_func_mmap_fixed_mapped=yes
21812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021813 echo "$as_me: program exited with status $ac_status" >&5
21814echo "$as_me: failed program was:" >&5
21815sed 's/^/| /' conftest.$ac_ext >&5
21816
21817( exit $ac_status )
21818ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000021819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820rm -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 +000021821fi
Reid Spencera773bd52006-08-04 18:18:08 +000021822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823
John Criswell7a73b802003-06-30 21:59:07 +000021824fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21826echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021827if test $ac_cv_func_mmap_fixed_mapped = yes; then
21828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829cat >>confdefs.h <<\_ACEOF
21830#define HAVE_MMAP 1
21831_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021832
21833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021834rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000021835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021836 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21837echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21838if test "${ac_cv_func_mmap_file+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021840else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021841 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000021842ac_cpp='$CPP $CPPFLAGS'
21843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21845ac_compiler_gnu=$ac_cv_c_compiler_gnu
21846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021848 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021850 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000021851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852 /* confdefs.h. */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000021857
John Criswell7a73b802003-06-30 21:59:07 +000021858#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000021859#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000021860#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000021861
21862int
21863main ()
21864{
John Criswell7a73b802003-06-30 21:59:07 +000021865
21866 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021867 fd = creat ("foo",0777);
21868 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21869 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021870 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021871 ;
21872 return 0;
21873}
John Criswell7a73b802003-06-30 21:59:07 +000021874_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875rm -f conftest$ac_exeext
21876if { (ac_try="$ac_link"
21877case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21880esac
21881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_link") 2>&5
21883 ac_status=$?
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21886 { (case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21889esac
21890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_try") 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021895 ac_cv_func_mmap_file=yes
21896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897 echo "$as_me: program exited with status $ac_status" >&5
21898echo "$as_me: failed program was:" >&5
21899sed 's/^/| /' conftest.$ac_ext >&5
21900
21901( exit $ac_status )
21902ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904rm -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 +000021905fi
Reid Spencera773bd52006-08-04 18:18:08 +000021906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907
John Criswell7a73b802003-06-30 21:59:07 +000021908 ac_ext=c
21909ac_cpp='$CPP $CPPFLAGS'
21910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21912ac_compiler_gnu=$ac_cv_c_compiler_gnu
21913
21914
21915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021916{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21917echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021918if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021920cat >>confdefs.h <<\_ACEOF
21921#define HAVE_MMAP_FILE
21922_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021923
21924 MMAP_FILE=yes
21925
21926fi
21927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021928 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21929echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21930if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021932else
Reid Spencer582a23c2004-12-29 07:07:57 +000021933 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021934 ac_cv_need_dev_zero_for_mmap=yes
21935 else
21936 ac_cv_need_dev_zero_for_mmap=no
21937 fi
21938
21939fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021940{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21941echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021942if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021944cat >>confdefs.h <<\_ACEOF
21945#define NEED_DEV_ZERO_FOR_MMAP 1
21946_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021947
21948fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021949
Reid Spencer30fe5262007-01-20 07:48:49 +000021950 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21951 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021952 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21953echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021954 fi
21955 if test "$ac_cv_func_mmap_file" = "no"
21956 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021957 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21958echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021959 fi
John Criswellb13092b2003-07-22 21:00:24 +000021960fi
John Criswell7a73b802003-06-30 21:59:07 +000021961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021962{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21963echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021964ac_ext=cpp
21965ac_cpp='$CXXCPP $CPPFLAGS'
21966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021970cat >conftest.$ac_ext <<_ACEOF
21971/* confdefs.h. */
21972_ACEOF
21973cat confdefs.h >>conftest.$ac_ext
21974cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021975/* end confdefs.h. */
21976int main() {
Owen Andersona8603702009-05-19 22:18:56 +000021977 volatile unsigned long val = 1;
21978 __sync_synchronize();
21979 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000021980 __sync_add_and_fetch(&val, 1);
21981 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000021982 return 0;
21983 }
Owen Andersond4b272b2009-05-18 23:58:51 +000021984
21985_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021986rm -f conftest.$ac_objext conftest$ac_exeext
21987if { (ac_try="$ac_link"
21988case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21991esac
21992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_link") 2>conftest.er1
21994 ac_status=$?
21995 grep -v '^ *+' conftest.er1 >conftest.err
21996 rm -f conftest.er1
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22001 { (case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22004esac
22005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_try") 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest$ac_exeext'
22011 { (case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22014esac
22015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_try") 2>&5
22017 ac_status=$?
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000022020 ac_ext=c
22021ac_cpp='$CPP $CPPFLAGS'
22022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22024ac_compiler_gnu=$ac_cv_c_compiler_gnu
22025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022026 { echo "$as_me:$LINENO: result: yes" >&5
22027echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000022028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022029cat >>confdefs.h <<\_ACEOF
22030#define LLVM_MULTITHREADED 1
22031_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000022032
Owen Andersond4b272b2009-05-18 23:58:51 +000022033else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022034 echo "$as_me: failed program was:" >&5
22035sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000022036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022037 { echo "$as_me:$LINENO: result: no" >&5
22038echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000022039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022040cat >>confdefs.h <<\_ACEOF
22041#define LLVM_MULTITHREADED 0
22042_ACEOF
22043
22044 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22045echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000022046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022047
Owen Andersond4b272b2009-05-18 23:58:51 +000022048rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022049 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000022050
John Criswell7a73b802003-06-30 21:59:07 +000022051
Nick Lewycky4372e692009-09-29 06:18:23 +000022052if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022053 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22054echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22055if test "${llvm_cv_linux_mixed+set}" = set; then
22056 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000022057else
22058 ac_ext=c
22059ac_cpp='$CPP $CPPFLAGS'
22060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22062ac_compiler_gnu=$ac_cv_c_compiler_gnu
22063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022064 cat >conftest.$ac_ext <<_ACEOF
22065/* confdefs.h. */
22066_ACEOF
22067cat confdefs.h >>conftest.$ac_ext
22068cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000022069/* end confdefs.h. */
22070#ifndef __x86_64__
22071 error: Not x86-64 even if uname says so!
22072 #endif
22073
22074int
22075main ()
22076{
22077
22078 ;
22079 return 0;
22080}
22081_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022082rm -f conftest.$ac_objext
22083if { (ac_try="$ac_compile"
22084case "(($ac_try" in
22085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086 *) ac_try_echo=$ac_try;;
22087esac
22088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089 (eval "$ac_compile") 2>conftest.er1
22090 ac_status=$?
22091 grep -v '^ *+' conftest.er1 >conftest.err
22092 rm -f conftest.er1
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } &&
22096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22097 { (case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22100esac
22101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_try") 2>&5
22103 ac_status=$?
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; } &&
22106 { ac_try='test -s conftest.$ac_objext'
22107 { (case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22110esac
22111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_try") 2>&5
22113 ac_status=$?
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000022116 llvm_cv_linux_mixed=no
22117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022118 echo "$as_me: failed program was:" >&5
22119sed 's/^/| /' conftest.$ac_ext >&5
22120
22121 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000022122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022123
Nick Lewycky4372e692009-09-29 06:18:23 +000022124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125 ac_ext=c
22126ac_cpp='$CPP $CPPFLAGS'
22127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22129ac_compiler_gnu=$ac_cv_c_compiler_gnu
22130
22131
22132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022133{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22134echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000022135
22136 if test "$llvm_cv_linux_mixed" = "yes"; then
22137 llvm_cv_target_arch="x86"
22138 ARCH="x86"
22139 fi
22140fi
22141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022142
Reid Spencer9372f152007-07-30 20:13:24 +000022143for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022144do
22145as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22146{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22147echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22148if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22150else
22151 cat >conftest.$ac_ext <<_ACEOF
22152/* confdefs.h. */
22153_ACEOF
22154cat confdefs.h >>conftest.$ac_ext
22155cat >>conftest.$ac_ext <<_ACEOF
22156/* end confdefs.h. */
22157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22159#define $ac_func innocuous_$ac_func
22160
22161/* System header to define __stub macros and hopefully few prototypes,
22162 which can conflict with char $ac_func (); below.
22163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22164 <limits.h> exists even on freestanding compilers. */
22165
22166#ifdef __STDC__
22167# include <limits.h>
22168#else
22169# include <assert.h>
22170#endif
22171
22172#undef $ac_func
22173
22174/* Override any GCC internal prototype to avoid an error.
22175 Use char because int might match the return type of a GCC
22176 builtin and then its argument prototype would still apply. */
22177#ifdef __cplusplus
22178extern "C"
22179#endif
22180char $ac_func ();
22181/* The GNU C library defines this for functions which it implements
22182 to always fail with ENOSYS. Some functions are actually named
22183 something starting with __ and the normal name is an alias. */
22184#if defined __stub_$ac_func || defined __stub___$ac_func
22185choke me
22186#endif
22187
22188int
22189main ()
22190{
22191return $ac_func ();
22192 ;
22193 return 0;
22194}
22195_ACEOF
22196rm -f conftest.$ac_objext conftest$ac_exeext
22197if { (ac_try="$ac_link"
22198case "(($ac_try" in
22199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200 *) ac_try_echo=$ac_try;;
22201esac
22202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203 (eval "$ac_link") 2>conftest.er1
22204 ac_status=$?
22205 grep -v '^ *+' conftest.er1 >conftest.err
22206 rm -f conftest.er1
22207 cat conftest.err >&5
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); } &&
22210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22211 { (case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22214esac
22215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_try") 2>&5
22217 ac_status=$?
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; } &&
22220 { ac_try='test -s conftest$ac_exeext'
22221 { (case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22224esac
22225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_try") 2>&5
22227 ac_status=$?
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; }; then
22230 eval "$as_ac_var=yes"
22231else
22232 echo "$as_me: failed program was:" >&5
22233sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 eval "$as_ac_var=no"
22236fi
22237
22238rm -f core conftest.err conftest.$ac_objext \
22239 conftest$ac_exeext conftest.$ac_ext
22240fi
22241ac_res=`eval echo '${'$as_ac_var'}'`
22242 { echo "$as_me:$LINENO: result: $ac_res" >&5
22243echo "${ECHO_T}$ac_res" >&6; }
22244if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000022245 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000022247_ACEOF
22248
22249fi
22250done
22251
22252
Tobias Grossera84b5672010-11-10 16:31:34 +000022253{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22254echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22255if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22257else
22258 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022259if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022260 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022261 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000022262 if test $? -eq 0 ; then
22263 llvm_cv_llvmgcc_dragonegg="yes"
22264 fi
22265 rm conftest.c
22266fi
22267fi
22268{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22269echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22270
22271if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22272 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sandsfcc482e2011-05-23 16:50:29 +000022273 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
Tobias Grossera84b5672010-11-10 16:31:34 +000022274else
22275 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022276 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022277fi
22278
22279
22280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022281{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22282echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22283if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022285else
22286 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022287if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022288 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022289 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000022290 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022291 if test $? -eq 0 ; then
22292 llvm_cv_llvmgcc_sanity="yes"
22293 fi
22294 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000022295fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022297{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22298echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022299
22300if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022301 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22302echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000022303 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022304 LLVMCC1=$llvmcc1path
22305
Duncan Sands1526b192010-11-25 17:47:42 +000022306 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022307 LLVMCC1PLUS=$llvmcc1pluspath
22308
Reid Spencer502935f2004-12-22 05:56:56 +000022309 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22310 LLVMGCCDIR=$llvmgccdir
22311
Duncan Sands1526b192010-11-25 17:47:42 +000022312 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000022313 LLVMGCC_LANGS=$llvmgcclangs
22314
Tobias Grossera84b5672010-11-10 16:31:34 +000022315 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22316
22317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022318 { echo "$as_me:$LINENO: result: ok" >&5
22319echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000022320fi
22321
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022322SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000022323
22324
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022325SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22326
22327
Reid Spencere9de0912004-08-20 09:03:57 +000022328# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022329# information into substitutions that will end up in Makefile.config.in
22330# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000022331if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000022332 prefix="/usr/local"
22333fi
Reid Spencere9de0912004-08-20 09:03:57 +000022334eval LLVM_PREFIX="${prefix}";
22335eval LLVM_BINDIR="${prefix}/bin";
22336eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000022337eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000022338eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000022339eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000022340eval LLVM_INCLUDEDIR="${prefix}/include";
22341eval LLVM_INFODIR="${prefix}/info";
22342eval LLVM_MANDIR="${prefix}/man";
22343LLVM_CONFIGTIME=`date`
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022355# Place the various directores into the config.h file as #defines so that we
22356# can know about the installation paths within LLVM.
22357
Reid Spencere9de0912004-08-20 09:03:57 +000022358cat >>confdefs.h <<_ACEOF
22359#define LLVM_PREFIX "$LLVM_PREFIX"
22360_ACEOF
22361
22362
22363cat >>confdefs.h <<_ACEOF
22364#define LLVM_BINDIR "$LLVM_BINDIR"
22365_ACEOF
22366
22367
22368cat >>confdefs.h <<_ACEOF
22369#define LLVM_LIBDIR "$LLVM_LIBDIR"
22370_ACEOF
22371
22372
22373cat >>confdefs.h <<_ACEOF
22374#define LLVM_DATADIR "$LLVM_DATADIR"
22375_ACEOF
22376
22377
22378cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000022379#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022380_ACEOF
22381
22382
22383cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022384#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022385_ACEOF
22386
22387
22388cat >>confdefs.h <<_ACEOF
22389#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22390_ACEOF
22391
22392
22393cat >>confdefs.h <<_ACEOF
22394#define LLVM_INFODIR "$LLVM_INFODIR"
22395_ACEOF
22396
22397
22398cat >>confdefs.h <<_ACEOF
22399#define LLVM_MANDIR "$LLVM_MANDIR"
22400_ACEOF
22401
22402
22403cat >>confdefs.h <<_ACEOF
22404#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22405_ACEOF
22406
22407
Eric Christopher790e11c2007-12-01 00:34:39 +000022408cat >>confdefs.h <<_ACEOF
22409#define LLVM_HOSTTRIPLE "$host"
22410_ACEOF
22411
22412
Gordon Henriksenc0efff82007-10-02 09:50:32 +000022413# Determine which bindings to build.
22414if test "$BINDINGS_TO_BUILD" = auto ; then
22415 BINDINGS_TO_BUILD=""
22416 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22417 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22418 fi
22419fi
22420BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22421
22422
22423# This isn't really configurey, but it avoids having to repeat the list in
22424# other files.
22425ALL_BINDINGS=ocaml
22426
22427
Gordon Henriksenf0915682007-10-02 16:42:22 +000022428# Do any work necessary to ensure that bindings have what they need.
22429binding_prereqs_failed=0
22430for a_binding in $BINDINGS_TO_BUILD ; do
22431 case "$a_binding" in
22432 ocaml)
22433 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022434 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22435echo "$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 +000022436 binding_prereqs_failed=1
22437 fi
22438 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022439 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22440echo "$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 +000022441 binding_prereqs_failed=1
22442 fi
22443 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022444 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22445echo "$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 +000022446 fi
22447 if test "x$with_ocaml_libdir" != xauto ; then
22448 OCAML_LIBDIR=$with_ocaml_libdir
22449
22450 else
22451 ocaml_stdlib="`"$OCAMLC" -where`"
22452 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22453 then
22454 # ocaml stdlib is beneath our prefix; use stdlib
22455 OCAML_LIBDIR=$ocaml_stdlib
22456
22457 else
22458 # ocaml stdlib is outside our prefix; use libdir/ocaml
22459 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22460
22461 fi
22462 fi
22463 ;;
22464 esac
22465done
22466if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022467 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22468echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22469 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000022470fi
22471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022472{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22473echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22474if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022476else
22477 ac_ext=cpp
22478ac_cpp='$CXXCPP $CPPFLAGS'
22479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22482
22483 oldcxxflags="$CXXFLAGS"
22484 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022485 cat >conftest.$ac_ext <<_ACEOF
22486/* confdefs.h. */
22487_ACEOF
22488cat confdefs.h >>conftest.$ac_ext
22489cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022490/* end confdefs.h. */
22491
22492int
22493main ()
22494{
22495
22496 ;
22497 return 0;
22498}
22499_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022500rm -f conftest.$ac_objext
22501if { (ac_try="$ac_compile"
22502case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22505esac
22506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_compile") 2>conftest.er1
22508 ac_status=$?
22509 grep -v '^ *+' conftest.er1 >conftest.err
22510 rm -f conftest.er1
22511 cat conftest.err >&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } &&
22514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22515 { (case "(($ac_try" in
22516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517 *) ac_try_echo=$ac_try;;
22518esac
22519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520 (eval "$ac_try") 2>&5
22521 ac_status=$?
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; } &&
22524 { ac_try='test -s conftest.$ac_objext'
22525 { (case "(($ac_try" in
22526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527 *) ac_try_echo=$ac_try;;
22528esac
22529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530 (eval "$ac_try") 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022534 llvm_cv_cxx_visibility_inlines_hidden=yes
22535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022536 echo "$as_me: failed program was:" >&5
22537sed 's/^/| /' conftest.$ac_ext >&5
22538
22539 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022541
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22543 CXXFLAGS="$oldcxxflags"
22544 ac_ext=c
22545ac_cpp='$CPP $CPPFLAGS'
22546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22548ac_compiler_gnu=$ac_cv_c_compiler_gnu
22549
22550
22551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022552{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22553echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022554if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22555 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22556
22557else
22558 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22559
22560fi
22561
Gordon Henriksenf0915682007-10-02 16:42:22 +000022562
Nick Lewycky731c6ab2009-03-05 08:20:44 +000022563if test "$llvm_cv_link_use_r" = "yes" ; then
22564 RPATH="-Wl,-R"
22565else
22566 RPATH="-Wl,-rpath"
22567fi
22568
22569
22570if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22571 RDYNAMIC="-Wl,-export-dynamic"
22572else
22573 RDYNAMIC=""
22574fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000022575
22576
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022577
Eric Christophera1cba682010-08-08 02:44:25 +000022578ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022579
Eric Christopher21d3eeb2010-08-08 09:20:39 +000022580
22581
22582
22583
22584
Douglas Gregor1555a232009-06-16 20:12:29 +000022585ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22586
22587ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22588
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022589ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22590
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022591ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22592
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022593ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022594
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022595
Reid Spencera773bd52006-08-04 18:18:08 +000022596ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022597
22598
Reid Spencerea949cf2006-08-16 00:45:38 +000022599ac_config_files="$ac_config_files llvm.spec"
22600
22601
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022602ac_config_files="$ac_config_files docs/doxygen.cfg"
22603
22604if test -f ${srcdir}/tools/clang/README.txt; then
22605 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22606
22607fi
22608
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022609ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000022610
22611
Reid Spencera773bd52006-08-04 18:18:08 +000022612ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000022613
22614
Reid Spencera773bd52006-08-04 18:18:08 +000022615ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000022616
Reid Spencera773bd52006-08-04 18:18:08 +000022617ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022618
22619
Reid Spencera773bd52006-08-04 18:18:08 +000022620ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022621
22622
Reid Spencera773bd52006-08-04 18:18:08 +000022623ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022624
22625
Reid Spencera773bd52006-08-04 18:18:08 +000022626ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022627
22628
Reid Spencer8b2e1412006-11-17 03:32:33 +000022629ac_config_commands="$ac_config_commands runtime/Makefile"
22630
22631
Reid Spencera773bd52006-08-04 18:18:08 +000022632ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022633
22634
Reid Spencera773bd52006-08-04 18:18:08 +000022635ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022636
22637
Bill Wendlingf24eb392009-01-04 23:12:30 +000022638ac_config_commands="$ac_config_commands unittests/Makefile"
22639
22640
Reid Spencera773bd52006-08-04 18:18:08 +000022641ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022642
22643
Reid Spencera773bd52006-08-04 18:18:08 +000022644ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022645
22646
Reid Spencera773bd52006-08-04 18:18:08 +000022647ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022648
22649
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022650ac_config_commands="$ac_config_commands bindings/Makefile"
22651
22652
22653ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22654
22655
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022656
John Criswell7a73b802003-06-30 21:59:07 +000022657cat >confcache <<\_ACEOF
22658# This file is a shell script that caches the results of configure
22659# tests run on this system so they can be shared between configure
22660# scripts and configure runs, see configure's option --config-cache.
22661# It is not useful on other systems. If it contains results you don't
22662# want to keep, you may remove or edit it.
22663#
22664# config.status only pays attention to the cache file if you give it
22665# the --recheck option to rerun configure.
22666#
John Criswell0c38eaf2003-09-10 15:17:25 +000022667# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022668# loading this file, other *unset* `ac_cv_foo' will be assigned the
22669# following values.
22670
22671_ACEOF
22672
22673# The following way of writing the cache mishandles newlines in values,
22674# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000022675# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000022676# Ultrix sh set writes to stderr and can't be redirected directly,
22677# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000022678(
22679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22680 eval ac_val=\$$ac_var
22681 case $ac_val in #(
22682 *${as_nl}*)
22683 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22685echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022686 esac
22687 case $ac_var in #(
22688 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022689 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022690 esac ;;
22691 esac
22692 done
22693
John Criswell7a73b802003-06-30 21:59:07 +000022694 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000022695 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22696 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022697 # `set' does not quote correctly, so add quotes (double-quote
22698 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000022699 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022700 "s/'/'\\\\''/g;
22701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000022702 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000022703 *)
22704 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000022705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000022706 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022707 esac |
22708 sort
22709) |
John Criswell7a73b802003-06-30 21:59:07 +000022710 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000022711 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000022712 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000022713 :clear
John Criswell7a73b802003-06-30 21:59:07 +000022714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22715 t end
Reid Spencera773bd52006-08-04 18:18:08 +000022716 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22717 :end' >>confcache
22718if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22719 if test -w "$cache_file"; then
22720 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022721 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22722echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022723 cat confcache >$cache_file
22724 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022725 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22726echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022727 fi
22728fi
22729rm -f confcache
22730
22731test "x$prefix" = xNONE && prefix=$ac_default_prefix
22732# Let make expand exec_prefix.
22733test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22734
John Criswell7a73b802003-06-30 21:59:07 +000022735DEFS=-DHAVE_CONFIG_H
22736
John Criswell0c38eaf2003-09-10 15:17:25 +000022737ac_libobjs=
22738ac_ltlibobjs=
22739for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22740 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000022741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022742 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000022743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22744 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022745 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22746 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000022747done
22748LIBOBJS=$ac_libobjs
22749
22750LTLIBOBJS=$ac_ltlibobjs
22751
22752
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022753if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022754 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22755Usually this means the macro was only invoked conditionally." >&5
22756echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22757Usually this means the macro was only invoked conditionally." >&2;}
22758 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022759fi
22760if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022761 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22762Usually this means the macro was only invoked conditionally." >&5
22763echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22764Usually this means the macro was only invoked conditionally." >&2;}
22765 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022766fi
John Criswell7a73b802003-06-30 21:59:07 +000022767
22768: ${CONFIG_STATUS=./config.status}
22769ac_clean_files_save=$ac_clean_files
22770ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022771{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22772echo "$as_me: creating $CONFIG_STATUS" >&6;}
22773cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022774#! $SHELL
22775# Generated by $as_me.
22776# Run this file to recreate the current configuration.
22777# Compiler output produced by configure, useful for debugging
22778# configure, is in config.log if it exists.
22779
22780debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022781ac_cs_recheck=false
22782ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022783SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022784_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022786cat >>$CONFIG_STATUS <<\_ACEOF
22787## --------------------- ##
22788## M4sh Initialization. ##
22789## --------------------- ##
22790
22791# Be Bourne compatible
22792if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022793 emulate sh
22794 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022796 # is contrary to our usage. Disable this feature.
22797 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000022798 setopt NO_GLOB_SUBST
22799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022800 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000022801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022802BIN_SH=xpg4; export BIN_SH # for Tru64
22803DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000022804
John Criswell7a73b802003-06-30 21:59:07 +000022805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022806# PATH needs CR
22807# Avoid depending upon Character Ranges.
22808as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22809as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22810as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22811as_cr_digits='0123456789'
22812as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000022813
22814# The user is always right.
22815if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022816 echo "#! /bin/sh" >conf$$.sh
22817 echo "exit 0" >>conf$$.sh
22818 chmod +x conf$$.sh
22819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22820 PATH_SEPARATOR=';'
22821 else
22822 PATH_SEPARATOR=:
22823 fi
22824 rm -f conf$$.sh
22825fi
22826
22827# Support unset when possible.
22828if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22829 as_unset=unset
22830else
22831 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000022832fi
John Criswell7a73b802003-06-30 21:59:07 +000022833
Reid Spencera773bd52006-08-04 18:18:08 +000022834
22835# IFS
22836# We need space, tab and new line, in precisely that order. Quoting is
22837# there to prevent editors from complaining about space-tab.
22838# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22839# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022840as_nl='
22841'
Reid Spencera773bd52006-08-04 18:18:08 +000022842IFS=" "" $as_nl"
22843
22844# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022845case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000022846 *[\\/]* ) as_myself=$0 ;;
22847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000022848for as_dir in $PATH
22849do
22850 IFS=$as_save_IFS
22851 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22853done
Reid Spencera773bd52006-08-04 18:18:08 +000022854IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000022855
Reid Spencera773bd52006-08-04 18:18:08 +000022856 ;;
22857esac
22858# We did not find ourselves, most probably we were run as `sh COMMAND'
22859# in which case we are not to be found in the path.
22860if test "x$as_myself" = x; then
22861 as_myself=$0
22862fi
22863if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022864 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22865 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000022866fi
22867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022868# Work around bugs in pre-3.0 UWIN ksh.
22869for as_var in ENV MAIL MAILPATH
22870do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000022871done
22872PS1='$ '
22873PS2='> '
22874PS4='+ '
22875
22876# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022877for as_var in \
22878 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22879 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22880 LC_TELEPHONE LC_TIME
22881do
22882 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22883 eval $as_var=C; export $as_var
22884 else
22885 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000022886 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022887done
Torok Edwin871384f2010-01-26 08:50:50 +000022888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022889# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000022890if expr a : '\(a\)' >/dev/null 2>&1 &&
22891 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22892 as_expr=expr
22893else
22894 as_expr=false
22895fi
22896
22897if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22898 as_basename=basename
22899else
22900 as_basename=false
22901fi
22902
22903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022904# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000022905as_me=`$as_basename -- "$0" ||
22906$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22907 X"$0" : 'X\(//\)$' \| \
22908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022909echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000022910 sed '/^.*\/\([^/][^/]*\)\/*$/{
22911 s//\1/
22912 q
22913 }
22914 /^X\/\(\/\/\)$/{
22915 s//\1/
22916 q
22917 }
22918 /^X\/\(\/\).*/{
22919 s//\1/
22920 q
22921 }
22922 s/.*/./; q'`
22923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022924# CDPATH.
22925$as_unset CDPATH
22926
22927
22928
22929 as_lineno_1=$LINENO
22930 as_lineno_2=$LINENO
22931 test "x$as_lineno_1" != "x$as_lineno_2" &&
22932 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22933
22934 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22935 # uniformly replaced by the line number. The first 'sed' inserts a
22936 # line-number line after each line using $LINENO; the second 'sed'
22937 # does the real work. The second script uses 'N' to pair each
22938 # line-number line with the line containing $LINENO, and appends
22939 # trailing '-' during substitution so that $LINENO is not a special
22940 # case at line end.
22941 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22942 # scripts with optimization help from Paolo Bonzini. Blame Lee
22943 # E. McMahon (1931-1989) for sed's syntax. :-)
22944 sed -n '
22945 p
22946 /[$]LINENO/=
22947 ' <$as_myself |
22948 sed '
22949 s/[$]LINENO.*/&-/
22950 t lineno
22951 b
22952 :lineno
22953 N
22954 :loop
22955 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22956 t loop
22957 s/-\n.*//
22958 ' >$as_me.lineno &&
22959 chmod +x "$as_me.lineno" ||
22960 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22961 { (exit 1); exit 1; }; }
22962
22963 # Don't try to exec as it changes $[0], causing all sort of problems
22964 # (the dirname of $[0] is not the place where we might find the
22965 # original and so on. Autoconf is especially sensitive to this).
22966 . "./$as_me.lineno"
22967 # Exit status is that of the last command.
22968 exit
22969}
22970
22971
22972if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22973 as_dirname=dirname
22974else
22975 as_dirname=false
22976fi
Reid Spencera773bd52006-08-04 18:18:08 +000022977
22978ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022979case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000022980-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022981 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000022982 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022983 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000022984 esac;;
22985*)
22986 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000022987esac
22988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022989if expr a : '\(a\)' >/dev/null 2>&1 &&
22990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22991 as_expr=expr
22992else
22993 as_expr=false
22994fi
22995
John Criswell7a73b802003-06-30 21:59:07 +000022996rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000022997if test -d conf$$.dir; then
22998 rm -f conf$$.dir/conf$$.file
22999else
23000 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023001 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000023002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023003echo >conf$$.file
23004if ln -s conf$$.file conf$$ 2>/dev/null; then
23005 as_ln_s='ln -s'
23006 # ... but there are two gotchas:
23007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23009 # In both cases, we have to default to `cp -p'.
23010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000023011 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023012elif ln conf$$.file conf$$ 2>/dev/null; then
23013 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000023014else
23015 as_ln_s='cp -p'
23016fi
Reid Spencera773bd52006-08-04 18:18:08 +000023017rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23018rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000023019
John Criswell0c38eaf2003-09-10 15:17:25 +000023020if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023021 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023022else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023023 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000023024 as_mkdir_p=false
23025fi
23026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023027# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23028# systems may use methods other than mode bits to determine executability.
23029cat >conf$$.file <<_ASEOF
23030#! /bin/sh
23031exit 0
23032_ASEOF
23033chmod +x conf$$.file
23034if test -x conf$$.file >/dev/null 2>&1; then
23035 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000023036else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023037 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000023038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023039rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000023040
23041# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023042as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023043
23044# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023045as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023046
23047
John Criswell7a73b802003-06-30 21:59:07 +000023048exec 6>&1
23049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023050# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000023051# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000023052# values after options handling.
23053ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023054This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023055generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023056
23057 CONFIG_FILES = $CONFIG_FILES
23058 CONFIG_HEADERS = $CONFIG_HEADERS
23059 CONFIG_LINKS = $CONFIG_LINKS
23060 CONFIG_COMMANDS = $CONFIG_COMMANDS
23061 $ $0 $@
23062
Reid Spencera773bd52006-08-04 18:18:08 +000023063on `(hostname || uname -n) 2>/dev/null | sed 1q`
23064"
23065
John Criswell7a73b802003-06-30 21:59:07 +000023066_ACEOF
23067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023068cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023069# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000023070config_files="$ac_config_files"
23071config_headers="$ac_config_headers"
23072config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000023073
Reid Spencera773bd52006-08-04 18:18:08 +000023074_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023075
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023076cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023077ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023078\`$as_me' instantiates files from templates according to the
23079current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000023080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023081Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000023082
23083 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023084 -V, --version print version number, then exit
23085 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023086 -d, --debug don't remove temporary files
23087 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023088 --file=FILE[:TEMPLATE]
23089 instantiate the configuration file FILE
23090 --header=FILE[:TEMPLATE]
23091 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000023092
23093Configuration files:
23094$config_files
23095
23096Configuration headers:
23097$config_headers
23098
John Criswellc764fbc2003-09-06 15:17:13 +000023099Configuration commands:
23100$config_commands
23101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023102Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000023103
Reid Spencera773bd52006-08-04 18:18:08 +000023104_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023105cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023106ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023107llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023108configured by $0, generated by GNU Autoconf 2.60,
23109 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000023110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023111Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000023112This config.status script is free software; the Free Software Foundation
23113gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000023114
23115ac_pwd='$ac_pwd'
23116srcdir='$srcdir'
23117INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000023118_ACEOF
23119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023120cat >>$CONFIG_STATUS <<\_ACEOF
23121# If no file are specified by the user, then we need to provide default
23122# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000023123ac_need_defaults=:
23124while test $# != 0
23125do
23126 case $1 in
23127 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000023128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23129 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023130 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023131 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023132 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000023133 ac_option=$1
23134 ac_optarg=$2
23135 ac_shift=shift
23136 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023137 esac
23138
John Criswell0c38eaf2003-09-10 15:17:25 +000023139 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023140 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000023141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23142 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023144 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023145 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000023146 debug=: ;;
23147 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023148 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023149 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023150 ac_need_defaults=false;;
23151 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023152 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023153 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023154 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000023155 --he | --h)
23156 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023157 { echo "$as_me: error: ambiguous option: $1
23158Try \`$0 --help' for more information." >&2
23159 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023160 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023161 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23163 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23164 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023165
23166 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023167 -*) { echo "$as_me: error: unrecognized option: $1
23168Try \`$0 --help' for more information." >&2
23169 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000023170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023171 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000023172 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000023173
23174 esac
23175 shift
23176done
23177
John Criswell0c38eaf2003-09-10 15:17:25 +000023178ac_configure_extra_args=
23179
23180if $ac_cs_silent; then
23181 exec 6>/dev/null
23182 ac_configure_extra_args="$ac_configure_extra_args --silent"
23183fi
23184
23185_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023186cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023187if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023188 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23189 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000023190 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023191 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000023192fi
23193
John Criswell7a73b802003-06-30 21:59:07 +000023194_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023195cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023196exec 5>>config.log
23197{
23198 echo
23199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23200## Running $as_me. ##
23201_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023202 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000023203} >&5
John Criswell7a73b802003-06-30 21:59:07 +000023204
Reid Spencera773bd52006-08-04 18:18:08 +000023205_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023206cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023207#
Reid Spencera773bd52006-08-04 18:18:08 +000023208# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000023209#
Reid Spencerc0682832005-02-24 19:05:19 +000023210llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000023211
23212_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023214cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023215
23216# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000023217for ac_config_target in $ac_config_targets
23218do
Reid Spencera773bd52006-08-04 18:18:08 +000023219 case $ac_config_target in
23220 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000023221 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000023222 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23223 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000023224 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000023225 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000023226 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023227 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000023228 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000023229 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23230 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000023231 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023232 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23233 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23234 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23235 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23236 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23237 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023238 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023239 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23240 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023241 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023242 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23243 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23244 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023245 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23246 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023248 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23249echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23250 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000023251 esac
23252done
23253
Reid Spencera773bd52006-08-04 18:18:08 +000023254
John Criswell7a73b802003-06-30 21:59:07 +000023255# If the user did not use the arguments to specify the items to instantiate,
23256# then the envvar interface is used. Set only those that are not.
23257# We use the long form for the default assignment because of an extremely
23258# bizarre bug on SunOS 4.1.3.
23259if $ac_need_defaults; then
23260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023263fi
23264
John Criswell0c38eaf2003-09-10 15:17:25 +000023265# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000023266# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000023267# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000023268# Hook for its removal unless debugging.
23269# Note that there is a small window in which the directory will not be cleaned:
23270# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000023271$debug ||
23272{
Reid Spencera773bd52006-08-04 18:18:08 +000023273 tmp=
23274 trap 'exit_status=$?
23275 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23276' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023277 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000023278}
John Criswell7a73b802003-06-30 21:59:07 +000023279# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023280
John Criswell7a73b802003-06-30 21:59:07 +000023281{
Reid Spencera773bd52006-08-04 18:18:08 +000023282 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023283 test -n "$tmp" && test -d "$tmp"
23284} ||
23285{
Reid Spencera773bd52006-08-04 18:18:08 +000023286 tmp=./conf$$-$RANDOM
23287 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023288} ||
23289{
23290 echo "$me: cannot create a temporary directory in ." >&2
23291 { (exit 1); exit 1; }
23292}
John Criswell7a73b802003-06-30 21:59:07 +000023293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023294#
23295# Set up the sed scripts for CONFIG_FILES section.
23296#
23297
23298# No need to generate the scripts if there are no CONFIG_FILES.
23299# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000023300if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000023301
23302_ACEOF
23303
Reid Spencera773bd52006-08-04 18:18:08 +000023304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023305
Reid Spencera773bd52006-08-04 18:18:08 +000023306ac_delim='%!_!# '
23307for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023308 cat >conf$$subs.sed <<_ACEOF
23309SHELL!$SHELL$ac_delim
23310PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23311PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23312PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23313PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23314PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23315PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23316exec_prefix!$exec_prefix$ac_delim
23317prefix!$prefix$ac_delim
23318program_transform_name!$program_transform_name$ac_delim
23319bindir!$bindir$ac_delim
23320sbindir!$sbindir$ac_delim
23321libexecdir!$libexecdir$ac_delim
23322datarootdir!$datarootdir$ac_delim
23323datadir!$datadir$ac_delim
23324sysconfdir!$sysconfdir$ac_delim
23325sharedstatedir!$sharedstatedir$ac_delim
23326localstatedir!$localstatedir$ac_delim
23327includedir!$includedir$ac_delim
23328oldincludedir!$oldincludedir$ac_delim
23329docdir!$docdir$ac_delim
23330infodir!$infodir$ac_delim
23331htmldir!$htmldir$ac_delim
23332dvidir!$dvidir$ac_delim
23333pdfdir!$pdfdir$ac_delim
23334psdir!$psdir$ac_delim
23335libdir!$libdir$ac_delim
23336localedir!$localedir$ac_delim
23337mandir!$mandir$ac_delim
23338DEFS!$DEFS$ac_delim
23339ECHO_C!$ECHO_C$ac_delim
23340ECHO_N!$ECHO_N$ac_delim
23341ECHO_T!$ECHO_T$ac_delim
23342LIBS!$LIBS$ac_delim
23343build_alias!$build_alias$ac_delim
23344host_alias!$host_alias$ac_delim
23345target_alias!$target_alias$ac_delim
23346LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23347subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023348ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23349LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023350build!$build$ac_delim
23351build_cpu!$build_cpu$ac_delim
23352build_vendor!$build_vendor$ac_delim
23353build_os!$build_os$ac_delim
23354host!$host$ac_delim
23355host_cpu!$host_cpu$ac_delim
23356host_vendor!$host_vendor$ac_delim
23357host_os!$host_os$ac_delim
23358target!$target$ac_delim
23359target_cpu!$target_cpu$ac_delim
23360target_vendor!$target_vendor$ac_delim
23361target_os!$target_os$ac_delim
23362OS!$OS$ac_delim
23363HOST_OS!$HOST_OS$ac_delim
23364TARGET_OS!$TARGET_OS$ac_delim
23365LINKALL!$LINKALL$ac_delim
23366NOLINKALL!$NOLINKALL$ac_delim
23367LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23368LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23369ARCH!$ARCH$ac_delim
23370ENDIAN!$ENDIAN$ac_delim
23371CC!$CC$ac_delim
23372CFLAGS!$CFLAGS$ac_delim
23373LDFLAGS!$LDFLAGS$ac_delim
23374CPPFLAGS!$CPPFLAGS$ac_delim
23375ac_ct_CC!$ac_ct_CC$ac_delim
23376EXEEXT!$EXEEXT$ac_delim
23377OBJEXT!$OBJEXT$ac_delim
23378CPP!$CPP$ac_delim
23379GREP!$GREP$ac_delim
23380EGREP!$EGREP$ac_delim
23381LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23382BUILD_CC!$BUILD_CC$ac_delim
23383BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23384BUILD_CXX!$BUILD_CXX$ac_delim
23385CVSBUILD!$CVSBUILD$ac_delim
23386ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23387ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23388DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23389ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23390EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23391DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23392DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23393JIT!$JIT$ac_delim
23394TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023395ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023396ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23397ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023398ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023399ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023400ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023401ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023402ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023403TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23404LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23405LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023406_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023408 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000023409 break
23410 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023411 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23412echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23413 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000023414 else
23415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000023416 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023417done
23418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023419ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23420if test -n "$ac_eof"; then
23421 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23422 ac_eof=`expr $ac_eof + 1`
23423fi
23424
23425cat >>$CONFIG_STATUS <<_ACEOF
23426cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23427/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000023428_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023429sed '
23430s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23431s/^/s,@/; s/!/@,|#_!!_#|/
23432:n
23433t n
23434s/'"$ac_delim"'$/,g/; t
23435s/$/\\/; p
23436N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23437' >>$CONFIG_STATUS <conf$$subs.sed
23438rm -f conf$$subs.sed
23439cat >>$CONFIG_STATUS <<_ACEOF
23440CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000023441_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023442
23443
23444ac_delim='%!_!# '
23445for ac_last_try in false false false false false :; do
23446 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023447LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023448LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023449ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023450CLANGPATH!$CLANGPATH$ac_delim
23451CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023452ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023453OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023454EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000023455EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023456BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023457CXX!$CXX$ac_delim
23458CXXFLAGS!$CXXFLAGS$ac_delim
23459ac_ct_CXX!$ac_ct_CXX$ac_delim
23460NM!$NM$ac_delim
23461ifGNUmake!$ifGNUmake$ac_delim
23462LN_S!$LN_S$ac_delim
23463CMP!$CMP$ac_delim
23464CP!$CP$ac_delim
23465DATE!$DATE$ac_delim
23466FIND!$FIND$ac_delim
23467MKDIR!$MKDIR$ac_delim
23468MV!$MV$ac_delim
23469RANLIB!$RANLIB$ac_delim
23470AR!$AR$ac_delim
23471RM!$RM$ac_delim
23472SED!$SED$ac_delim
23473TAR!$TAR$ac_delim
23474BINPWD!$BINPWD$ac_delim
23475GRAPHVIZ!$GRAPHVIZ$ac_delim
23476DOT!$DOT$ac_delim
23477FDP!$FDP$ac_delim
23478NEATO!$NEATO$ac_delim
23479TWOPI!$TWOPI$ac_delim
23480CIRCO!$CIRCO$ac_delim
23481GV!$GV$ac_delim
23482DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000023483XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023484PERL!$PERL$ac_delim
23485HAVE_PERL!$HAVE_PERL$ac_delim
23486INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23487INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23488INSTALL_DATA!$INSTALL_DATA$ac_delim
23489BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023490CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023491DOXYGEN!$DOXYGEN$ac_delim
23492GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000023493GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023494POD2HTML!$POD2HTML$ac_delim
23495POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023496PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023497RUNTEST!$RUNTEST$ac_delim
23498TCLSH!$TCLSH$ac_delim
23499ZIP!$ZIP$ac_delim
23500OCAMLC!$OCAMLC$ac_delim
23501OCAMLOPT!$OCAMLOPT$ac_delim
23502OCAMLDEP!$OCAMLDEP$ac_delim
23503OCAMLDOC!$OCAMLDOC$ac_delim
23504GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000023505HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023506INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23507INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23508CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23509CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23510LIBADD_DL!$LIBADD_DL$ac_delim
23511LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23512LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23513LLVMGCC!$LLVMGCC$ac_delim
23514LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023515LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023516NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23517NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23518USE_UDIS86!$USE_UDIS86$ac_delim
23519USE_OPROFILE!$USE_OPROFILE$ac_delim
23520HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23521HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23522MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023523LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023524LLVMCC1!$LLVMCC1$ac_delim
23525LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23526LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023527LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023528LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000023529LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023530SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023531SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023532LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23533LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23534LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23535LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23536LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23537LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23538LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23539LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23540LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23541LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23542BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23543ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000023544_ACEOF
23545
Tobias Grossera84b5672010-11-10 16:31:34 +000023546 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023547 break
23548 elif $ac_last_try; then
23549 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23550echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23551 { (exit 1); exit 1; }; }
23552 else
23553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23554 fi
23555done
23556
23557ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23558if test -n "$ac_eof"; then
23559 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23560 ac_eof=`expr $ac_eof + 1`
23561fi
23562
23563cat >>$CONFIG_STATUS <<_ACEOF
23564cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023565/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023566_ACEOF
23567sed '
23568s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23569s/^/s,@/; s/!/@,|#_!!_#|/
23570:n
23571t n
23572s/'"$ac_delim"'$/,g/; t
23573s/$/\\/; p
23574N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23575' >>$CONFIG_STATUS <conf$$subs.sed
23576rm -f conf$$subs.sed
23577cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023578CEOF$ac_eof
23579_ACEOF
23580
23581
Tobias Grossera84b5672010-11-10 16:31:34 +000023582ac_delim='%!_!# '
23583for ac_last_try in false false false false false :; do
23584 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbared344d22011-06-16 22:30:41 +000023585OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023586ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023587RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023588RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023589LIBOBJS!$LIBOBJS$ac_delim
23590LTLIBOBJS!$LTLIBOBJS$ac_delim
23591_ACEOF
23592
Daniel Dunbared344d22011-06-16 22:30:41 +000023593 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
Tobias Grossera84b5672010-11-10 16:31:34 +000023594 break
23595 elif $ac_last_try; then
23596 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23597echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23598 { (exit 1); exit 1; }; }
23599 else
23600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23601 fi
23602done
23603
23604ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23605if test -n "$ac_eof"; then
23606 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23607 ac_eof=`expr $ac_eof + 1`
23608fi
23609
23610cat >>$CONFIG_STATUS <<_ACEOF
23611cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23612/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23613_ACEOF
23614sed '
23615s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23616s/^/s,@/; s/!/@,|#_!!_#|/
23617:n
23618t n
23619s/'"$ac_delim"'$/,g/; t
23620s/$/\\/; p
23621N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23622' >>$CONFIG_STATUS <conf$$subs.sed
23623rm -f conf$$subs.sed
23624cat >>$CONFIG_STATUS <<_ACEOF
23625:end
23626s/|#_!!_#|//g
23627CEOF$ac_eof
23628_ACEOF
23629
23630
Reid Spencera773bd52006-08-04 18:18:08 +000023631# VPATH may cause trouble with some makes, so we remove $(srcdir),
23632# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23633# trailing colons and then remove the whole line if VPATH becomes empty
23634# (actually we leave an empty line to preserve line numbers).
23635if test "x$srcdir" = x.; then
23636 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23637s/:*\$(srcdir):*/:/
23638s/:*\${srcdir}:*/:/
23639s/:*@srcdir@:*/:/
23640s/^\([^=]*=[ ]*\):*/\1/
23641s/:*$//
23642s/^[^=]*=[ ]*$//
23643}'
23644fi
23645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023646cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023647fi # test -n "$CONFIG_FILES"
23648
Reid Spencera773bd52006-08-04 18:18:08 +000023649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023650for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000023651do
23652 case $ac_tag in
23653 :[FHLC]) ac_mode=$ac_tag; continue;;
23654 esac
23655 case $ac_mode$ac_tag in
23656 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023657 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23658echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23659 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023660 :[FH]-) ac_tag=-:-;;
23661 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23662 esac
23663 ac_save_IFS=$IFS
23664 IFS=:
23665 set x $ac_tag
23666 IFS=$ac_save_IFS
23667 shift
23668 ac_file=$1
23669 shift
23670
23671 case $ac_mode in
23672 :L) ac_source=$1;;
23673 :[FH])
23674 ac_file_inputs=
23675 for ac_f
23676 do
23677 case $ac_f in
23678 -) ac_f="$tmp/stdin";;
23679 *) # Look for the file first in the build tree, then in the source tree
23680 # (if the path is not absolute). The absolute path cannot be DOS-style,
23681 # because $ac_f cannot contain `:'.
23682 test -f "$ac_f" ||
23683 case $ac_f in
23684 [\\/$]*) false;;
23685 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23686 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023687 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23688echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23689 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023690 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023691 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000023692 done
23693
23694 # Let's still pretend it is `configure' which instantiates (i.e., don't
23695 # use $as_me), people would be surprised to read:
23696 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023697 configure_input="Generated from "`IFS=:
23698 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000023699 if test x"$ac_file" != x-; then
23700 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023701 { echo "$as_me:$LINENO: creating $ac_file" >&5
23702echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023703 fi
23704
23705 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023706 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000023707 esac
23708 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023709 esac
23710
Reid Spencera773bd52006-08-04 18:18:08 +000023711 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000023712$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023713 X"$ac_file" : 'X\(//\)[^/]' \| \
23714 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000023715 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023716echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000023717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23718 s//\1/
23719 q
23720 }
23721 /^X\(\/\/\)[^/].*/{
23722 s//\1/
23723 q
23724 }
23725 /^X\(\/\/\)$/{
23726 s//\1/
23727 q
23728 }
23729 /^X\(\/\).*/{
23730 s//\1/
23731 q
23732 }
23733 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023734 { as_dir="$ac_dir"
23735 case $as_dir in #(
23736 -*) as_dir=./$as_dir;;
23737 esac
23738 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23739 as_dirs=
23740 while :; do
23741 case $as_dir in #(
23742 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23743 *) as_qdir=$as_dir;;
23744 esac
23745 as_dirs="'$as_qdir' $as_dirs"
23746 as_dir=`$as_dirname -- "$as_dir" ||
23747$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23748 X"$as_dir" : 'X\(//\)[^/]' \| \
23749 X"$as_dir" : 'X\(//\)$' \| \
23750 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23751echo X"$as_dir" |
23752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23753 s//\1/
23754 q
23755 }
23756 /^X\(\/\/\)[^/].*/{
23757 s//\1/
23758 q
23759 }
23760 /^X\(\/\/\)$/{
23761 s//\1/
23762 q
23763 }
23764 /^X\(\/\).*/{
23765 s//\1/
23766 q
23767 }
23768 s/.*/./; q'`
23769 test -d "$as_dir" && break
23770 done
23771 test -z "$as_dirs" || eval "mkdir $as_dirs"
23772 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23773echo "$as_me: error: cannot create directory $as_dir" >&2;}
23774 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023775 ac_builddir=.
23776
Reid Spencera773bd52006-08-04 18:18:08 +000023777case "$ac_dir" in
23778.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23779*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023781 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023782 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023783 case $ac_top_builddir_sub in
23784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23786 esac ;;
23787esac
23788ac_abs_top_builddir=$ac_pwd
23789ac_abs_builddir=$ac_pwd$ac_dir_suffix
23790# for backward compatibility:
23791ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000023792
23793case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023794 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000023795 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023796 ac_top_srcdir=$ac_top_builddir_sub
23797 ac_abs_top_srcdir=$ac_pwd ;;
23798 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000023799 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023800 ac_top_srcdir=$srcdir
23801 ac_abs_top_srcdir=$srcdir ;;
23802 *) # Relative name.
23803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23804 ac_top_srcdir=$ac_top_build_prefix$srcdir
23805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000023806esac
Reid Spencera773bd52006-08-04 18:18:08 +000023807ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000023808
John Criswell7a73b802003-06-30 21:59:07 +000023809
Reid Spencera773bd52006-08-04 18:18:08 +000023810 case $ac_mode in
23811 :F)
23812 #
23813 # CONFIG_FILE
23814 #
John Criswell7a73b802003-06-30 21:59:07 +000023815
23816 case $INSTALL in
23817 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023818 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000023819 esac
John Criswell7a73b802003-06-30 21:59:07 +000023820_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023822cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023823# If the template does not know about datarootdir, expand it.
23824# FIXME: This hack should be removed a few years after 2.60.
23825ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023826
23827case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000023828 p
23829 q
23830}
23831/@datadir@/p
23832/@docdir@/p
23833/@infodir@/p
23834/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023835/@mandir@/p
23836' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000023837*datarootdir*) ac_datarootdir_seen=yes;;
23838*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023839 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23840echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000023841_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023842cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023843 ac_datarootdir_hack='
23844 s&@datadir@&$datadir&g
23845 s&@docdir@&$docdir&g
23846 s&@infodir@&$infodir&g
23847 s&@localedir@&$localedir&g
23848 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023849 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023850esac
23851_ACEOF
23852
23853# Neutralize VPATH when `$srcdir' = `.'.
23854# Shell code in configure.ac might set extrasub.
23855# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023856cat >>$CONFIG_STATUS <<_ACEOF
23857 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000023858$extrasub
23859_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023860cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023861:t
23862/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023863s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000023864s&@top_builddir@&$ac_top_builddir_sub&;t t
23865s&@srcdir@&$ac_srcdir&;t t
23866s&@abs_srcdir@&$ac_abs_srcdir&;t t
23867s&@top_srcdir@&$ac_top_srcdir&;t t
23868s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23869s&@builddir@&$ac_builddir&;t t
23870s&@abs_builddir@&$ac_abs_builddir&;t t
23871s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23872s&@INSTALL@&$ac_INSTALL&;t t
23873$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000023874" $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 +000023875
Reid Spencera773bd52006-08-04 18:18:08 +000023876test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23877 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023879 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023880which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023881echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023882which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023883
Reid Spencera773bd52006-08-04 18:18:08 +000023884 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000023885 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023886 -) cat "$tmp/out"; rm -f "$tmp/out";;
23887 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23888 esac
Reid Spencera773bd52006-08-04 18:18:08 +000023889 ;;
23890 :H)
23891 #
23892 # CONFIG_HEADER
23893 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023894_ACEOF
23895
23896# Transform confdefs.h into a sed script `conftest.defines', that
23897# substitutes the proper values into config.h.in to produce config.h.
23898rm -f conftest.defines conftest.tail
23899# First, append a space to every undef/define line, to ease matching.
23900echo 's/$/ /' >conftest.defines
23901# Then, protect against being on the right side of a sed subst, or in
23902# an unquoted here document, in config.status. If some macros were
23903# called several times there might be several #defines for the same
23904# symbol, which is useless. But do not sort them, since the last
23905# AC_DEFINE must be honored.
23906ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23907# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23908# NAME is the cpp macro being defined, VALUE is the value it is being given.
23909# PARAMS is the parameter list in the macro definition--in most cases, it's
23910# just an empty string.
23911ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23912ac_dB='\\)[ (].*,\\1define\\2'
23913ac_dC=' '
23914ac_dD=' ,'
23915
23916uniq confdefs.h |
23917 sed -n '
23918 t rset
23919 :rset
23920 s/^[ ]*#[ ]*define[ ][ ]*//
23921 t ok
23922 d
23923 :ok
23924 s/[\\&,]/\\&/g
23925 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23926 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23927 ' >>conftest.defines
23928
23929# Remove the space that was appended to ease matching.
23930# Then replace #undef with comments. This is necessary, for
23931# example, in the case of _POSIX_SOURCE, which is predefined and required
23932# on some systems where configure will not decide to define it.
23933# (The regexp can be short, since the line contains either #define or #undef.)
23934echo 's/ $//
23935s,^[ #]*u.*,/* & */,' >>conftest.defines
23936
23937# Break up conftest.defines:
23938ac_max_sed_lines=50
23939
23940# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23941# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23942# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23943# et cetera.
23944ac_in='$ac_file_inputs'
23945ac_out='"$tmp/out1"'
23946ac_nxt='"$tmp/out2"'
23947
23948while :
23949do
23950 # Write a here document:
23951 cat >>$CONFIG_STATUS <<_ACEOF
23952 # First, check the format of the line:
23953 cat >"\$tmp/defines.sed" <<\\CEOF
23954/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23955/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23956b
23957:def
23958_ACEOF
23959 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23960 echo 'CEOF
23961 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23962 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23963 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23964 grep . conftest.tail >/dev/null || break
23965 rm -f conftest.defines
23966 mv conftest.tail conftest.defines
23967done
23968rm -f conftest.defines conftest.tail
23969
23970echo "ac_result=$ac_in" >>$CONFIG_STATUS
23971cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023972 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023973 echo "/* $configure_input */" >"$tmp/config.h"
23974 cat "$ac_result" >>"$tmp/config.h"
23975 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23976 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23977echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000023978 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023979 rm -f $ac_file
23980 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000023981 fi
23982 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023983 echo "/* $configure_input */"
23984 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000023985 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023986 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000023987 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023989 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23990echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023991 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023992 esac
John Criswell7a73b802003-06-30 21:59:07 +000023993
Reid Spencera773bd52006-08-04 18:18:08 +000023994
23995 case $ac_file$ac_mode in
23996 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023998 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000023999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024000 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024002 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000024004 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024006 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024008 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000024009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000024010 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024012 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024014 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024016 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024018 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024020 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000024021 ${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 +000024022
24023 esac
24024done # for ac_tag
24025
John Criswell7a73b802003-06-30 21:59:07 +000024026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024027{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000024028_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024029chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024030ac_clean_files=$ac_clean_files_save
24031
24032
24033# configure is writing to config.log, and then calls config.status.
24034# config.status does its own redirection, appending to config.log.
24035# Unfortunately, on DOS this fails, as config.log is still kept open
24036# by configure, so config.status won't be able to write to it; its
24037# output is simply discarded. So we exec the FD to /dev/null,
24038# effectively closing config.log, so it can be properly (re)opened and
24039# appended to by config.status. When coming back to configure, we
24040# need to make the FD available again.
24041if test "$no_create" != yes; then
24042 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024043 ac_config_status_args=
24044 test "$silent" = yes &&
24045 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024046 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024048 exec 5>>config.log
24049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24050 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024051 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000024052fi
24053
John Criswell12399a12003-09-30 15:55:44 +000024054#
24055# CONFIG_SUBDIRS section.
24056#
24057if test "$no_recursion" != yes; then
24058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024059 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000024060 ac_sub_configure_args=
24061 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000024062 eval "set x $ac_configure_args"
24063 shift
24064 for ac_arg
24065 do
John Criswell12399a12003-09-30 15:55:44 +000024066 if test -n "$ac_prev"; then
24067 ac_prev=
24068 continue
24069 fi
24070 case $ac_arg in
24071 -cache-file | --cache-file | --cache-fil | --cache-fi \
24072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24073 ac_prev=cache_file ;;
24074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24076 | --c=*)
24077 ;;
24078 --config-cache | -C)
24079 ;;
24080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24081 ac_prev=srcdir ;;
24082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24083 ;;
24084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24085 ac_prev=prefix ;;
24086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24087 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024088 *)
24089 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024090 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024091 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024092 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000024093 esac
24094 done
24095
24096 # Always prepend --prefix to ensure using the same prefix
24097 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000024098 ac_arg="--prefix=$prefix"
24099 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024100 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024101 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024102 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000024103
24104 ac_popdir=`pwd`
24105 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24106
24107 # Do not complain, so a configure script can configure whichever
24108 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000024109 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000024110
Reid Spencera773bd52006-08-04 18:18:08 +000024111 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024112 echo "$as_me:$LINENO: $ac_msg" >&5
24113 echo "$ac_msg" >&6
24114 { as_dir="$ac_dir"
24115 case $as_dir in #(
24116 -*) as_dir=./$as_dir;;
24117 esac
24118 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24119 as_dirs=
24120 while :; do
24121 case $as_dir in #(
24122 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24123 *) as_qdir=$as_dir;;
24124 esac
24125 as_dirs="'$as_qdir' $as_dirs"
24126 as_dir=`$as_dirname -- "$as_dir" ||
24127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24128 X"$as_dir" : 'X\(//\)[^/]' \| \
24129 X"$as_dir" : 'X\(//\)$' \| \
24130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24131echo X"$as_dir" |
24132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24133 s//\1/
24134 q
24135 }
24136 /^X\(\/\/\)[^/].*/{
24137 s//\1/
24138 q
24139 }
24140 /^X\(\/\/\)$/{
24141 s//\1/
24142 q
24143 }
24144 /^X\(\/\).*/{
24145 s//\1/
24146 q
24147 }
24148 s/.*/./; q'`
24149 test -d "$as_dir" && break
24150 done
24151 test -z "$as_dirs" || eval "mkdir $as_dirs"
24152 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24153echo "$as_me: error: cannot create directory $as_dir" >&2;}
24154 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000024155 ac_builddir=.
24156
Reid Spencera773bd52006-08-04 18:18:08 +000024157case "$ac_dir" in
24158.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24159*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024161 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024162 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024163 case $ac_top_builddir_sub in
24164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24166 esac ;;
24167esac
24168ac_abs_top_builddir=$ac_pwd
24169ac_abs_builddir=$ac_pwd$ac_dir_suffix
24170# for backward compatibility:
24171ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000024172
24173case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000024174 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000024175 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000024176 ac_top_srcdir=$ac_top_builddir_sub
24177 ac_abs_top_srcdir=$ac_pwd ;;
24178 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000024179 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000024180 ac_top_srcdir=$srcdir
24181 ac_abs_top_srcdir=$srcdir ;;
24182 *) # Relative name.
24183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24184 ac_top_srcdir=$ac_top_build_prefix$srcdir
24185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000024186esac
Reid Spencera773bd52006-08-04 18:18:08 +000024187ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000024188
24189
Reid Spencera773bd52006-08-04 18:18:08 +000024190 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000024191
24192 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000024193 if test -f "$ac_srcdir/configure.gnu"; then
24194 ac_sub_configure=$ac_srcdir/configure.gnu
24195 elif test -f "$ac_srcdir/configure"; then
24196 ac_sub_configure=$ac_srcdir/configure
24197 elif test -f "$ac_srcdir/configure.in"; then
24198 # This should be Cygnus configure.
24199 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000024200 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024201 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24202echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000024203 ac_sub_configure=
24204 fi
24205
24206 # The recursion is here.
24207 if test -n "$ac_sub_configure"; then
24208 # Make the cache file name correct relative to the subdirectory.
24209 case $cache_file in
24210 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024211 *) # Relative name.
24212 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024213 esac
24214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024215 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24216echo "$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 +000024217 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000024218 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24219 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024220 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24221echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24222 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000024223 fi
24224
Reid Spencera773bd52006-08-04 18:18:08 +000024225 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000024226 done
24227fi
24228