blob: e049b5bd6235f77bf1553f7eef620979d0a4c92e [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebc2fc12011-03-08 03:00:02 +00003# Generated by GNU Autoconf 2.60 for llvm 3.0svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Bill Wendlingebc2fc12011-03-08 03:00:02 +0000564PACKAGE_VERSION='3.0svn'
565PACKAGE_STRING='llvm 3.0svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000644ENABLE_POLLY
645LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000646build
647build_cpu
648build_vendor
649build_os
650host
651host_cpu
652host_vendor
653host_os
654target
655target_cpu
656target_vendor
657target_os
658OS
659HOST_OS
660TARGET_OS
661LINKALL
662NOLINKALL
663LLVM_ON_UNIX
664LLVM_ON_WIN32
665ARCH
666ENDIAN
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LLVM_CROSS_COMPILING
678BUILD_CC
679BUILD_EXEEXT
680BUILD_CXX
681CVSBUILD
682ENABLE_OPTIMIZED
683ENABLE_PROFILING
684DISABLE_ASSERTIONS
685ENABLE_EXPENSIVE_CHECKS
686EXPENSIVE_CHECKS
687DEBUG_RUNTIME
688DEBUG_SYMBOLS
689JIT
690TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000691ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_DOXYGEN
693ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000694ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000696ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000697ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000698ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699TARGETS_TO_BUILD
700LLVM_ENUM_TARGETS
701LLVM_ENUM_ASM_PRINTERS
702LLVM_ENUM_ASM_PARSERS
703LLVM_ENUM_DISASSEMBLERS
704ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000705CLANGPATH
706CLANGXXPATH
707ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712CXX
713CXXFLAGS
714ac_ct_CXX
715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
766LLVMGCCCOMMAND
767LLVMGXXCOMMAND
768LLVMGCC
769LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000770LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771NO_VARIADIC_MACROS
772NO_MISSING_FIELD_INITIALIZERS
773USE_UDIS86
774USE_OPROFILE
775HAVE_PTHREAD
776HUGE_VAL_SANITY
777MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000778LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVMCC1
780LLVMCC1PLUS
781LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000782LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000783LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000784LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000785SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000786SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000787LLVM_PREFIX
788LLVM_BINDIR
789LLVM_LIBDIR
790LLVM_DATADIR
791LLVM_DOCSDIR
792LLVM_ETCDIR
793LLVM_INCLUDEDIR
794LLVM_INFODIR
795LLVM_MANDIR
796LLVM_CONFIGTIME
797BINDINGS_TO_BUILD
798ALL_BINDINGS
799OCAML_LIBDIR
800ENABLE_VISIBILITY_INLINES_HIDDEN
801RPATH
802RDYNAMIC
803LIBOBJS
804LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000805ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812CPPFLAGS
813CPP
814CXX
815CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000816CCC'
John Criswell0157f502010-03-19 21:31:39 +0000817ac_subdirs_all='projects/llvm-gcc
818projects/test-suite
819projects/llvm-test
820projects/poolalloc
821projects/llvm-poolalloc
822projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000824projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000825projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000826projects/llvm-java
827projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000828projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000829projects/llvm-kernel
830tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000857# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000866includedir='${prefix}/include'
867oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000877
878ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000879ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000880for ac_option
881do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000884 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000885 ac_prev=
886 continue
887 fi
888
Reid Spencera773bd52006-08-04 18:18:08 +0000889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
John Criswell7a73b802003-06-30 21:59:07 +0000893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
Reid Spencera773bd52006-08-04 18:18:08 +0000896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
Reid Spencera773bd52006-08-04 18:18:08 +0000920 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000921 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000923 datadir=$ac_optarg ;;
924
Reid Spencera773bd52006-08-04 18:18:08 +0000925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
John Criswell7a73b802003-06-30 21:59:07 +0000932 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000934 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000953 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
Reid Spencera773bd52006-08-04 18:18:08 +0000985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
John Criswell7a73b802003-06-30 21:59:07 +0000991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
Reid Spencera773bd52006-08-04 18:18:08 +00001015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
John Criswell7a73b802003-06-30 21:59:07 +00001020 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001021 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
Reid Spencera773bd52006-08-04 18:18:08 +00001089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
John Criswell7a73b802003-06-30 21:59:07 +00001099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001159 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001195 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001213fi
1214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001220do
Reid Spencera773bd52006-08-04 18:18:08 +00001221 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001222 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001225 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
Reid Spencera773bd52006-08-04 18:18:08 +00001254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001262
1263
John Criswell7a73b802003-06-30 21:59:07 +00001264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001267 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001268 ac_confdir=`$as_dirname -- "$0" ||
1269$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001291 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001292 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
Reid Spencera773bd52006-08-04 18:18:08 +00001298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001302fi
Reid Spencera773bd52006-08-04 18:18:08 +00001303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001332\`configure' configures llvm 3.0svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001405 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1409 YES)
David Greenea696d242007-06-28 19:36:08 +00001410 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001417 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001418 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001419 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001420 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001421 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001422 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001423 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001424 --enable-shared Build a shared library and link tools against it
1425 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001428 --enable-timestamps Enable embedding timestamp information in build
1429 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001439 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001440 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001441
1442Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001447 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 searches PATH)
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001451 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang)
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001457 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001458 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1463 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001464 --with-c-include-dirs Colon separated list of directories clang will
1465 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001474 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001475 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001476 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001479 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001482
1483Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001484 CC C compiler command
1485 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001489 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001490 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
1497Report bugs to <llvmbugs@cs.uiuc.edu>.
1498_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001499ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001505 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_builddir=.
1507
Reid Spencera773bd52006-08-04 18:18:08 +00001508case "$ac_dir" in
1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001512 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518esac
1519ac_abs_top_builddir=$ac_pwd
1520ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521# for backward compatibility:
1522ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001523
1524case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001525 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001526 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001530 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001537esac
Reid Spencera773bd52006-08-04 18:18:08 +00001538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001539
Reid Spencera773bd52006-08-04 18:18:08 +00001540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001548 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001552 done
1553fi
1554
Reid Spencera773bd52006-08-04 18:18:08 +00001555test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001556if $ac_init_version; then
1557 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001558llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001561Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001566Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001567_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001568 exit
John Criswell7a73b802003-06-30 21:59:07 +00001569fi
Reid Spencera773bd52006-08-04 18:18:08 +00001570cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001571This file contains any messages produced by compilers while
1572running configure, to aid debugging if configure makes a mistake.
1573
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001574It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001575generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001576
1577 $ $0 $@
1578
1579_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001580exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001581{
1582cat <<_ASUNAME
1583## --------- ##
1584## Platform. ##
1585## --------- ##
1586
1587hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1595
1596/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001599/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001600/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1603
1604_ASUNAME
1605
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001611 echo "PATH: $as_dir"
1612done
Reid Spencera773bd52006-08-04 18:18:08 +00001613IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001614
1615} >&5
1616
1617cat >&5 <<_ACEOF
1618
1619
1620## ----------- ##
1621## Core tests. ##
1622## ----------- ##
1623
1624_ACEOF
1625
1626
1627# Keep a trace of the command line.
1628# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001630# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001631# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001632ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001633ac_configure_args0=
1634ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001635ac_must_keep_next=false
1636for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001637do
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 for ac_arg
1639 do
1640 case $ac_arg in
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1644 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001645 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 esac
1648 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001653 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001654 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001655 case $ac_arg in
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 esac
1663 ;;
1664 -* ) ac_must_keep_next=true ;;
1665 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001667 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ;;
1669 esac
1670 done
John Criswell7a73b802003-06-30 21:59:07 +00001671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001674
1675# When interrupted or exit'd, cleanup temporary files, and complete
1676# config.log. We remove comments because anyway the quotes in there
1677# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001678# WARNING: Use '\'' to represent an apostrophe within the trap.
1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001680trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1682 {
1683 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001684
John Criswell7a73b802003-06-30 21:59:07 +00001685 cat <<\_ASBOX
1686## ---------------- ##
1687## Cache variables. ##
1688## ---------------- ##
1689_ASBOX
1690 echo
1691 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001692(
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in #(
1696 *${as_nl}*)
1697 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001700 esac
1701 case $ac_var in #(
1702 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001703 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001704 esac ;;
1705 esac
1706 done
John Criswell7a73b802003-06-30 21:59:07 +00001707 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001710 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001714 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001717 esac |
1718 sort
1719)
John Criswell7a73b802003-06-30 21:59:07 +00001720 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001721
1722 cat <<\_ASBOX
1723## ----------------- ##
1724## Output variables. ##
1725## ----------------- ##
1726_ASBOX
1727 echo
1728 for ac_var in $ac_subst_vars
1729 do
Reid Spencera773bd52006-08-04 18:18:08 +00001730 eval ac_val=\$$ac_var
1731 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001733 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001734 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001735 done | sort
1736 echo
1737
1738 if test -n "$ac_subst_files"; then
1739 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001740## ------------------- ##
1741## File substitutions. ##
1742## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001743_ASBOX
1744 echo
1745 for ac_var in $ac_subst_files
1746 do
Reid Spencera773bd52006-08-04 18:18:08 +00001747 eval ac_val=\$$ac_var
1748 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001750 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 done | sort
1753 echo
1754 fi
1755
John Criswell7a73b802003-06-30 21:59:07 +00001756 if test -s confdefs.h; then
1757 cat <<\_ASBOX
1758## ----------- ##
1759## confdefs.h. ##
1760## ----------- ##
1761_ASBOX
1762 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001763 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001764 echo
1765 fi
1766 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001769 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001772 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001773' 0
John Criswell7a73b802003-06-30 21:59:07 +00001774for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001776done
1777ac_signal=0
1778
1779# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001780rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001781
1782# Predefined preprocessor variables.
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_NAME "$PACKAGE_NAME"
1786_ACEOF
1787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791_ACEOF
1792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793
John Criswell7a73b802003-06-30 21:59:07 +00001794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_VERSION "$PACKAGE_VERSION"
1796_ACEOF
1797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798
John Criswell7a73b802003-06-30 21:59:07 +00001799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_STRING "$PACKAGE_STRING"
1801_ACEOF
1802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803
John Criswell7a73b802003-06-30 21:59:07 +00001804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806_ACEOF
1807
1808
1809# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001811if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001813elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001819shift
1820for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001821do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001825 sed 's/^/| /' "$ac_site_file" >&5
1826 . "$ac_site_file"
1827 fi
1828done
1829
1830if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001839 esac
1840 fi
1841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001844 >$cache_file
1845fi
1846
1847# Check that the precious variables saved in the cache have kept the same
1848# value.
1849ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001850for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001855 case $ac_old_set,$ac_new_set in
1856 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001859 ac_cache_corrupted=: ;;
1860 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001863 ac_cache_corrupted=: ;;
1864 ,);;
1865 *)
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001874 fi;;
1875 esac
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1878 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001880 *) ac_arg=$ac_var=$ac_new_val ;;
1881 esac
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001885 esac
1886 fi
1887done
1888if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
Reid Spencera773bd52006-08-04 18:18:08 +00001919
John Criswell7a73b802003-06-30 21:59:07 +00001920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001928LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001929
1930
1931
1932
1933
1934
1935
John Criswell7a73b802003-06-30 21:59:07 +00001936ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001937for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001938 if test -f "$ac_dir/install-sh"; then
1939 ac_aux_dir=$ac_dir
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1941 break
1942 elif test -f "$ac_dir/install.sh"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1945 break
1946 elif test -f "$ac_dir/shtool"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 break
1950 fi
John Criswell7a73b802003-06-30 21:59:07 +00001951done
1952if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001956fi
Reid Spencera773bd52006-08-04 18:18:08 +00001957
1958# These three variables are undocumented and unsupported,
1959# and are intended to be withdrawn in a future Autoconf release.
1960# They can cause serious problems if a builder's source tree is in a directory
1961# whose full name contains unusual characters.
1962ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1965
John Criswell7a73b802003-06-30 21:59:07 +00001966
John Criswell392aaa32003-07-22 19:18:09 +00001967
Reid Spencer2706f8c2004-09-19 23:53:36 +00001968if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001973 fi
John Criswell93e1c722003-09-15 17:04:06 +00001974fi
1975
John Criswell0157f502010-03-19 21:31:39 +00001976
1977
1978if test -d ${srcdir}/projects/llvm-gcc ; then
1979 subdirs="$subdirs projects/llvm-gcc"
1980
1981fi
1982
1983if test -d ${srcdir}/projects/test-suite ; then
1984 subdirs="$subdirs projects/test-suite"
1985
1986fi
1987
1988if test -d ${srcdir}/projects/llvm-test ; then
1989 subdirs="$subdirs projects/llvm-test"
1990
1991fi
1992
1993if test -d ${srcdir}/projects/poolalloc ; then
1994 subdirs="$subdirs projects/poolalloc"
1995
1996fi
1997
1998if test -d ${srcdir}/projects/llvm-poolalloc ; then
1999 subdirs="$subdirs projects/llvm-poolalloc"
2000
2001fi
2002
John Criswell33a911a2003-11-25 20:36:46 +00002003for i in `ls ${srcdir}/projects`
2004do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002005 if test -d ${srcdir}/projects/${i} ; then
2006 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002008 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002009 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002010 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002011 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002012 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002013 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002014;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002015 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002016 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002017 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002018 ;;
John Criswell7def2932010-02-25 22:57:19 +00002019 safecode) subdirs="$subdirs projects/safecode"
2020 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002021 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002022 ;;
John Criswell52c02862010-03-25 13:59:09 +00002023 llvm-gcc) ;;
2024 test-suite) ;;
2025 llvm-test) ;;
2026 poolalloc) ;;
2027 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002028 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002029 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2030echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002031 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002032 esac
John Criswell33a911a2003-11-25 20:36:46 +00002033 fi
2034done
John Criswell559a6c12003-09-30 16:31:48 +00002035
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002036# Check whether --enable-polly was given.
2037if test "${enable_polly+set}" = set; then
2038 enableval=$enable_polly;
2039else
2040 enableval=default
2041fi
2042
2043case "$enableval" in
2044 yes) ENABLE_POLLY=1
2045 ;;
2046 no) ENABLE_POLLY=0
2047 ;;
2048 default) ENABLE_POLLY=1
2049 ;;
2050 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2051echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2052 { (exit 1); exit 1; }; } ;;
2053esac
2054
2055
2056if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2057 LLVM_HAS_POLLY=1
2058
2059 subdirs="$subdirs tools/polly"
2060
2061fi
2062
John Criswell7a73b802003-06-30 21:59:07 +00002063
2064# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002065$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002066 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070{ echo "$as_me:$LINENO: checking build system type" >&5
2071echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2072if test "${ac_cv_build+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002074else
Reid Spencera773bd52006-08-04 18:18:08 +00002075 ac_build_alias=$build_alias
2076test "x$ac_build_alias" = x &&
2077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002082ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002086
2087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002090case $ac_cv_build in
2091*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002092*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093echo "$as_me: error: invalid value of canonical build" >&2;}
2094 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002095esac
John Criswell7a73b802003-06-30 21:59:07 +00002096build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002097ac_save_IFS=$IFS; IFS='-'
2098set x $ac_cv_build
2099shift
2100build_cpu=$1
2101build_vendor=$2
2102shift; shift
2103# Remember, the first character of IFS is used to create $*,
2104# except with old shells:
2105build_os=$*
2106IFS=$ac_save_IFS
2107case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002108
2109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002110{ echo "$as_me:$LINENO: checking host system type" >&5
2111echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2112if test "${ac_cv_host+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002114else
Reid Spencera773bd52006-08-04 18:18:08 +00002115 if test "x$host_alias" = x; then
2116 ac_cv_host=$ac_cv_build
2117else
2118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002119 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002122fi
John Criswell7a73b802003-06-30 21:59:07 +00002123
2124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002125{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002127case $ac_cv_host in
2128*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002129*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130echo "$as_me: error: invalid value of canonical host" >&2;}
2131 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002132esac
John Criswell7a73b802003-06-30 21:59:07 +00002133host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002134ac_save_IFS=$IFS; IFS='-'
2135set x $ac_cv_host
2136shift
2137host_cpu=$1
2138host_vendor=$2
2139shift; shift
2140# Remember, the first character of IFS is used to create $*,
2141# except with old shells:
2142host_os=$*
2143IFS=$ac_save_IFS
2144case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002145
2146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002147{ echo "$as_me:$LINENO: checking target system type" >&5
2148echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2149if test "${ac_cv_target+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002151else
Reid Spencera773bd52006-08-04 18:18:08 +00002152 if test "x$target_alias" = x; then
2153 ac_cv_target=$ac_cv_host
2154else
2155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002156 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2157echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2158 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002159fi
John Criswell7a73b802003-06-30 21:59:07 +00002160
2161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2163echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002164case $ac_cv_target in
2165*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2167echo "$as_me: error: invalid value of canonical target" >&2;}
2168 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002169esac
John Criswell7a73b802003-06-30 21:59:07 +00002170target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002171ac_save_IFS=$IFS; IFS='-'
2172set x $ac_cv_target
2173shift
2174target_cpu=$1
2175target_vendor=$2
2176shift; shift
2177# Remember, the first character of IFS is used to create $*,
2178# except with old shells:
2179target_os=$*
2180IFS=$ac_save_IFS
2181case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002182
2183
2184# The aliases save the names the user supplied, while $host etc.
2185# will get canonicalized.
2186test -n "$target_alias" &&
2187 test "$program_prefix$program_suffix$program_transform_name" = \
2188 NONENONEs,x,x, &&
2189 program_prefix=${target_alias}-
2190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002191{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2192echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2193if test "${llvm_cv_os_type+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002195else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002196 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002197 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002200 llvm_cv_os_type="AIX"
2201 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002202 *-*-irix*)
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="IRIX"
2206 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002207 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002210 llvm_cv_os_type="Cygwin"
2211 llvm_cv_platform_type="Unix" ;;
2212 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002213 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002214 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002215 llvm_cv_os_type="Darwin"
2216 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002217 *-*-minix*)
2218 llvm_cv_link_all_option="-Wl,-all_load"
2219 llvm_cv_no_link_all_option="-Wl,-noall_load"
2220 llvm_cv_os_type="Minix"
2221 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002225 llvm_cv_os_type="FreeBSD"
2226 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002227 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002230 llvm_cv_os_type="OpenBSD"
2231 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002232 *-*-netbsd*)
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="NetBSD"
2236 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002237 *-*-dragonfly*)
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="DragonFly"
2241 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002242 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002245 llvm_cv_os_type="HP-UX"
2246 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002250 llvm_cv_os_type="Interix"
2251 llvm_cv_platform_type="Unix" ;;
2252 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002255 llvm_cv_os_type="Linux"
2256 llvm_cv_platform_type="Unix" ;;
2257 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002258 llvm_cv_link_all_option="-Wl,-z,allextract"
2259 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 llvm_cv_os_type="SunOS"
2261 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002262 *-*-auroraux*)
2263 llvm_cv_link_all_option="-Wl,-z,allextract"
2264 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2265 llvm_cv_os_type="AuroraUX"
2266 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002270 llvm_cv_os_type="Win32"
2271 llvm_cv_platform_type="Win32" ;;
2272 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="MingW"
2276 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002277 *-*-haiku*)
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="Haiku"
2281 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002282 *-unknown-eabi*)
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Freestanding"
2286 llvm_cv_platform_type="Unix" ;;
2287 *-unknown-elf*)
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="Freestanding"
2291 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002293 llvm_cv_link_all_option=""
2294 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295 llvm_cv_os_type="Unknown"
2296 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002297esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2300echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002302{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2303echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2304if test "${llvm_cv_target_os_type+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002306else
2307 case $target in
2308 *-*-aix*)
2309 llvm_cv_target_os_type="AIX" ;;
2310 *-*-irix*)
2311 llvm_cv_target_os_type="IRIX" ;;
2312 *-*-cygwin*)
2313 llvm_cv_target_os_type="Cygwin" ;;
2314 *-*-darwin*)
2315 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002316 *-*-minix*)
2317 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002318 *-*-freebsd*)
2319 llvm_cv_target_os_type="FreeBSD" ;;
2320 *-*-openbsd*)
2321 llvm_cv_target_os_type="OpenBSD" ;;
2322 *-*-netbsd*)
2323 llvm_cv_target_os_type="NetBSD" ;;
2324 *-*-dragonfly*)
2325 llvm_cv_target_os_type="DragonFly" ;;
2326 *-*-hpux*)
2327 llvm_cv_target_os_type="HP-UX" ;;
2328 *-*-interix*)
2329 llvm_cv_target_os_type="Interix" ;;
2330 *-*-linux*)
2331 llvm_cv_target_os_type="Linux" ;;
2332 *-*-solaris*)
2333 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002334 *-*-auroraux*)
2335 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002336 *-*-win32*)
2337 llvm_cv_target_os_type="Win32" ;;
2338 *-*-mingw*)
2339 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002340 *-*-haiku*)
2341 llvm_cv_target_os_type="Haiku" ;;
Douglas Gregor6ced1d12011-07-01 22:41:06 +00002342 *-*-rtems*)
2343 llvm_cv_target_os_type="RTEMS" ;;
Ivan Krasinfb234622011-08-18 22:54:21 +00002344 *-*-nacl*)
2345 llvm_cv_target_os_type="NativeClient" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002346 *-unknown-eabi*)
2347 llvm_cv_target_os_type="Freestanding" ;;
2348 *)
2349 llvm_cv_target_os_type="Unknown" ;;
2350esac
2351fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2353echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002354
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002356 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2357echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2358 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002359fi
2360
Reid Spencer7b3e8512004-12-24 06:29:05 +00002361OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002362
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002363HOST_OS=$llvm_cv_os_type
2364
2365TARGET_OS=$llvm_cv_target_os_type
2366
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367
Reid Spencera773bd52006-08-04 18:18:08 +00002368LINKALL=$llvm_cv_link_all_option
2369
2370NOLINKALL=$llvm_cv_no_link_all_option
2371
2372
Reid Spencer7b3e8512004-12-24 06:29:05 +00002373case $llvm_cv_platform_type in
2374 Unix)
2375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002376cat >>confdefs.h <<\_ACEOF
2377#define LLVM_ON_UNIX 1
2378_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002379
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002380 LLVM_ON_UNIX=1
2381
2382 LLVM_ON_WIN32=0
2383
Reid Spencer7b3e8512004-12-24 06:29:05 +00002384 ;;
2385 Win32)
2386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002387cat >>confdefs.h <<\_ACEOF
2388#define LLVM_ON_WIN32 1
2389_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002390
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002391 LLVM_ON_UNIX=0
2392
2393 LLVM_ON_WIN32=1
2394
Reid Spencer7b3e8512004-12-24 06:29:05 +00002395 ;;
2396esac
2397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002398{ echo "$as_me:$LINENO: checking target architecture" >&5
2399echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2400if test "${llvm_cv_target_arch+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402else
2403 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002404 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002405 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002406 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2407 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002408 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002409 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002410 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002411 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002412 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002413 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002414 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002415 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002416 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002417 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002418esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2421echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002422
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2425echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426fi
John Criswell76595452003-07-01 22:07:39 +00002427
Nick Lewycky83fc4472009-09-29 05:48:51 +00002428# Determine the LLVM native architecture for the target
2429case "$llvm_cv_target_arch" in
2430 x86) LLVM_NATIVE_ARCH="X86" ;;
2431 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2432 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2433esac
2434
2435ARCH=$llvm_cv_target_arch
2436
2437
2438ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439ac_cpp='$CPP $CPPFLAGS'
2440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002443if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2445set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448if test "${ac_cv_prog_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450else
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 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 +00002461 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463 break 2
2464 fi
2465done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002466done
Reid Spencera773bd52006-08-04 18:18:08 +00002467IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468
2469fi
2470fi
2471CC=$ac_cv_prog_CC
2472if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473 { echo "$as_me:$LINENO: result: $CC" >&5
2474echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002476 { echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478fi
2479
Reid Spencera773bd52006-08-04 18:18:08 +00002480
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481fi
2482if test -z "$ac_cv_prog_CC"; then
2483 ac_ct_CC=$CC
2484 # Extract the first word of "gcc", so it can be a program name with args.
2485set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002486{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490else
2491 if test -n "$ac_ct_CC"; then
2492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 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 +00002501 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002503 break 2
2504 fi
2505done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002506done
Reid Spencera773bd52006-08-04 18:18:08 +00002507IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508
2509fi
2510fi
2511ac_ct_CC=$ac_cv_prog_ac_ct_CC
2512if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002513 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2514echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002516 { echo "$as_me:$LINENO: result: no" >&5
2517echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518fi
2519
Reid Spencera773bd52006-08-04 18:18:08 +00002520 if test "x$ac_ct_CC" = x; then
2521 CC=""
2522 else
2523 case $cross_compiling:$ac_tool_warned in
2524yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002525{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2526whose name does not start with the host triplet. If you think this
2527configuration is useful to you, please write to autoconf@gnu.org." >&5
2528echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2529whose name does not start with the host triplet. If you think this
2530configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002531ac_tool_warned=yes ;;
2532esac
2533 CC=$ac_ct_CC
2534 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535else
2536 CC="$ac_cv_prog_CC"
2537fi
2538
2539if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002540 if test -n "$ac_tool_prefix"; then
2541 # 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 +00002542set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550else
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 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 +00002558 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560 break 2
2561 fi
2562done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002563done
Reid Spencera773bd52006-08-04 18:18:08 +00002564IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565
2566fi
2567fi
2568CC=$ac_cv_prog_CC
2569if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002570 { echo "$as_me:$LINENO: result: $CC" >&5
2571echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002572else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002573 { echo "$as_me:$LINENO: result: no" >&5
2574echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575fi
2576
Reid Spencera773bd52006-08-04 18:18:08 +00002577
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002578 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579fi
2580if test -z "$CC"; then
2581 # Extract the first word of "cc", so it can be a program name with args.
2582set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585if test "${ac_cv_prog_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002587else
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2590else
2591 ac_prog_rejected=no
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 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 +00002599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2600 ac_prog_rejected=yes
2601 continue
2602 fi
2603 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605 break 2
2606 fi
2607done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608done
Reid Spencera773bd52006-08-04 18:18:08 +00002609IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610
2611if test $ac_prog_rejected = yes; then
2612 # We found a bogon in the path, so make sure we never use it.
2613 set dummy $ac_cv_prog_CC
2614 shift
2615 if test $# != 0; then
2616 # We chose a different compiler from the bogus one.
2617 # However, it has the same basename, so the bogon will be chosen
2618 # first if we set CC to just the basename; use the full file name.
2619 shift
2620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2621 fi
2622fi
2623fi
2624fi
2625CC=$ac_cv_prog_CC
2626if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627 { echo "$as_me:$LINENO: result: $CC" >&5
2628echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002630 { echo "$as_me:$LINENO: result: no" >&5
2631echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632fi
2633
Reid Spencera773bd52006-08-04 18:18:08 +00002634
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002635fi
2636if test -z "$CC"; then
2637 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002638 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002639 do
2640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644if test "${ac_cv_prog_CC+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002646else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 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 +00002657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002659 break 2
2660 fi
2661done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002662done
Reid Spencera773bd52006-08-04 18:18:08 +00002663IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002664
2665fi
2666fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667CC=$ac_cv_prog_CC
2668if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002669 { echo "$as_me:$LINENO: result: $CC" >&5
2670echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002671else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002672 { echo "$as_me:$LINENO: result: no" >&5
2673echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002674fi
2675
Reid Spencera773bd52006-08-04 18:18:08 +00002676
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002677 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002678 done
2679fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680if test -z "$CC"; then
2681 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002682 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002683do
2684 # Extract the first word of "$ac_prog", so it can be a program name with args.
2685set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002690else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 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 +00002701 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002703 break 2
2704 fi
2705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002706done
Reid Spencera773bd52006-08-04 18:18:08 +00002707IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002708
2709fi
2710fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002711ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002713 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2714echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002716 { echo "$as_me:$LINENO: result: no" >&5
2717echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002718fi
2719
Reid Spencera773bd52006-08-04 18:18:08 +00002720
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002721 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002722done
John Criswell7a73b802003-06-30 21:59:07 +00002723
Reid Spencera773bd52006-08-04 18:18:08 +00002724 if test "x$ac_ct_CC" = x; then
2725 CC=""
2726 else
2727 case $cross_compiling:$ac_tool_warned in
2728yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002729{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2730whose name does not start with the host triplet. If you think this
2731configuration is useful to you, please write to autoconf@gnu.org." >&5
2732echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2733whose name does not start with the host triplet. If you think this
2734configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002735ac_tool_warned=yes ;;
2736esac
2737 CC=$ac_ct_CC
2738 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002739fi
2740
John Criswell7a73b802003-06-30 21:59:07 +00002741fi
2742
2743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002744test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2745See \`config.log' for more details." >&5
2746echo "$as_me: error: no acceptable C compiler found in \$PATH
2747See \`config.log' for more details." >&2;}
2748 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749
John Criswell7a73b802003-06-30 21:59:07 +00002750# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751echo "$as_me:$LINENO: checking for C compiler version" >&5
2752ac_compiler=`set X $ac_compile; echo $2`
2753{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002754case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002760 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }
2763{ (ac_try="$ac_compiler -v >&5"
2764case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
2768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_compiler -v >&5") 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773{ (ac_try="$ac_compiler -V >&5"
2774case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
2778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compiler -V >&5") 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002784cat >conftest.$ac_ext <<_ACEOF
2785/* confdefs.h. */
2786_ACEOF
2787cat confdefs.h >>conftest.$ac_ext
2788cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002789/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002790
John Criswell7a73b802003-06-30 21:59:07 +00002791int
2792main ()
2793{
2794
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002800ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002801# Try to create an executable without -o first, disregard a.out.
2802# It will help us diagnose broken compilers, and finding out an intuition
2803# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002804{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2805echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2806ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2807#
2808# List of possible output files, starting from the most likely.
2809# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2810# only as a last resort. b.out is created by i960 compilers.
2811ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2812#
2813# The IRIX 6 linker writes into existing files which may not be
2814# executable, retaining their permissions. Remove them first so a
2815# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002816ac_rmfiles=
2817for ac_file in $ac_files
2818do
2819 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002821 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822 esac
2823done
2824rm -f $ac_rmfiles
2825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002826if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002827case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002832 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002833 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838# in a Makefile. We should not override ac_cv_exeext if it was cached,
2839# so that the user can short-circuit this test for compilers unknown to
2840# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002841for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002842do
2843 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002844 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002846 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002847 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002848 # We found the default executable, but exeext='' is most
2849 # certainly right.
2850 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002851 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002853 then :; else
2854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855 fi
2856 # We set ac_cv_exeext here because the later test for it is not
2857 # safe: cross compilers may not add the suffix if given an `-o'
2858 # argument, so we may need to know it at that point already.
2859 # Even if this section looks crufty: it has the advantage of
2860 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002861 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002862 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002863 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002864 esac
2865done
Reid Spencera773bd52006-08-04 18:18:08 +00002866test "$ac_cv_exeext" = no && ac_cv_exeext=
2867
John Criswell7a73b802003-06-30 21:59:07 +00002868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002870sed 's/^/| /' conftest.$ac_ext >&5
2871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002872{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2873See \`config.log' for more details." >&5
2874echo "$as_me: error: C compiler cannot create executables
2875See \`config.log' for more details." >&2;}
2876 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002877fi
John Criswell7a73b802003-06-30 21:59:07 +00002878
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002879ac_exeext=$ac_cv_exeext
2880{ echo "$as_me:$LINENO: result: $ac_file" >&5
2881echo "${ECHO_T}$ac_file" >&6; }
2882
2883# Check that the compiler produces executables we can run. If not, either
2884# the compiler is broken, or we cross compile.
2885{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2886echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2887# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2888# If not cross compiling, check that we can run a simple program.
2889if test "$cross_compiling" != yes; then
2890 if { ac_try='./$ac_file'
2891 { (case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_try") 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 cross_compiling=no
2901 else
2902 if test "$cross_compiling" = maybe; then
2903 cross_compiling=yes
2904 else
2905 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2906If you meant to cross compile, use \`--host'.
2907See \`config.log' for more details." >&5
2908echo "$as_me: error: cannot run C compiled programs.
2909If you meant to cross compile, use \`--host'.
2910See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2912 fi
2913 fi
2914fi
2915{ echo "$as_me:$LINENO: result: yes" >&5
2916echo "${ECHO_T}yes" >&6; }
2917
2918rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002919ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002920# Check that the compiler produces executables we can run. If not, either
2921# the compiler is broken, or we cross compile.
2922{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2923echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2924{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2925echo "${ECHO_T}$cross_compiling" >&6; }
2926
2927{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2928echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2929if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002935 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002936 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002939 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2940# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2941# work properly (i.e., refer to `conftest.exe'), while it won't with
2942# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002943for ac_file in conftest.exe conftest conftest.*; do
2944 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002945 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002947 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002948 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002949 * ) break;;
2950 esac
2951done
2952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002953 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2954See \`config.log' for more details." >&5
2955echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2956See \`config.log' for more details." >&2;}
2957 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002958fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002959
2960rm -f conftest$ac_cv_exeext
2961{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2962echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002963
2964rm -f conftest.$ac_ext
2965EXEEXT=$ac_cv_exeext
2966ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002967{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2968echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2969if test "${ac_cv_objext+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002972 cat >conftest.$ac_ext <<_ACEOF
2973/* confdefs.h. */
2974_ACEOF
2975cat confdefs.h >>conftest.$ac_ext
2976cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002977/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002978
John Criswell7a73b802003-06-30 21:59:07 +00002979int
2980main ()
2981{
2982
2983 ;
2984 return 0;
2985}
2986_ACEOF
2987rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002988if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002989case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002994 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002995 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002998 for ac_file in conftest.o conftest.obj conftest.*; do
2999 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003000 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003002 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3003 break;;
3004 esac
3005done
3006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003007 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003008sed 's/^/| /' conftest.$ac_ext >&5
3009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003010{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3011See \`config.log' for more details." >&5
3012echo "$as_me: error: cannot compute suffix of object files: cannot compile
3013See \`config.log' for more details." >&2;}
3014 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003016
John Criswell7a73b802003-06-30 21:59:07 +00003017rm -f conftest.$ac_cv_objext conftest.$ac_ext
3018fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003019{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3020echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003021OBJEXT=$ac_cv_objext
3022ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003023{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3024echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3025if test "${ac_cv_c_compiler_gnu+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003027else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003028 cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h. */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003034
John Criswell7a73b802003-06-30 21:59:07 +00003035int
3036main ()
3037{
3038#ifndef __GNUC__
3039 choke me
3040#endif
3041
3042 ;
3043 return 0;
3044}
3045_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003046rm -f conftest.$ac_objext
3047if { (ac_try="$ac_compile"
3048case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compile") 2>conftest.er1
3054 ac_status=$?
3055 grep -v '^ *+' conftest.er1 >conftest.err
3056 rm -f conftest.er1
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064esac
3065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003080 ac_compiler_gnu=yes
3081else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003082 echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003087
Reid Spencera773bd52006-08-04 18:18:08 +00003088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003089ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003090
3091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003092{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3093echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3094GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003095ac_test_CFLAGS=${CFLAGS+set}
3096ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003097{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3098echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3099if test "${ac_cv_prog_cc_g+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003101else
Reid Spencera773bd52006-08-04 18:18:08 +00003102 ac_save_c_werror_flag=$ac_c_werror_flag
3103 ac_c_werror_flag=yes
3104 ac_cv_prog_cc_g=no
3105 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003106 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003111/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003112
John Criswell7a73b802003-06-30 21:59:07 +00003113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003155 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003157 echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 CFLAGS=""
3161 cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h. */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003166/* end confdefs.h. */
3167
3168int
3169main ()
3170{
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003176rm -f conftest.$ac_objext
3177if { (ac_try="$ac_compile"
3178case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3184 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3191 { (case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194esac
3195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_try") 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; } &&
3200 { ac_try='test -s conftest.$ac_objext'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 :
Torok Edwin871384f2010-01-26 08:50:50 +00003211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003212 echo "$as_me: failed program was:" >&5
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003216 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217 cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003222/* end confdefs.h. */
3223
3224int
3225main ()
3226{
3227
3228 ;
3229 return 0;
3230}
3231_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003232rm -f conftest.$ac_objext
3233if { (ac_try="$ac_compile"
3234case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237esac
3238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_compile") 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3247 { (case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_try") 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; } &&
3256 { ac_try='test -s conftest.$ac_objext'
3257 { (case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
3261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_try") 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003266 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003267else
3268 echo "$as_me: failed program was:" >&5
3269sed 's/^/| /' conftest.$ac_ext >&5
3270
3271
John Criswell7a73b802003-06-30 21:59:07 +00003272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003273
Reid Spencera773bd52006-08-04 18:18:08 +00003274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003276
Reid Spencera773bd52006-08-04 18:18:08 +00003277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003279
Reid Spencera773bd52006-08-04 18:18:08 +00003280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003283{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3284echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003285if test "$ac_test_CFLAGS" = set; then
3286 CFLAGS=$ac_save_CFLAGS
3287elif test $ac_cv_prog_cc_g = yes; then
3288 if test "$GCC" = yes; then
3289 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003290 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003292 fi
3293else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294 if test "$GCC" = yes; then
3295 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003296 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003298 fi
3299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003300{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3301echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3302if test "${ac_cv_prog_cc_c89+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304else
Reid Spencera773bd52006-08-04 18:18:08 +00003305 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003306ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003307cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312/* end confdefs.h. */
3313#include <stdarg.h>
3314#include <stdio.h>
3315#include <sys/types.h>
3316#include <sys/stat.h>
3317/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3318struct buf { int x; };
3319FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320static char *e (p, i)
3321 char **p;
3322 int i;
3323{
3324 return p[i];
3325}
3326static char *f (char * (*g) (char **, int), char **p, ...)
3327{
3328 char *s;
3329 va_list v;
3330 va_start (v,p);
3331 s = g (p, va_arg (v,int));
3332 va_end (v);
3333 return s;
3334}
3335
3336/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3337 function prototypes and stuff, but not '\xHH' hex character constants.
3338 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003339 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3341 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003342 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3344
Reid Spencera773bd52006-08-04 18:18:08 +00003345/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3346 inside strings and character constants. */
3347#define FOO(x) 'x'
3348int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3349
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350int test (int i, double x);
3351struct s1 {int (*f) (int a);};
3352struct s2 {int (*f) (double a);};
3353int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3354int argc;
3355char **argv;
3356int
3357main ()
3358{
3359return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3360 ;
3361 return 0;
3362}
3363_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003364for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003366do
3367 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003368 rm -f conftest.$ac_objext
3369if { (ac_try="$ac_compile"
3370case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_compile") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3383 { (case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_try") 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396esac
3397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_try") 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003402 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003403else
3404 echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003409
Reid Spencera773bd52006-08-04 18:18:08 +00003410rm -f core conftest.err conftest.$ac_objext
3411 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412done
Reid Spencera773bd52006-08-04 18:18:08 +00003413rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003414CC=$ac_save_CC
3415
3416fi
Reid Spencera773bd52006-08-04 18:18:08 +00003417# AC_CACHE_VAL
3418case "x$ac_cv_prog_cc_c89" in
3419 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003420 { echo "$as_me:$LINENO: result: none needed" >&5
3421echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003422 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003423 { echo "$as_me:$LINENO: result: unsupported" >&5
3424echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003426 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003427 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3428echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429esac
3430
John Criswell0c38eaf2003-09-10 15:17:25 +00003431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432ac_ext=c
3433ac_cpp='$CPP $CPPFLAGS'
3434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437
3438
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003444{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3445echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003446# On Suns, sometimes $CPP names a directory.
3447if test -n "$CPP" && test -d "$CPP"; then
3448 CPP=
3449fi
3450if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003451 if test "${ac_cv_prog_CPP+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003453else
3454 # Double quotes because CPP needs to be expanded
3455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3456 do
3457 ac_preproc_ok=false
3458for ac_c_preproc_warn_flag in '' yes
3459do
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
3462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463 # <limits.h> exists even on freestanding compilers.
3464 # On the NeXT, cc -E runs the code through the compiler's parser,
3465 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003466 cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003471/* end confdefs.h. */
3472#ifdef __STDC__
3473# include <limits.h>
3474#else
3475# include <assert.h>
3476#endif
3477 Syntax error
3478_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003479if { (ac_try="$ac_cpp conftest.$ac_ext"
3480case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483esac
3484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null; then
3492 if test -s conftest.err; then
3493 ac_cpp_err=$ac_c_preproc_warn_flag
3494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3495 else
3496 ac_cpp_err=
3497 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003499 ac_cpp_err=yes
3500fi
3501if test -z "$ac_cpp_err"; then
3502 :
3503else
3504 echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003507 # Broken: fails on valid input.
3508continue
3509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003510
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511rm -f conftest.err conftest.$ac_ext
3512
Reid Spencera773bd52006-08-04 18:18:08 +00003513 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003514 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003515 cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003520/* end confdefs.h. */
3521#include <ac_nonexistent.h>
3522_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003523if { (ac_try="$ac_cpp conftest.$ac_ext"
3524case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527esac
3528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } >/dev/null; then
3536 if test -s conftest.err; then
3537 ac_cpp_err=$ac_c_preproc_warn_flag
3538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3539 else
3540 ac_cpp_err=
3541 fi
3542else
3543 ac_cpp_err=yes
3544fi
3545if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003546 # Broken: success on invalid input.
3547continue
3548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003549 echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003552 # Passes both tests.
3553ac_preproc_ok=:
3554break
3555fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003556
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003557rm -f conftest.err conftest.$ac_ext
3558
3559done
3560# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003562if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003563 break
3564fi
3565
3566 done
3567 ac_cv_prog_CPP=$CPP
3568
3569fi
3570 CPP=$ac_cv_prog_CPP
3571else
3572 ac_cv_prog_CPP=$CPP
3573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003574{ echo "$as_me:$LINENO: result: $CPP" >&5
3575echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003576ac_preproc_ok=false
3577for ac_c_preproc_warn_flag in '' yes
3578do
3579 # Use a header file that comes with gcc, so configuring glibc
3580 # with a fresh cross-compiler works.
3581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582 # <limits.h> exists even on freestanding compilers.
3583 # On the NeXT, cc -E runs the code through the compiler's parser,
3584 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003585 cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003590/* end confdefs.h. */
3591#ifdef __STDC__
3592# include <limits.h>
3593#else
3594# include <assert.h>
3595#endif
3596 Syntax error
3597_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003598if { (ac_try="$ac_cpp conftest.$ac_ext"
3599case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602esac
3603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } >/dev/null; then
3611 if test -s conftest.err; then
3612 ac_cpp_err=$ac_c_preproc_warn_flag
3613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3614 else
3615 ac_cpp_err=
3616 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003618 ac_cpp_err=yes
3619fi
3620if test -z "$ac_cpp_err"; then
3621 :
3622else
3623 echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003626 # Broken: fails on valid input.
3627continue
3628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003629
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630rm -f conftest.err conftest.$ac_ext
3631
Reid Spencera773bd52006-08-04 18:18:08 +00003632 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003633 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003639/* end confdefs.h. */
3640#include <ac_nonexistent.h>
3641_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003642if { (ac_try="$ac_cpp conftest.$ac_ext"
3643case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646esac
3647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } >/dev/null; then
3655 if test -s conftest.err; then
3656 ac_cpp_err=$ac_c_preproc_warn_flag
3657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3658 else
3659 ac_cpp_err=
3660 fi
3661else
3662 ac_cpp_err=yes
3663fi
3664if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003665 # Broken: success on invalid input.
3666continue
3667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003668 echo "$as_me: failed program was:" >&5
3669sed 's/^/| /' conftest.$ac_ext >&5
3670
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003671 # Passes both tests.
3672ac_preproc_ok=:
3673break
3674fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003675
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003676rm -f conftest.err conftest.$ac_ext
3677
3678done
3679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3680rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003681if $ac_preproc_ok; then
3682 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003684 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3685See \`config.log' for more details." >&5
3686echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3687See \`config.log' for more details." >&2;}
3688 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003689fi
3690
John Criswell7a73b802003-06-30 21:59:07 +00003691ac_ext=c
3692ac_cpp='$CPP $CPPFLAGS'
3693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696
John Criswell7a73b802003-06-30 21:59:07 +00003697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003698{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3699echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3700if test "${ac_cv_path_GREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003703 # Extract the first word of "grep ggrep" to use in msg output
3704if test -z "$GREP"; then
3705set dummy grep ggrep; ac_prog_name=$2
3706if test "${ac_cv_path_GREP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708else
Reid Spencera773bd52006-08-04 18:18:08 +00003709 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003710# Loop through the user's path and test for each of PROGNAME-LIST
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003712for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003716 for ac_prog in grep ggrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3719 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3720 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003721 # Check for GNU $ac_path_GREP
3722case `"$ac_path_GREP" --version 2>&1` in
3723*GNU*)
3724 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3725*)
3726 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003728 while :
3729 do
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003733 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003734 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003736 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003737 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_GREP="$ac_path_GREP"
3740 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003741 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3744 done
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746esac
3747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003748
3749 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003750 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003751done
3752
3753done
Reid Spencera773bd52006-08-04 18:18:08 +00003754IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003755
3756
3757fi
3758
3759GREP="$ac_cv_path_GREP"
3760if test -z "$GREP"; then
3761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763 { (exit 1); exit 1; }; }
3764fi
3765
Reid Spencera773bd52006-08-04 18:18:08 +00003766else
3767 ac_cv_path_GREP=$GREP
3768fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003770
Reid Spencera773bd52006-08-04 18:18:08 +00003771fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003772{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3773echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003774 GREP="$ac_cv_path_GREP"
3775
3776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003777{ echo "$as_me:$LINENO: checking for egrep" >&5
3778echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3779if test "${ac_cv_path_EGREP+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003781else
3782 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3783 then ac_cv_path_EGREP="$GREP -E"
3784 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003785 # Extract the first word of "egrep" to use in msg output
3786if test -z "$EGREP"; then
3787set dummy egrep; ac_prog_name=$2
3788if test "${ac_cv_path_EGREP+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
Reid Spencera773bd52006-08-04 18:18:08 +00003791 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003792# Loop through the user's path and test for each of PROGNAME-LIST
3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003794for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3795do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003798 for ac_prog in egrep; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3801 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3802 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003803 # Check for GNU $ac_path_EGREP
3804case `"$ac_path_EGREP" --version 2>&1` in
3805*GNU*)
3806 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3807*)
3808 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003809 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003810 while :
3811 do
3812 cat "conftest.in" "conftest.in" >"conftest.tmp"
3813 mv "conftest.tmp" "conftest.in"
3814 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003815 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003816 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003818 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003819 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3820 # Best one so far, save it but keep looking for a better one
3821 ac_cv_path_EGREP="$ac_path_EGREP"
3822 ac_path_EGREP_max=$ac_count
3823 fi
3824 # 10*(2^10) chars as input seems more than enough
3825 test $ac_count -gt 10 && break
3826 done
3827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3828esac
3829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003830
3831 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003832 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003833done
3834
3835done
Reid Spencera773bd52006-08-04 18:18:08 +00003836IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003837
3838
3839fi
3840
3841EGREP="$ac_cv_path_EGREP"
3842if test -z "$EGREP"; then
3843 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3844echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3845 { (exit 1); exit 1; }; }
3846fi
3847
Reid Spencera773bd52006-08-04 18:18:08 +00003848else
3849 ac_cv_path_EGREP=$EGREP
3850fi
3851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003852
Reid Spencera773bd52006-08-04 18:18:08 +00003853 fi
3854fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003855{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3856echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003857 EGREP="$ac_cv_path_EGREP"
3858
3859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003860{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3861echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3862if test "${ac_cv_header_stdc+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003865 cat >conftest.$ac_ext <<_ACEOF
3866/* confdefs.h. */
3867_ACEOF
3868cat confdefs.h >>conftest.$ac_ext
3869cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003870/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003871#include <stdlib.h>
3872#include <stdarg.h>
3873#include <string.h>
3874#include <float.h>
3875
John Criswell0c38eaf2003-09-10 15:17:25 +00003876int
3877main ()
3878{
3879
3880 ;
3881 return 0;
3882}
John Criswell7a73b802003-06-30 21:59:07 +00003883_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003884rm -f conftest.$ac_objext
3885if { (ac_try="$ac_compile"
3886case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889esac
3890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_compile") 2>conftest.er1
3892 ac_status=$?
3893 grep -v '^ *+' conftest.er1 >conftest.err
3894 rm -f conftest.er1
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } &&
3898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3899 { (case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902esac
3903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_try") 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912esac
3913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_try") 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003918 ac_cv_header_stdc=yes
3919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003920 echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
3923 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003925
Reid Spencera773bd52006-08-04 18:18:08 +00003926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003927
3928if test $ac_cv_header_stdc = yes; then
3929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003930 cat >conftest.$ac_ext <<_ACEOF
3931/* confdefs.h. */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003936#include <string.h>
3937
3938_ACEOF
3939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003940 $EGREP "memchr" >/dev/null 2>&1; then
3941 :
John Criswell7a73b802003-06-30 21:59:07 +00003942else
3943 ac_cv_header_stdc=no
3944fi
3945rm -f conftest*
3946
3947fi
3948
3949if test $ac_cv_header_stdc = yes; then
3950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003951 cat >conftest.$ac_ext <<_ACEOF
3952/* confdefs.h. */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003956/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003957#include <stdlib.h>
3958
3959_ACEOF
3960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961 $EGREP "free" >/dev/null 2>&1; then
3962 :
John Criswell7a73b802003-06-30 21:59:07 +00003963else
3964 ac_cv_header_stdc=no
3965fi
3966rm -f conftest*
3967
3968fi
3969
3970if test $ac_cv_header_stdc = yes; then
3971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003972 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003973 :
3974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975 cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h. */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003980/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003981#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003982#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003983#if ((' ' & 0x0FF) == 0x020)
3984# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3985# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3986#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003987# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003988 (('a' <= (c) && (c) <= 'i') \
3989 || ('j' <= (c) && (c) <= 'r') \
3990 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003991# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3992#endif
3993
3994#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3995int
3996main ()
3997{
3998 int i;
3999 for (i = 0; i < 256; i++)
4000 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004001 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004002 return 2;
4003 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004004}
4005_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004006rm -f conftest$ac_exeext
4007if { (ac_try="$ac_link"
4008case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011esac
4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_link") 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4017 { (case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020esac
4021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_try") 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 :
John Criswell7a73b802003-06-30 21:59:07 +00004027else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028 echo "$as_me: program exited with status $ac_status" >&5
4029echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032( exit $ac_status )
4033ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004035rm -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 +00004036fi
4037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004038
John Criswell7a73b802003-06-30 21:59:07 +00004039fi
4040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4042echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004043if test $ac_cv_header_stdc = yes; then
4044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004045cat >>confdefs.h <<\_ACEOF
4046#define STDC_HEADERS 1
4047_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004048
4049fi
4050
Reid Spencera773bd52006-08-04 18:18:08 +00004051# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004052
4053
4054
4055
4056
4057
4058
4059
4060
Reid Spencera773bd52006-08-04 18:18:08 +00004061for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4062 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004063do
4064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4065{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070 cat >conftest.$ac_ext <<_ACEOF
4071/* confdefs.h. */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h. */
4076$ac_includes_default
4077
4078#include <$ac_header>
4079_ACEOF
4080rm -f conftest.$ac_objext
4081if { (ac_try="$ac_compile"
4082case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4095 { (case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098esac
4099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_try") 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108esac
4109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_try") 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 eval "$as_ac_Header=yes"
4115else
4116 echo "$as_me: failed program was:" >&5
4117sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 eval "$as_ac_Header=no"
4120fi
4121
4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123fi
4124ac_res=`eval echo '${'$as_ac_Header'}'`
4125 { echo "$as_me:$LINENO: result: $ac_res" >&5
4126echo "${ECHO_T}$ac_res" >&6; }
4127if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004128 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004130_ACEOF
4131
4132fi
4133
4134done
4135
4136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004137{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4138echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4139if test "${ac_cv_c_bigendian+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004142 # See if sys/param.h defines the BYTE_ORDER macro.
4143cat >conftest.$ac_ext <<_ACEOF
4144/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004145_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004146cat confdefs.h >>conftest.$ac_ext
4147cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004148/* end confdefs.h. */
4149#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004151
4152int
4153main ()
4154{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004155#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4156 bogus endian macros
4157#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004158
4159 ;
4160 return 0;
4161}
4162_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004163rm -f conftest.$ac_objext
4164if { (ac_try="$ac_compile"
4165case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_compile") 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4178 { (case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181esac
4182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_try") 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191esac
4192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_try") 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004197 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004198cat >conftest.$ac_ext <<_ACEOF
4199/* confdefs.h. */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004203/* end confdefs.h. */
4204#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004206
4207int
4208main ()
4209{
4210#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004211 not big endian
4212#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004213
4214 ;
4215 return 0;
4216}
4217_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004218rm -f conftest.$ac_objext
4219if { (ac_try="$ac_compile"
4220case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compile") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233 { (case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_try") 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246esac
4247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_try") 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004252 ac_cv_c_bigendian=yes
4253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004254 echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257 ac_cv_c_bigendian=no
4258fi
4259
4260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261else
4262 echo "$as_me: failed program was:" >&5
4263sed 's/^/| /' conftest.$ac_ext >&5
4264
4265 # It does not; compile a test program.
4266if test "$cross_compiling" = yes; then
4267 # try to guess the endianness by grepping values into an object file
4268 ac_cv_c_bigendian=unknown
4269 cat >conftest.$ac_ext <<_ACEOF
4270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
4275short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4276short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4277void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4278short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4279short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4280void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004281int
4282main ()
4283{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004284 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004285 ;
4286 return 0;
4287}
4288_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289rm -f conftest.$ac_objext
4290if { (ac_try="$ac_compile"
4291case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_compile") 2>conftest.er1
4297 ac_status=$?
4298 grep -v '^ *+' conftest.er1 >conftest.err
4299 rm -f conftest.er1
4300 cat conftest.err >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4304 { (case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307esac
4308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_try") 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004324 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004325fi
4326if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4327 if test "$ac_cv_c_bigendian" = unknown; then
4328 ac_cv_c_bigendian=no
4329 else
4330 # finding both strings is unlikely to happen, but who knows?
4331 ac_cv_c_bigendian=unknown
4332 fi
4333fi
Reid Spencera773bd52006-08-04 18:18:08 +00004334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004335 echo "$as_me: failed program was:" >&5
4336sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004338
Torok Edwin871384f2010-01-26 08:50:50 +00004339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004340
Reid Spencera773bd52006-08-04 18:18:08 +00004341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343 cat >conftest.$ac_ext <<_ACEOF
4344/* confdefs.h. */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004348/* end confdefs.h. */
4349$ac_includes_default
4350int
4351main ()
4352{
4353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004354 /* Are we little or big endian? From Harbison&Steele. */
4355 union
4356 {
4357 long int l;
4358 char c[sizeof (long int)];
4359 } u;
4360 u.l = 1;
4361 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004362
4363 ;
4364 return 0;
4365}
4366_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004367rm -f conftest$ac_exeext
4368if { (ac_try="$ac_link"
4369case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_link") 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378 { (case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381esac
4382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_try") 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004387 ac_cv_c_bigendian=no
4388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004389 echo "$as_me: program exited with status $ac_status" >&5
4390echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393( exit $ac_status )
4394ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004396rm -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 +00004397fi
4398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004399
Reid Spencera773bd52006-08-04 18:18:08 +00004400fi
4401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403fi
4404{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4405echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4406case $ac_cv_c_bigendian in
4407 yes)
4408 ENDIAN=big
4409 ;;
4410 no)
4411 ENDIAN=little
4412 ;;
4413 *)
4414 { { echo "$as_me:$LINENO: error: unknown endianness
4415presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4416echo "$as_me: error: unknown endianness
4417presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4418 { (exit 1); exit 1; }; } ;;
4419esac
Reid Spencera773bd52006-08-04 18:18:08 +00004420
4421
4422if test "$cross_compiling" = yes; then
4423 LLVM_CROSS_COMPILING=1
4424
4425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004426{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4427echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4428if test "${ac_cv_build_exeext+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004430else
4431 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4432 ac_cv_build_exeext=.exe
4433else
4434 ac_build_prefix=${build_alias}-
4435
4436 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4437set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004442else
4443 if test -n "$BUILD_CC"; then
4444 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 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 +00004453 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004455 break 2
4456 fi
4457done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004458done
Reid Spencera773bd52006-08-04 18:18:08 +00004459IFS=$as_save_IFS
4460
4461fi
4462fi
4463BUILD_CC=$ac_cv_prog_BUILD_CC
4464if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004465 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4466echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004468 { echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004470fi
4471
4472
4473 if test -z "$BUILD_CC"; then
4474 # Extract the first word of "gcc", so it can be a program name with args.
4475set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004480else
4481 if test -n "$BUILD_CC"; then
4482 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4483else
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 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 +00004491 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004493 break 2
4494 fi
4495done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004496done
Reid Spencera773bd52006-08-04 18:18:08 +00004497IFS=$as_save_IFS
4498
4499fi
4500fi
4501BUILD_CC=$ac_cv_prog_BUILD_CC
4502if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004503 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4504echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004505else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004506 { echo "$as_me:$LINENO: result: no" >&5
4507echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004508fi
4509
4510
4511 if test -z "$BUILD_CC"; then
4512 # Extract the first word of "cc", so it can be a program name with args.
4513set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004518else
4519 if test -n "$BUILD_CC"; then
4520 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4521else
4522 ac_prog_rejected=no
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 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 +00004530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4531 ac_prog_rejected=yes
4532 continue
4533 fi
4534 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004536 break 2
4537 fi
4538done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004539done
Reid Spencera773bd52006-08-04 18:18:08 +00004540IFS=$as_save_IFS
4541
4542if test $ac_prog_rejected = yes; then
4543 # We found a bogon in the path, so make sure we never use it.
4544 set dummy $ac_cv_prog_BUILD_CC
4545 shift
4546 if test $# != 0; then
4547 # We chose a different compiler from the bogus one.
4548 # However, it has the same basename, so the bogon will be chosen
4549 # first if we set BUILD_CC to just the basename; use the full file name.
4550 shift
4551 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4552 fi
4553fi
4554fi
4555fi
4556BUILD_CC=$ac_cv_prog_BUILD_CC
4557if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004558 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4559echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004560else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004561 { echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004563fi
4564
4565
4566 fi
4567 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4569echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4570 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004571 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4572 rm -f conftest*
4573 echo 'int main () { return 0; }' > conftest.$ac_ext
4574 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004575 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004576 (eval $ac_build_link) 2>&5
4577 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004580 for file in conftest.*; do
4581 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004582 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004583 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4584 esac
4585 done
4586 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004587 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4588echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4589 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004590 fi
4591 rm -f conftest*
4592 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4593fi
4594fi
4595
4596BUILD_EXEEXT=""
4597test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004598{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4599echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004600ac_build_exeext=$BUILD_EXEEXT
4601
Jim Grosbach673612e2008-10-02 22:56:44 +00004602 ac_build_prefix=${build_alias}-
4603 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4604set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4607if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004609else
4610 if test -n "$BUILD_CXX"; then
4611 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4612else
4613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 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 +00004620 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004622 break 2
4623 fi
4624done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004625done
Jim Grosbach673612e2008-10-02 22:56:44 +00004626IFS=$as_save_IFS
4627
4628fi
4629fi
4630BUILD_CXX=$ac_cv_prog_BUILD_CXX
4631if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004632 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4633echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004635 { echo "$as_me:$LINENO: result: no" >&5
4636echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004637fi
4638
4639
4640 if test -z "$BUILD_CXX"; then
4641 # Extract the first word of "g++", so it can be a program name with args.
4642set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004647else
4648 if test -n "$BUILD_CXX"; then
4649 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 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 +00004658 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004660 break 2
4661 fi
4662done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663done
Jim Grosbach673612e2008-10-02 22:56:44 +00004664IFS=$as_save_IFS
4665
4666fi
4667fi
4668BUILD_CXX=$ac_cv_prog_BUILD_CXX
4669if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004670 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4671echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673 { echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004675fi
4676
4677
4678 if test -z "$BUILD_CXX"; then
4679 # Extract the first word of "c++", so it can be a program name with args.
4680set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004681{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004685else
4686 if test -n "$BUILD_CXX"; then
4687 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4688else
4689 ac_prog_rejected=no
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 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 +00004697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4698 ac_prog_rejected=yes
4699 continue
4700 fi
4701 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004703 break 2
4704 fi
4705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706done
Jim Grosbach673612e2008-10-02 22:56:44 +00004707IFS=$as_save_IFS
4708
4709if test $ac_prog_rejected = yes; then
4710 # We found a bogon in the path, so make sure we never use it.
4711 set dummy $ac_cv_prog_BUILD_CXX
4712 shift
4713 if test $# != 0; then
4714 # We chose a different compiler from the bogus one.
4715 # However, it has the same basename, so the bogon will be chosen
4716 # first if we set BUILD_CXX to just the basename; use the full file name.
4717 shift
4718 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4719 fi
4720fi
4721fi
4722fi
4723BUILD_CXX=$ac_cv_prog_BUILD_CXX
4724if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004725 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4726echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004727else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004728 { echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004730fi
4731
4732
4733 fi
4734 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004735else
4736 LLVM_CROSS_COMPILING=0
4737
4738fi
4739
Dan Gohman56fb5f92010-08-04 16:25:01 +00004740if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004741 cvsbuild="yes"
4742 optimize="no"
4743 CVSBUILD=CVSBUILD=1
4744
4745else
4746 cvsbuild="no"
4747 optimize="yes"
4748fi
4749
4750
4751# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004753 enableval=$enable_optimized;
4754else
4755 enableval=$optimize
4756fi
4757
4758if test ${enableval} = "no" ; then
4759 ENABLE_OPTIMIZED=
4760
4761else
4762 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4763
4764fi
4765
David Greene2a5a12c2009-04-17 14:50:39 +00004766# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004768 enableval=$enable_profiling;
4769else
4770 enableval="no"
4771fi
4772
4773if test ${enableval} = "no" ; then
4774 ENABLE_PROFILING=
4775
4776else
4777 ENABLE_PROFILING=ENABLE_PROFILING=1
4778
4779fi
4780
Reid Spencera773bd52006-08-04 18:18:08 +00004781# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004782if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004783 enableval=$enable_assertions;
4784else
4785 enableval="yes"
4786fi
4787
4788if test ${enableval} = "yes" ; then
4789 DISABLE_ASSERTIONS=
4790
4791else
4792 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4793
4794fi
4795
David Greenea696d242007-06-28 19:36:08 +00004796# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004798 enableval=$enable_expensive_checks;
4799else
4800 enableval="no"
4801fi
4802
4803if test ${enableval} = "yes" ; then
4804 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4805
4806 EXPENSIVE_CHECKS=yes
4807
4808else
4809 ENABLE_EXPENSIVE_CHECKS=
4810
4811 EXPENSIVE_CHECKS=no
4812
4813fi
4814
Reid Spencer8b2e1412006-11-17 03:32:33 +00004815# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004816if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004817 enableval=$enable_debug_runtime;
4818else
4819 enableval=no
4820fi
4821
4822if test ${enableval} = "no" ; then
4823 DEBUG_RUNTIME=
4824
4825else
4826 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4827
4828fi
4829
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004830# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004832 enableval=$enable_debug_symbols;
4833else
4834 enableval=no
4835fi
4836
4837if test ${enableval} = "no" ; then
4838 DEBUG_SYMBOLS=
4839
4840else
4841 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4842
4843fi
4844
Reid Spencera773bd52006-08-04 18:18:08 +00004845# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004846if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004847 enableval=$enable_jit;
4848else
4849 enableval=default
4850fi
4851
4852if test ${enableval} = "no"
4853then
4854 JIT=
4855
4856else
4857 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004858 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004859 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004860 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004861 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004862 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004863 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004864 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004865 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004866 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004867 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004868 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004869 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00004870 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004871 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004872 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004873 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004874 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004875 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004876 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004877 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004878 Blackfin) TARGET_HAS_JIT=0
4879 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004880 MBlaze) TARGET_HAS_JIT=0
4881 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004882 PTX) TARGET_HAS_JIT=0
4883 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004884 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004885 ;;
4886 esac
4887fi
4888
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004889# Check whether --enable-docs was given.
4890if test "${enable_docs+set}" = set; then
4891 enableval=$enable_docs;
4892else
4893 enableval=default
4894fi
4895
4896case "$enableval" in
4897 yes) ENABLE_DOCS=1
4898 ;;
4899 no) ENABLE_DOCS=0
4900 ;;
4901 default) ENABLE_DOCS=1
4902 ;;
4903 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4904echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4905 { (exit 1); exit 1; }; } ;;
4906esac
4907
Reid Spencera773bd52006-08-04 18:18:08 +00004908# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004909if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004910 enableval=$enable_doxygen;
4911else
4912 enableval=default
4913fi
4914
4915case "$enableval" in
4916 yes) ENABLE_DOXYGEN=1
4917 ;;
4918 no) ENABLE_DOXYGEN=0
4919 ;;
4920 default) ENABLE_DOXYGEN=0
4921 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4923echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4924 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004925esac
4926
4927# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004928if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004929 enableval=$enable_threads;
4930else
Reid Spencer65c5d752006-11-05 17:08:18 +00004931 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004932fi
4933
4934case "$enableval" in
4935 yes) ENABLE_THREADS=1
4936 ;;
4937 no) ENABLE_THREADS=0
4938 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004939 default) ENABLE_THREADS=1
4940 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004941 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4942echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4943 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004944esac
4945
Owen Andersona8603702009-05-19 22:18:56 +00004946cat >>confdefs.h <<_ACEOF
4947#define ENABLE_THREADS $ENABLE_THREADS
4948_ACEOF
4949
4950
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00004951# Check whether --enable-pthreads was given.
4952if test "${enable_pthreads+set}" = set; then
4953 enableval=$enable_pthreads;
4954else
4955 enableval=default
4956fi
4957
4958case "$enableval" in
4959 yes) ENABLE_PTHREADS=1
4960 ;;
4961 no) ENABLE_PTHREADS=0
4962 ;;
4963 default) ENABLE_PTHREADS=1
4964 ;;
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4966echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4968esac
4969
Reid Spencer89b0d992006-12-16 22:07:52 +00004970# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004971if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004972 enableval=$enable_pic;
4973else
4974 enableval=default
4975fi
4976
4977case "$enableval" in
4978 yes) ENABLE_PIC=1
4979 ;;
4980 no) ENABLE_PIC=0
4981 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004982 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004983 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004984 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4985echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4986 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004987esac
4988
4989cat >>confdefs.h <<_ACEOF
4990#define ENABLE_PIC $ENABLE_PIC
4991_ACEOF
4992
4993
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004994# Check whether --enable-shared was given.
4995if test "${enable_shared+set}" = set; then
4996 enableval=$enable_shared;
4997else
4998 enableval=default
4999fi
5000
5001case "$enableval" in
5002 yes) ENABLE_SHARED=1
5003 ;;
5004 no) ENABLE_SHARED=0
5005 ;;
5006 default) ENABLE_SHARED=0
5007 ;;
5008 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5009echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5010 { (exit 1); exit 1; }; } ;;
5011esac
5012
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005013# Check whether --enable-embed-stdcxx was given.
5014if test "${enable_embed_stdcxx+set}" = set; then
5015 enableval=$enable_embed_stdcxx;
5016else
5017 enableval=default
5018fi
5019
5020case "$enableval" in
5021 yes) ENABLE_EMBED_STDCXX=1
5022 ;;
5023 no) ENABLE_EMBED_STDCXX=0
5024 ;;
5025 default) ENABLE_EMBED_STDCXX=1
5026 ;;
5027 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5028echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5029 { (exit 1); exit 1; }; } ;;
5030esac
5031
Daniel Dunbardd464df2010-05-10 20:11:56 +00005032# Check whether --enable-timestamps was given.
5033if test "${enable_timestamps+set}" = set; then
5034 enableval=$enable_timestamps;
5035else
5036 enableval=default
5037fi
5038
5039case "$enableval" in
5040 yes) ENABLE_TIMESTAMPS=1
5041 ;;
5042 no) ENABLE_TIMESTAMPS=0
5043 ;;
5044 default) ENABLE_TIMESTAMPS=1
5045 ;;
5046 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5047echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5048 { (exit 1); exit 1; }; } ;;
5049esac
5050
5051cat >>confdefs.h <<_ACEOF
5052#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5053_ACEOF
5054
5055
Reid Spencera773bd52006-08-04 18:18:08 +00005056TARGETS_TO_BUILD=""
5057# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005058if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005059 enableval=$enable_targets;
5060else
5061 enableval=all
5062fi
5063
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005064if test "$enableval" = host-only ; then
5065 enableval=host
5066fi
Reid Spencera773bd52006-08-04 18:18:08 +00005067case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005068 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 +00005069 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5070 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005071 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5072 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5073 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5074 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5075 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5076 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5077 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5078 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005079 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5080 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5081 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5082 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5083 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005084 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005085 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005086 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005087 host) case "$llvm_cv_target_arch" in
5088 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5089 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5090 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5091 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5092 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5093 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5094 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005095 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005096 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005097 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5098 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005099 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005100 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005101 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005102 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5103echo "$as_me: error: Can not set target to build" >&2;}
5104 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005105 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005106 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5107echo "$as_me: error: Unrecognized target $a_target" >&2;}
5108 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005109 esac
5110 done
5111 ;;
5112esac
Reid Spencera773bd52006-08-04 18:18:08 +00005113TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5114
5115
Douglas Gregor0711c302009-06-17 00:43:20 +00005116# Determine whether we are building LLVM support for the native architecture.
5117# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5118for a_target in $TARGETS_TO_BUILD; do
5119 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5120
5121cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005122#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5123_ACEOF
5124
5125 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5126 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005127 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005128 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005129 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5130 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5131 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005132
5133cat >>confdefs.h <<_ACEOF
5134#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005135_ACEOF
5136
5137
5138cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005139#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5140_ACEOF
5141
5142
5143cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005144#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005145_ACEOF
5146
5147
5148cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005149#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005150_ACEOF
5151
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005152 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005153
5154cat >>confdefs.h <<_ACEOF
5155#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5156_ACEOF
5157
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005158 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005159 fi
5160done
5161
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005162# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5163# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005164LLVM_ENUM_TARGETS=""
5165LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005166LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005167LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005168for target_to_build in $TARGETS_TO_BUILD; do
5169 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005170 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005171 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5172 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005173 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5174 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5175 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005176 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5177 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5178 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005179done
5180
5181
5182
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005183
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005184
Reid Spencer65c5d752006-11-05 17:08:18 +00005185# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005186if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005187 enableval=$enable_cbe_printf_a;
5188else
5189 enableval=default
5190fi
5191
5192case "$enableval" in
5193 yes) ENABLE_CBE_PRINTF_A=1
5194 ;;
5195 no) ENABLE_CBE_PRINTF_A=0
5196 ;;
5197 default) ENABLE_CBE_PRINTF_A=1
5198 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005199 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5200echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5201 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005202esac
5203
5204cat >>confdefs.h <<_ACEOF
5205#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5206_ACEOF
5207
5208
Reid Spencera773bd52006-08-04 18:18:08 +00005209
5210# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005211if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005212 withval=$with_llvmgccdir;
5213else
5214 withval=default
5215fi
5216
5217case "$withval" in
5218 default) WITH_LLVMGCCDIR=default ;;
5219 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005220 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5221echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5222 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005223esac
5224
5225
Devang Patel5d28b882007-12-04 22:54:47 +00005226# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005227if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005228 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5229 WITH_LLVMGCCDIR=""
5230fi
5231
5232
5233
5234# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005235if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005236 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5237 WITH_LLVMGCCDIR=""
5238fi
5239
Douglas Gregor01746742009-05-11 18:05:52 +00005240
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005241if test -n "$LLVMGCC"; then
5242 LLVMGCCCOMMAND="$LLVMGCC"
5243fi
5244
5245if test -n "$LLVMGXX"; then
5246 LLVMGXXCOMMAND="$LLVMGXX"
5247fi
Devang Patel5d28b882007-12-04 22:54:47 +00005248
5249if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005250 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5251echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5252 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005253fi
5254
5255if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005256 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5257echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5258 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005259fi
5260
5261
Daniel Dunbar98515672010-02-23 10:00:49 +00005262# Check whether --with-clang was given.
5263if test "${with_clang+set}" = set; then
5264 withval=$with_clang;
5265else
5266 with_clang=default
5267fi
5268
5269
5270
5271# Check whether --with-built-clang was given.
5272if test "${with_built_clang+set}" = set; then
5273 withval=$with_built_clang;
5274else
5275 with_built_clang=check
5276fi
5277
5278
5279{ echo "$as_me:$LINENO: checking clang compiler" >&5
5280echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5281WITH_CLANGPATH=""
5282WITH_BUILT_CLANG=0
5283if test "$with_clang" != "default"; then
5284 WITH_CLANGPATH="$with_clang"
5285 if ! test -x "$WITH_CLANGPATH"; then
5286 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5287echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5288 { (exit 1); exit 1; }; }
5289 fi
5290elif test "$with_built_clang" = "yes"; then
5291 WITH_BUILT_CLANG=1
5292elif test "$with_built_clang" = "no"; then
5293 WITH_BUILT_CLANG=0
5294else
5295 if test "$with_built_clang" != "check"; then
5296 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5297echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5298 { (exit 1); exit 1; }; }
5299 fi
5300
5301 if test -f ${srcdir}/tools/clang/README.txt; then
5302 WITH_BUILT_CLANG=1
5303 fi
5304fi
5305
5306if ! test -z "$WITH_CLANGPATH"; then
5307 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5308echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5309 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5310elif test "$WITH_BUILT_CLANG" = "1"; then
5311 { echo "$as_me:$LINENO: result: built" >&5
5312echo "${ECHO_T}built" >&6; }
5313else
5314 { echo "$as_me:$LINENO: result: none" >&5
5315echo "${ECHO_T}none" >&6; }
5316fi
5317CLANGPATH=$WITH_CLANGPATH
5318
5319CLANGXXPATH=$WITH_CLANGXXPATH
5320
5321ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5322
5323
5324
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005325# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005327 withval=$with_optimize_option;
5328else
5329 withval=default
5330fi
5331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005332{ echo "$as_me:$LINENO: checking optimization flags" >&5
5333echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005334case "$withval" in
5335 default)
5336 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005337 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005338 MingW) optimize_option=-O2 ;;
5339 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005340 esac ;;
5341 *) optimize_option="$withval" ;;
5342esac
5343OPTIMIZE_OPTION=$optimize_option
5344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005345{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5346echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005347
5348
Reid Spencera773bd52006-08-04 18:18:08 +00005349# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005350if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005351 withval=$with_extra_options;
5352else
5353 withval=default
5354fi
5355
5356case "$withval" in
5357 default) EXTRA_OPTIONS= ;;
5358 *) EXTRA_OPTIONS=$withval ;;
5359esac
5360EXTRA_OPTIONS=$EXTRA_OPTIONS
5361
5362
Daniel Dunbared344d22011-06-16 22:30:41 +00005363
5364# Check whether --with-extra-ld-options was given.
5365if test "${with_extra_ld_options+set}" = set; then
5366 withval=$with_extra_ld_options;
5367else
5368 withval=default
5369fi
5370
5371case "$withval" in
5372 default) EXTRA_LD_OPTIONS= ;;
5373 *) EXTRA_LD_OPTIONS=$withval ;;
5374esac
5375EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5376
5377
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005378# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005379if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005380 enableval=$enable_bindings;
5381else
5382 enableval=default
5383fi
5384
5385BINDINGS_TO_BUILD=""
5386case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005387 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005388 all ) BINDINGS_TO_BUILD="ocaml" ;;
5389 none | no) BINDINGS_TO_BUILD="" ;;
5390 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5391 case "$a_binding" in
5392 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005393 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5394echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5395 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005396 esac
5397 done
5398 ;;
5399esac
5400
Reid Spencera773bd52006-08-04 18:18:08 +00005401
Gordon Henriksenf0915682007-10-02 16:42:22 +00005402# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005403if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005404 withval=$with_ocaml_libdir;
5405else
5406 withval=auto
5407fi
5408
5409case "$withval" in
5410 auto) with_ocaml_libdir="$withval" ;;
5411 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005412 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5413echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5414 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005415esac
5416
5417
Chandler Carruth6b241162010-10-19 08:21:25 +00005418# Check whether --with-clang-resource-dir was given.
5419if test "${with_clang_resource_dir+set}" = set; then
5420 withval=$with_clang_resource_dir;
5421else
5422 withval=""
5423fi
5424
5425
5426cat >>confdefs.h <<_ACEOF
5427#define CLANG_RESOURCE_DIR "$withval"
5428_ACEOF
5429
5430
5431
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005432# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005433if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005434 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005435else
5436 withval=""
5437fi
5438
5439
5440cat >>confdefs.h <<_ACEOF
5441#define C_INCLUDE_DIRS "$withval"
5442_ACEOF
5443
5444
5445
Rafael Espindola420d23c2009-11-16 19:46:55 +00005446# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005448 withval=$with_cxx_include_root;
5449else
5450 withval=""
5451fi
5452
5453
5454cat >>confdefs.h <<_ACEOF
5455#define CXX_INCLUDE_ROOT "$withval"
5456_ACEOF
5457
5458
5459
5460# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005461if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005462 withval=$with_cxx_include_arch;
5463else
5464 withval=""
5465fi
5466
5467
5468cat >>confdefs.h <<_ACEOF
5469#define CXX_INCLUDE_ARCH "$withval"
5470_ACEOF
5471
5472
5473
5474# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005475if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005476 withval=$with_cxx_include_32bit_dir;
5477else
5478 withval=""
5479fi
5480
5481
5482cat >>confdefs.h <<_ACEOF
5483#define CXX_INCLUDE_32BIT_DIR "$withval"
5484_ACEOF
5485
5486
5487
5488# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005489if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005490 withval=$with_cxx_include_64bit_dir;
5491else
5492 withval=""
5493fi
5494
5495
5496cat >>confdefs.h <<_ACEOF
5497#define CXX_INCLUDE_64BIT_DIR "$withval"
5498_ACEOF
5499
5500
5501
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005502# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005503if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005504 withval=$with_binutils_include;
5505else
5506 withval=default
5507fi
5508
5509case "$withval" in
5510 default) WITH_BINUTILS_INCDIR=default ;;
5511 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005512 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5513echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5514 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005515esac
5516if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5517 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5518
5519 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5520 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005521 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5522echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5523 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005524 fi
5525fi
5526
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005527
5528# Check whether --with-bug-report-url was given.
5529if test "${with_bug_report_url+set}" = set; then
5530 withval=$with_bug_report_url;
5531else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005532 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005533fi
5534
5535
5536cat >>confdefs.h <<_ACEOF
5537#define BUG_REPORT_URL "$withval"
5538_ACEOF
5539
5540
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005541# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005542if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005543 enableval=$enable_libffi; case "$enableval" in
5544 yes) llvm_cv_enable_libffi="yes" ;;
5545 no) llvm_cv_enable_libffi="no" ;;
5546 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005547echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5548 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005549 esac
5550else
5551 llvm_cv_enable_libffi=no
5552fi
5553
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005554
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005555
Reid Spencera773bd52006-08-04 18:18:08 +00005556ac_ext=c
5557ac_cpp='$CPP $CPPFLAGS'
5558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005561{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5562echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005563# On Suns, sometimes $CPP names a directory.
5564if test -n "$CPP" && test -d "$CPP"; then
5565 CPP=
5566fi
5567if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005568 if test "${ac_cv_prog_CPP+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005570else
5571 # Double quotes because CPP needs to be expanded
5572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5573 do
5574 ac_preproc_ok=false
5575for ac_c_preproc_warn_flag in '' yes
5576do
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005583 cat >conftest.$ac_ext <<_ACEOF
5584/* confdefs.h. */
5585_ACEOF
5586cat confdefs.h >>conftest.$ac_ext
5587cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005588/* end confdefs.h. */
5589#ifdef __STDC__
5590# include <limits.h>
5591#else
5592# include <assert.h>
5593#endif
5594 Syntax error
5595_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005596if { (ac_try="$ac_cpp conftest.$ac_ext"
5597case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null; then
5609 if test -s conftest.err; then
5610 ac_cpp_err=$ac_c_preproc_warn_flag
5611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5612 else
5613 ac_cpp_err=
5614 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616 ac_cpp_err=yes
5617fi
5618if test -z "$ac_cpp_err"; then
5619 :
5620else
5621 echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
5623
Reid Spencera773bd52006-08-04 18:18:08 +00005624 # Broken: fails on valid input.
5625continue
5626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005627
Reid Spencera773bd52006-08-04 18:18:08 +00005628rm -f conftest.err conftest.$ac_ext
5629
5630 # OK, works on sane cases. Now check whether nonexistent headers
5631 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005632 cat >conftest.$ac_ext <<_ACEOF
5633/* confdefs.h. */
5634_ACEOF
5635cat confdefs.h >>conftest.$ac_ext
5636cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005637/* end confdefs.h. */
5638#include <ac_nonexistent.h>
5639_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640if { (ac_try="$ac_cpp conftest.$ac_ext"
5641case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } >/dev/null; then
5653 if test -s conftest.err; then
5654 ac_cpp_err=$ac_c_preproc_warn_flag
5655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5656 else
5657 ac_cpp_err=
5658 fi
5659else
5660 ac_cpp_err=yes
5661fi
5662if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005663 # Broken: success on invalid input.
5664continue
5665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005666 echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
5668
Reid Spencera773bd52006-08-04 18:18:08 +00005669 # Passes both tests.
5670ac_preproc_ok=:
5671break
5672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005673
Reid Spencera773bd52006-08-04 18:18:08 +00005674rm -f conftest.err conftest.$ac_ext
5675
5676done
5677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5678rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005679if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005680 break
5681fi
5682
5683 done
5684 ac_cv_prog_CPP=$CPP
5685
5686fi
5687 CPP=$ac_cv_prog_CPP
5688else
5689 ac_cv_prog_CPP=$CPP
5690fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005691{ echo "$as_me:$LINENO: result: $CPP" >&5
5692echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005693ac_preproc_ok=false
5694for ac_c_preproc_warn_flag in '' yes
5695do
5696 # Use a header file that comes with gcc, so configuring glibc
5697 # with a fresh cross-compiler works.
5698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699 # <limits.h> exists even on freestanding compilers.
5700 # On the NeXT, cc -E runs the code through the compiler's parser,
5701 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005702 cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005707/* end confdefs.h. */
5708#ifdef __STDC__
5709# include <limits.h>
5710#else
5711# include <assert.h>
5712#endif
5713 Syntax error
5714_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005715if { (ac_try="$ac_cpp conftest.$ac_ext"
5716case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719esac
5720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } >/dev/null; then
5728 if test -s conftest.err; then
5729 ac_cpp_err=$ac_c_preproc_warn_flag
5730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5731 else
5732 ac_cpp_err=
5733 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005734else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005735 ac_cpp_err=yes
5736fi
5737if test -z "$ac_cpp_err"; then
5738 :
5739else
5740 echo "$as_me: failed program was:" >&5
5741sed 's/^/| /' conftest.$ac_ext >&5
5742
Reid Spencera773bd52006-08-04 18:18:08 +00005743 # Broken: fails on valid input.
5744continue
5745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005746
Reid Spencera773bd52006-08-04 18:18:08 +00005747rm -f conftest.err conftest.$ac_ext
5748
5749 # OK, works on sane cases. Now check whether nonexistent headers
5750 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005751 cat >conftest.$ac_ext <<_ACEOF
5752/* confdefs.h. */
5753_ACEOF
5754cat confdefs.h >>conftest.$ac_ext
5755cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005756/* end confdefs.h. */
5757#include <ac_nonexistent.h>
5758_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005759if { (ac_try="$ac_cpp conftest.$ac_ext"
5760case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5763esac
5764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } >/dev/null; then
5772 if test -s conftest.err; then
5773 ac_cpp_err=$ac_c_preproc_warn_flag
5774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5775 else
5776 ac_cpp_err=
5777 fi
5778else
5779 ac_cpp_err=yes
5780fi
5781if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005782 # Broken: success on invalid input.
5783continue
5784else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005785 echo "$as_me: failed program was:" >&5
5786sed 's/^/| /' conftest.$ac_ext >&5
5787
Reid Spencera773bd52006-08-04 18:18:08 +00005788 # Passes both tests.
5789ac_preproc_ok=:
5790break
5791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005792
Reid Spencera773bd52006-08-04 18:18:08 +00005793rm -f conftest.err conftest.$ac_ext
5794
5795done
5796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005798if $ac_preproc_ok; then
5799 :
Reid Spencera773bd52006-08-04 18:18:08 +00005800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005801 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5802See \`config.log' for more details." >&5
5803echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5804See \`config.log' for more details." >&2;}
5805 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005806fi
5807
5808ac_ext=c
5809ac_cpp='$CPP $CPPFLAGS'
5810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813
5814ac_ext=c
5815ac_cpp='$CPP $CPPFLAGS'
5816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5818ac_compiler_gnu=$ac_cv_c_compiler_gnu
5819if test -n "$ac_tool_prefix"; then
5820 for ac_prog in gcc
5821 do
5822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826if test "${ac_cv_prog_CC+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005828else
5829 if test -n "$CC"; then
5830 ac_cv_prog_CC="$CC" # Let the user override the test.
5831else
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 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 +00005839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005841 break 2
5842 fi
5843done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005844done
Reid Spencera773bd52006-08-04 18:18:08 +00005845IFS=$as_save_IFS
5846
5847fi
5848fi
5849CC=$ac_cv_prog_CC
5850if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005851 { echo "$as_me:$LINENO: result: $CC" >&5
5852echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005854 { echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005856fi
5857
5858
5859 test -n "$CC" && break
5860 done
5861fi
5862if test -z "$CC"; then
5863 ac_ct_CC=$CC
5864 for ac_prog in gcc
5865do
5866 # Extract the first word of "$ac_prog", so it can be a program name with args.
5867set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005872else
5873 if test -n "$ac_ct_CC"; then
5874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 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 +00005883 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005885 break 2
5886 fi
5887done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005888done
Reid Spencera773bd52006-08-04 18:18:08 +00005889IFS=$as_save_IFS
5890
5891fi
5892fi
5893ac_ct_CC=$ac_cv_prog_ac_ct_CC
5894if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005895 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5896echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898 { echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005900fi
5901
5902
5903 test -n "$ac_ct_CC" && break
5904done
5905
5906 if test "x$ac_ct_CC" = x; then
5907 CC=""
5908 else
5909 case $cross_compiling:$ac_tool_warned in
5910yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005911{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5912whose name does not start with the host triplet. If you think this
5913configuration is useful to you, please write to autoconf@gnu.org." >&5
5914echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5915whose name does not start with the host triplet. If you think this
5916configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005917ac_tool_warned=yes ;;
5918esac
5919 CC=$ac_ct_CC
5920 fi
5921fi
5922
5923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005924test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5925See \`config.log' for more details." >&5
5926echo "$as_me: error: no acceptable C compiler found in \$PATH
5927See \`config.log' for more details." >&2;}
5928 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005929
5930# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005931echo "$as_me:$LINENO: checking for C compiler version" >&5
5932ac_compiler=`set X $ac_compile; echo $2`
5933{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005934case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005940 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }
5943{ (ac_try="$ac_compiler -v >&5"
5944case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compiler -v >&5") 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }
5953{ (ac_try="$ac_compiler -V >&5"
5954case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957esac
5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compiler -V >&5") 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005964{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5965echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5966if test "${ac_cv_c_compiler_gnu+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005969 cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h. */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005974/* end confdefs.h. */
5975
5976int
5977main ()
5978{
5979#ifndef __GNUC__
5980 choke me
5981#endif
5982
5983 ;
5984 return 0;
5985}
5986_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005987rm -f conftest.$ac_objext
5988if { (ac_try="$ac_compile"
5989case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992esac
5993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_compile") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6002 { (case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005esac
6006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_try") 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; } &&
6011 { ac_try='test -s conftest.$ac_objext'
6012 { (case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015esac
6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_try") 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006021 ac_compiler_gnu=yes
6022else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023 echo "$as_me: failed program was:" >&5
6024sed 's/^/| /' conftest.$ac_ext >&5
6025
6026 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028
Reid Spencera773bd52006-08-04 18:18:08 +00006029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030ac_cv_c_compiler_gnu=$ac_compiler_gnu
6031
6032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6034echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6035GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006036ac_test_CFLAGS=${CFLAGS+set}
6037ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006038{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6039echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6040if test "${ac_cv_prog_cc_g+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006042else
6043 ac_save_c_werror_flag=$ac_c_werror_flag
6044 ac_c_werror_flag=yes
6045 ac_cv_prog_cc_g=no
6046 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006047 cat >conftest.$ac_ext <<_ACEOF
6048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006052/* end confdefs.h. */
6053
6054int
6055main ()
6056{
6057
6058 ;
6059 return 0;
6060}
6061_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062rm -f conftest.$ac_objext
6063if { (ac_try="$ac_compile"
6064case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067esac
6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_compile") 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6077 { (case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080esac
6081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_try") 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try='test -s conftest.$ac_objext'
6087 { (case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6090esac
6091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_try") 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006096 ac_cv_prog_cc_g=yes
6097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006098 echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 CFLAGS=""
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006107/* end confdefs.h. */
6108
6109int
6110main ()
6111{
6112
6113 ;
6114 return 0;
6115}
6116_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006117rm -f conftest.$ac_objext
6118if { (ac_try="$ac_compile"
6119case "(($ac_try" in
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6122esac
6123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6132 { (case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_try") 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
6142 { (case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145esac
6146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_try") 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 :
Torok Edwin871384f2010-01-26 08:50:50 +00006152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006153 echo "$as_me: failed program was:" >&5
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
6156 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006157 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158 cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006163/* end confdefs.h. */
6164
6165int
6166main ()
6167{
6168
6169 ;
6170 return 0;
6171}
6172_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006173rm -f conftest.$ac_objext
6174if { (ac_try="$ac_compile"
6175case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178esac
6179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6188 { (case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191esac
6192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_try") 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; } &&
6197 { ac_try='test -s conftest.$ac_objext'
6198 { (case "(($ac_try" in
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6201esac
6202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_try") 2>&5
6204 ac_status=$?
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006207 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208else
6209 echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212
Reid Spencera773bd52006-08-04 18:18:08 +00006213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006214
Reid Spencera773bd52006-08-04 18:18:08 +00006215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006217
Reid Spencera773bd52006-08-04 18:18:08 +00006218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006220
Reid Spencera773bd52006-08-04 18:18:08 +00006221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 ac_c_werror_flag=$ac_save_c_werror_flag
6223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6225echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006226if test "$ac_test_CFLAGS" = set; then
6227 CFLAGS=$ac_save_CFLAGS
6228elif test $ac_cv_prog_cc_g = yes; then
6229 if test "$GCC" = yes; then
6230 CFLAGS="-g -O2"
6231 else
6232 CFLAGS="-g"
6233 fi
6234else
6235 if test "$GCC" = yes; then
6236 CFLAGS="-O2"
6237 else
6238 CFLAGS=
6239 fi
6240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006241{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6242echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6243if test "${ac_cv_prog_cc_c89+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006245else
6246 ac_cv_prog_cc_c89=no
6247ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h. */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006253/* end confdefs.h. */
6254#include <stdarg.h>
6255#include <stdio.h>
6256#include <sys/types.h>
6257#include <sys/stat.h>
6258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6259struct buf { int x; };
6260FILE * (*rcsopen) (struct buf *, struct stat *, int);
6261static char *e (p, i)
6262 char **p;
6263 int i;
6264{
6265 return p[i];
6266}
6267static char *f (char * (*g) (char **, int), char **p, ...)
6268{
6269 char *s;
6270 va_list v;
6271 va_start (v,p);
6272 s = g (p, va_arg (v,int));
6273 va_end (v);
6274 return s;
6275}
6276
6277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6278 function prototypes and stuff, but not '\xHH' hex character constants.
6279 These don't provoke an error unfortunately, instead are silently treated
6280 as 'x'. The following induces an error, until -std is added to get
6281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6282 array size at least. It's necessary to write '\x00'==0 to get something
6283 that's true only with -std. */
6284int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6285
6286/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6287 inside strings and character constants. */
6288#define FOO(x) 'x'
6289int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6290
6291int test (int i, double x);
6292struct s1 {int (*f) (int a);};
6293struct s2 {int (*f) (double a);};
6294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6295int argc;
6296char **argv;
6297int
6298main ()
6299{
6300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6307do
6308 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006309 rm -f conftest.$ac_objext
6310if { (ac_try="$ac_compile"
6311case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314esac
6315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_compile") 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } &&
6323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6324 { (case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327esac
6328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_try") 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try='test -s conftest.$ac_objext'
6334 { (case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337esac
6338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_try") 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006343 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344else
6345 echo "$as_me: failed program was:" >&5
6346sed 's/^/| /' conftest.$ac_ext >&5
6347
6348
Reid Spencera773bd52006-08-04 18:18:08 +00006349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006350
Reid Spencera773bd52006-08-04 18:18:08 +00006351rm -f core conftest.err conftest.$ac_objext
6352 test "x$ac_cv_prog_cc_c89" != "xno" && break
6353done
6354rm -f conftest.$ac_ext
6355CC=$ac_save_CC
6356
6357fi
6358# AC_CACHE_VAL
6359case "x$ac_cv_prog_cc_c89" in
6360 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006361 { echo "$as_me:$LINENO: result: none needed" >&5
6362echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006363 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364 { echo "$as_me:$LINENO: result: unsupported" >&5
6365echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006366 *)
6367 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6369echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006370esac
6371
6372
6373ac_ext=c
6374ac_cpp='$CPP $CPPFLAGS'
6375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6377ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378
6379ac_ext=cpp
6380ac_cpp='$CXXCPP $CPPFLAGS'
6381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6384if test -z "$CXX"; then
6385 if test -n "$CCC"; then
6386 CXX=$CCC
6387 else
6388 if test -n "$ac_tool_prefix"; then
6389 for ac_prog in g++
6390 do
6391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6392set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395if test "${ac_cv_prog_CXX+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006397else
6398 if test -n "$CXX"; then
6399 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 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 +00006408 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006410 break 2
6411 fi
6412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413done
Reid Spencera773bd52006-08-04 18:18:08 +00006414IFS=$as_save_IFS
6415
6416fi
6417fi
6418CXX=$ac_cv_prog_CXX
6419if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 { echo "$as_me:$LINENO: result: $CXX" >&5
6421echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423 { echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006425fi
6426
6427
6428 test -n "$CXX" && break
6429 done
6430fi
6431if test -z "$CXX"; then
6432 ac_ct_CXX=$CXX
6433 for ac_prog in g++
6434do
6435 # Extract the first word of "$ac_prog", so it can be a program name with args.
6436set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006441else
6442 if test -n "$ac_ct_CXX"; then
6443 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6444else
6445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446for as_dir in $PATH
6447do
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 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 +00006452 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006454 break 2
6455 fi
6456done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006457done
Reid Spencera773bd52006-08-04 18:18:08 +00006458IFS=$as_save_IFS
6459
6460fi
6461fi
6462ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6463if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6465echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467 { echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006469fi
6470
6471
6472 test -n "$ac_ct_CXX" && break
6473done
6474
6475 if test "x$ac_ct_CXX" = x; then
6476 CXX="g++"
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6481whose name does not start with the host triplet. If you think this
6482configuration is useful to you, please write to autoconf@gnu.org." >&5
6483echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6484whose name does not start with the host triplet. If you think this
6485configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006486ac_tool_warned=yes ;;
6487esac
6488 CXX=$ac_ct_CXX
6489 fi
6490fi
6491
6492 fi
6493fi
6494# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006495echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6496ac_compiler=`set X $ac_compile; echo $2`
6497{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006498case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6501esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006504 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }
6507{ (ac_try="$ac_compiler -v >&5"
6508case "(($ac_try" in
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6511esac
6512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compiler -v >&5") 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }
6517{ (ac_try="$ac_compiler -V >&5"
6518case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6521esac
6522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523 (eval "$ac_compiler -V >&5") 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006528{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6529echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6530if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006532else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006533 cat >conftest.$ac_ext <<_ACEOF
6534/* confdefs.h. */
6535_ACEOF
6536cat confdefs.h >>conftest.$ac_ext
6537cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006538/* end confdefs.h. */
6539
6540int
6541main ()
6542{
6543#ifndef __GNUC__
6544 choke me
6545#endif
6546
6547 ;
6548 return 0;
6549}
6550_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006551rm -f conftest.$ac_objext
6552if { (ac_try="$ac_compile"
6553case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556esac
6557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6566 { (case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569esac
6570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_try") 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest.$ac_objext'
6576 { (case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579esac
6580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_try") 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006585 ac_compiler_gnu=yes
6586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006587 echo "$as_me: failed program was:" >&5
6588sed 's/^/| /' conftest.$ac_ext >&5
6589
6590 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006591fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592
Reid Spencera773bd52006-08-04 18:18:08 +00006593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6595
6596fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006597{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6598echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6599GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006600ac_test_CXXFLAGS=${CXXFLAGS+set}
6601ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6603echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6604if test "${ac_cv_prog_cxx_g+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006606else
6607 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6608 ac_cxx_werror_flag=yes
6609 ac_cv_prog_cxx_g=no
6610 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006611 cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h. */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006616/* end confdefs.h. */
6617
6618int
6619main ()
6620{
6621
6622 ;
6623 return 0;
6624}
6625_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006626rm -f conftest.$ac_objext
6627if { (ac_try="$ac_compile"
6628case "(($ac_try" in
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6631esac
6632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6633 (eval "$ac_compile") 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6641 { (case "(($ac_try" in
6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 *) ac_try_echo=$ac_try;;
6644esac
6645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646 (eval "$ac_try") 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654esac
6655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_try") 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006660 ac_cv_prog_cxx_g=yes
6661else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662 echo "$as_me: failed program was:" >&5
6663sed 's/^/| /' conftest.$ac_ext >&5
6664
6665 CXXFLAGS=""
6666 cat >conftest.$ac_ext <<_ACEOF
6667/* confdefs.h. */
6668_ACEOF
6669cat confdefs.h >>conftest.$ac_ext
6670cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006671/* end confdefs.h. */
6672
6673int
6674main ()
6675{
6676
6677 ;
6678 return 0;
6679}
6680_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006681rm -f conftest.$ac_objext
6682if { (ac_try="$ac_compile"
6683case "(($ac_try" in
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6686esac
6687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_compile") 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6696 { (case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699esac
6700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_try") 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709esac
6710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_try") 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 :
Torok Edwin871384f2010-01-26 08:50:50 +00006716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717 echo "$as_me: failed program was:" >&5
6718sed 's/^/| /' conftest.$ac_ext >&5
6719
6720 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006721 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006722 cat >conftest.$ac_ext <<_ACEOF
6723/* confdefs.h. */
6724_ACEOF
6725cat confdefs.h >>conftest.$ac_ext
6726cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006727/* end confdefs.h. */
6728
6729int
6730main ()
6731{
6732
6733 ;
6734 return 0;
6735}
6736_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737rm -f conftest.$ac_objext
6738if { (ac_try="$ac_compile"
6739case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742esac
6743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_compile") 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6752 { (case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755esac
6756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_try") 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try='test -s conftest.$ac_objext'
6762 { (case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765esac
6766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_try") 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006771 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006772else
6773 echo "$as_me: failed program was:" >&5
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
6776
Reid Spencera773bd52006-08-04 18:18:08 +00006777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006778
Reid Spencera773bd52006-08-04 18:18:08 +00006779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006781
Reid Spencera773bd52006-08-04 18:18:08 +00006782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784
Reid Spencera773bd52006-08-04 18:18:08 +00006785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6787fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6789echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006790if test "$ac_test_CXXFLAGS" = set; then
6791 CXXFLAGS=$ac_save_CXXFLAGS
6792elif test $ac_cv_prog_cxx_g = yes; then
6793 if test "$GXX" = yes; then
6794 CXXFLAGS="-g -O2"
6795 else
6796 CXXFLAGS="-g"
6797 fi
6798else
6799 if test "$GXX" = yes; then
6800 CXXFLAGS="-O2"
6801 else
6802 CXXFLAGS=
6803 fi
6804fi
6805ac_ext=c
6806ac_cpp='$CPP $CPPFLAGS'
6807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810
Reid Spencera773bd52006-08-04 18:18:08 +00006811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006812{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6813echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6814if test "${lt_cv_path_NM+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006816else
6817 if test -n "$NM"; then
6818 # Let the user override the test.
6819 lt_cv_path_NM="$NM"
6820else
6821 lt_nm_to_check="${ac_tool_prefix}nm"
6822 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6823 lt_nm_to_check="$lt_nm_to_check nm"
6824 fi
6825 for lt_tmp_nm in $lt_nm_to_check; do
6826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6827 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6828 IFS="$lt_save_ifs"
6829 test -z "$ac_dir" && ac_dir=.
6830 tmp_nm="$ac_dir/$lt_tmp_nm"
6831 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6832 # Check to see if the nm accepts a BSD-compat flag.
6833 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6834 # nm: unknown option "B" ignored
6835 # Tru64's nm complains that /dev/null is an invalid object file
6836 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6837 */dev/null* | *'Invalid file or object type'*)
6838 lt_cv_path_NM="$tmp_nm -B"
6839 break
6840 ;;
6841 *)
6842 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6843 */dev/null*)
6844 lt_cv_path_NM="$tmp_nm -p"
6845 break
6846 ;;
6847 *)
6848 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6849 continue # so that we can try to find one that supports BSD flags
6850 ;;
6851 esac
6852 ;;
6853 esac
6854 fi
6855 done
6856 IFS="$lt_save_ifs"
6857 done
6858 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6859fi
6860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006861{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6862echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006863NM="$lt_cv_path_NM"
6864
6865
6866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006867{ echo "$as_me:$LINENO: checking for GNU make" >&5
6868echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6869if test "${llvm_cv_gnu_make_command+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006871else
6872 llvm_cv_gnu_make_command=''
6873 for a in "$MAKE" make gmake gnumake ; do
6874 if test -z "$a" ; then continue ; fi ;
6875 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6876 then
6877 llvm_cv_gnu_make_command=$a ;
6878 break;
6879 fi
6880 done
6881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6883echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006884 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6885 ifGNUmake='' ;
6886 else
6887 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6889echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006890 fi
6891
6892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006893{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6894echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006895LN_S=$as_ln_s
6896if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897 { echo "$as_me:$LINENO: result: yes" >&5
6898echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6901echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006902fi
6903
6904# Extract the first word of "cmp", so it can be a program name with args.
6905set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908if test "${ac_cv_path_CMP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006910else
6911 case $CMP in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6914 ;;
6915 *)
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 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 +00006923 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006925 break 2
6926 fi
6927done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928done
Reid Spencera773bd52006-08-04 18:18:08 +00006929IFS=$as_save_IFS
6930
6931 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6932 ;;
6933esac
6934fi
6935CMP=$ac_cv_path_CMP
6936if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006937 { echo "$as_me:$LINENO: result: $CMP" >&5
6938echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006940 { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006942fi
6943
6944
6945# Extract the first word of "cp", so it can be a program name with args.
6946set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949if test "${ac_cv_path_CP+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006951else
6952 case $CP in
6953 [\\/]* | ?:[\\/]*)
6954 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6955 ;;
6956 *)
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 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 +00006964 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006966 break 2
6967 fi
6968done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969done
Reid Spencera773bd52006-08-04 18:18:08 +00006970IFS=$as_save_IFS
6971
6972 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6973 ;;
6974esac
6975fi
6976CP=$ac_cv_path_CP
6977if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006978 { echo "$as_me:$LINENO: result: $CP" >&5
6979echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006983fi
6984
6985
6986# Extract the first word of "date", so it can be a program name with args.
6987set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990if test "${ac_cv_path_DATE+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006992else
6993 case $DATE in
6994 [\\/]* | ?:[\\/]*)
6995 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6996 ;;
6997 *)
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 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 +00007005 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007007 break 2
7008 fi
7009done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010done
Reid Spencera773bd52006-08-04 18:18:08 +00007011IFS=$as_save_IFS
7012
7013 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7014 ;;
7015esac
7016fi
7017DATE=$ac_cv_path_DATE
7018if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007019 { echo "$as_me:$LINENO: result: $DATE" >&5
7020echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022 { echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007024fi
7025
7026
7027# Extract the first word of "find", so it can be a program name with args.
7028set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031if test "${ac_cv_path_FIND+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007033else
7034 case $FIND in
7035 [\\/]* | ?:[\\/]*)
7036 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7037 ;;
7038 *)
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 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 +00007046 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007048 break 2
7049 fi
7050done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051done
Reid Spencera773bd52006-08-04 18:18:08 +00007052IFS=$as_save_IFS
7053
7054 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7055 ;;
7056esac
7057fi
7058FIND=$ac_cv_path_FIND
7059if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060 { echo "$as_me:$LINENO: result: $FIND" >&5
7061echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007063 { echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007065fi
7066
7067
7068# Extract the first word of "grep", so it can be a program name with args.
7069set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072if test "${ac_cv_path_GREP+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007074else
7075 case $GREP in
7076 [\\/]* | ?:[\\/]*)
7077 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7078 ;;
7079 *)
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 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 +00007087 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007089 break 2
7090 fi
7091done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092done
Reid Spencera773bd52006-08-04 18:18:08 +00007093IFS=$as_save_IFS
7094
7095 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7096 ;;
7097esac
7098fi
7099GREP=$ac_cv_path_GREP
7100if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007101 { echo "$as_me:$LINENO: result: $GREP" >&5
7102echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007104 { echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007106fi
7107
7108
7109# Extract the first word of "mkdir", so it can be a program name with args.
7110set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007111{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113if test "${ac_cv_path_MKDIR+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007115else
7116 case $MKDIR in
7117 [\\/]* | ?:[\\/]*)
7118 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7119 ;;
7120 *)
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122for as_dir in $PATH
7123do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 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 +00007128 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007130 break 2
7131 fi
7132done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007133done
Reid Spencera773bd52006-08-04 18:18:08 +00007134IFS=$as_save_IFS
7135
7136 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7137 ;;
7138esac
7139fi
7140MKDIR=$ac_cv_path_MKDIR
7141if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7143echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007144else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007145 { echo "$as_me:$LINENO: result: no" >&5
7146echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007147fi
7148
7149
7150# Extract the first word of "mv", so it can be a program name with args.
7151set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154if test "${ac_cv_path_MV+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007156else
7157 case $MV in
7158 [\\/]* | ?:[\\/]*)
7159 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7160 ;;
7161 *)
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163for as_dir in $PATH
7164do
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 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 +00007169 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007171 break 2
7172 fi
7173done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007174done
Reid Spencera773bd52006-08-04 18:18:08 +00007175IFS=$as_save_IFS
7176
7177 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7178 ;;
7179esac
7180fi
7181MV=$ac_cv_path_MV
7182if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007183 { echo "$as_me:$LINENO: result: $MV" >&5
7184echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007185else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007186 { echo "$as_me:$LINENO: result: no" >&5
7187echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007188fi
7189
7190
7191if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7193set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196if test "${ac_cv_prog_RANLIB+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007198else
7199 if test -n "$RANLIB"; then
7200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 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 +00007209 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007211 break 2
7212 fi
7213done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214done
Reid Spencera773bd52006-08-04 18:18:08 +00007215IFS=$as_save_IFS
7216
7217fi
7218fi
7219RANLIB=$ac_cv_prog_RANLIB
7220if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7222echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007223else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224 { echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007226fi
7227
7228
7229fi
7230if test -z "$ac_cv_prog_RANLIB"; then
7231 ac_ct_RANLIB=$RANLIB
7232 # Extract the first word of "ranlib", so it can be a program name with args.
7233set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007238else
7239 if test -n "$ac_ct_RANLIB"; then
7240 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7241else
7242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243for as_dir in $PATH
7244do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 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 +00007249 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007251 break 2
7252 fi
7253done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007254done
Reid Spencera773bd52006-08-04 18:18:08 +00007255IFS=$as_save_IFS
7256
7257fi
7258fi
7259ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7260if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7262echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007263else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264 { echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007266fi
7267
7268 if test "x$ac_ct_RANLIB" = x; then
7269 RANLIB=":"
7270 else
7271 case $cross_compiling:$ac_tool_warned in
7272yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7274whose name does not start with the host triplet. If you think this
7275configuration is useful to you, please write to autoconf@gnu.org." >&5
7276echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7277whose name does not start with the host triplet. If you think this
7278configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007279ac_tool_warned=yes ;;
7280esac
7281 RANLIB=$ac_ct_RANLIB
7282 fi
7283else
7284 RANLIB="$ac_cv_prog_RANLIB"
7285fi
7286
Torok Edwin871384f2010-01-26 08:50:50 +00007287if test -n "$ac_tool_prefix"; then
7288 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7289set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292if test "${ac_cv_prog_AR+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007294else
7295 if test -n "$AR"; then
7296 ac_cv_prog_AR="$AR" # Let the user override the test.
7297else
7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 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 +00007305 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007307 break 2
7308 fi
7309done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310done
Torok Edwin871384f2010-01-26 08:50:50 +00007311IFS=$as_save_IFS
7312
7313fi
7314fi
7315AR=$ac_cv_prog_AR
7316if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 { echo "$as_me:$LINENO: result: $AR" >&5
7318echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320 { echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007322fi
7323
7324
7325fi
7326if test -z "$ac_cv_prog_AR"; then
7327 ac_ct_AR=$AR
7328 # Extract the first word of "ar", so it can be a program name with args.
7329set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007334else
7335 if test -n "$ac_ct_AR"; then
7336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7337else
7338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 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 +00007345 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007347 break 2
7348 fi
7349done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350done
Torok Edwin871384f2010-01-26 08:50:50 +00007351IFS=$as_save_IFS
7352
7353fi
7354fi
7355ac_ct_AR=$ac_cv_prog_ac_ct_AR
7356if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7358echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360 { echo "$as_me:$LINENO: result: no" >&5
7361echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007362fi
7363
7364 if test "x$ac_ct_AR" = x; then
7365 AR="false"
7366 else
7367 case $cross_compiling:$ac_tool_warned in
7368yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7370whose name does not start with the host triplet. If you think this
7371configuration is useful to you, please write to autoconf@gnu.org." >&5
7372echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7373whose name does not start with the host triplet. If you think this
7374configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007375ac_tool_warned=yes ;;
7376esac
7377 AR=$ac_ct_AR
7378 fi
7379else
7380 AR="$ac_cv_prog_AR"
7381fi
7382
Reid Spencera773bd52006-08-04 18:18:08 +00007383# Extract the first word of "rm", so it can be a program name with args.
7384set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387if test "${ac_cv_path_RM+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007389else
7390 case $RM in
7391 [\\/]* | ?:[\\/]*)
7392 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7393 ;;
7394 *)
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 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 +00007402 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007404 break 2
7405 fi
7406done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407done
Reid Spencera773bd52006-08-04 18:18:08 +00007408IFS=$as_save_IFS
7409
7410 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7411 ;;
7412esac
7413fi
7414RM=$ac_cv_path_RM
7415if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007416 { echo "$as_me:$LINENO: result: $RM" >&5
7417echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007419 { echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007421fi
7422
7423
7424# Extract the first word of "sed", so it can be a program name with args.
7425set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428if test "${ac_cv_path_SED+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007430else
7431 case $SED in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7434 ;;
7435 *)
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 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 +00007443 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007445 break 2
7446 fi
7447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448done
Reid Spencera773bd52006-08-04 18:18:08 +00007449IFS=$as_save_IFS
7450
7451 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7452 ;;
7453esac
7454fi
7455SED=$ac_cv_path_SED
7456if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457 { echo "$as_me:$LINENO: result: $SED" >&5
7458echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007460 { echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007462fi
7463
7464
7465# Extract the first word of "tar", so it can be a program name with args.
7466set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7469if test "${ac_cv_path_TAR+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007471else
7472 case $TAR in
7473 [\\/]* | ?:[\\/]*)
7474 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7475 ;;
7476 *)
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 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 +00007484 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007486 break 2
7487 fi
7488done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489done
Reid Spencera773bd52006-08-04 18:18:08 +00007490IFS=$as_save_IFS
7491
7492 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7493 ;;
7494esac
7495fi
7496TAR=$ac_cv_path_TAR
7497if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007498 { echo "$as_me:$LINENO: result: $TAR" >&5
7499echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007500else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007501 { echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007503fi
7504
7505
7506# Extract the first word of "pwd", so it can be a program name with args.
7507set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510if test "${ac_cv_path_BINPWD+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007512else
7513 case $BINPWD in
7514 [\\/]* | ?:[\\/]*)
7515 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7516 ;;
7517 *)
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519for as_dir in $PATH
7520do
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 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 +00007525 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007527 break 2
7528 fi
7529done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530done
Reid Spencera773bd52006-08-04 18:18:08 +00007531IFS=$as_save_IFS
7532
7533 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7534 ;;
7535esac
7536fi
7537BINPWD=$ac_cv_path_BINPWD
7538if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7540echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542 { echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007544fi
7545
7546
7547
7548# Extract the first word of "Graphviz", so it can be a program name with args.
7549set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007554else
7555 case $GRAPHVIZ in
7556 [\\/]* | ?:[\\/]*)
7557 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7558 ;;
7559 *)
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 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 +00007567 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007569 break 2
7570 fi
7571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572done
Reid Spencera773bd52006-08-04 18:18:08 +00007573IFS=$as_save_IFS
7574
7575 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7576 ;;
7577esac
7578fi
7579GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7580if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007581 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7582echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 { echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007586fi
7587
7588
7589if test "$GRAPHVIZ" != "echo Graphviz" ; then
7590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007591cat >>confdefs.h <<\_ACEOF
7592#define HAVE_GRAPHVIZ 1
7593_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007594
Jeff Cohen28783c32007-01-12 18:22:38 +00007595 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007596 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7597 fi
7598
7599cat >>confdefs.h <<_ACEOF
7600#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7601_ACEOF
7602
7603fi
7604# Extract the first word of "dot", so it can be a program name with args.
7605set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7608if test "${ac_cv_path_DOT+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007610else
7611 case $DOT in
7612 [\\/]* | ?:[\\/]*)
7613 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7614 ;;
7615 *)
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 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 +00007623 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007625 break 2
7626 fi
7627done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628done
Reid Spencera773bd52006-08-04 18:18:08 +00007629IFS=$as_save_IFS
7630
7631 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7632 ;;
7633esac
7634fi
7635DOT=$ac_cv_path_DOT
7636if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007637 { echo "$as_me:$LINENO: result: $DOT" >&5
7638echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007639else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007640 { echo "$as_me:$LINENO: result: no" >&5
7641echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007642fi
7643
7644
7645if test "$DOT" != "echo dot" ; then
7646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007647cat >>confdefs.h <<\_ACEOF
7648#define HAVE_DOT 1
7649_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007650
Jeff Cohen28783c32007-01-12 18:22:38 +00007651 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007652 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7653 fi
7654
7655cat >>confdefs.h <<_ACEOF
7656#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7657_ACEOF
7658
7659fi
David Greenef0b9eff2009-07-09 17:16:26 +00007660# Extract the first word of "fdp", so it can be a program name with args.
7661set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664if test "${ac_cv_path_FDP+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007666else
7667 case $FDP in
7668 [\\/]* | ?:[\\/]*)
7669 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7670 ;;
7671 *)
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 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 +00007679 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007681 break 2
7682 fi
7683done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684done
David Greenef0b9eff2009-07-09 17:16:26 +00007685IFS=$as_save_IFS
7686
7687 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7688 ;;
7689esac
7690fi
7691FDP=$ac_cv_path_FDP
7692if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007693 { echo "$as_me:$LINENO: result: $FDP" >&5
7694echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007695else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007696 { echo "$as_me:$LINENO: result: no" >&5
7697echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007698fi
7699
7700
7701if test "$FDP" != "echo fdp" ; then
7702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703cat >>confdefs.h <<\_ACEOF
7704#define HAVE_FDP 1
7705_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007706
7707 if test "$llvm_cv_os_type" = "MingW" ; then
7708 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7709 fi
7710
7711cat >>confdefs.h <<_ACEOF
7712#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7713_ACEOF
7714
7715fi
7716# Extract the first word of "neato", so it can be a program name with args.
7717set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720if test "${ac_cv_path_NEATO+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007722else
7723 case $NEATO in
7724 [\\/]* | ?:[\\/]*)
7725 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7726 ;;
7727 *)
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 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 +00007735 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007737 break 2
7738 fi
7739done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007740done
David Greenef0b9eff2009-07-09 17:16:26 +00007741IFS=$as_save_IFS
7742
7743 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7744 ;;
7745esac
7746fi
7747NEATO=$ac_cv_path_NEATO
7748if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749 { echo "$as_me:$LINENO: result: $NEATO" >&5
7750echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 { echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007754fi
7755
7756
7757if test "$NEATO" != "echo neato" ; then
7758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007759cat >>confdefs.h <<\_ACEOF
7760#define HAVE_NEATO 1
7761_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007762
7763 if test "$llvm_cv_os_type" = "MingW" ; then
7764 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7765 fi
7766
7767cat >>confdefs.h <<_ACEOF
7768#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7769_ACEOF
7770
7771fi
7772# Extract the first word of "twopi", so it can be a program name with args.
7773set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776if test "${ac_cv_path_TWOPI+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007778else
7779 case $TWOPI in
7780 [\\/]* | ?:[\\/]*)
7781 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7782 ;;
7783 *)
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007791 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007793 break 2
7794 fi
7795done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796done
David Greenef0b9eff2009-07-09 17:16:26 +00007797IFS=$as_save_IFS
7798
7799 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7800 ;;
7801esac
7802fi
7803TWOPI=$ac_cv_path_TWOPI
7804if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7806echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808 { echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007810fi
7811
7812
7813if test "$TWOPI" != "echo twopi" ; then
7814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007815cat >>confdefs.h <<\_ACEOF
7816#define HAVE_TWOPI 1
7817_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007818
7819 if test "$llvm_cv_os_type" = "MingW" ; then
7820 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7821 fi
7822
7823cat >>confdefs.h <<_ACEOF
7824#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7825_ACEOF
7826
7827fi
7828# Extract the first word of "circo", so it can be a program name with args.
7829set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7832if test "${ac_cv_path_CIRCO+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007834else
7835 case $CIRCO in
7836 [\\/]* | ?:[\\/]*)
7837 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7838 ;;
7839 *)
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 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 +00007847 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007849 break 2
7850 fi
7851done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007852done
David Greenef0b9eff2009-07-09 17:16:26 +00007853IFS=$as_save_IFS
7854
7855 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7856 ;;
7857esac
7858fi
7859CIRCO=$ac_cv_path_CIRCO
7860if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007861 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7862echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007864 { echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007866fi
7867
7868
7869if test "$CIRCO" != "echo circo" ; then
7870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007871cat >>confdefs.h <<\_ACEOF
7872#define HAVE_CIRCO 1
7873_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007874
7875 if test "$llvm_cv_os_type" = "MingW" ; then
7876 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7877 fi
7878
7879cat >>confdefs.h <<_ACEOF
7880#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7881_ACEOF
7882
7883fi
Reid Spencera773bd52006-08-04 18:18:08 +00007884for ac_prog in gv gsview32
7885do
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890if test "${ac_cv_path_GV+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007892else
7893 case $GV in
7894 [\\/]* | ?:[\\/]*)
7895 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7896 ;;
7897 *)
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 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 +00007905 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007907 break 2
7908 fi
7909done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007910done
Reid Spencera773bd52006-08-04 18:18:08 +00007911IFS=$as_save_IFS
7912
7913 ;;
7914esac
7915fi
7916GV=$ac_cv_path_GV
7917if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007918 { echo "$as_me:$LINENO: result: $GV" >&5
7919echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007921 { echo "$as_me:$LINENO: result: no" >&5
7922echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007923fi
7924
7925
7926 test -n "$GV" && break
7927done
7928test -n "$GV" || GV="echo gv"
7929
7930if test "$GV" != "echo gv" ; then
7931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007932cat >>confdefs.h <<\_ACEOF
7933#define HAVE_GV 1
7934_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007935
Jeff Cohen28783c32007-01-12 18:22:38 +00007936 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007937 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7938 fi
7939
7940cat >>confdefs.h <<_ACEOF
7941#define LLVM_PATH_GV "$GV${EXEEXT}"
7942_ACEOF
7943
7944fi
7945# Extract the first word of "dotty", so it can be a program name with args.
7946set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949if test "${ac_cv_path_DOTTY+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007951else
7952 case $DOTTY in
7953 [\\/]* | ?:[\\/]*)
7954 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7955 ;;
7956 *)
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 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 +00007964 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007966 break 2
7967 fi
7968done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969done
Reid Spencera773bd52006-08-04 18:18:08 +00007970IFS=$as_save_IFS
7971
7972 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7973 ;;
7974esac
7975fi
7976DOTTY=$ac_cv_path_DOTTY
7977if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007978 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7979echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007981 { echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007983fi
7984
7985
7986if test "$DOTTY" != "echo dotty" ; then
7987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007988cat >>confdefs.h <<\_ACEOF
7989#define HAVE_DOTTY 1
7990_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007991
Jeff Cohen28783c32007-01-12 18:22:38 +00007992 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007993 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7994 fi
7995
7996cat >>confdefs.h <<_ACEOF
7997#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7998_ACEOF
7999
8000fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00008001# Extract the first word of "xdot.py", so it can be a program name with args.
8002set dummy xdot.py; ac_word=$2
8003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8005if test "${ac_cv_path_XDOT_PY+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007else
8008 case $XDOT_PY in
8009 [\\/]* | ?:[\\/]*)
8010 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
8011 ;;
8012 *)
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014for as_dir in $PATH
8015do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8020 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8023 fi
8024done
8025done
8026IFS=$as_save_IFS
8027
8028 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8029 ;;
8030esac
8031fi
8032XDOT_PY=$ac_cv_path_XDOT_PY
8033if test -n "$XDOT_PY"; then
8034 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8035echo "${ECHO_T}$XDOT_PY" >&6; }
8036else
8037 { echo "$as_me:$LINENO: result: no" >&5
8038echo "${ECHO_T}no" >&6; }
8039fi
8040
8041
8042if test "$XDOT_PY" != "echo xdot.py" ; then
8043
8044cat >>confdefs.h <<\_ACEOF
8045#define HAVE_XDOT_PY 1
8046_ACEOF
8047
8048 if test "$llvm_cv_os_type" = "MingW" ; then
8049 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8050 fi
8051
8052cat >>confdefs.h <<_ACEOF
8053#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8054_ACEOF
8055
8056fi
Reid Spencera773bd52006-08-04 18:18:08 +00008057
8058
8059# Extract the first word of "perl", so it can be a program name with args.
8060set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8063if test "${ac_cv_path_PERL+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008065else
8066 case $PERL in
8067 [\\/]* | ?:[\\/]*)
8068 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8069 ;;
8070 *)
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072for as_dir in $PATH
8073do
8074 IFS=$as_save_IFS
8075 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 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 +00008078 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008080 break 2
8081 fi
8082done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008083done
Reid Spencera773bd52006-08-04 18:18:08 +00008084IFS=$as_save_IFS
8085
8086 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8087 ;;
8088esac
8089fi
8090PERL=$ac_cv_path_PERL
8091if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008092 { echo "$as_me:$LINENO: result: $PERL" >&5
8093echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008095 { echo "$as_me:$LINENO: result: no" >&5
8096echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008097fi
8098
8099
8100if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008101 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8102echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008103 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008104 { echo "$as_me:$LINENO: result: yes" >&5
8105echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008106 else
8107 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008108 { echo "$as_me:$LINENO: result: not found" >&5
8109echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008110 fi
8111fi
8112
8113
8114if test x"$PERL" = xnone; then
8115 HAVE_PERL=0
8116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008117 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8118echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8119 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008120else
8121 HAVE_PERL=1
8122
8123fi
8124
8125# Find a good install program. We prefer a C program (faster),
8126# so one script is as good as another. But avoid the broken or
8127# incompatible versions:
8128# SysV /etc/install, /usr/sbin/install
8129# SunOS /usr/etc/install
8130# IRIX /sbin/install
8131# AIX /bin/install
8132# AmigaOS /C/install, which installs bootblocks on floppy discs
8133# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8134# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8135# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8136# OS/2's system install, which has a completely different semantic
8137# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8139echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008140if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141if test "${ac_cv_path_install+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008143else
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145for as_dir in $PATH
8146do
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008149 # Account for people who put trailing slashes in PATH elements.
8150case $as_dir/ in
8151 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008152 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008154 /usr/ucb/* ) ;;
8155 *)
8156 # OSF1 and SCO ODT 3.0 have their own names for install.
8157 # Don't use installbsd from OSF since it installs stuff as root
8158 # by default.
8159 for ac_prog in ginstall scoinst install; do
8160 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008161 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 +00008162 if test $ac_prog = install &&
8163 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8164 # AIX install. It has an incompatible calling convention.
8165 :
8166 elif test $ac_prog = install &&
8167 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8168 # program-specific install script used by HP pwplus--don't use.
8169 :
8170 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008171 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8172 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008173 fi
8174 fi
8175 done
8176 done
8177 ;;
8178esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008179done
Reid Spencera773bd52006-08-04 18:18:08 +00008180IFS=$as_save_IFS
8181
8182
8183fi
8184 if test "${ac_cv_path_install+set}" = set; then
8185 INSTALL=$ac_cv_path_install
8186 else
8187 # As a last resort, use the slow shell script. Don't cache a
8188 # value for INSTALL within a source directory, because that will
8189 # break other packages using the cache if that directory is
8190 # removed, or if the value is a relative name.
8191 INSTALL=$ac_install_sh
8192 fi
8193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8195echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008196
8197# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8198# It thinks the first close brace ends the variable substitution.
8199test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8200
8201test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8202
8203test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8204
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008205case "$INSTALL" in
8206 [\\/$]* | ?:[\\/]* ) ;;
8207 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8208esac
Reid Spencera773bd52006-08-04 18:18:08 +00008209
8210# Extract the first word of "bzip2", so it can be a program name with args.
8211set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214if test "${ac_cv_path_BZIP2+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008216else
8217 case $BZIP2 in
8218 [\\/]* | ?:[\\/]*)
8219 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8220 ;;
8221 *)
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $PATH
8224do
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 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 +00008229 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008231 break 2
8232 fi
8233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234done
Reid Spencera773bd52006-08-04 18:18:08 +00008235IFS=$as_save_IFS
8236
Reid Spencera773bd52006-08-04 18:18:08 +00008237 ;;
8238esac
8239fi
8240BZIP2=$ac_cv_path_BZIP2
8241if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8243echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008244else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008245 { echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008247fi
8248
8249
mike-m68cb3192010-05-06 23:45:43 +00008250# Extract the first word of "cat", so it can be a program name with args.
8251set dummy cat; ac_word=$2
8252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8254if test "${ac_cv_path_CAT+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256else
8257 case $CAT in
8258 [\\/]* | ?:[\\/]*)
8259 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8260 ;;
8261 *)
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273done
8274done
8275IFS=$as_save_IFS
8276
8277 ;;
8278esac
8279fi
8280CAT=$ac_cv_path_CAT
8281if test -n "$CAT"; then
8282 { echo "$as_me:$LINENO: result: $CAT" >&5
8283echo "${ECHO_T}$CAT" >&6; }
8284else
8285 { echo "$as_me:$LINENO: result: no" >&5
8286echo "${ECHO_T}no" >&6; }
8287fi
8288
8289
Reid Spencera773bd52006-08-04 18:18:08 +00008290# Extract the first word of "doxygen", so it can be a program name with args.
8291set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8294if test "${ac_cv_path_DOXYGEN+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008296else
8297 case $DOXYGEN in
8298 [\\/]* | ?:[\\/]*)
8299 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8300 ;;
8301 *)
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 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 +00008309 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008311 break 2
8312 fi
8313done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314done
Reid Spencera773bd52006-08-04 18:18:08 +00008315IFS=$as_save_IFS
8316
Reid Spencera773bd52006-08-04 18:18:08 +00008317 ;;
8318esac
8319fi
8320DOXYGEN=$ac_cv_path_DOXYGEN
8321if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008322 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8323echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008325 { echo "$as_me:$LINENO: result: no" >&5
8326echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008327fi
8328
8329
Reid Spencera773bd52006-08-04 18:18:08 +00008330# Extract the first word of "groff", so it can be a program name with args.
8331set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8334if test "${ac_cv_path_GROFF+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008336else
8337 case $GROFF in
8338 [\\/]* | ?:[\\/]*)
8339 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8340 ;;
8341 *)
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343for as_dir in $PATH
8344do
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 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 +00008349 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008351 break 2
8352 fi
8353done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354done
Reid Spencera773bd52006-08-04 18:18:08 +00008355IFS=$as_save_IFS
8356
Reid Spencera773bd52006-08-04 18:18:08 +00008357 ;;
8358esac
8359fi
8360GROFF=$ac_cv_path_GROFF
8361if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008362 { echo "$as_me:$LINENO: result: $GROFF" >&5
8363echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008365 { echo "$as_me:$LINENO: result: no" >&5
8366echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008367fi
8368
8369
8370# Extract the first word of "gzip", so it can be a program name with args.
8371set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008374if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008375 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008376else
Eric Christopher031d3072010-12-10 01:31:51 +00008377 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008378 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008379 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008380 ;;
8381 *)
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383for as_dir in $PATH
8384do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 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 +00008389 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008391 break 2
8392 fi
8393done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394done
Reid Spencera773bd52006-08-04 18:18:08 +00008395IFS=$as_save_IFS
8396
Reid Spencera773bd52006-08-04 18:18:08 +00008397 ;;
8398esac
8399fi
Eric Christopher031d3072010-12-10 01:31:51 +00008400GZIPBIN=$ac_cv_path_GZIPBIN
8401if test -n "$GZIPBIN"; then
8402 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8403echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008404else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405 { echo "$as_me:$LINENO: result: no" >&5
8406echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008407fi
8408
8409
8410# Extract the first word of "pod2html", so it can be a program name with args.
8411set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8414if test "${ac_cv_path_POD2HTML+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008416else
8417 case $POD2HTML in
8418 [\\/]* | ?:[\\/]*)
8419 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8420 ;;
8421 *)
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 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 +00008429 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008431 break 2
8432 fi
8433done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434done
Reid Spencera773bd52006-08-04 18:18:08 +00008435IFS=$as_save_IFS
8436
Reid Spencera773bd52006-08-04 18:18:08 +00008437 ;;
8438esac
8439fi
8440POD2HTML=$ac_cv_path_POD2HTML
8441if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008442 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8443echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008445 { echo "$as_me:$LINENO: result: no" >&5
8446echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008447fi
8448
8449
8450# Extract the first word of "pod2man", so it can be a program name with args.
8451set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8454if test "${ac_cv_path_POD2MAN+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008456else
8457 case $POD2MAN in
8458 [\\/]* | ?:[\\/]*)
8459 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8460 ;;
8461 *)
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463for as_dir in $PATH
8464do
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 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 +00008469 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008471 break 2
8472 fi
8473done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008474done
Reid Spencera773bd52006-08-04 18:18:08 +00008475IFS=$as_save_IFS
8476
Reid Spencera773bd52006-08-04 18:18:08 +00008477 ;;
8478esac
8479fi
8480POD2MAN=$ac_cv_path_POD2MAN
8481if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8483echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008485 { echo "$as_me:$LINENO: result: no" >&5
8486echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008487fi
8488
8489
mike-m68cb3192010-05-06 23:45:43 +00008490# Extract the first word of "pdfroff", so it can be a program name with args.
8491set dummy pdfroff; ac_word=$2
8492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8494if test "${ac_cv_path_PDFROFF+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497 case $PDFROFF in
8498 [\\/]* | ?:[\\/]*)
8499 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8500 ;;
8501 *)
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503for as_dir in $PATH
8504do
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8512 fi
8513done
8514done
8515IFS=$as_save_IFS
8516
8517 ;;
8518esac
8519fi
8520PDFROFF=$ac_cv_path_PDFROFF
8521if test -n "$PDFROFF"; then
8522 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8523echo "${ECHO_T}$PDFROFF" >&6; }
8524else
8525 { echo "$as_me:$LINENO: result: no" >&5
8526echo "${ECHO_T}no" >&6; }
8527fi
8528
8529
Reid Spencera773bd52006-08-04 18:18:08 +00008530# Extract the first word of "runtest", so it can be a program name with args.
8531set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8534if test "${ac_cv_path_RUNTEST+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008536else
8537 case $RUNTEST in
8538 [\\/]* | ?:[\\/]*)
8539 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8540 ;;
8541 *)
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 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 +00008549 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008551 break 2
8552 fi
8553done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008554done
Reid Spencera773bd52006-08-04 18:18:08 +00008555IFS=$as_save_IFS
8556
Reid Spencera773bd52006-08-04 18:18:08 +00008557 ;;
8558esac
8559fi
8560RUNTEST=$ac_cv_path_RUNTEST
8561if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008562 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8563echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008565 { echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008567fi
8568
8569
8570
8571no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008572{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8573echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008574
8575# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008576if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008577 withval=$with_tclinclude; with_tclinclude=${withval}
8578else
8579 with_tclinclude=''
8580fi
8581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008582if test "${ac_cv_path_tclsh+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008584else
8585
8586if test x"${with_tclinclude}" != x ; then
8587 if test -f ${with_tclinclude}/tclsh ; then
8588 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8589 elif test -f ${with_tclinclude}/src/tclsh ; then
8590 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8591 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008592 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8593echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8594 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008595 fi
8596fi
Torok Edwin871384f2010-01-26 08:50:50 +00008597fi
8598
Reid Spencera773bd52006-08-04 18:18:08 +00008599
8600if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008601 { echo "$as_me:$LINENO: result: none" >&5
8602echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008603 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
8604do
8605 # Extract the first word of "$ac_prog", so it can be a program name with args.
8606set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8609if test "${ac_cv_path_TCLSH+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008611else
8612 case $TCLSH in
8613 [\\/]* | ?:[\\/]*)
8614 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8615 ;;
8616 *)
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618for as_dir in $PATH
8619do
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008622 for ac_exec_ext in '' $ac_executable_extensions; do
8623 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 +00008624 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008626 break 2
8627 fi
8628done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008629done
Reid Spencera773bd52006-08-04 18:18:08 +00008630IFS=$as_save_IFS
8631
8632 ;;
8633esac
8634fi
8635TCLSH=$ac_cv_path_TCLSH
8636if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008637 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8638echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008639else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008640 { echo "$as_me:$LINENO: result: no" >&5
8641echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008642fi
8643
8644
8645 test -n "$TCLSH" && break
8646done
8647
8648 if test x"${TCLSH}" = x ; then
8649 ac_cv_path_tclsh='';
8650 else
8651 ac_cv_path_tclsh="${TCLSH}";
8652 fi
8653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008654 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8655echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008656 TCLSH="${ac_cv_path_tclsh}"
8657
8658fi
8659
Reid Spencera773bd52006-08-04 18:18:08 +00008660# Extract the first word of "zip", so it can be a program name with args.
8661set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8664if test "${ac_cv_path_ZIP+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008666else
8667 case $ZIP in
8668 [\\/]* | ?:[\\/]*)
8669 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8670 ;;
8671 *)
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 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 +00008679 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008681 break 2
8682 fi
8683done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008684done
Reid Spencera773bd52006-08-04 18:18:08 +00008685IFS=$as_save_IFS
8686
Reid Spencera773bd52006-08-04 18:18:08 +00008687 ;;
8688esac
8689fi
8690ZIP=$ac_cv_path_ZIP
8691if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008692 { echo "$as_me:$LINENO: result: $ZIP" >&5
8693echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008695 { echo "$as_me:$LINENO: result: no" >&5
8696echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008697fi
8698
8699
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008700for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008701do
8702 # Extract the first word of "$ac_prog", so it can be a program name with args.
8703set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8706if test "${ac_cv_path_OCAMLC+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008708else
8709 case $OCAMLC in
8710 [\\/]* | ?:[\\/]*)
8711 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8712 ;;
8713 *)
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715for as_dir in $PATH
8716do
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 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 +00008721 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008723 break 2
8724 fi
8725done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008726done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008727IFS=$as_save_IFS
8728
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008729 ;;
8730esac
8731fi
8732OCAMLC=$ac_cv_path_OCAMLC
8733if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008734 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8735echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008737 { echo "$as_me:$LINENO: result: no" >&5
8738echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008739fi
8740
8741
Gordon Henriksene7072162008-03-07 18:20:01 +00008742 test -n "$OCAMLC" && break
8743done
8744
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008745for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008746do
8747 # Extract the first word of "$ac_prog", so it can be a program name with args.
8748set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8751if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008753else
8754 case $OCAMLOPT in
8755 [\\/]* | ?:[\\/]*)
8756 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8757 ;;
8758 *)
8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760for as_dir in $PATH
8761do
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 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 +00008766 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008768 break 2
8769 fi
8770done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008771done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008772IFS=$as_save_IFS
8773
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008774 ;;
8775esac
8776fi
8777OCAMLOPT=$ac_cv_path_OCAMLOPT
8778if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008779 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8780echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008782 { echo "$as_me:$LINENO: result: no" >&5
8783echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008784fi
8785
8786
Gordon Henriksene7072162008-03-07 18:20:01 +00008787 test -n "$OCAMLOPT" && break
8788done
8789
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008790for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008791do
8792 # Extract the first word of "$ac_prog", so it can be a program name with args.
8793set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8796if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008798else
8799 case $OCAMLDEP in
8800 [\\/]* | ?:[\\/]*)
8801 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8802 ;;
8803 *)
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805for as_dir in $PATH
8806do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 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 +00008811 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008813 break 2
8814 fi
8815done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008816done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008817IFS=$as_save_IFS
8818
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008819 ;;
8820esac
8821fi
8822OCAMLDEP=$ac_cv_path_OCAMLDEP
8823if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008824 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8825echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008827 { echo "$as_me:$LINENO: result: no" >&5
8828echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008829fi
8830
8831
Gordon Henriksene7072162008-03-07 18:20:01 +00008832 test -n "$OCAMLDEP" && break
8833done
8834
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008835for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008836do
8837 # Extract the first word of "$ac_prog", so it can be a program name with args.
8838set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8841if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008843else
8844 case $OCAMLDOC in
8845 [\\/]* | ?:[\\/]*)
8846 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8847 ;;
8848 *)
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 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 +00008856 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008858 break 2
8859 fi
8860done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008861done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008862IFS=$as_save_IFS
8863
8864 ;;
8865esac
8866fi
8867OCAMLDOC=$ac_cv_path_OCAMLDOC
8868if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008869 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8870echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008872 { echo "$as_me:$LINENO: result: no" >&5
8873echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008874fi
8875
8876
8877 test -n "$OCAMLDOC" && break
8878done
8879
Torok Edwincc499a42008-10-22 09:56:27 +00008880for ac_prog in gas as
8881do
8882 # Extract the first word of "$ac_prog", so it can be a program name with args.
8883set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8886if test "${ac_cv_path_GAS+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008888else
8889 case $GAS in
8890 [\\/]* | ?:[\\/]*)
8891 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8892 ;;
8893 *)
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895for as_dir in $PATH
8896do
8897 IFS=$as_save_IFS
8898 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 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 +00008901 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008903 break 2
8904 fi
8905done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008906done
Torok Edwincc499a42008-10-22 09:56:27 +00008907IFS=$as_save_IFS
8908
8909 ;;
8910esac
8911fi
8912GAS=$ac_cv_path_GAS
8913if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008914 { echo "$as_me:$LINENO: result: $GAS" >&5
8915echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008916else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008917 { echo "$as_me:$LINENO: result: no" >&5
8918echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008919fi
8920
8921
8922 test -n "$GAS" && break
8923done
8924
Reid Spencera773bd52006-08-04 18:18:08 +00008925
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008926{ echo "$as_me:$LINENO: checking for linker version" >&5
8927echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8928if test "${llvm_cv_link_version+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930else
8931
8932 version_string="$(ld -v 2>&1 | head -1)"
8933
8934 # Check for ld64.
8935 if (echo "$version_string" | grep -q "ld64"); then
8936 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8937 else
8938 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8939 fi
8940
8941fi
8942{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8943echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8944
8945cat >>confdefs.h <<_ACEOF
8946#define HOST_LINK_VERSION "$llvm_cv_link_version"
8947_ACEOF
8948
8949
8950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008951{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8952echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8953if test "${llvm_cv_link_use_r+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008955else
8956 ac_ext=c
8957ac_cpp='$CPP $CPPFLAGS'
8958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961
8962 oldcflags="$CFLAGS"
8963 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008964 cat >conftest.$ac_ext <<_ACEOF
8965/* confdefs.h. */
8966_ACEOF
8967cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008969/* end confdefs.h. */
8970
8971int
8972main ()
8973{
Dan Gohman39ed6782010-04-25 00:12:20 +00008974
Reid Spencera773bd52006-08-04 18:18:08 +00008975 ;
8976 return 0;
8977}
8978_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008979rm -f conftest.$ac_objext conftest$ac_exeext
8980if { (ac_try="$ac_link"
8981case "(($ac_try" in
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8984esac
8985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_link") 2>conftest.er1
8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994 { (case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997esac
8998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_try") 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007esac
9008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_try") 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009013 llvm_cv_link_use_r=yes
9014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009015 echo "$as_me: failed program was:" >&5
9016sed 's/^/| /' conftest.$ac_ext >&5
9017
9018 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00009019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009020
Bill Wendlingebcceee2009-04-18 11:20:33 +00009021rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009022 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009023 CFLAGS="$oldcflags"
9024 ac_ext=c
9025ac_cpp='$CPP $CPPFLAGS'
9026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028ac_compiler_gnu=$ac_cv_c_compiler_gnu
9029
9030
9031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009032{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9033echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009034if test "$llvm_cv_link_use_r" = yes ; then
9035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009036cat >>confdefs.h <<\_ACEOF
9037#define HAVE_LINK_R 1
9038_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009039
9040 fi
9041
9042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009043{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9044echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9045if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009047else
9048 ac_ext=c
9049ac_cpp='$CPP $CPPFLAGS'
9050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9052ac_compiler_gnu=$ac_cv_c_compiler_gnu
9053
9054 oldcflags="$CFLAGS"
9055 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009056 cat >conftest.$ac_ext <<_ACEOF
9057/* confdefs.h. */
9058_ACEOF
9059cat confdefs.h >>conftest.$ac_ext
9060cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009061/* end confdefs.h. */
9062
9063int
9064main ()
9065{
Dan Gohman39ed6782010-04-25 00:12:20 +00009066
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009067 ;
9068 return 0;
9069}
9070_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009071rm -f conftest.$ac_objext conftest$ac_exeext
9072if { (ac_try="$ac_link"
9073case "(($ac_try" in
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9076esac
9077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_link") 2>conftest.er1
9079 ac_status=$?
9080 grep -v '^ *+' conftest.er1 >conftest.err
9081 rm -f conftest.er1
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9086 { (case "(($ac_try" in
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9089esac
9090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_try") 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; } &&
9095 { ac_try='test -s conftest$ac_exeext'
9096 { (case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9099esac
9100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_try") 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009105 llvm_cv_link_use_export_dynamic=yes
9106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009107 echo "$as_me: failed program was:" >&5
9108sed 's/^/| /' conftest.$ac_ext >&5
9109
9110 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009111fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009112
Bill Wendlingebcceee2009-04-18 11:20:33 +00009113rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009114 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009115 CFLAGS="$oldcflags"
9116 ac_ext=c
9117ac_cpp='$CPP $CPPFLAGS'
9118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120ac_compiler_gnu=$ac_cv_c_compiler_gnu
9121
9122
9123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009124{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9125echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009126if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9127
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009128cat >>confdefs.h <<\_ACEOF
9129#define HAVE_LINK_EXPORT_DYNAMIC 1
9130_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009131
9132 fi
9133
9134
Dan Gohmanda612d62010-06-01 14:56:56 +00009135{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9136echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9137if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009138 echo $ECHO_N "(cached) $ECHO_C" >&6
9139else
9140 ac_ext=c
9141ac_cpp='$CPP $CPPFLAGS'
9142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9144ac_compiler_gnu=$ac_cv_c_compiler_gnu
9145
9146 oldcflags="$CFLAGS"
9147
9148 # The following code is from the autoconf manual,
9149 # "11.13: Limitations of Usual Tools".
9150 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9151 # Use mktemp if possible; otherwise fall back on mkdir,
9152 # with $RANDOM to make collisions less likely.
9153 : ${TMPDIR=/tmp}
9154 {
9155 tmp=`
9156 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9157 ` &&
9158 test -n "$tmp" && test -d "$tmp"
9159 } || {
9160 tmp=$TMPDIR/foo$$-$RANDOM
9161 (umask 077 && mkdir "$tmp")
9162 } || exit $?
9163
Dan Gohmanda612d62010-06-01 14:56:56 +00009164 echo "{" > "$tmp/export.map"
9165 echo " global: main;" >> "$tmp/export.map"
9166 echo " local: *;" >> "$tmp/export.map"
9167 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009168
Dan Gohmanda612d62010-06-01 14:56:56 +00009169 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009170 cat >conftest.$ac_ext <<_ACEOF
9171/* confdefs.h. */
9172_ACEOF
9173cat confdefs.h >>conftest.$ac_ext
9174cat >>conftest.$ac_ext <<_ACEOF
9175/* end confdefs.h. */
9176
9177int
9178main ()
9179{
Dan Gohman39ed6782010-04-25 00:12:20 +00009180
Dan Gohman391569c2010-04-16 22:59:06 +00009181 ;
9182 return 0;
9183}
9184_ACEOF
9185rm -f conftest.$ac_objext conftest$ac_exeext
9186if { (ac_try="$ac_link"
9187case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190esac
9191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_link") 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9200 { (case "(($ac_try" in
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9203esac
9204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205 (eval "$ac_try") 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213esac
9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_try") 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009219 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009220else
9221 echo "$as_me: failed program was:" >&5
9222sed 's/^/| /' conftest.$ac_ext >&5
9223
Dan Gohman943005e2010-06-01 16:22:27 +00009224 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009225fi
9226
9227rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009229 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009230 rmdir "$tmp"
9231 CFLAGS="$oldcflags"
9232 ac_ext=c
9233ac_cpp='$CPP $CPPFLAGS'
9234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9236ac_compiler_gnu=$ac_cv_c_compiler_gnu
9237
9238
9239fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009240{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9241echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9242if test "$llvm_cv_link_use_version_script" = yes ; then
9243 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009244
9245 fi
9246
9247
Reid Spencera773bd52006-08-04 18:18:08 +00009248
9249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009250{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9251echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9252if test "${ac_cv_c_const+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009255 cat >conftest.$ac_ext <<_ACEOF
9256/* confdefs.h. */
9257_ACEOF
9258cat confdefs.h >>conftest.$ac_ext
9259cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009260/* end confdefs.h. */
9261
9262int
9263main ()
9264{
9265/* FIXME: Include the comments suggested by Paul. */
9266#ifndef __cplusplus
9267 /* Ultrix mips cc rejects this. */
9268 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009269 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009270 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009271 char const *const *ccp;
9272 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009273 /* NEC SVR4.0.2 mips cc rejects this. */
9274 struct point {int x, y;};
9275 static struct point const zero = {0,0};
9276 /* AIX XL C 1.02.0.0 rejects this.
9277 It does not let you subtract one const X* pointer from another in
9278 an arm of an if-expression whose if-part is not a constant
9279 expression */
9280 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009281 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009282 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009283 ++ccp;
9284 p = (char**) ccp;
9285 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009286 { /* SCO 3.2v4 cc rejects this. */
9287 char *t;
9288 char const *s = 0 ? (char *) 0 : (char const *) 0;
9289
9290 *t++ = 0;
9291 if (s) return 0;
9292 }
9293 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9294 int x[] = {25, 17};
9295 const int *foo = &x[0];
9296 ++foo;
9297 }
9298 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9299 typedef const int *iptr;
9300 iptr p = 0;
9301 ++p;
9302 }
9303 { /* AIX XL C 1.02.0.0 rejects this saying
9304 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9305 struct s { int j; const int *ap[3]; };
9306 struct s *b; b->j = 5;
9307 }
9308 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9309 const int foo = 10;
9310 if (!foo) return 0;
9311 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009312 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009313#endif
9314
9315 ;
9316 return 0;
9317}
9318_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009319rm -f conftest.$ac_objext
9320if { (ac_try="$ac_compile"
9321case "(($ac_try" in
9322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9323 *) ac_try_echo=$ac_try;;
9324esac
9325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9326 (eval "$ac_compile") 2>conftest.er1
9327 ac_status=$?
9328 grep -v '^ *+' conftest.er1 >conftest.err
9329 rm -f conftest.er1
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9334 { (case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337esac
9338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_try") 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; } &&
9343 { ac_try='test -s conftest.$ac_objext'
9344 { (case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9347esac
9348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_try") 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009353 ac_cv_c_const=yes
9354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009355 echo "$as_me: failed program was:" >&5
9356sed 's/^/| /' conftest.$ac_ext >&5
9357
9358 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009360
Reid Spencera773bd52006-08-04 18:18:08 +00009361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009363{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9364echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009365if test $ac_cv_c_const = no; then
9366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009367cat >>confdefs.h <<\_ACEOF
9368#define const
9369_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009370
9371fi
9372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009373
9374
9375
9376
9377
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009378ac_header_dirent=no
9379for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009380 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9381{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9382echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009386 cat >conftest.$ac_ext <<_ACEOF
9387/* confdefs.h. */
9388_ACEOF
9389cat confdefs.h >>conftest.$ac_ext
9390cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391/* end confdefs.h. */
9392#include <sys/types.h>
9393#include <$ac_hdr>
9394
9395int
9396main ()
9397{
9398if ((DIR *) 0)
9399return 0;
9400 ;
9401 return 0;
9402}
9403_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009404rm -f conftest.$ac_objext
9405if { (ac_try="$ac_compile"
9406case "(($ac_try" in
9407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408 *) ac_try_echo=$ac_try;;
9409esac
9410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9411 (eval "$ac_compile") 2>conftest.er1
9412 ac_status=$?
9413 grep -v '^ *+' conftest.er1 >conftest.err
9414 rm -f conftest.er1
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9419 { (case "(($ac_try" in
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9422esac
9423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_try") 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; } &&
9428 { ac_try='test -s conftest.$ac_objext'
9429 { (case "(($ac_try" in
9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431 *) ac_try_echo=$ac_try;;
9432esac
9433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434 (eval "$ac_try") 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009438 eval "$as_ac_Header=yes"
9439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009440 echo "$as_me: failed program was:" >&5
9441sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009445
Reid Spencera773bd52006-08-04 18:18:08 +00009446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009448ac_res=`eval echo '${'$as_ac_Header'}'`
9449 { echo "$as_me:$LINENO: result: $ac_res" >&5
9450echo "${ECHO_T}$ac_res" >&6; }
9451if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009452 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009453#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454_ACEOF
9455
9456ac_header_dirent=$ac_hdr; break
9457fi
9458
9459done
9460# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9461if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009462 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9463echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9464if test "${ac_cv_search_opendir+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009466else
9467 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009468cat >conftest.$ac_ext <<_ACEOF
9469/* confdefs.h. */
9470_ACEOF
9471cat confdefs.h >>conftest.$ac_ext
9472cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009473/* end confdefs.h. */
9474
Reid Spencera773bd52006-08-04 18:18:08 +00009475/* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009478#ifdef __cplusplus
9479extern "C"
9480#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009481char opendir ();
9482int
9483main ()
9484{
Reid Spencera773bd52006-08-04 18:18:08 +00009485return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009486 ;
9487 return 0;
9488}
9489_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009490for ac_lib in '' dir; do
9491 if test -z "$ac_lib"; then
9492 ac_res="none required"
9493 else
9494 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009496 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009497 rm -f conftest.$ac_objext conftest$ac_exeext
9498if { (ac_try="$ac_link"
9499case "(($ac_try" in
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9502esac
9503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504 (eval "$ac_link") 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9512 { (case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9515esac
9516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_try") 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; } &&
9521 { ac_try='test -s conftest$ac_exeext'
9522 { (case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9525esac
9526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_try") 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009531 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009532else
9533 echo "$as_me: failed program was:" >&5
9534sed 's/^/| /' conftest.$ac_ext >&5
9535
9536
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009538
Bill Wendlingebcceee2009-04-18 11:20:33 +00009539rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009540 conftest$ac_exeext
9541 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009542 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009543fi
John Criswell7a73b802003-06-30 21:59:07 +00009544done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009545if test "${ac_cv_search_opendir+set}" = set; then
9546 :
Reid Spencera773bd52006-08-04 18:18:08 +00009547else
9548 ac_cv_search_opendir=no
9549fi
9550rm conftest.$ac_ext
9551LIBS=$ac_func_search_save_LIBS
9552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009553{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9554echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009555ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009556if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009558
Reid Spencera773bd52006-08-04 18:18:08 +00009559fi
9560
9561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009562 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9563echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9564if test "${ac_cv_search_opendir+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009566else
9567 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009568cat >conftest.$ac_ext <<_ACEOF
9569/* confdefs.h. */
9570_ACEOF
9571cat confdefs.h >>conftest.$ac_ext
9572cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009573/* end confdefs.h. */
9574
9575/* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9578#ifdef __cplusplus
9579extern "C"
9580#endif
9581char opendir ();
9582int
9583main ()
9584{
9585return opendir ();
9586 ;
9587 return 0;
9588}
9589_ACEOF
9590for ac_lib in '' x; do
9591 if test -z "$ac_lib"; then
9592 ac_res="none required"
9593 else
9594 ac_res=-l$ac_lib
9595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9596 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009597 rm -f conftest.$ac_objext conftest$ac_exeext
9598if { (ac_try="$ac_link"
9599case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9602esac
9603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_link") 2>conftest.er1
9605 ac_status=$?
9606 grep -v '^ *+' conftest.er1 >conftest.err
9607 rm -f conftest.er1
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9612 { (case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615esac
9616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try='test -s conftest$ac_exeext'
9622 { (case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9625esac
9626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_try") 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009631 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009632else
9633 echo "$as_me: failed program was:" >&5
9634sed 's/^/| /' conftest.$ac_ext >&5
9635
9636
Reid Spencera773bd52006-08-04 18:18:08 +00009637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009638
Bill Wendlingebcceee2009-04-18 11:20:33 +00009639rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009640 conftest$ac_exeext
9641 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009642 break
9643fi
9644done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009645if test "${ac_cv_search_opendir+set}" = set; then
9646 :
Reid Spencera773bd52006-08-04 18:18:08 +00009647else
9648 ac_cv_search_opendir=no
9649fi
9650rm conftest.$ac_ext
9651LIBS=$ac_func_search_save_LIBS
9652fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009653{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9654echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009655ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009656if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9658
9659fi
9660
9661fi
John Criswell7a73b802003-06-30 21:59:07 +00009662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009663
John Criswell7a73b802003-06-30 21:59:07 +00009664for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009665do
9666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672fi
9673ac_res=`eval echo '${'$as_ac_Header'}'`
9674 { echo "$as_me:$LINENO: result: $ac_res" >&5
9675echo "${ECHO_T}$ac_res" >&6; }
9676else
9677 # Is the header compilable?
9678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9680cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h. */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h. */
9686$ac_includes_default
9687#include <$ac_header>
9688_ACEOF
9689rm -f conftest.$ac_objext
9690if { (ac_try="$ac_compile"
9691case "(($ac_try" in
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9694esac
9695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_compile") 2>conftest.er1
9697 ac_status=$?
9698 grep -v '^ *+' conftest.er1 >conftest.err
9699 rm -f conftest.er1
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9704 { (case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9707esac
9708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_try") 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try='test -s conftest.$ac_objext'
9714 { (case "(($ac_try" in
9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9717esac
9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_try") 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_header_compiler=yes
9724else
9725 echo "$as_me: failed program was:" >&5
9726sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 ac_header_compiler=no
9729fi
9730
9731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9733echo "${ECHO_T}$ac_header_compiler" >&6; }
9734
9735# Is the header present?
9736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9738cat >conftest.$ac_ext <<_ACEOF
9739/* confdefs.h. */
9740_ACEOF
9741cat confdefs.h >>conftest.$ac_ext
9742cat >>conftest.$ac_ext <<_ACEOF
9743/* end confdefs.h. */
9744#include <$ac_header>
9745_ACEOF
9746if { (ac_try="$ac_cpp conftest.$ac_ext"
9747case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750esac
9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } >/dev/null; then
9759 if test -s conftest.err; then
9760 ac_cpp_err=$ac_c_preproc_warn_flag
9761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9762 else
9763 ac_cpp_err=
9764 fi
9765else
9766 ac_cpp_err=yes
9767fi
9768if test -z "$ac_cpp_err"; then
9769 ac_header_preproc=yes
9770else
9771 echo "$as_me: failed program was:" >&5
9772sed 's/^/| /' conftest.$ac_ext >&5
9773
9774 ac_header_preproc=no
9775fi
9776
9777rm -f conftest.err conftest.$ac_ext
9778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9779echo "${ECHO_T}$ac_header_preproc" >&6; }
9780
9781# So? What about this header?
9782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9783 yes:no: )
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9788 ac_header_preproc=yes
9789 ;;
9790 no:yes:* )
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9803 ( cat <<\_ASBOX
9804## ----------------------------------- ##
9805## Report this to llvmbugs@cs.uiuc.edu ##
9806## ----------------------------------- ##
9807_ASBOX
9808 ) | sed "s/^/$as_me: WARNING: /" >&2
9809 ;;
9810esac
9811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816 eval "$as_ac_Header=\$ac_header_preproc"
9817fi
9818ac_res=`eval echo '${'$as_ac_Header'}'`
9819 { echo "$as_me:$LINENO: result: $ac_res" >&5
9820echo "${ECHO_T}$ac_res" >&6; }
9821
9822fi
9823if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009824 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009826_ACEOF
9827
9828fi
9829
9830done
9831
Reid Spencera773bd52006-08-04 18:18:08 +00009832# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009833if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009834 enableval=$enable_ltdl_install;
9835fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009836
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009838
9839
9840if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009841 INSTALL_LTDL_TRUE=
9842 INSTALL_LTDL_FALSE='#'
9843else
9844 INSTALL_LTDL_TRUE='#'
9845 INSTALL_LTDL_FALSE=
9846fi
9847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009848
9849
9850if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851 CONVENIENCE_LTDL_TRUE=
9852 CONVENIENCE_LTDL_FALSE='#'
9853else
9854 CONVENIENCE_LTDL_TRUE='#'
9855 CONVENIENCE_LTDL_FALSE=
9856fi
9857
9858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009859{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9860echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861library_names_spec=
9862libname_spec='lib$name'
9863soname_spec=
9864shrext_cmds=".so"
9865postinstall_cmds=
9866postuninstall_cmds=
9867finish_cmds=
9868finish_eval=
9869shlibpath_var=
9870shlibpath_overrides_runpath=unknown
9871version_type=none
9872dynamic_linker="$host_os ld.so"
9873sys_lib_dlsearch_path_spec="/lib /usr/lib"
9874if test "$GCC" = yes; then
9875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9876 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9877 # if the path contains ";" then we assume it to be the separator
9878 # otherwise default to the standard path separator (i.e. ":") - it is
9879 # assumed that no part of a normal pathname contains ";" but that should
9880 # okay in the real world where ";" in dirpaths is itself problematic.
9881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9882 else
9883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9884 fi
9885else
9886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9887fi
9888need_lib_prefix=unknown
9889hardcode_into_libs=no
9890
9891# when you set need_version to no, make sure it does not cause -set_version
9892# flags to be left without arguments
9893need_version=unknown
9894
9895case $host_os in
9896aix3*)
9897 version_type=linux
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9899 shlibpath_var=LIBPATH
9900
9901 # AIX 3 has no versioning support, so we append a major version to the name.
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 ;;
9904
9905aix4* | aix5*)
9906 version_type=linux
9907 need_lib_prefix=no
9908 need_version=no
9909 hardcode_into_libs=yes
9910 if test "$host_cpu" = ia64; then
9911 # AIX 5 supports IA64
9912 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9913 shlibpath_var=LD_LIBRARY_PATH
9914 else
9915 # With GCC up to 2.95.x, collect2 would create an import file
9916 # for dependence libraries. The import file would start with
9917 # the line `#! .'. This would cause the generated library to
9918 # depend on `.', always an invalid library. This was fixed in
9919 # development snapshots of GCC prior to 3.0.
9920 case $host_os in
9921 aix4 | aix4.[01] | aix4.[01].*)
9922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9923 echo ' yes '
9924 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9925 :
9926 else
9927 can_build_shared=no
9928 fi
9929 ;;
9930 esac
9931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9932 # soname into executable. Probably we can add versioning support to
9933 # collect2, so additional links can be useful in future.
9934 if test "$aix_use_runtimelinking" = yes; then
9935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9936 # instead of lib<name>.a to let people know that these are not
9937 # typical AIX shared libraries.
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 else
9940 # We preserve .a as extension for shared libraries through AIX4.2
9941 # and later when we are not doing run time linking.
9942 library_names_spec='${libname}${release}.a $libname.a'
9943 soname_spec='${libname}${release}${shared_ext}$major'
9944 fi
9945 shlibpath_var=LIBPATH
9946 fi
9947 ;;
9948
9949amigaos*)
9950 library_names_spec='$libname.ixlibrary $libname.a'
9951 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9952 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'
9953 ;;
9954
9955beos*)
9956 library_names_spec='${libname}${shared_ext}'
9957 dynamic_linker="$host_os ld.so"
9958 shlibpath_var=LIBRARY_PATH
9959 ;;
9960
9961bsdi[45]*)
9962 version_type=linux
9963 need_version=no
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9969 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9970 # the default ld.so.conf also contains /usr/contrib/lib and
9971 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9972 # libtool to hard-code these into programs
9973 ;;
9974
9975cygwin* | mingw* | pw32*)
9976 version_type=windows
9977 shrext_cmds=".dll"
9978 need_version=no
9979 need_lib_prefix=no
9980
9981 case $GCC,$host_os in
9982 yes,cygwin* | yes,mingw* | yes,pw32*)
9983 library_names_spec='$libname.dll.a'
9984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9985 postinstall_cmds='base_file=`basename \${file}`~
9986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9987 dldir=$destdir/`dirname \$dlpath`~
9988 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009989 $install_prog $dir/$dlname \$dldir/$dlname~
9990 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9992 dlpath=$dir/\$dldll~
9993 $rm \$dlpath'
9994 shlibpath_overrides_runpath=yes
9995
9996 case $host_os in
9997 cygwin*)
9998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10000 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10001 ;;
10002 mingw*)
10003 # MinGW DLLs use traditional 'lib' prefix
10004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10006 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10007 # It is most probably a Windows format PATH printed by
10008 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10009 # path with ; separators, and with drive letters. We can handle the
10010 # drive letters (cygwin fileutils understands them), so leave them,
10011 # especially as we might pass files found there to a mingw objdump,
10012 # which wouldn't understand a cygwinified path. Ahh.
10013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10014 else
10015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10016 fi
10017 ;;
10018 pw32*)
10019 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000010020 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 +000010021 ;;
10022 esac
10023 ;;
10024
10025 *)
10026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10027 ;;
10028 esac
10029 dynamic_linker='Win32 ld.exe'
10030 # FIXME: first we should search . and the directory the executable is in
10031 shlibpath_var=PATH
10032 ;;
10033
10034darwin* | rhapsody*)
10035 dynamic_linker="$host_os dyld"
10036 version_type=darwin
10037 need_lib_prefix=no
10038 need_version=no
10039 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10040 soname_spec='${libname}${release}${major}$shared_ext'
10041 shlibpath_overrides_runpath=yes
10042 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000010043 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010044 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10045 if test "$GCC" = yes; then
10046 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"`
10047 else
10048 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10049 fi
10050 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10051 ;;
10052
10053dgux*)
10054 version_type=linux
10055 need_lib_prefix=no
10056 need_version=no
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 ;;
10061
10062freebsd1*)
10063 dynamic_linker=no
10064 ;;
10065
10066kfreebsd*-gnu)
10067 version_type=linux
10068 need_lib_prefix=no
10069 need_version=no
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=no
10074 hardcode_into_libs=yes
10075 dynamic_linker='GNU ld.so'
10076 ;;
10077
Reid Spencera773bd52006-08-04 18:18:08 +000010078freebsd* | dragonfly*)
10079 # DragonFly does not have aout. When/if they implement a new
10080 # versioning mechanism, adjust this.
10081 if test -x /usr/bin/objformat; then
10082 objformat=`/usr/bin/objformat`
10083 else
10084 case $host_os in
10085 freebsd[123]*) objformat=aout ;;
10086 *) objformat=elf ;;
10087 esac
10088 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089 version_type=freebsd-$objformat
10090 case $version_type in
10091 freebsd-elf*)
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10093 need_version=no
10094 need_lib_prefix=no
10095 ;;
10096 freebsd-*)
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10098 need_version=yes
10099 ;;
10100 esac
10101 shlibpath_var=LD_LIBRARY_PATH
10102 case $host_os in
10103 freebsd2*)
10104 shlibpath_overrides_runpath=yes
10105 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010106 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107 shlibpath_overrides_runpath=yes
10108 hardcode_into_libs=yes
10109 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010112 shlibpath_overrides_runpath=no
10113 hardcode_into_libs=yes
10114 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010115 freebsd*) # from 4.6 on
10116 shlibpath_overrides_runpath=yes
10117 hardcode_into_libs=yes
10118 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119 esac
10120 ;;
10121
10122gnu*)
10123 version_type=linux
10124 need_lib_prefix=no
10125 need_version=no
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 hardcode_into_libs=yes
10130 ;;
10131
10132hpux9* | hpux10* | hpux11*)
10133 # Give a soname corresponding to the major version so that dld.sl refuses to
10134 # link against other versions.
10135 version_type=sunos
10136 need_lib_prefix=no
10137 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010138 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139 ia64*)
10140 shrext_cmds='.so'
10141 hardcode_into_libs=yes
10142 dynamic_linker="$host_os dld.so"
10143 shlibpath_var=LD_LIBRARY_PATH
10144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 if test "X$HPUX_IA64_MODE" = X32; then
10148 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10149 else
10150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10151 fi
10152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10153 ;;
10154 hppa*64*)
10155 shrext_cmds='.sl'
10156 hardcode_into_libs=yes
10157 dynamic_linker="$host_os dld.sl"
10158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164 ;;
10165 *)
10166 shrext_cmds='.sl'
10167 dynamic_linker="$host_os dld.sl"
10168 shlibpath_var=SHLIB_PATH
10169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 ;;
10173 esac
10174 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10175 postinstall_cmds='chmod 555 $lib'
10176 ;;
10177
Reid Spencera773bd52006-08-04 18:18:08 +000010178interix3*)
10179 version_type=linux
10180 need_lib_prefix=no
10181 need_version=no
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 shlibpath_overrides_runpath=no
10187 hardcode_into_libs=yes
10188 ;;
10189
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190irix5* | irix6* | nonstopux*)
10191 case $host_os in
10192 nonstopux*) version_type=nonstopux ;;
10193 *)
10194 if test "$lt_cv_prog_gnu_ld" = yes; then
10195 version_type=linux
10196 else
10197 version_type=irix
10198 fi ;;
10199 esac
10200 need_lib_prefix=no
10201 need_version=no
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10204 case $host_os in
10205 irix5* | nonstopux*)
10206 libsuff= shlibsuff=
10207 ;;
10208 *)
10209 case $LD in # libtool.m4 will add one of these switches to LD
10210 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10211 libsuff= shlibsuff= libmagic=32-bit;;
10212 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10213 libsuff=32 shlibsuff=N32 libmagic=N32;;
10214 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10215 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10216 *) libsuff= shlibsuff= libmagic=never-match;;
10217 esac
10218 ;;
10219 esac
10220 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10221 shlibpath_overrides_runpath=no
10222 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10223 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10224 hardcode_into_libs=yes
10225 ;;
10226
10227# No shared lib support for Linux oldld, aout, or coff.
10228linux*oldld* | linux*aout* | linux*coff*)
10229 dynamic_linker=no
10230 ;;
10231
10232# This must be Linux ELF.
10233linux*)
10234 version_type=linux
10235 need_lib_prefix=no
10236 need_version=no
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=no
10242 # This implies no fast_install, which is unacceptable.
10243 # Some rework will be needed to allow for fast_install
10244 # before this can be enabled.
10245 hardcode_into_libs=yes
10246
10247 # Append ld.so.conf contents to the search path
10248 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010249 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 +000010250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10251 fi
10252
10253 # We used to test for /lib/ld.so.1 and disable shared libraries on
10254 # powerpc, because MkLinux only supported shared libraries with the
10255 # GNU dynamic linker. Since this was broken with cross compilers,
10256 # most powerpc-linux boxes support dynamic linking these days and
10257 # people can always --disable-shared, the test was removed, and we
10258 # assume the GNU/Linux dynamic linker is in use.
10259 dynamic_linker='GNU/Linux ld.so'
10260 ;;
10261
10262knetbsd*-gnu)
10263 version_type=linux
10264 need_lib_prefix=no
10265 need_version=no
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=no
10270 hardcode_into_libs=yes
10271 dynamic_linker='GNU ld.so'
10272 ;;
10273
10274netbsd*)
10275 version_type=sunos
10276 need_lib_prefix=no
10277 need_version=no
10278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10281 dynamic_linker='NetBSD (a.out) ld.so'
10282 else
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 dynamic_linker='NetBSD ld.elf_so'
10286 fi
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 hardcode_into_libs=yes
10290 ;;
10291
10292newsos6)
10293 version_type=linux
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=yes
10297 ;;
10298
10299nto-qnx*)
10300 version_type=linux
10301 need_lib_prefix=no
10302 need_version=no
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 ;;
10308
10309openbsd*)
10310 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010311 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010312 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10314 case $host_os in
10315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316 *) need_version=no ;;
10317 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10322 case $host_os in
10323 openbsd2.[89] | openbsd2.[89].*)
10324 shlibpath_overrides_runpath=no
10325 ;;
10326 *)
10327 shlibpath_overrides_runpath=yes
10328 ;;
10329 esac
10330 else
10331 shlibpath_overrides_runpath=yes
10332 fi
10333 ;;
10334
10335os2*)
10336 libname_spec='$name'
10337 shrext_cmds=".dll"
10338 need_lib_prefix=no
10339 library_names_spec='$libname${shared_ext} $libname.a'
10340 dynamic_linker='OS/2 ld.exe'
10341 shlibpath_var=LIBPATH
10342 ;;
10343
10344osf3* | osf4* | osf5*)
10345 version_type=osf
10346 need_lib_prefix=no
10347 need_version=no
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10353 ;;
10354
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010355solaris*)
10356 version_type=linux
10357 need_lib_prefix=no
10358 need_version=no
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
10364 # ldd complains unless libraries are executable
10365 postinstall_cmds='chmod +x $lib'
10366 ;;
10367
10368sunos4*)
10369 version_type=sunos
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 if test "$with_gnu_ld" = yes; then
10375 need_lib_prefix=no
10376 fi
10377 need_version=yes
10378 ;;
10379
Reid Spencera773bd52006-08-04 18:18:08 +000010380sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010381 version_type=linux
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 case $host_vendor in
10386 sni)
10387 shlibpath_overrides_runpath=no
10388 need_lib_prefix=no
10389 export_dynamic_flag_spec='${wl}-Blargedynsym'
10390 runpath_var=LD_RUN_PATH
10391 ;;
10392 siemens)
10393 need_lib_prefix=no
10394 ;;
10395 motorola)
10396 need_lib_prefix=no
10397 need_version=no
10398 shlibpath_overrides_runpath=no
10399 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10400 ;;
10401 esac
10402 ;;
10403
10404sysv4*MP*)
10405 if test -d /usr/nec ;then
10406 version_type=linux
10407 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10408 soname_spec='$libname${shared_ext}.$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 fi
10411 ;;
10412
Reid Spencera773bd52006-08-04 18:18:08 +000010413sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10414 version_type=freebsd-elf
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 hardcode_into_libs=yes
10421 if test "$with_gnu_ld" = yes; then
10422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10423 shlibpath_overrides_runpath=no
10424 else
10425 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10426 shlibpath_overrides_runpath=yes
10427 case $host_os in
10428 sco3.2v5*)
10429 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10430 ;;
10431 esac
10432 fi
10433 sys_lib_dlsearch_path_spec='/usr/lib'
10434 ;;
10435
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010436uts4*)
10437 version_type=linux
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 ;;
10442
10443*)
10444 dynamic_linker=no
10445 ;;
10446esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010447{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10448echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449test "$dynamic_linker" = no && can_build_shared=no
10450
Reid Spencera773bd52006-08-04 18:18:08 +000010451variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10452if test "$GCC" = yes; then
10453 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10454fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010455
Reid Spencera773bd52006-08-04 18:18:08 +000010456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010457{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10458echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10459if test "${libltdl_cv_shlibext+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010461else
10462
10463module=yes
10464eval libltdl_cv_shlibext=$shrext_cmds
10465
10466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010467{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10468echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469if test -n "$libltdl_cv_shlibext"; then
10470
10471cat >>confdefs.h <<_ACEOF
10472#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10473_ACEOF
10474
10475fi
10476
10477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010478{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10479echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10480if test "${libltdl_cv_shlibpath_var+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482else
10483 libltdl_cv_shlibpath_var="$shlibpath_var"
10484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010485{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10486echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487if test -n "$libltdl_cv_shlibpath_var"; then
10488
10489cat >>confdefs.h <<_ACEOF
10490#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10491_ACEOF
10492
10493fi
10494
10495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010496{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10497echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10498if test "${libltdl_cv_sys_search_path+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500else
10501 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010503{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10504echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505if test -n "$libltdl_cv_sys_search_path"; then
10506 sys_search_path=
10507 for dir in $libltdl_cv_sys_search_path; do
10508 if test -z "$sys_search_path"; then
10509 sys_search_path="$dir"
10510 else
10511 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10512 fi
10513 done
10514
10515cat >>confdefs.h <<_ACEOF
10516#define LTDL_SYSSEARCHPATH "$sys_search_path"
10517_ACEOF
10518
10519fi
10520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010521{ echo "$as_me:$LINENO: checking for objdir" >&5
10522echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10523if test "${libltdl_cv_objdir+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525else
10526 libltdl_cv_objdir="$objdir"
10527 if test -n "$objdir"; then
10528 :
10529 else
10530 rm -f .libs 2>/dev/null
10531 mkdir .libs 2>/dev/null
10532 if test -d .libs; then
10533 libltdl_cv_objdir=.libs
10534 else
10535 # MS-DOS does not allow filenames that begin with a dot.
10536 libltdl_cv_objdir=_libs
10537 fi
10538 rmdir .libs 2>/dev/null
10539 fi
10540
10541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010542{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10543echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010544
10545cat >>confdefs.h <<_ACEOF
10546#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10547_ACEOF
10548
10549
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550
10551
10552
10553
10554# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010555{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10556echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10557if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559else
10560
10561# These are sane defaults that work on at least a few old systems.
10562# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10563
10564# Character class describing NM global symbol codes.
10565symcode='[BCDEGRST]'
10566
10567# Regexp to match symbols that can be accessed directly from C.
10568sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10569
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010570# Transform an extracted symbol line into a proper C declaration
10571lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10572
10573# Transform an extracted symbol line into symbol name and symbol address
10574lt_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'"
10575
10576# Define system-specific variables.
10577case $host_os in
10578aix*)
10579 symcode='[BCDT]'
10580 ;;
10581cygwin* | mingw* | pw32*)
10582 symcode='[ABCDGISTW]'
10583 ;;
10584hpux*) # Its linker distinguishes data from code symbols
10585 if test "$host_cpu" = ia64; then
10586 symcode='[ABCDEGRST]'
10587 fi
10588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10589 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'"
10590 ;;
10591linux*)
10592 if test "$host_cpu" = ia64; then
10593 symcode='[ABCDGIRSTW]'
10594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10595 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'"
10596 fi
10597 ;;
10598irix* | nonstopux*)
10599 symcode='[BCDEGRST]'
10600 ;;
10601osf*)
10602 symcode='[BCDEGQRST]'
10603 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010604solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010605 symcode='[BDRT]'
10606 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010607sco3.2v5*)
10608 symcode='[DT]'
10609 ;;
10610sysv4.2uw2*)
10611 symcode='[DT]'
10612 ;;
10613sysv5* | sco5v6* | unixware* | OpenUNIX*)
10614 symcode='[ABDT]'
10615 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010616sysv4)
10617 symcode='[DFNSTU]'
10618 ;;
10619esac
10620
10621# Handle CRLF in mingw tool chain
10622opt_cr=
10623case $build_os in
10624mingw*)
10625 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10626 ;;
10627esac
10628
10629# If we're using GNU nm, then use its standard symbol codes.
10630case `$NM -V 2>&1` in
10631*GNU* | *'with BFD'*)
10632 symcode='[ABCDGIRSTW]' ;;
10633esac
10634
10635# Try without a prefix undercore, then with it.
10636for ac_symprfx in "" "_"; do
10637
Reid Spencera773bd52006-08-04 18:18:08 +000010638 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10639 symxfrm="\\1 $ac_symprfx\\2 \\2"
10640
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010642 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 +000010643
10644 # Check to see that the pipe works correctly.
10645 pipe_works=no
10646
10647 rm -f conftest*
10648 cat > conftest.$ac_ext <<EOF
10649#ifdef __cplusplus
10650extern "C" {
10651#endif
10652char nm_test_var;
10653void nm_test_func(){}
10654#ifdef __cplusplus
10655}
10656#endif
10657int main(){nm_test_var='a';nm_test_func();return(0);}
10658EOF
10659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010661 (eval $ac_compile) 2>&5
10662 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665 # Now try to grab the symbols.
10666 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010667 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 +000010668 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10669 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010672 # Try sorting and uniquifying the output.
10673 if sort "$nlist" | uniq > "$nlist"T; then
10674 mv -f "$nlist"T "$nlist"
10675 else
10676 rm -f "$nlist"T
10677 fi
10678
10679 # Make sure that we snagged all the symbols we need.
10680 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10681 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10682 cat <<EOF > conftest.$ac_ext
10683#ifdef __cplusplus
10684extern "C" {
10685#endif
10686
10687EOF
10688 # Now generate the symbol file.
10689 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10690
10691 cat <<EOF >> conftest.$ac_ext
10692#if defined (__STDC__) && __STDC__
10693# define lt_ptr_t void *
10694#else
10695# define lt_ptr_t char *
10696# define const
10697#endif
10698
10699/* The mapping between symbol names and symbols. */
10700const struct {
10701 const char *name;
10702 lt_ptr_t address;
10703}
10704lt_preloaded_symbols[] =
10705{
10706EOF
10707 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10708 cat <<\EOF >> conftest.$ac_ext
10709 {0, (lt_ptr_t) 0}
10710};
10711
10712#ifdef __cplusplus
10713}
10714#endif
10715EOF
10716 # Now try linking the two files.
10717 mv conftest.$ac_objext conftstm.$ac_objext
10718 lt_save_LIBS="$LIBS"
10719 lt_save_CFLAGS="$CFLAGS"
10720 LIBS="conftstm.$ac_objext"
10721 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010723 (eval $ac_link) 2>&5
10724 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010727 pipe_works=yes
10728 fi
10729 LIBS="$lt_save_LIBS"
10730 CFLAGS="$lt_save_CFLAGS"
10731 else
10732 echo "cannot find nm_test_func in $nlist" >&5
10733 fi
10734 else
10735 echo "cannot find nm_test_var in $nlist" >&5
10736 fi
10737 else
10738 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10739 fi
10740 else
10741 echo "$progname: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10743 fi
10744 rm -f conftest* conftst*
10745
10746 # Do not use the global_symbol_pipe unless it works.
10747 if test "$pipe_works" = yes; then
10748 break
10749 else
10750 lt_cv_sys_global_symbol_pipe=
10751 fi
10752done
10753
10754fi
10755
10756if test -z "$lt_cv_sys_global_symbol_pipe"; then
10757 lt_cv_sys_global_symbol_to_cdecl=
10758fi
10759if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010760 { echo "$as_me:$LINENO: result: failed" >&5
10761echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010763 { echo "$as_me:$LINENO: result: ok" >&5
10764echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765fi
10766
10767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010768{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10769echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10770if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772else
10773 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10774 libltdl_cv_preloaded_symbols=yes
10775 else
10776 libltdl_cv_preloaded_symbols=no
10777 fi
10778
10779fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010780{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10781echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010782if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010784cat >>confdefs.h <<\_ACEOF
10785#define HAVE_PRELOADED_SYMBOLS 1
10786_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787
10788fi
10789
10790LIBADD_DL=
10791
10792ac_ext=c
10793ac_cpp='$CPP $CPPFLAGS'
10794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796ac_compiler_gnu=$ac_cv_c_compiler_gnu
10797
10798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010799{ echo "$as_me:$LINENO: checking for shl_load" >&5
10800echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10801if test "${ac_cv_func_shl_load+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803else
10804 cat >conftest.$ac_ext <<_ACEOF
10805/* confdefs.h. */
10806_ACEOF
10807cat confdefs.h >>conftest.$ac_ext
10808cat >>conftest.$ac_ext <<_ACEOF
10809/* end confdefs.h. */
10810/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10812#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010814/* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char shl_load (); below.
10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 <limits.h> exists even on freestanding compilers. */
10818
10819#ifdef __STDC__
10820# include <limits.h>
10821#else
10822# include <assert.h>
10823#endif
10824
10825#undef shl_load
10826
10827/* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10830#ifdef __cplusplus
10831extern "C"
10832#endif
10833char shl_load ();
10834/* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837#if defined __stub_shl_load || defined __stub___shl_load
10838choke me
10839#endif
10840
10841int
10842main ()
10843{
10844return shl_load ();
10845 ;
10846 return 0;
10847}
10848_ACEOF
10849rm -f conftest.$ac_objext conftest$ac_exeext
10850if { (ac_try="$ac_link"
10851case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854esac
10855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_link") 2>conftest.er1
10857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867esac
10868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest$ac_exeext'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877esac
10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_func_shl_load=yes
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_cv_func_shl_load=no
10889fi
10890
10891rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10893fi
10894{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10895echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10896if test $ac_cv_func_shl_load = yes; then
10897
10898cat >>confdefs.h <<\_ACEOF
10899#define HAVE_SHL_LOAD 1
10900_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901
10902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010903 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10904echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10905if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010907else
10908 ac_check_lib_save_LIBS=$LIBS
10909LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010910cat >conftest.$ac_ext <<_ACEOF
10911/* confdefs.h. */
10912_ACEOF
10913cat confdefs.h >>conftest.$ac_ext
10914cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010915/* end confdefs.h. */
10916
Reid Spencera773bd52006-08-04 18:18:08 +000010917/* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010920#ifdef __cplusplus
10921extern "C"
10922#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923char shl_load ();
10924int
10925main ()
10926{
Reid Spencera773bd52006-08-04 18:18:08 +000010927return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928 ;
10929 return 0;
10930}
10931_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010932rm -f conftest.$ac_objext conftest$ac_exeext
10933if { (ac_try="$ac_link"
10934case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10937esac
10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_link") 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947 { (case "(($ac_try" in
10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949 *) ac_try_echo=$ac_try;;
10950esac
10951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952 (eval "$ac_try") 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest$ac_exeext'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10960esac
10961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_try") 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966 ac_cv_lib_dld_shl_load=yes
10967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010968 echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010973
Bill Wendlingebcceee2009-04-18 11:20:33 +000010974rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010975 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976LIBS=$ac_check_lib_save_LIBS
10977fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010978{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10979echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10980if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010982cat >>confdefs.h <<\_ACEOF
10983#define HAVE_SHL_LOAD 1
10984_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985
10986 LIBADD_DL="$LIBADD_DL -ldld"
10987else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010988 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10989echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10990if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010992else
10993 ac_check_lib_save_LIBS=$LIBS
10994LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010995cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h. */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011000/* end confdefs.h. */
11001
Reid Spencera773bd52006-08-04 18:18:08 +000011002/* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011005#ifdef __cplusplus
11006extern "C"
11007#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008char dlopen ();
11009int
11010main ()
11011{
Reid Spencera773bd52006-08-04 18:18:08 +000011012return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011013 ;
11014 return 0;
11015}
11016_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011017rm -f conftest.$ac_objext conftest$ac_exeext
11018if { (ac_try="$ac_link"
11019case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11022esac
11023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_link") 2>conftest.er1
11025 ac_status=$?
11026 grep -v '^ *+' conftest.er1 >conftest.err
11027 rm -f conftest.er1
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11032 { (case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035esac
11036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_try") 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; } &&
11041 { ac_try='test -s conftest$ac_exeext'
11042 { (case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11045esac
11046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 (eval "$ac_try") 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011051 ac_cv_lib_dl_dlopen=yes
11052else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011053 echo "$as_me: failed program was:" >&5
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011058
Bill Wendlingebcceee2009-04-18 11:20:33 +000011059rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011060 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061LIBS=$ac_check_lib_save_LIBS
11062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011063{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11064echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11065if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011067cat >>confdefs.h <<\_ACEOF
11068#define HAVE_LIBDL 1
11069_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011070
11071 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11072else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011073 cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078/* end confdefs.h. */
11079#if HAVE_DLFCN_H
11080# include <dlfcn.h>
11081#endif
11082
11083int
11084main ()
11085{
11086dlopen(0, 0);
11087 ;
11088 return 0;
11089}
11090_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011091rm -f conftest.$ac_objext conftest$ac_exeext
11092if { (ac_try="$ac_link"
11093case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096esac
11097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11106 { (case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_try") 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest$ac_exeext'
11116 { (case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119esac
11120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_try") 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011126cat >>confdefs.h <<\_ACEOF
11127#define HAVE_LIBDL 1
11128_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129 libltdl_cv_func_dlopen="yes"
11130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
11134 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11135echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11136if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138else
11139 ac_check_lib_save_LIBS=$LIBS
11140LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011141cat >conftest.$ac_ext <<_ACEOF
11142/* confdefs.h. */
11143_ACEOF
11144cat confdefs.h >>conftest.$ac_ext
11145cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011146/* end confdefs.h. */
11147
Reid Spencera773bd52006-08-04 18:18:08 +000011148/* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011151#ifdef __cplusplus
11152extern "C"
11153#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154char dlopen ();
11155int
11156main ()
11157{
Reid Spencera773bd52006-08-04 18:18:08 +000011158return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011159 ;
11160 return 0;
11161}
11162_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011163rm -f conftest.$ac_objext conftest$ac_exeext
11164if { (ac_try="$ac_link"
11165case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168esac
11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_link") 2>conftest.er1
11171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178 { (case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181esac
11182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_try") 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest$ac_exeext'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11191esac
11192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197 ac_cv_lib_svld_dlopen=yes
11198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011199 echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011204
Bill Wendlingebcceee2009-04-18 11:20:33 +000011205rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011206 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207LIBS=$ac_check_lib_save_LIBS
11208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011209{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11210echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11211if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011213cat >>confdefs.h <<\_ACEOF
11214#define HAVE_LIBDL 1
11215_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011216
11217 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11218else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011219 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11220echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11221if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011223else
11224 ac_check_lib_save_LIBS=$LIBS
11225LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011226cat >conftest.$ac_ext <<_ACEOF
11227/* confdefs.h. */
11228_ACEOF
11229cat confdefs.h >>conftest.$ac_ext
11230cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011231/* end confdefs.h. */
11232
Reid Spencera773bd52006-08-04 18:18:08 +000011233/* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236#ifdef __cplusplus
11237extern "C"
11238#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239char dld_link ();
11240int
11241main ()
11242{
Reid Spencera773bd52006-08-04 18:18:08 +000011243return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011244 ;
11245 return 0;
11246}
11247_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011248rm -f conftest.$ac_objext conftest$ac_exeext
11249if { (ac_try="$ac_link"
11250case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11253esac
11254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_link") 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11263 { (case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266esac
11267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_try") 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; } &&
11272 { ac_try='test -s conftest$ac_exeext'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276esac
11277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282 ac_cv_lib_dld_dld_link=yes
11283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011284 echo "$as_me: failed program was:" >&5
11285sed 's/^/| /' conftest.$ac_ext >&5
11286
11287 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011289
Bill Wendlingebcceee2009-04-18 11:20:33 +000011290rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011291 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292LIBS=$ac_check_lib_save_LIBS
11293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011294{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11295echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11296if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011298cat >>confdefs.h <<\_ACEOF
11299#define HAVE_DLD 1
11300_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011301
11302 LIBADD_DL="$LIBADD_DL -ldld"
11303else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011304 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11305echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11306if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308else
11309 cat >conftest.$ac_ext <<_ACEOF
11310/* confdefs.h. */
11311_ACEOF
11312cat confdefs.h >>conftest.$ac_ext
11313cat >>conftest.$ac_ext <<_ACEOF
11314/* end confdefs.h. */
11315/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11317#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011319/* System header to define __stub macros and hopefully few prototypes,
11320 which can conflict with char _dyld_func_lookup (); below.
11321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11322 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011324#ifdef __STDC__
11325# include <limits.h>
11326#else
11327# include <assert.h>
11328#endif
11329
11330#undef _dyld_func_lookup
11331
11332/* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11335#ifdef __cplusplus
11336extern "C"
11337#endif
11338char _dyld_func_lookup ();
11339/* The GNU C library defines this for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
11342#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11343choke me
11344#endif
11345
11346int
11347main ()
11348{
11349return _dyld_func_lookup ();
11350 ;
11351 return 0;
11352}
11353_ACEOF
11354rm -f conftest.$ac_objext conftest$ac_exeext
11355if { (ac_try="$ac_link"
11356case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359esac
11360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_link") 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11369 { (case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11372esac
11373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_try") 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; } &&
11378 { ac_try='test -s conftest$ac_exeext'
11379 { (case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11382esac
11383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384 (eval "$ac_try") 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_cv_func__dyld_func_lookup=yes
11389else
11390 echo "$as_me: failed program was:" >&5
11391sed 's/^/| /' conftest.$ac_ext >&5
11392
11393 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011394fi
Reid Spencera773bd52006-08-04 18:18:08 +000011395
Bill Wendlingebcceee2009-04-18 11:20:33 +000011396rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011397 conftest$ac_exeext conftest.$ac_ext
11398fi
11399{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11400echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11401if test $ac_cv_func__dyld_func_lookup = yes; then
11402
11403cat >>confdefs.h <<\_ACEOF
11404#define HAVE_DYLD 1
11405_ACEOF
11406
11407fi
11408
11409
11410fi
11411
11412
11413fi
11414
11415
11416fi
11417
11418rm -f core conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420
11421fi
11422
11423
11424fi
11425
11426
11427fi
11428
11429
11430if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11431then
11432 lt_save_LIBS="$LIBS"
11433 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011434
11435for ac_func in dlerror
11436do
11437as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11438{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11440if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442else
11443 cat >conftest.$ac_ext <<_ACEOF
11444/* confdefs.h. */
11445_ACEOF
11446cat confdefs.h >>conftest.$ac_ext
11447cat >>conftest.$ac_ext <<_ACEOF
11448/* end confdefs.h. */
11449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11451#define $ac_func innocuous_$ac_func
11452
11453/* System header to define __stub macros and hopefully few prototypes,
11454 which can conflict with char $ac_func (); below.
11455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11456 <limits.h> exists even on freestanding compilers. */
11457
11458#ifdef __STDC__
11459# include <limits.h>
11460#else
11461# include <assert.h>
11462#endif
11463
11464#undef $ac_func
11465
11466/* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11469#ifdef __cplusplus
11470extern "C"
11471#endif
11472char $ac_func ();
11473/* The GNU C library defines this for functions which it implements
11474 to always fail with ENOSYS. Some functions are actually named
11475 something starting with __ and the normal name is an alias. */
11476#if defined __stub_$ac_func || defined __stub___$ac_func
11477choke me
11478#endif
11479
11480int
11481main ()
11482{
11483return $ac_func ();
11484 ;
11485 return 0;
11486}
11487_ACEOF
11488rm -f conftest.$ac_objext conftest$ac_exeext
11489if { (ac_try="$ac_link"
11490case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493esac
11494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_link") 2>conftest.er1
11496 ac_status=$?
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -f conftest.er1
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
11502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11503 { (case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11506esac
11507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_try") 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; } &&
11512 { ac_try='test -s conftest$ac_exeext'
11513 { (case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516esac
11517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_try") 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 eval "$as_ac_var=yes"
11523else
11524 echo "$as_me: failed program was:" >&5
11525sed 's/^/| /' conftest.$ac_ext >&5
11526
11527 eval "$as_ac_var=no"
11528fi
11529
11530rm -f core conftest.err conftest.$ac_objext \
11531 conftest$ac_exeext conftest.$ac_ext
11532fi
11533ac_res=`eval echo '${'$as_ac_var'}'`
11534 { echo "$as_me:$LINENO: result: $ac_res" >&5
11535echo "${ECHO_T}$ac_res" >&6; }
11536if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539_ACEOF
11540
11541fi
11542done
11543
11544 LIBS="$lt_save_LIBS"
11545fi
11546ac_ext=c
11547ac_cpp='$CPP $CPPFLAGS'
11548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11550ac_compiler_gnu=$ac_cv_c_compiler_gnu
11551
11552
11553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011554{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11555echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11556if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558else
11559 ac_cv_sys_symbol_underscore=no
11560 cat > conftest.$ac_ext <<EOF
11561void nm_test_func(){}
11562int main(){nm_test_func;return 0;}
11563EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011565 (eval $ac_compile) 2>&5
11566 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569 # Now try to grab the symbols.
11570 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011571 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 +000011572 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11573 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576 # See whether the symbols have a leading underscore.
11577 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11578 ac_cv_sys_symbol_underscore=yes
11579 else
11580 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11581 :
11582 else
11583 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11584 fi
11585 fi
11586 else
11587 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11588 fi
11589 else
11590 echo "configure: failed program was:" >&5
11591 cat conftest.c >&5
11592 fi
11593 rm -rf conftest*
11594
11595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011596{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11597echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011598
11599
11600if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11601 if test x"$libltdl_cv_func_dlopen" = xyes ||
11602 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011603 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11604echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11605if test "${libltdl_cv_need_uscore+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011607else
11608 libltdl_cv_need_uscore=unknown
11609 save_LIBS="$LIBS"
11610 LIBS="$LIBS $LIBADD_DL"
11611 if test "$cross_compiling" = yes; then :
11612 libltdl_cv_need_uscore=cross
11613else
11614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11615 lt_status=$lt_dlunknown
11616 cat > conftest.$ac_ext <<EOF
Ivan Krasin9976bac2011-08-23 06:43:49 +000011617#line 11617 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618#include "confdefs.h"
11619
11620#if HAVE_DLFCN_H
11621#include <dlfcn.h>
11622#endif
11623
11624#include <stdio.h>
11625
11626#ifdef RTLD_GLOBAL
11627# define LT_DLGLOBAL RTLD_GLOBAL
11628#else
11629# ifdef DL_GLOBAL
11630# define LT_DLGLOBAL DL_GLOBAL
11631# else
11632# define LT_DLGLOBAL 0
11633# endif
11634#endif
11635
11636/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11637 find out it does not work in some platform. */
11638#ifndef LT_DLLAZY_OR_NOW
11639# ifdef RTLD_LAZY
11640# define LT_DLLAZY_OR_NOW RTLD_LAZY
11641# else
11642# ifdef DL_LAZY
11643# define LT_DLLAZY_OR_NOW DL_LAZY
11644# else
11645# ifdef RTLD_NOW
11646# define LT_DLLAZY_OR_NOW RTLD_NOW
11647# else
11648# ifdef DL_NOW
11649# define LT_DLLAZY_OR_NOW DL_NOW
11650# else
11651# define LT_DLLAZY_OR_NOW 0
11652# endif
11653# endif
11654# endif
11655# endif
11656#endif
11657
11658#ifdef __cplusplus
11659extern "C" void exit (int);
11660#endif
11661
11662void fnord() { int i=42;}
11663int main ()
11664{
11665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11666 int status = $lt_dlunknown;
11667
11668 if (self)
11669 {
11670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11671 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11672 /* dlclose (self); */
11673 }
Reid Spencera773bd52006-08-04 18:18:08 +000011674 else
11675 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011676
11677 exit (status);
11678}
11679EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011681 (eval $ac_link) 2>&5
11682 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011685 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686 lt_status=$?
11687 case x$lt_status in
11688 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11689 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011690 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011691 esac
11692 else :
11693 # compilation failed
11694
11695 fi
11696fi
11697rm -fr conftest*
11698
11699 LIBS="$save_LIBS"
11700
11701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011702{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11703echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704 fi
11705fi
11706
11707if test x"$libltdl_cv_need_uscore" = xyes; then
11708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011709cat >>confdefs.h <<\_ACEOF
11710#define NEED_USCORE 1
11711_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712
11713fi
11714
11715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011716{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11717echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11718if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720else
11721 # PORTME does your system automatically load deplibs for dlopen?
11722 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11723 # For now, we just catch OSes we know something about -- in the
11724 # future, we'll try test this programmatically.
11725 libltdl_cv_sys_dlopen_deplibs=unknown
11726 case "$host_os" in
11727 aix3*|aix4.1.*|aix4.2.*)
11728 # Unknown whether this is true for these versions of AIX, but
11729 # we want this `case' here to explicitly catch those versions.
11730 libltdl_cv_sys_dlopen_deplibs=unknown
11731 ;;
11732 aix[45]*)
11733 libltdl_cv_sys_dlopen_deplibs=yes
11734 ;;
11735 darwin*)
11736 # Assuming the user has installed a libdl from somewhere, this is true
11737 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11738 libltdl_cv_sys_dlopen_deplibs=yes
11739 ;;
11740 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11741 # GNU and its variants, using gnu ld.so (Glibc)
11742 libltdl_cv_sys_dlopen_deplibs=yes
11743 ;;
11744 hpux10*|hpux11*)
11745 libltdl_cv_sys_dlopen_deplibs=yes
11746 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011747 interix*)
11748 libltdl_cv_sys_dlopen_deplibs=yes
11749 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011750 irix[12345]*|irix6.[01]*)
11751 # Catch all versions of IRIX before 6.2, and indicate that we don't
11752 # know how it worked for any of those versions.
11753 libltdl_cv_sys_dlopen_deplibs=unknown
11754 ;;
11755 irix*)
11756 # The case above catches anything before 6.2, and it's known that
11757 # at 6.2 and later dlopen does load deplibs.
11758 libltdl_cv_sys_dlopen_deplibs=yes
11759 ;;
11760 netbsd*)
11761 libltdl_cv_sys_dlopen_deplibs=yes
11762 ;;
11763 openbsd*)
11764 libltdl_cv_sys_dlopen_deplibs=yes
11765 ;;
11766 osf[1234]*)
11767 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11768 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000011769 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770 libltdl_cv_sys_dlopen_deplibs=no
11771 ;;
11772 osf5.0|osf5.0a|osf5.1)
11773 # dlopen *does* load deplibs and with the right loader patch applied
11774 # it even uses RPATH in a shared library to search for shared objects
11775 # that the library depends on, but there's no easy way to know if that
11776 # patch is installed. Since this is the case, all we can really
11777 # say is unknown -- it depends on the patch being installed. If
11778 # it is, this changes to `yes'. Without it, it would be `no'.
11779 libltdl_cv_sys_dlopen_deplibs=unknown
11780 ;;
11781 osf*)
11782 # the two cases above should catch all versions of osf <= 5.1. Read
11783 # the comments above for what we know about them.
11784 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11785 # is used to find them so we can finally say `yes'.
11786 libltdl_cv_sys_dlopen_deplibs=yes
11787 ;;
11788 solaris*)
11789 libltdl_cv_sys_dlopen_deplibs=yes
11790 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11792 libltdl_cv_sys_dlopen_deplibs=yes
11793 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011794 esac
11795
11796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011797{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11798echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011799if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011801cat >>confdefs.h <<\_ACEOF
11802#define LTDL_DLOPEN_DEPLIBS 1
11803_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011804
11805fi
11806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011807
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011808for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011809do
11810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816fi
11817ac_res=`eval echo '${'$as_ac_Header'}'`
11818 { echo "$as_me:$LINENO: result: $ac_res" >&5
11819echo "${ECHO_T}$ac_res" >&6; }
11820else
11821 # Is the header compilable?
11822{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11824cat >conftest.$ac_ext <<_ACEOF
11825/* confdefs.h. */
11826_ACEOF
11827cat confdefs.h >>conftest.$ac_ext
11828cat >>conftest.$ac_ext <<_ACEOF
11829/* end confdefs.h. */
11830$ac_includes_default
11831#include <$ac_header>
11832_ACEOF
11833rm -f conftest.$ac_objext
11834if { (ac_try="$ac_compile"
11835case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838esac
11839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_compile") 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest.$ac_objext'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861esac
11862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 ac_header_compiler=yes
11868else
11869 echo "$as_me: failed program was:" >&5
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
11872 ac_header_compiler=no
11873fi
11874
11875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11877echo "${ECHO_T}$ac_header_compiler" >&6; }
11878
11879# Is the header present?
11880{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11882cat >conftest.$ac_ext <<_ACEOF
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
11888#include <$ac_header>
11889_ACEOF
11890if { (ac_try="$ac_cpp conftest.$ac_ext"
11891case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11894esac
11895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11897 ac_status=$?
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } >/dev/null; then
11903 if test -s conftest.err; then
11904 ac_cpp_err=$ac_c_preproc_warn_flag
11905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11906 else
11907 ac_cpp_err=
11908 fi
11909else
11910 ac_cpp_err=yes
11911fi
11912if test -z "$ac_cpp_err"; then
11913 ac_header_preproc=yes
11914else
11915 echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 ac_header_preproc=no
11919fi
11920
11921rm -f conftest.err conftest.$ac_ext
11922{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923echo "${ECHO_T}$ac_header_preproc" >&6; }
11924
11925# So? What about this header?
11926case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927 yes:no: )
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11929echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11931echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc=yes
11933 ;;
11934 no:yes:* )
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11938echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11940echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11942echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11944echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11946echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11947 ( cat <<\_ASBOX
11948## ----------------------------------- ##
11949## Report this to llvmbugs@cs.uiuc.edu ##
11950## ----------------------------------- ##
11951_ASBOX
11952 ) | sed "s/^/$as_me: WARNING: /" >&2
11953 ;;
11954esac
11955{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959else
11960 eval "$as_ac_Header=\$ac_header_preproc"
11961fi
11962ac_res=`eval echo '${'$as_ac_Header'}'`
11963 { echo "$as_me:$LINENO: result: $ac_res" >&5
11964echo "${ECHO_T}$ac_res" >&6; }
11965
11966fi
11967if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970_ACEOF
11971
11972fi
11973
11974done
11975
11976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011977{ echo "$as_me:$LINENO: checking for error_t" >&5
11978echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11979if test "${ac_cv_type_error_t+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981else
11982 cat >conftest.$ac_ext <<_ACEOF
11983/* confdefs.h. */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h. */
11988#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989# include <argz.h>
11990#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011991
11992typedef error_t ac__type_new_;
11993int
11994main ()
11995{
11996if ((ac__type_new_ *) 0)
11997 return 0;
11998if (sizeof (ac__type_new_))
11999 return 0;
12000 ;
12001 return 0;
12002}
12003_ACEOF
12004rm -f conftest.$ac_objext
12005if { (ac_try="$ac_compile"
12006case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12009esac
12010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_compile") 2>conftest.er1
12012 ac_status=$?
12013 grep -v '^ *+' conftest.er1 >conftest.err
12014 rm -f conftest.er1
12015 cat conftest.err >&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12019 { (case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12022esac
12023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_try") 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest.$ac_objext'
12029 { (case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032esac
12033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_try") 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 ac_cv_type_error_t=yes
12039else
12040 echo "$as_me: failed program was:" >&5
12041sed 's/^/| /' conftest.$ac_ext >&5
12042
12043 ac_cv_type_error_t=no
12044fi
12045
12046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047fi
12048{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12049echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12050if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051
12052cat >>confdefs.h <<_ACEOF
12053#define HAVE_ERROR_T 1
12054_ACEOF
12055
12056
12057else
12058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012059cat >>confdefs.h <<\_ACEOF
12060#define error_t int
12061_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062
12063fi
12064
12065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012066
12067
12068
12069
12070
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012071for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012072do
12073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12074{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12076if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079 cat >conftest.$ac_ext <<_ACEOF
12080/* confdefs.h. */
12081_ACEOF
12082cat confdefs.h >>conftest.$ac_ext
12083cat >>conftest.$ac_ext <<_ACEOF
12084/* end confdefs.h. */
12085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12087#define $ac_func innocuous_$ac_func
12088
12089/* System header to define __stub macros and hopefully few prototypes,
12090 which can conflict with char $ac_func (); below.
12091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12092 <limits.h> exists even on freestanding compilers. */
12093
12094#ifdef __STDC__
12095# include <limits.h>
12096#else
12097# include <assert.h>
12098#endif
12099
12100#undef $ac_func
12101
12102/* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12105#ifdef __cplusplus
12106extern "C"
12107#endif
12108char $ac_func ();
12109/* The GNU C library defines this for functions which it implements
12110 to always fail with ENOSYS. Some functions are actually named
12111 something starting with __ and the normal name is an alias. */
12112#if defined __stub_$ac_func || defined __stub___$ac_func
12113choke me
12114#endif
12115
12116int
12117main ()
12118{
12119return $ac_func ();
12120 ;
12121 return 0;
12122}
12123_ACEOF
12124rm -f conftest.$ac_objext conftest$ac_exeext
12125if { (ac_try="$ac_link"
12126case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129esac
12130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_link") 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest$ac_exeext'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152esac
12153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 eval "$as_ac_var=yes"
12159else
12160 echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
12163 eval "$as_ac_var=no"
12164fi
12165
12166rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168fi
12169ac_res=`eval echo '${'$as_ac_var'}'`
12170 { echo "$as_me:$LINENO: result: $ac_res" >&5
12171echo "${ECHO_T}$ac_res" >&6; }
12172if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012175_ACEOF
12176
12177fi
12178done
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012199
12200
12201
12202
12203
12204
12205
12206
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012207for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12208 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012209do
12210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12216fi
12217ac_res=`eval echo '${'$as_ac_Header'}'`
12218 { echo "$as_me:$LINENO: result: $ac_res" >&5
12219echo "${ECHO_T}$ac_res" >&6; }
12220else
12221 # Is the header compilable?
12222{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12224cat >conftest.$ac_ext <<_ACEOF
12225/* confdefs.h. */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h. */
12230$ac_includes_default
12231#include <$ac_header>
12232_ACEOF
12233rm -f conftest.$ac_objext
12234if { (ac_try="$ac_compile"
12235case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238esac
12239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251esac
12252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest.$ac_objext'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267 ac_header_compiler=yes
12268else
12269 echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
12272 ac_header_compiler=no
12273fi
12274
12275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12277echo "${ECHO_T}$ac_header_compiler" >&6; }
12278
12279# Is the header present?
12280{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12281echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12282cat >conftest.$ac_ext <<_ACEOF
12283/* confdefs.h. */
12284_ACEOF
12285cat confdefs.h >>conftest.$ac_ext
12286cat >>conftest.$ac_ext <<_ACEOF
12287/* end confdefs.h. */
12288#include <$ac_header>
12289_ACEOF
12290if { (ac_try="$ac_cpp conftest.$ac_ext"
12291case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } >/dev/null; then
12303 if test -s conftest.err; then
12304 ac_cpp_err=$ac_c_preproc_warn_flag
12305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12306 else
12307 ac_cpp_err=
12308 fi
12309else
12310 ac_cpp_err=yes
12311fi
12312if test -z "$ac_cpp_err"; then
12313 ac_header_preproc=yes
12314else
12315 echo "$as_me: failed program was:" >&5
12316sed 's/^/| /' conftest.$ac_ext >&5
12317
12318 ac_header_preproc=no
12319fi
12320
12321rm -f conftest.err conftest.$ac_ext
12322{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12323echo "${ECHO_T}$ac_header_preproc" >&6; }
12324
12325# So? What about this header?
12326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12327 yes:no: )
12328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12331echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12332 ac_header_preproc=yes
12333 ;;
12334 no:yes:* )
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12340echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12342echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12346echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12347 ( cat <<\_ASBOX
12348## ----------------------------------- ##
12349## Report this to llvmbugs@cs.uiuc.edu ##
12350## ----------------------------------- ##
12351_ASBOX
12352 ) | sed "s/^/$as_me: WARNING: /" >&2
12353 ;;
12354esac
12355{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12359else
12360 eval "$as_ac_Header=\$ac_header_preproc"
12361fi
12362ac_res=`eval echo '${'$as_ac_Header'}'`
12363 { echo "$as_me:$LINENO: result: $ac_res" >&5
12364echo "${ECHO_T}$ac_res" >&6; }
12365
12366fi
12367if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012368 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012370_ACEOF
12371
12372fi
12373
12374done
12375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012376
12377
12378
12379
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012380for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012381do
12382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388fi
12389ac_res=`eval echo '${'$as_ac_Header'}'`
12390 { echo "$as_me:$LINENO: result: $ac_res" >&5
12391echo "${ECHO_T}$ac_res" >&6; }
12392else
12393 # Is the header compilable?
12394{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12395echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12396cat >conftest.$ac_ext <<_ACEOF
12397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h. */
12402$ac_includes_default
12403#include <$ac_header>
12404_ACEOF
12405rm -f conftest.$ac_objext
12406if { (ac_try="$ac_compile"
12407case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_compile") 2>conftest.er1
12413 ac_status=$?
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest.$ac_objext'
12430 { (case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12433esac
12434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_try") 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_header_compiler=yes
12440else
12441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 ac_header_compiler=no
12445fi
12446
12447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12449echo "${ECHO_T}$ac_header_compiler" >&6; }
12450
12451# Is the header present?
12452{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12454cat >conftest.$ac_ext <<_ACEOF
12455/* confdefs.h. */
12456_ACEOF
12457cat confdefs.h >>conftest.$ac_ext
12458cat >>conftest.$ac_ext <<_ACEOF
12459/* end confdefs.h. */
12460#include <$ac_header>
12461_ACEOF
12462if { (ac_try="$ac_cpp conftest.$ac_ext"
12463case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466esac
12467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } >/dev/null; then
12475 if test -s conftest.err; then
12476 ac_cpp_err=$ac_c_preproc_warn_flag
12477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12478 else
12479 ac_cpp_err=
12480 fi
12481else
12482 ac_cpp_err=yes
12483fi
12484if test -z "$ac_cpp_err"; then
12485 ac_header_preproc=yes
12486else
12487 echo "$as_me: failed program was:" >&5
12488sed 's/^/| /' conftest.$ac_ext >&5
12489
12490 ac_header_preproc=no
12491fi
12492
12493rm -f conftest.err conftest.$ac_ext
12494{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12495echo "${ECHO_T}$ac_header_preproc" >&6; }
12496
12497# So? What about this header?
12498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12499 yes:no: )
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12504 ac_header_preproc=yes
12505 ;;
12506 no:yes:* )
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12519 ( cat <<\_ASBOX
12520## ----------------------------------- ##
12521## Report this to llvmbugs@cs.uiuc.edu ##
12522## ----------------------------------- ##
12523_ASBOX
12524 ) | sed "s/^/$as_me: WARNING: /" >&2
12525 ;;
12526esac
12527{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531else
12532 eval "$as_ac_Header=\$ac_header_preproc"
12533fi
12534ac_res=`eval echo '${'$as_ac_Header'}'`
12535 { echo "$as_me:$LINENO: result: $ac_res" >&5
12536echo "${ECHO_T}$ac_res" >&6; }
12537
12538fi
12539if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012540 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012541#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012542_ACEOF
12543
12544fi
12545
12546done
12547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012548
12549
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012550for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012551do
12552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558fi
12559ac_res=`eval echo '${'$as_ac_Header'}'`
12560 { echo "$as_me:$LINENO: result: $ac_res" >&5
12561echo "${ECHO_T}$ac_res" >&6; }
12562else
12563 # Is the header compilable?
12564{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12566cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
12572$ac_includes_default
12573#include <$ac_header>
12574_ACEOF
12575rm -f conftest.$ac_objext
12576if { (ac_try="$ac_compile"
12577case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12580esac
12581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_compile") 2>conftest.er1
12583 ac_status=$?
12584 grep -v '^ *+' conftest.er1 >conftest.err
12585 rm -f conftest.er1
12586 cat conftest.err >&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } &&
12589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12590 { (case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593esac
12594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_try") 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; } &&
12599 { ac_try='test -s conftest.$ac_objext'
12600 { (case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_try") 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_header_compiler=yes
12610else
12611 echo "$as_me: failed program was:" >&5
12612sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 ac_header_compiler=no
12615fi
12616
12617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12619echo "${ECHO_T}$ac_header_compiler" >&6; }
12620
12621# Is the header present?
12622{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12624cat >conftest.$ac_ext <<_ACEOF
12625/* confdefs.h. */
12626_ACEOF
12627cat confdefs.h >>conftest.$ac_ext
12628cat >>conftest.$ac_ext <<_ACEOF
12629/* end confdefs.h. */
12630#include <$ac_header>
12631_ACEOF
12632if { (ac_try="$ac_cpp conftest.$ac_ext"
12633case "(($ac_try" in
12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 *) ac_try_echo=$ac_try;;
12636esac
12637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } >/dev/null; then
12645 if test -s conftest.err; then
12646 ac_cpp_err=$ac_c_preproc_warn_flag
12647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12648 else
12649 ac_cpp_err=
12650 fi
12651else
12652 ac_cpp_err=yes
12653fi
12654if test -z "$ac_cpp_err"; then
12655 ac_header_preproc=yes
12656else
12657 echo "$as_me: failed program was:" >&5
12658sed 's/^/| /' conftest.$ac_ext >&5
12659
12660 ac_header_preproc=no
12661fi
12662
12663rm -f conftest.err conftest.$ac_ext
12664{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12665echo "${ECHO_T}$ac_header_preproc" >&6; }
12666
12667# So? What about this header?
12668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12669 yes:no: )
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12673echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12674 ac_header_preproc=yes
12675 ;;
12676 no:yes:* )
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12682echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12684echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12688echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12689 ( cat <<\_ASBOX
12690## ----------------------------------- ##
12691## Report this to llvmbugs@cs.uiuc.edu ##
12692## ----------------------------------- ##
12693_ASBOX
12694 ) | sed "s/^/$as_me: WARNING: /" >&2
12695 ;;
12696esac
12697{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701else
12702 eval "$as_ac_Header=\$ac_header_preproc"
12703fi
12704ac_res=`eval echo '${'$as_ac_Header'}'`
12705 { echo "$as_me:$LINENO: result: $ac_res" >&5
12706echo "${ECHO_T}$ac_res" >&6; }
12707
12708fi
12709if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012710 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012712_ACEOF
12713 break
12714fi
12715
12716done
12717
12718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012719
12720
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012721for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012722do
12723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12724{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12728else
12729 cat >conftest.$ac_ext <<_ACEOF
12730/* confdefs.h. */
12731_ACEOF
12732cat confdefs.h >>conftest.$ac_ext
12733cat >>conftest.$ac_ext <<_ACEOF
12734/* end confdefs.h. */
12735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12737#define $ac_func innocuous_$ac_func
12738
12739/* System header to define __stub macros and hopefully few prototypes,
12740 which can conflict with char $ac_func (); below.
12741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12742 <limits.h> exists even on freestanding compilers. */
12743
12744#ifdef __STDC__
12745# include <limits.h>
12746#else
12747# include <assert.h>
12748#endif
12749
12750#undef $ac_func
12751
12752/* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply. */
12755#ifdef __cplusplus
12756extern "C"
12757#endif
12758char $ac_func ();
12759/* The GNU C library defines this for functions which it implements
12760 to always fail with ENOSYS. Some functions are actually named
12761 something starting with __ and the normal name is an alias. */
12762#if defined __stub_$ac_func || defined __stub___$ac_func
12763choke me
12764#endif
12765
12766int
12767main ()
12768{
12769return $ac_func ();
12770 ;
12771 return 0;
12772}
12773_ACEOF
12774rm -f conftest.$ac_objext conftest$ac_exeext
12775if { (ac_try="$ac_link"
12776case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12779esac
12780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_link") 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789 { (case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12792esac
12793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_try") 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; } &&
12798 { ac_try='test -s conftest$ac_exeext'
12799 { (case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802esac
12803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_try") 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 eval "$as_ac_var=yes"
12809else
12810 echo "$as_me: failed program was:" >&5
12811sed 's/^/| /' conftest.$ac_ext >&5
12812
12813 eval "$as_ac_var=no"
12814fi
12815
12816rm -f core conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext conftest.$ac_ext
12818fi
12819ac_res=`eval echo '${'$as_ac_var'}'`
12820 { echo "$as_me:$LINENO: result: $ac_res" >&5
12821echo "${ECHO_T}$ac_res" >&6; }
12822if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012823 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012825_ACEOF
12826 break
12827fi
12828done
12829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012830
12831
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012832for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012833do
12834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12835{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12837if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12839else
12840 cat >conftest.$ac_ext <<_ACEOF
12841/* confdefs.h. */
12842_ACEOF
12843cat confdefs.h >>conftest.$ac_ext
12844cat >>conftest.$ac_ext <<_ACEOF
12845/* end confdefs.h. */
12846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12848#define $ac_func innocuous_$ac_func
12849
12850/* System header to define __stub macros and hopefully few prototypes,
12851 which can conflict with char $ac_func (); below.
12852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12853 <limits.h> exists even on freestanding compilers. */
12854
12855#ifdef __STDC__
12856# include <limits.h>
12857#else
12858# include <assert.h>
12859#endif
12860
12861#undef $ac_func
12862
12863/* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12866#ifdef __cplusplus
12867extern "C"
12868#endif
12869char $ac_func ();
12870/* The GNU C library defines this for functions which it implements
12871 to always fail with ENOSYS. Some functions are actually named
12872 something starting with __ and the normal name is an alias. */
12873#if defined __stub_$ac_func || defined __stub___$ac_func
12874choke me
12875#endif
12876
12877int
12878main ()
12879{
12880return $ac_func ();
12881 ;
12882 return 0;
12883}
12884_ACEOF
12885rm -f conftest.$ac_objext conftest$ac_exeext
12886if { (ac_try="$ac_link"
12887case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890esac
12891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_link") 2>conftest.er1
12893 ac_status=$?
12894 grep -v '^ *+' conftest.er1 >conftest.err
12895 rm -f conftest.er1
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
12899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12900 { (case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12903esac
12904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_try") 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; } &&
12909 { ac_try='test -s conftest$ac_exeext'
12910 { (case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12913esac
12914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915 (eval "$ac_try") 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 eval "$as_ac_var=yes"
12920else
12921 echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
12924 eval "$as_ac_var=no"
12925fi
12926
12927rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12929fi
12930ac_res=`eval echo '${'$as_ac_var'}'`
12931 { echo "$as_me:$LINENO: result: $ac_res" >&5
12932echo "${ECHO_T}$ac_res" >&6; }
12933if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012934 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012936_ACEOF
12937 break
12938fi
12939done
12940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012941
12942
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012943for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012944do
12945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12946{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12948if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950else
12951 cat >conftest.$ac_ext <<_ACEOF
12952/* confdefs.h. */
12953_ACEOF
12954cat confdefs.h >>conftest.$ac_ext
12955cat >>conftest.$ac_ext <<_ACEOF
12956/* end confdefs.h. */
12957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12959#define $ac_func innocuous_$ac_func
12960
12961/* System header to define __stub macros and hopefully few prototypes,
12962 which can conflict with char $ac_func (); below.
12963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12964 <limits.h> exists even on freestanding compilers. */
12965
12966#ifdef __STDC__
12967# include <limits.h>
12968#else
12969# include <assert.h>
12970#endif
12971
12972#undef $ac_func
12973
12974/* Override any GCC internal prototype to avoid an error.
12975 Use char because int might match the return type of a GCC
12976 builtin and then its argument prototype would still apply. */
12977#ifdef __cplusplus
12978extern "C"
12979#endif
12980char $ac_func ();
12981/* The GNU C library defines this for functions which it implements
12982 to always fail with ENOSYS. Some functions are actually named
12983 something starting with __ and the normal name is an alias. */
12984#if defined __stub_$ac_func || defined __stub___$ac_func
12985choke me
12986#endif
12987
12988int
12989main ()
12990{
12991return $ac_func ();
12992 ;
12993 return 0;
12994}
12995_ACEOF
12996rm -f conftest.$ac_objext conftest$ac_exeext
12997if { (ac_try="$ac_link"
12998case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_link") 2>conftest.er1
13004 ac_status=$?
13005 grep -v '^ *+' conftest.er1 >conftest.err
13006 rm -f conftest.er1
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
13010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13011 { (case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014esac
13015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_try") 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest$ac_exeext'
13021 { (case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13024esac
13025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_try") 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
13030 eval "$as_ac_var=yes"
13031else
13032 echo "$as_me: failed program was:" >&5
13033sed 's/^/| /' conftest.$ac_ext >&5
13034
13035 eval "$as_ac_var=no"
13036fi
13037
13038rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040fi
13041ac_res=`eval echo '${'$as_ac_var'}'`
13042 { echo "$as_me:$LINENO: result: $ac_res" >&5
13043echo "${ECHO_T}$ac_res" >&6; }
13044if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013045 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013047_ACEOF
13048 break
13049fi
13050done
13051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013052
13053
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013054for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013055do
13056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13057{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13059if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13061else
13062 cat >conftest.$ac_ext <<_ACEOF
13063/* confdefs.h. */
13064_ACEOF
13065cat confdefs.h >>conftest.$ac_ext
13066cat >>conftest.$ac_ext <<_ACEOF
13067/* end confdefs.h. */
13068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13070#define $ac_func innocuous_$ac_func
13071
13072/* System header to define __stub macros and hopefully few prototypes,
13073 which can conflict with char $ac_func (); below.
13074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13075 <limits.h> exists even on freestanding compilers. */
13076
13077#ifdef __STDC__
13078# include <limits.h>
13079#else
13080# include <assert.h>
13081#endif
13082
13083#undef $ac_func
13084
13085/* Override any GCC internal prototype to avoid an error.
13086 Use char because int might match the return type of a GCC
13087 builtin and then its argument prototype would still apply. */
13088#ifdef __cplusplus
13089extern "C"
13090#endif
13091char $ac_func ();
13092/* The GNU C library defines this for functions which it implements
13093 to always fail with ENOSYS. Some functions are actually named
13094 something starting with __ and the normal name is an alias. */
13095#if defined __stub_$ac_func || defined __stub___$ac_func
13096choke me
13097#endif
13098
13099int
13100main ()
13101{
13102return $ac_func ();
13103 ;
13104 return 0;
13105}
13106_ACEOF
13107rm -f conftest.$ac_objext conftest$ac_exeext
13108if { (ac_try="$ac_link"
13109case "(($ac_try" in
13110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111 *) ac_try_echo=$ac_try;;
13112esac
13113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 (eval "$ac_link") 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13122 { (case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125esac
13126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_try") 2>&5
13128 ac_status=$?
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; } &&
13131 { ac_try='test -s conftest$ac_exeext'
13132 { (case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135esac
13136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_try") 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 eval "$as_ac_var=yes"
13142else
13143 echo "$as_me: failed program was:" >&5
13144sed 's/^/| /' conftest.$ac_ext >&5
13145
13146 eval "$as_ac_var=no"
13147fi
13148
13149rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151fi
13152ac_res=`eval echo '${'$as_ac_var'}'`
13153 { echo "$as_me:$LINENO: result: $ac_res" >&5
13154echo "${ECHO_T}$ac_res" >&6; }
13155if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013156 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013158_ACEOF
13159
13160fi
13161done
13162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013163
13164
13165
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013166for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013167do
13168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13169{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13171if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13173else
13174 cat >conftest.$ac_ext <<_ACEOF
13175/* confdefs.h. */
13176_ACEOF
13177cat confdefs.h >>conftest.$ac_ext
13178cat >>conftest.$ac_ext <<_ACEOF
13179/* end confdefs.h. */
13180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13182#define $ac_func innocuous_$ac_func
13183
13184/* System header to define __stub macros and hopefully few prototypes,
13185 which can conflict with char $ac_func (); below.
13186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13187 <limits.h> exists even on freestanding compilers. */
13188
13189#ifdef __STDC__
13190# include <limits.h>
13191#else
13192# include <assert.h>
13193#endif
13194
13195#undef $ac_func
13196
13197/* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13200#ifdef __cplusplus
13201extern "C"
13202#endif
13203char $ac_func ();
13204/* The GNU C library defines this for functions which it implements
13205 to always fail with ENOSYS. Some functions are actually named
13206 something starting with __ and the normal name is an alias. */
13207#if defined __stub_$ac_func || defined __stub___$ac_func
13208choke me
13209#endif
13210
13211int
13212main ()
13213{
13214return $ac_func ();
13215 ;
13216 return 0;
13217}
13218_ACEOF
13219rm -f conftest.$ac_objext conftest$ac_exeext
13220if { (ac_try="$ac_link"
13221case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224esac
13225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_link") 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13234 { (case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237esac
13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_try") 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest$ac_exeext'
13244 { (case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13247esac
13248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_try") 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 eval "$as_ac_var=yes"
13254else
13255 echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 eval "$as_ac_var=no"
13259fi
13260
13261rm -f core conftest.err conftest.$ac_objext \
13262 conftest$ac_exeext conftest.$ac_ext
13263fi
13264ac_res=`eval echo '${'$as_ac_var'}'`
13265 { echo "$as_me:$LINENO: result: $ac_res" >&5
13266echo "${ECHO_T}$ac_res" >&6; }
13267if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013268 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013270_ACEOF
13271
13272fi
13273done
13274
13275
Douglas Gregor01746742009-05-11 18:05:52 +000013276
Reid Spencer7931a782004-12-27 06:15:02 +000013277if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013278 LLVMGCC="llvm-gcc${EXEEXT}"
13279 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013280 LLVMGCCCOMMAND="$LLVMGCC"
13281 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013282 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13283
13284 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13285
Reid Spencerc84492c2005-06-02 22:34:49 +000013286 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13287set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13290if test "${ac_cv_path_LLVMGCC+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013292else
13293 case $LLVMGCC in
13294 [\\/]* | ?:[\\/]*)
13295 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13296 ;;
13297 *)
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $PATH
13300do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 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 +000013305 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013307 break 2
13308 fi
13309done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013310done
Reid Spencera773bd52006-08-04 18:18:08 +000013311IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013312
Reid Spencer59473af2004-12-25 07:31:29 +000013313 ;;
13314esac
13315fi
13316LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013317if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013318 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13319echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013321 { echo "$as_me:$LINENO: result: no" >&5
13322echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013323fi
13324
Reid Spencera773bd52006-08-04 18:18:08 +000013325
Reid Spencerc84492c2005-06-02 22:34:49 +000013326 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13327set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13330if test "${ac_cv_path_LLVMGXX+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013332else
13333 case $LLVMGXX in
13334 [\\/]* | ?:[\\/]*)
13335 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13336 ;;
13337 *)
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339for as_dir in $PATH
13340do
13341 IFS=$as_save_IFS
13342 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 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 +000013345 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013347 break 2
13348 fi
13349done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013350done
Reid Spencera773bd52006-08-04 18:18:08 +000013351IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013352
Reid Spencer59473af2004-12-25 07:31:29 +000013353 ;;
13354esac
13355fi
13356LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013357if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013358 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13359echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013361 { echo "$as_me:$LINENO: result: no" >&5
13362echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013363fi
13364
Reid Spencera773bd52006-08-04 18:18:08 +000013365
Reid Spencer59473af2004-12-25 07:31:29 +000013366else
Devang Patel5d28b882007-12-04 22:54:47 +000013367 if test -z "$LLVMGCC"; then
13368 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013369 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013370 fi
13371 if test -z "$LLVMGXX"; then
13372 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013373 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013374 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013375
Reid Spencer59473af2004-12-25 07:31:29 +000013376 LLVMGCC=$LLVMGCC
13377
13378 LLVMGXX=$LLVMGXX
13379
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013380 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13381
13382 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13383
Reid Spencer59473af2004-12-25 07:31:29 +000013384fi
13385
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013386
Daniel Dunbar98515672010-02-23 10:00:49 +000013387# Check whether --with-llvmcc was given.
13388if test "${with_llvmcc+set}" = set; then
13389 withval=$with_llvmcc;
13390else
13391 with_llvmcc=check
13392fi
13393
13394{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13395echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13396if test "$with_llvmcc" != "check"; then
13397 if (test "$with_llvmcc" != "llvm-gcc" &&
13398 test "$with_llvmcc" != "clang" &&
13399 test "$with_llvmcc" != "none"); then
13400 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13401echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13402 { (exit 1); exit 1; }; }
13403 fi
13404 WITH_LLVMCC="$with_llvmcc"
13405elif test -n "$LLVMGCC"; then
13406 WITH_LLVMCC=llvm-gcc
13407elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13408 WITH_LLVMCC=clang
13409else
13410 WITH_LLVMCC=none
13411fi
13412{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13413echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13414LLVMCC_OPTION=$WITH_LLVMCC
13415
13416
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013417{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13418echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013419
Reid Spencer86901802004-12-08 23:07:27 +000013420ICC=no
13421IXX=no
13422case $CC in
13423 icc*|icpc*)
13424 ICC=yes
13425 IXX=yes
13426 ;;
13427 *)
13428 ;;
13429esac
13430
Duraid Madina937c60a2006-02-15 07:57:42 +000013431if test "$GCC" != "yes" && test "$ICC" != "yes"
13432then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13434echo "$as_me: error: gcc|icc required but not found" >&2;}
13435 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013436fi
13437
13438if test "$GXX" != "yes" && test "$IXX" != "yes"
13439then
Eric Christopher73e36da2010-12-08 02:02:14 +000013440 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13441echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013442 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013443fi
13444
Reid Spencer86901802004-12-08 23:07:27 +000013445if test "$GCC" = "yes"
13446then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013447 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013448#if !defined(__GNUC__) || __GNUC__ < 3
13449#error Unsupported GCC version
13450#endif
13451
13452_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453rm -f conftest.$ac_objext
13454if { (ac_try="$ac_compile"
13455case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13458esac
13459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_compile") 2>conftest.er1
13461 ac_status=$?
13462 grep -v '^ *+' conftest.er1 >conftest.err
13463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13468 { (case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13471esac
13472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_try") 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try='test -s conftest.$ac_objext'
13478 { (case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481esac
13482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_try") 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; }; then
13487 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013489 echo "$as_me: failed program was:" >&5
13490sed 's/^/| /' conftest.$ac_ext >&5
13491
13492 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13493echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13494 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013495fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013496
Chris Lattner399c7c72008-02-05 19:43:53 +000013497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013498fi
13499
13500if test -z "$llvm_cv_gnu_make_command"
13501then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013502 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13503echo "$as_me: error: GNU Make required but not found" >&2;}
13504 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013505fi
13506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013507{ echo "$as_me:$LINENO: result: ok" >&5
13508echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013510{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13511echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013512NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13513
13514NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13517echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013518
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013520
13521{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13522echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13523if test "${ac_cv_lib_m_sin+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013525else
13526 ac_check_lib_save_LIBS=$LIBS
13527LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013528cat >conftest.$ac_ext <<_ACEOF
13529/* confdefs.h. */
13530_ACEOF
13531cat confdefs.h >>conftest.$ac_ext
13532cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013533/* end confdefs.h. */
13534
Reid Spencera773bd52006-08-04 18:18:08 +000013535/* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013538#ifdef __cplusplus
13539extern "C"
13540#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013541char sin ();
13542int
13543main ()
13544{
Reid Spencera773bd52006-08-04 18:18:08 +000013545return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013546 ;
13547 return 0;
13548}
13549_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013550rm -f conftest.$ac_objext conftest$ac_exeext
13551if { (ac_try="$ac_link"
13552case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555esac
13556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_link") 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568esac
13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest$ac_exeext'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578esac
13579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013584 ac_cv_lib_m_sin=yes
13585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013586 echo "$as_me: failed program was:" >&5
13587sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013591
Bill Wendlingebcceee2009-04-18 11:20:33 +000013592rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013593 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013594LIBS=$ac_check_lib_save_LIBS
13595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013596{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13597echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13598if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013599 cat >>confdefs.h <<_ACEOF
13600#define HAVE_LIBM 1
13601_ACEOF
13602
13603 LIBS="-lm $LIBS"
13604
13605fi
13606
Jeff Cohen28783c32007-01-12 18:22:38 +000013607if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013608
13609{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13610echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13611if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013613else
13614 ac_check_lib_save_LIBS=$LIBS
13615LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013616cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013621/* end confdefs.h. */
13622
Reid Spencer48fdf912006-06-01 19:03:21 +000013623
Reid Spencer484fc8e2006-06-01 16:55:59 +000013624int
13625main ()
13626{
Reid Spencera773bd52006-08-04 18:18:08 +000013627return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013628 ;
13629 return 0;
13630}
13631_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013632rm -f conftest.$ac_objext conftest$ac_exeext
13633if { (ac_try="$ac_link"
13634case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637esac
13638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_link") 2>conftest.er1
13640 ac_status=$?
13641 grep -v '^ *+' conftest.er1 >conftest.err
13642 rm -f conftest.er1
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } &&
13646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13647 { (case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13650esac
13651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_try") 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest$ac_exeext'
13657 { (case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13660esac
13661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_try") 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013666 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013668 echo "$as_me: failed program was:" >&5
13669sed 's/^/| /' conftest.$ac_ext >&5
13670
13671 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013673
Bill Wendlingebcceee2009-04-18 11:20:33 +000013674rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013675 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013676LIBS=$ac_check_lib_save_LIBS
13677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013678{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13679echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13680if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013681 cat >>confdefs.h <<_ACEOF
13682#define HAVE_LIBIMAGEHLP 1
13683_ACEOF
13684
13685 LIBS="-limagehlp $LIBS"
13686
13687fi
13688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013689
13690{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13691echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13692if test "${ac_cv_lib_psapi_main+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013694else
13695 ac_check_lib_save_LIBS=$LIBS
13696LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013697cat >conftest.$ac_ext <<_ACEOF
13698/* confdefs.h. */
13699_ACEOF
13700cat confdefs.h >>conftest.$ac_ext
13701cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013702/* end confdefs.h. */
13703
Reid Spencer48fdf912006-06-01 19:03:21 +000013704
Reid Spencer484fc8e2006-06-01 16:55:59 +000013705int
13706main ()
13707{
Reid Spencera773bd52006-08-04 18:18:08 +000013708return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013709 ;
13710 return 0;
13711}
13712_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013713rm -f conftest.$ac_objext conftest$ac_exeext
13714if { (ac_try="$ac_link"
13715case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718esac
13719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_link") 2>conftest.er1
13721 ac_status=$?
13722 grep -v '^ *+' conftest.er1 >conftest.err
13723 rm -f conftest.er1
13724 cat conftest.err >&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13728 { (case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731esac
13732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_try") 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest$ac_exeext'
13738 { (case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741esac
13742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_try") 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013747 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013749 echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754
Bill Wendlingebcceee2009-04-18 11:20:33 +000013755rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013756 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013757LIBS=$ac_check_lib_save_LIBS
13758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013759{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13760echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13761if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013762 cat >>confdefs.h <<_ACEOF
13763#define HAVE_LIBPSAPI 1
13764_ACEOF
13765
13766 LIBS="-lpsapi $LIBS"
13767
13768fi
13769
13770fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013772{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13773echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13774if test "${ac_cv_search_dlopen+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013776else
13777 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013778cat >conftest.$ac_ext <<_ACEOF
13779/* confdefs.h. */
13780_ACEOF
13781cat confdefs.h >>conftest.$ac_ext
13782cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013783/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013784
Reid Spencera773bd52006-08-04 18:18:08 +000013785/* Override any GCC internal prototype to avoid an error.
13786 Use char because int might match the return type of a GCC
13787 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013788#ifdef __cplusplus
13789extern "C"
13790#endif
John Criswell7a73b802003-06-30 21:59:07 +000013791char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013792int
13793main ()
13794{
Reid Spencera773bd52006-08-04 18:18:08 +000013795return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013796 ;
13797 return 0;
13798}
13799_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013800for ac_lib in '' dl; do
13801 if test -z "$ac_lib"; then
13802 ac_res="none required"
13803 else
13804 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013806 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013807 rm -f conftest.$ac_objext conftest$ac_exeext
13808if { (ac_try="$ac_link"
13809case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812esac
13813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_link") 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13822 { (case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13825esac
13826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_try") 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; } &&
13831 { ac_try='test -s conftest$ac_exeext'
13832 { (case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835esac
13836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_try") 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013841 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013842else
13843 echo "$as_me: failed program was:" >&5
13844sed 's/^/| /' conftest.$ac_ext >&5
13845
13846
John Criswell7a73b802003-06-30 21:59:07 +000013847fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013848
Bill Wendlingebcceee2009-04-18 11:20:33 +000013849rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013850 conftest$ac_exeext
13851 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013852 break
John Criswell7a73b802003-06-30 21:59:07 +000013853fi
Reid Spencera773bd52006-08-04 18:18:08 +000013854done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013855if test "${ac_cv_search_dlopen+set}" = set; then
13856 :
Reid Spencera773bd52006-08-04 18:18:08 +000013857else
13858 ac_cv_search_dlopen=no
13859fi
13860rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013861LIBS=$ac_func_search_save_LIBS
13862fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013863{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13864echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013865ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013866if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013869cat >>confdefs.h <<\_ACEOF
13870#define HAVE_DLOPEN 1
13871_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013872
13873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013874 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13875echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013876fi
13877
13878
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013879if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013880 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13881echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13882if test "${ac_cv_search_ffi_call+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013884else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013885 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013886cat >conftest.$ac_ext <<_ACEOF
13887/* confdefs.h. */
13888_ACEOF
13889cat confdefs.h >>conftest.$ac_ext
13890cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013891/* end confdefs.h. */
13892
13893/* Override any GCC internal prototype to avoid an error.
13894 Use char because int might match the return type of a GCC
13895 builtin and then its argument prototype would still apply. */
13896#ifdef __cplusplus
13897extern "C"
13898#endif
13899char ffi_call ();
13900int
13901main ()
13902{
13903return ffi_call ();
13904 ;
13905 return 0;
13906}
13907_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013908for ac_lib in '' ffi; do
13909 if test -z "$ac_lib"; then
13910 ac_res="none required"
13911 else
13912 ac_res=-l$ac_lib
13913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13914 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013915 rm -f conftest.$ac_objext conftest$ac_exeext
13916if { (ac_try="$ac_link"
13917case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13920esac
13921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_link") 2>conftest.er1
13923 ac_status=$?
13924 grep -v '^ *+' conftest.er1 >conftest.err
13925 rm -f conftest.er1
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } &&
13929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13930 { (case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13933esac
13934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_try") 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; } &&
13939 { ac_try='test -s conftest$ac_exeext'
13940 { (case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13943esac
13944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_try") 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013949 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013950else
13951 echo "$as_me: failed program was:" >&5
13952sed 's/^/| /' conftest.$ac_ext >&5
13953
13954
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013955fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013956
Bill Wendlingebcceee2009-04-18 11:20:33 +000013957rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013958 conftest$ac_exeext
13959 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013960 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013961fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013962done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013963if test "${ac_cv_search_ffi_call+set}" = set; then
13964 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013965else
13966 ac_cv_search_ffi_call=no
13967fi
13968rm conftest.$ac_ext
13969LIBS=$ac_func_search_save_LIBS
13970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13972echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013973ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013974if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013977cat >>confdefs.h <<\_ACEOF
13978#define HAVE_FFI_CALL 1
13979_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013980
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013981else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013982 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13983echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13984 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013985fi
13986
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013987fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13990echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13991if test "${ac_cv_search_mallinfo+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013993else
13994 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013995cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014001
Reid Spencera773bd52006-08-04 18:18:08 +000014002/* Override any GCC internal prototype to avoid an error.
14003 Use char because int might match the return type of a GCC
14004 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000014005#ifdef __cplusplus
14006extern "C"
14007#endif
John Criswell7a73b802003-06-30 21:59:07 +000014008char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000014009int
14010main ()
14011{
Reid Spencera773bd52006-08-04 18:18:08 +000014012return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000014013 ;
14014 return 0;
14015}
14016_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014017for ac_lib in '' malloc; do
14018 if test -z "$ac_lib"; then
14019 ac_res="none required"
14020 else
14021 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000014022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014023 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014024 rm -f conftest.$ac_objext conftest$ac_exeext
14025if { (ac_try="$ac_link"
14026case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14029esac
14030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_link") 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14039 { (case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14042esac
14043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_try") 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest$ac_exeext'
14049 { (case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14052esac
14053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_try") 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014058 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014059else
14060 echo "$as_me: failed program was:" >&5
14061sed 's/^/| /' conftest.$ac_ext >&5
14062
14063
John Criswell7a73b802003-06-30 21:59:07 +000014064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065
Bill Wendlingebcceee2009-04-18 11:20:33 +000014066rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014067 conftest$ac_exeext
14068 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014069 break
John Criswell7a73b802003-06-30 21:59:07 +000014070fi
Reid Spencera773bd52006-08-04 18:18:08 +000014071done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014072if test "${ac_cv_search_mallinfo+set}" = set; then
14073 :
Reid Spencera773bd52006-08-04 18:18:08 +000014074else
14075 ac_cv_search_mallinfo=no
14076fi
14077rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014078LIBS=$ac_func_search_save_LIBS
14079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014080{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14081echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014082ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014083if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014086cat >>confdefs.h <<\_ACEOF
14087#define HAVE_MALLINFO 1
14088_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014089
14090fi
14091
14092
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014093if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014094
14095{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14096echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14097if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014099else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014100 ac_check_lib_save_LIBS=$LIBS
14101LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014102cat >conftest.$ac_ext <<_ACEOF
14103/* confdefs.h. */
14104_ACEOF
14105cat confdefs.h >>conftest.$ac_ext
14106cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014107/* end confdefs.h. */
14108
Reid Spencera773bd52006-08-04 18:18:08 +000014109/* Override any GCC internal prototype to avoid an error.
14110 Use char because int might match the return type of a GCC
14111 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014112#ifdef __cplusplus
14113extern "C"
14114#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014115char pthread_mutex_init ();
14116int
14117main ()
14118{
Reid Spencera773bd52006-08-04 18:18:08 +000014119return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014120 ;
14121 return 0;
14122}
14123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124rm -f conftest.$ac_objext conftest$ac_exeext
14125if { (ac_try="$ac_link"
14126case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129esac
14130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_link") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139 { (case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14142esac
14143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_try") 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest$ac_exeext'
14149 { (case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14152esac
14153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_try") 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014158 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014160 echo "$as_me: failed program was:" >&5
14161sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165
Bill Wendlingebcceee2009-04-18 11:20:33 +000014166rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014167 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014168LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014170{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14171echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14172if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014173 cat >>confdefs.h <<_ACEOF
14174#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014175_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014176
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014177 LIBS="-lpthread $LIBS"
14178
Reid Spencer22177fe2005-07-12 15:24:20 +000014179fi
14180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014181 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14182echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14183if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014185else
14186 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014187cat >conftest.$ac_ext <<_ACEOF
14188/* confdefs.h. */
14189_ACEOF
14190cat confdefs.h >>conftest.$ac_ext
14191cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014192/* end confdefs.h. */
14193
Reid Spencera773bd52006-08-04 18:18:08 +000014194/* Override any GCC internal prototype to avoid an error.
14195 Use char because int might match the return type of a GCC
14196 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014197#ifdef __cplusplus
14198extern "C"
14199#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014200char pthread_mutex_lock ();
14201int
14202main ()
14203{
Reid Spencera773bd52006-08-04 18:18:08 +000014204return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014205 ;
14206 return 0;
14207}
14208_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014209for ac_lib in '' pthread; do
14210 if test -z "$ac_lib"; then
14211 ac_res="none required"
14212 else
14213 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014215 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014216 rm -f conftest.$ac_objext conftest$ac_exeext
14217if { (ac_try="$ac_link"
14218case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221esac
14222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_link") 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234esac
14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest$ac_exeext'
14241 { (case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244esac
14245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_try") 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014250 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014251else
14252 echo "$as_me: failed program was:" >&5
14253sed 's/^/| /' conftest.$ac_ext >&5
14254
14255
Brian Gaeke5f268f72003-12-05 19:29:01 +000014256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014257
Bill Wendlingebcceee2009-04-18 11:20:33 +000014258rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014259 conftest$ac_exeext
14260 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014261 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014262fi
Reid Spencera773bd52006-08-04 18:18:08 +000014263done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014264if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14265 :
Reid Spencera773bd52006-08-04 18:18:08 +000014266else
14267 ac_cv_search_pthread_mutex_lock=no
14268fi
14269rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014270LIBS=$ac_func_search_save_LIBS
14271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14273echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014274ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014275if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014278cat >>confdefs.h <<\_ACEOF
14279#define HAVE_PTHREAD_MUTEX_LOCK 1
14280_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014281
14282fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014284 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14285echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14286if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014288else
14289 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014290cat >conftest.$ac_ext <<_ACEOF
14291/* confdefs.h. */
14292_ACEOF
14293cat confdefs.h >>conftest.$ac_ext
14294cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014295/* end confdefs.h. */
14296
14297/* Override any GCC internal prototype to avoid an error.
14298 Use char because int might match the return type of a GCC
14299 builtin and then its argument prototype would still apply. */
14300#ifdef __cplusplus
14301extern "C"
14302#endif
14303char pthread_rwlock_init ();
14304int
14305main ()
14306{
14307return pthread_rwlock_init ();
14308 ;
14309 return 0;
14310}
14311_ACEOF
14312for ac_lib in '' pthread; do
14313 if test -z "$ac_lib"; then
14314 ac_res="none required"
14315 else
14316 ac_res=-l$ac_lib
14317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14318 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014319 rm -f conftest.$ac_objext conftest$ac_exeext
14320if { (ac_try="$ac_link"
14321case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14324esac
14325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_link") 2>conftest.er1
14327 ac_status=$?
14328 grep -v '^ *+' conftest.er1 >conftest.err
14329 rm -f conftest.er1
14330 cat conftest.err >&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
14333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337esac
14338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; } &&
14343 { ac_try='test -s conftest$ac_exeext'
14344 { (case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14347esac
14348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_try") 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014353 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014354else
14355 echo "$as_me: failed program was:" >&5
14356sed 's/^/| /' conftest.$ac_ext >&5
14357
14358
Owen Andersonde8aed22009-06-16 18:20:20 +000014359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014360
Owen Andersonde8aed22009-06-16 18:20:20 +000014361rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014362 conftest$ac_exeext
14363 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014364 break
14365fi
14366done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014367if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14368 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014369else
14370 ac_cv_search_pthread_rwlock_init=no
14371fi
14372rm conftest.$ac_ext
14373LIBS=$ac_func_search_save_LIBS
14374fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014375{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14376echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014377ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014378if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014381cat >>confdefs.h <<\_ACEOF
14382#define HAVE_PTHREAD_RWLOCK_INIT 1
14383_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014384
14385fi
14386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014387 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14388echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14389if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014391else
14392 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014393cat >conftest.$ac_ext <<_ACEOF
14394/* confdefs.h. */
14395_ACEOF
14396cat confdefs.h >>conftest.$ac_ext
14397cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014398/* end confdefs.h. */
14399
14400/* Override any GCC internal prototype to avoid an error.
14401 Use char because int might match the return type of a GCC
14402 builtin and then its argument prototype would still apply. */
14403#ifdef __cplusplus
14404extern "C"
14405#endif
14406char pthread_getspecific ();
14407int
14408main ()
14409{
14410return pthread_getspecific ();
14411 ;
14412 return 0;
14413}
14414_ACEOF
14415for ac_lib in '' pthread; do
14416 if test -z "$ac_lib"; then
14417 ac_res="none required"
14418 else
14419 ac_res=-l$ac_lib
14420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14421 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014422 rm -f conftest.$ac_objext conftest$ac_exeext
14423if { (ac_try="$ac_link"
14424case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14427esac
14428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 (eval "$ac_link") 2>conftest.er1
14430 ac_status=$?
14431 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14437 { (case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14440esac
14441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_try") 2>&5
14443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; } &&
14446 { ac_try='test -s conftest$ac_exeext'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14450esac
14451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014456 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014457else
14458 echo "$as_me: failed program was:" >&5
14459sed 's/^/| /' conftest.$ac_ext >&5
14460
14461
Owen Anderson27fcfe12009-06-25 23:10:26 +000014462fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014463
Owen Anderson27fcfe12009-06-25 23:10:26 +000014464rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014465 conftest$ac_exeext
14466 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014467 break
14468fi
14469done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014470if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14471 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014472else
14473 ac_cv_search_pthread_getspecific=no
14474fi
14475rm conftest.$ac_ext
14476LIBS=$ac_func_search_save_LIBS
14477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014478{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14479echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014480ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014481if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014484cat >>confdefs.h <<\_ACEOF
14485#define HAVE_PTHREAD_GETSPECIFIC 1
14486_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014487
14488fi
14489
Reid Spencer0a262ba2005-08-24 10:07:20 +000014490fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014491
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014492
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014493# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014494if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014495 withval=$with_udis86;
14496 USE_UDIS86=1
14497
14498 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014499 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014500 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14501 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014502
14503{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14504echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14505if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014507else
14508 ac_check_lib_save_LIBS=$LIBS
14509LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014510cat >conftest.$ac_ext <<_ACEOF
14511/* confdefs.h. */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014515/* end confdefs.h. */
14516
14517/* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14520#ifdef __cplusplus
14521extern "C"
14522#endif
14523char ud_init ();
14524int
14525main ()
14526{
14527return ud_init ();
14528 ;
14529 return 0;
14530}
14531_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014532rm -f conftest.$ac_objext conftest$ac_exeext
14533if { (ac_try="$ac_link"
14534case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537esac
14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_link") 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547 { (case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550esac
14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_try") 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest$ac_exeext'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560esac
14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014566 ac_cv_lib_udis86_ud_init=yes
14567else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014568 echo "$as_me: failed program was:" >&5
14569sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014573
Bill Wendlingebcceee2009-04-18 11:20:33 +000014574rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014575 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014576LIBS=$ac_check_lib_save_LIBS
14577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014578{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14579echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14580if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014581 cat >>confdefs.h <<_ACEOF
14582#define HAVE_LIBUDIS86 1
14583_ACEOF
14584
14585 LIBS="-ludis86 $LIBS"
14586
14587else
14588
14589 echo "Error! You need to have libudis86 around."
14590 exit -1
14591
14592fi
14593
14594
14595else
14596 USE_UDIS86=0
14597
14598fi
14599
14600
14601cat >>confdefs.h <<_ACEOF
14602#define USE_UDIS86 $USE_UDIS86
14603_ACEOF
14604
14605
14606
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014607# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014608if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014609 withval=$with_oprofile;
14610 USE_OPROFILE=1
14611
14612 case "$withval" in
14613 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014614 no) llvm_cv_oppath=
14615 USE_OPROFILE=0
14616 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014617 *) llvm_cv_oppath="${withval}/lib/oprofile"
14618 CPPFLAGS="-I${withval}/include";;
14619 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014620 if test -n "$llvm_cv_oppath" ; then
14621 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014622 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14623echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14624if test "${ac_cv_search_bfd_init+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014626else
14627 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014628cat >conftest.$ac_ext <<_ACEOF
14629/* confdefs.h. */
14630_ACEOF
14631cat confdefs.h >>conftest.$ac_ext
14632cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014633/* end confdefs.h. */
14634
14635/* Override any GCC internal prototype to avoid an error.
14636 Use char because int might match the return type of a GCC
14637 builtin and then its argument prototype would still apply. */
14638#ifdef __cplusplus
14639extern "C"
14640#endif
14641char bfd_init ();
14642int
14643main ()
14644{
14645return bfd_init ();
14646 ;
14647 return 0;
14648}
14649_ACEOF
14650for ac_lib in '' bfd; do
14651 if test -z "$ac_lib"; then
14652 ac_res="none required"
14653 else
14654 ac_res=-l$ac_lib
14655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14656 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014657 rm -f conftest.$ac_objext conftest$ac_exeext
14658if { (ac_try="$ac_link"
14659case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14662esac
14663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_link") 2>conftest.er1
14665 ac_status=$?
14666 grep -v '^ *+' conftest.er1 >conftest.err
14667 rm -f conftest.er1
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14672 { (case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14675esac
14676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_try") 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest$ac_exeext'
14682 { (case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14685esac
14686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_try") 2>&5
14688 ac_status=$?
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014691 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014692else
14693 echo "$as_me: failed program was:" >&5
14694sed 's/^/| /' conftest.$ac_ext >&5
14695
14696
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014697fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014698
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014699rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014700 conftest$ac_exeext
14701 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014702 break
14703fi
14704done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014705if test "${ac_cv_search_bfd_init+set}" = set; then
14706 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014707else
14708 ac_cv_search_bfd_init=no
14709fi
14710rm conftest.$ac_ext
14711LIBS=$ac_func_search_save_LIBS
14712fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014713{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14714echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014715ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014716if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14718
14719fi
14720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014721 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14722echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14723if test "${ac_cv_search_op_open_agent+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014725else
14726 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014727cat >conftest.$ac_ext <<_ACEOF
14728/* confdefs.h. */
14729_ACEOF
14730cat confdefs.h >>conftest.$ac_ext
14731cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014732/* end confdefs.h. */
14733
14734/* Override any GCC internal prototype to avoid an error.
14735 Use char because int might match the return type of a GCC
14736 builtin and then its argument prototype would still apply. */
14737#ifdef __cplusplus
14738extern "C"
14739#endif
14740char op_open_agent ();
14741int
14742main ()
14743{
14744return op_open_agent ();
14745 ;
14746 return 0;
14747}
14748_ACEOF
14749for ac_lib in '' opagent; do
14750 if test -z "$ac_lib"; then
14751 ac_res="none required"
14752 else
14753 ac_res=-l$ac_lib
14754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14755 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014756 rm -f conftest.$ac_objext conftest$ac_exeext
14757if { (ac_try="$ac_link"
14758case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14761esac
14762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_link") 2>conftest.er1
14764 ac_status=$?
14765 grep -v '^ *+' conftest.er1 >conftest.err
14766 rm -f conftest.er1
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } &&
14770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14771 { (case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14774esac
14775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_try") 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; } &&
14780 { ac_try='test -s conftest$ac_exeext'
14781 { (case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14784esac
14785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_try") 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014790 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014791else
14792 echo "$as_me: failed program was:" >&5
14793sed 's/^/| /' conftest.$ac_ext >&5
14794
14795
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014797
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014798rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014799 conftest$ac_exeext
14800 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014801 break
14802fi
14803done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014804if test "${ac_cv_search_op_open_agent+set}" = set; then
14805 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014806else
14807 ac_cv_search_op_open_agent=no
14808fi
14809rm conftest.$ac_ext
14810LIBS=$ac_func_search_save_LIBS
14811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014812{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14813echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014814ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014815if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14817
14818else
14819
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014820 echo "Error! You need to have libopagent around."
14821 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014822
14823fi
14824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014825 if test "${ac_cv_header_opagent_h+set}" = set; then
14826 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14827echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14828if test "${ac_cv_header_opagent_h+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830fi
14831{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14832echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14833else
14834 # Is the header compilable?
14835{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14836echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14837cat >conftest.$ac_ext <<_ACEOF
14838/* confdefs.h. */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
14842/* end confdefs.h. */
14843$ac_includes_default
14844#include <opagent.h>
14845_ACEOF
14846rm -f conftest.$ac_objext
14847if { (ac_try="$ac_compile"
14848case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14851esac
14852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_compile") 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14861 { (case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864esac
14865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_try") 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; } &&
14870 { ac_try='test -s conftest.$ac_objext'
14871 { (case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14874esac
14875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_try") 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_header_compiler=yes
14881else
14882 echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014885 ac_header_compiler=no
14886fi
14887
14888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14890echo "${ECHO_T}$ac_header_compiler" >&6; }
14891
14892# Is the header present?
14893{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14894echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14895cat >conftest.$ac_ext <<_ACEOF
14896/* confdefs.h. */
14897_ACEOF
14898cat confdefs.h >>conftest.$ac_ext
14899cat >>conftest.$ac_ext <<_ACEOF
14900/* end confdefs.h. */
14901#include <opagent.h>
14902_ACEOF
14903if { (ac_try="$ac_cpp conftest.$ac_ext"
14904case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907esac
14908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } >/dev/null; then
14916 if test -s conftest.err; then
14917 ac_cpp_err=$ac_c_preproc_warn_flag
14918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14919 else
14920 ac_cpp_err=
14921 fi
14922else
14923 ac_cpp_err=yes
14924fi
14925if test -z "$ac_cpp_err"; then
14926 ac_header_preproc=yes
14927else
14928 echo "$as_me: failed program was:" >&5
14929sed 's/^/| /' conftest.$ac_ext >&5
14930
14931 ac_header_preproc=no
14932fi
14933
14934rm -f conftest.err conftest.$ac_ext
14935{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14936echo "${ECHO_T}$ac_header_preproc" >&6; }
14937
14938# So? What about this header?
14939case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14940 yes:no: )
14941 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14942echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14944echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14945 ac_header_preproc=yes
14946 ;;
14947 no:yes:* )
14948 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14949echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14951echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14953echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14955echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14957echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14959echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14960 ( cat <<\_ASBOX
14961## ----------------------------------- ##
14962## Report this to llvmbugs@cs.uiuc.edu ##
14963## ----------------------------------- ##
14964_ASBOX
14965 ) | sed "s/^/$as_me: WARNING: /" >&2
14966 ;;
14967esac
14968{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14969echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14970if test "${ac_cv_header_opagent_h+set}" = set; then
14971 echo $ECHO_N "(cached) $ECHO_C" >&6
14972else
14973 ac_cv_header_opagent_h=$ac_header_preproc
14974fi
14975{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14976echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14977
14978fi
14979if test $ac_cv_header_opagent_h = yes; then
14980 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014981else
14982
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014983 echo "Error! You need to have opagent.h around."
14984 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014985
14986fi
14987
14988
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014989 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014990
14991else
14992
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014993 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014994
14995
14996fi
14997
14998
14999cat >>confdefs.h <<_ACEOF
15000#define USE_OPROFILE $USE_OPROFILE
15001_ACEOF
15002
15003
15004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015005
15006
15007
15008
15009
Reid Spencer59473af2004-12-25 07:31:29 +000015010ac_header_dirent=no
15011for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015012 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15013{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15014echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015017else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015018 cat >conftest.$ac_ext <<_ACEOF
15019/* confdefs.h. */
15020_ACEOF
15021cat confdefs.h >>conftest.$ac_ext
15022cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015023/* end confdefs.h. */
15024#include <sys/types.h>
15025#include <$ac_hdr>
15026
15027int
15028main ()
15029{
15030if ((DIR *) 0)
15031return 0;
15032 ;
15033 return 0;
15034}
15035_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015036rm -f conftest.$ac_objext
15037if { (ac_try="$ac_compile"
15038case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15041esac
15042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_compile") 2>conftest.er1
15044 ac_status=$?
15045 grep -v '^ *+' conftest.er1 >conftest.err
15046 rm -f conftest.er1
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
15050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15051 { (case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15054esac
15055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_try") 2>&5
15057 ac_status=$?
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; } &&
15060 { ac_try='test -s conftest.$ac_objext'
15061 { (case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064esac
15065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_try") 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015070 eval "$as_ac_Header=yes"
15071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015072 echo "$as_me: failed program was:" >&5
15073sed 's/^/| /' conftest.$ac_ext >&5
15074
15075 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015077
Reid Spencera773bd52006-08-04 18:18:08 +000015078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015080ac_res=`eval echo '${'$as_ac_Header'}'`
15081 { echo "$as_me:$LINENO: result: $ac_res" >&5
15082echo "${ECHO_T}$ac_res" >&6; }
15083if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015084 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015085#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015086_ACEOF
15087
15088ac_header_dirent=$ac_hdr; break
15089fi
15090
15091done
15092# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15093if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015094 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15095echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15096if test "${ac_cv_search_opendir+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015098else
15099 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015100cat >conftest.$ac_ext <<_ACEOF
15101/* confdefs.h. */
15102_ACEOF
15103cat confdefs.h >>conftest.$ac_ext
15104cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015105/* end confdefs.h. */
15106
Reid Spencera773bd52006-08-04 18:18:08 +000015107/* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015110#ifdef __cplusplus
15111extern "C"
15112#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015113char opendir ();
15114int
15115main ()
15116{
Reid Spencera773bd52006-08-04 18:18:08 +000015117return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015118 ;
15119 return 0;
15120}
15121_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015122for ac_lib in '' dir; do
15123 if test -z "$ac_lib"; then
15124 ac_res="none required"
15125 else
15126 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015128 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015129 rm -f conftest.$ac_objext conftest$ac_exeext
15130if { (ac_try="$ac_link"
15131case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134esac
15135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_link") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15144 { (case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15147esac
15148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_try") 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try='test -s conftest$ac_exeext'
15154 { (case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15157esac
15158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_try") 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015163 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015164else
15165 echo "$as_me: failed program was:" >&5
15166sed 's/^/| /' conftest.$ac_ext >&5
15167
15168
Reid Spencer59473af2004-12-25 07:31:29 +000015169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015170
Bill Wendlingebcceee2009-04-18 11:20:33 +000015171rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015172 conftest$ac_exeext
15173 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015174 break
Reid Spencer59473af2004-12-25 07:31:29 +000015175fi
Reid Spencera773bd52006-08-04 18:18:08 +000015176done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015177if test "${ac_cv_search_opendir+set}" = set; then
15178 :
Reid Spencera773bd52006-08-04 18:18:08 +000015179else
15180 ac_cv_search_opendir=no
15181fi
15182rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015183LIBS=$ac_func_search_save_LIBS
15184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015185{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15186echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015187ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015188if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015190
15191fi
15192
15193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015194 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15195echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15196if test "${ac_cv_search_opendir+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015198else
15199 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015200cat >conftest.$ac_ext <<_ACEOF
15201/* confdefs.h. */
15202_ACEOF
15203cat confdefs.h >>conftest.$ac_ext
15204cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015205/* end confdefs.h. */
15206
Reid Spencera773bd52006-08-04 18:18:08 +000015207/* Override any GCC internal prototype to avoid an error.
15208 Use char because int might match the return type of a GCC
15209 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015210#ifdef __cplusplus
15211extern "C"
15212#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015213char opendir ();
15214int
15215main ()
15216{
Reid Spencera773bd52006-08-04 18:18:08 +000015217return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015218 ;
15219 return 0;
15220}
15221_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015222for ac_lib in '' x; do
15223 if test -z "$ac_lib"; then
15224 ac_res="none required"
15225 else
15226 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015228 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015229 rm -f conftest.$ac_objext conftest$ac_exeext
15230if { (ac_try="$ac_link"
15231case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_link") 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244 { (case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15247esac
15248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest$ac_exeext'
15254 { (case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257esac
15258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_try") 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015263 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015264else
15265 echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
15268
Reid Spencer59473af2004-12-25 07:31:29 +000015269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015270
Bill Wendlingebcceee2009-04-18 11:20:33 +000015271rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015272 conftest$ac_exeext
15273 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015274 break
Reid Spencer59473af2004-12-25 07:31:29 +000015275fi
Reid Spencera773bd52006-08-04 18:18:08 +000015276done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015277if test "${ac_cv_search_opendir+set}" = set; then
15278 :
Reid Spencera773bd52006-08-04 18:18:08 +000015279else
15280 ac_cv_search_opendir=no
15281fi
15282rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015283LIBS=$ac_func_search_save_LIBS
15284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015285{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15286echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015287ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015288if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015290
15291fi
15292
15293fi
15294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015295{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15296echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15297if test "${ac_cv_header_mmap_anon+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015299else
15300 ac_ext=c
15301ac_cpp='$CPP $CPPFLAGS'
15302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15304ac_compiler_gnu=$ac_cv_c_compiler_gnu
15305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015306 cat >conftest.$ac_ext <<_ACEOF
15307/* confdefs.h. */
15308_ACEOF
15309cat confdefs.h >>conftest.$ac_ext
15310cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015311/* end confdefs.h. */
15312#include <sys/mman.h>
15313#include <unistd.h>
15314#include <fcntl.h>
15315int
15316main ()
15317{
15318mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15319 ;
15320 return 0;
15321}
15322_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015323rm -f conftest.$ac_objext
15324if { (ac_try="$ac_compile"
15325case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328esac
15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_compile") 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15341esac
15342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351esac
15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015357 ac_cv_header_mmap_anon=yes
15358else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015359 echo "$as_me: failed program was:" >&5
15360sed 's/^/| /' conftest.$ac_ext >&5
15361
15362 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015364
Reid Spencera773bd52006-08-04 18:18:08 +000015365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015366 ac_ext=c
15367ac_cpp='$CPP $CPPFLAGS'
15368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15370ac_compiler_gnu=$ac_cv_c_compiler_gnu
15371
15372
15373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015374{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15375echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015376if test "$ac_cv_header_mmap_anon" = yes; then
15377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015378cat >>confdefs.h <<\_ACEOF
15379#define HAVE_MMAP_ANONYMOUS 1
15380_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015381
15382fi
15383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015384{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15385echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15386if test "${ac_cv_header_stat_broken+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015389 cat >conftest.$ac_ext <<_ACEOF
15390/* confdefs.h. */
15391_ACEOF
15392cat confdefs.h >>conftest.$ac_ext
15393cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015394/* end confdefs.h. */
15395#include <sys/types.h>
15396#include <sys/stat.h>
15397
Reid Spencera773bd52006-08-04 18:18:08 +000015398#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015399# if S_ISBLK (S_IFDIR)
15400You lose.
15401# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015402#endif
15403
Reid Spencera773bd52006-08-04 18:18:08 +000015404#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015405# if S_ISBLK (S_IFCHR)
15406You lose.
15407# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015408#endif
15409
Reid Spencera773bd52006-08-04 18:18:08 +000015410#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015411# if S_ISLNK (S_IFREG)
15412You lose.
15413# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015414#endif
15415
Reid Spencera773bd52006-08-04 18:18:08 +000015416#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015417# if S_ISSOCK (S_IFREG)
15418You lose.
15419# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015420#endif
15421
15422_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15424 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015425 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015426else
15427 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015429rm -f conftest*
15430
Reid Spencer59473af2004-12-25 07:31:29 +000015431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015432{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15433echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015434if test $ac_cv_header_stat_broken = yes; then
15435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015436cat >>confdefs.h <<\_ACEOF
15437#define STAT_MACROS_BROKEN 1
15438_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015439
15440fi
15441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015442{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15443echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15444if test "${ac_cv_header_stdc+set}" = set; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015447 cat >conftest.$ac_ext <<_ACEOF
15448/* confdefs.h. */
15449_ACEOF
15450cat confdefs.h >>conftest.$ac_ext
15451cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015453#include <stdlib.h>
15454#include <stdarg.h>
15455#include <string.h>
15456#include <float.h>
15457
John Criswell0c38eaf2003-09-10 15:17:25 +000015458int
15459main ()
15460{
15461
15462 ;
15463 return 0;
15464}
John Criswell7a73b802003-06-30 21:59:07 +000015465_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015466rm -f conftest.$ac_objext
15467if { (ac_try="$ac_compile"
15468case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15471esac
15472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_compile") 2>conftest.er1
15474 ac_status=$?
15475 grep -v '^ *+' conftest.er1 >conftest.err
15476 rm -f conftest.er1
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15481 { (case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15484esac
15485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_try") 2>&5
15487 ac_status=$?
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } &&
15490 { ac_try='test -s conftest.$ac_objext'
15491 { (case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15494esac
15495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_try") 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015500 ac_cv_header_stdc=yes
15501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015502 echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015506fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015507
Reid Spencera773bd52006-08-04 18:18:08 +000015508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015509
15510if test $ac_cv_header_stdc = yes; then
15511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015512 cat >conftest.$ac_ext <<_ACEOF
15513/* confdefs.h. */
15514_ACEOF
15515cat confdefs.h >>conftest.$ac_ext
15516cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015517/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015518#include <string.h>
15519
15520_ACEOF
15521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015522 $EGREP "memchr" >/dev/null 2>&1; then
15523 :
John Criswell7a73b802003-06-30 21:59:07 +000015524else
15525 ac_cv_header_stdc=no
15526fi
15527rm -f conftest*
15528
15529fi
15530
15531if test $ac_cv_header_stdc = yes; then
15532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015533 cat >conftest.$ac_ext <<_ACEOF
15534/* confdefs.h. */
15535_ACEOF
15536cat confdefs.h >>conftest.$ac_ext
15537cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015539#include <stdlib.h>
15540
15541_ACEOF
15542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015543 $EGREP "free" >/dev/null 2>&1; then
15544 :
John Criswell7a73b802003-06-30 21:59:07 +000015545else
15546 ac_cv_header_stdc=no
15547fi
15548rm -f conftest*
15549
15550fi
15551
15552if test $ac_cv_header_stdc = yes; then
15553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015554 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015555 :
15556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015557 cat >conftest.$ac_ext <<_ACEOF
15558/* confdefs.h. */
15559_ACEOF
15560cat confdefs.h >>conftest.$ac_ext
15561cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015562/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015563#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015564#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015565#if ((' ' & 0x0FF) == 0x020)
15566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15568#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015569# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015570 (('a' <= (c) && (c) <= 'i') \
15571 || ('j' <= (c) && (c) <= 'r') \
15572 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15574#endif
15575
15576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15577int
15578main ()
15579{
15580 int i;
15581 for (i = 0; i < 256; i++)
15582 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015583 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015584 return 2;
15585 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015586}
15587_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015588rm -f conftest$ac_exeext
15589if { (ac_try="$ac_link"
15590case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15593esac
15594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_link") 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15602esac
15603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 :
John Criswell7a73b802003-06-30 21:59:07 +000015609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015610 echo "$as_me: program exited with status $ac_status" >&5
15611echo "$as_me: failed program was:" >&5
15612sed 's/^/| /' conftest.$ac_ext >&5
15613
15614( exit $ac_status )
15615ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015617rm -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 +000015618fi
15619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015620
John Criswell7a73b802003-06-30 21:59:07 +000015621fi
15622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015623{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15624echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015625if test $ac_cv_header_stdc = yes; then
15626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015627cat >>confdefs.h <<\_ACEOF
15628#define STDC_HEADERS 1
15629_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015630
15631fi
15632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015633{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15634echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15635if test "${ac_cv_header_sys_wait_h+set}" = set; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015638 cat >conftest.$ac_ext <<_ACEOF
15639/* confdefs.h. */
15640_ACEOF
15641cat confdefs.h >>conftest.$ac_ext
15642cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015644#include <sys/types.h>
15645#include <sys/wait.h>
15646#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015647# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015648#endif
15649#ifndef WIFEXITED
15650# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15651#endif
15652
John Criswell7a73b802003-06-30 21:59:07 +000015653int
15654main ()
15655{
15656 int s;
15657 wait (&s);
15658 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15659 ;
15660 return 0;
15661}
15662_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015663rm -f conftest.$ac_objext
15664if { (ac_try="$ac_compile"
15665case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15668esac
15669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_compile") 2>conftest.er1
15671 ac_status=$?
15672 grep -v '^ *+' conftest.er1 >conftest.err
15673 rm -f conftest.er1
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15678 { (case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15681esac
15682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_try") 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest.$ac_objext'
15688 { (case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15691esac
15692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_try") 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015697 ac_cv_header_sys_wait_h=yes
15698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015699 echo "$as_me: failed program was:" >&5
15700sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015703fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015704
Reid Spencera773bd52006-08-04 18:18:08 +000015705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015707{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15708echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015709if test $ac_cv_header_sys_wait_h = yes; then
15710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015711cat >>confdefs.h <<\_ACEOF
15712#define HAVE_SYS_WAIT_H 1
15713_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015714
15715fi
15716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015717{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15718echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15719if test "${ac_cv_header_time+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015722 cat >conftest.$ac_ext <<_ACEOF
15723/* confdefs.h. */
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015727/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015728#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015729#include <sys/time.h>
15730#include <time.h>
15731
15732int
15733main ()
15734{
15735if ((struct tm *) 0)
15736return 0;
15737 ;
15738 return 0;
15739}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015740_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015741rm -f conftest.$ac_objext
15742if { (ac_try="$ac_compile"
15743case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15746esac
15747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_compile") 2>conftest.er1
15749 ac_status=$?
15750 grep -v '^ *+' conftest.er1 >conftest.err
15751 rm -f conftest.er1
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } &&
15755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15756 { (case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15759esac
15760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_try") 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest.$ac_objext'
15766 { (case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769esac
15770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_try") 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015775 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015776else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015777 echo "$as_me: failed program was:" >&5
15778sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015781fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015782
Reid Spencera773bd52006-08-04 18:18:08 +000015783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015784fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015785{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15786echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015787if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015789cat >>confdefs.h <<\_ACEOF
15790#define TIME_WITH_SYS_TIME 1
15791_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015792
15793fi
15794
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015796
15797
15798
15799
15800
15801
Reid Spencer59473af2004-12-25 07:31:29 +000015802for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015803do
15804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810fi
15811ac_res=`eval echo '${'$as_ac_Header'}'`
15812 { echo "$as_me:$LINENO: result: $ac_res" >&5
15813echo "${ECHO_T}$ac_res" >&6; }
15814else
15815 # Is the header compilable?
15816{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15818cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824$ac_includes_default
15825#include <$ac_header>
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (ac_try="$ac_compile"
15829case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15832esac
15833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_compile") 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15842 { (case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15845esac
15846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_try") 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15855esac
15856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_try") 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_header_compiler=yes
15862else
15863 echo "$as_me: failed program was:" >&5
15864sed 's/^/| /' conftest.$ac_ext >&5
15865
15866 ac_header_compiler=no
15867fi
15868
15869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15870{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15871echo "${ECHO_T}$ac_header_compiler" >&6; }
15872
15873# Is the header present?
15874{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15876cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882#include <$ac_header>
15883_ACEOF
15884if { (ac_try="$ac_cpp conftest.$ac_ext"
15885case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15888esac
15889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } >/dev/null; then
15897 if test -s conftest.err; then
15898 ac_cpp_err=$ac_c_preproc_warn_flag
15899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15900 else
15901 ac_cpp_err=
15902 fi
15903else
15904 ac_cpp_err=yes
15905fi
15906if test -z "$ac_cpp_err"; then
15907 ac_header_preproc=yes
15908else
15909 echo "$as_me: failed program was:" >&5
15910sed 's/^/| /' conftest.$ac_ext >&5
15911
15912 ac_header_preproc=no
15913fi
15914
15915rm -f conftest.err conftest.$ac_ext
15916{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15917echo "${ECHO_T}$ac_header_preproc" >&6; }
15918
15919# So? What about this header?
15920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15921 yes:no: )
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15926 ac_header_preproc=yes
15927 ;;
15928 no:yes:* )
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15936echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15941 ( cat <<\_ASBOX
15942## ----------------------------------- ##
15943## Report this to llvmbugs@cs.uiuc.edu ##
15944## ----------------------------------- ##
15945_ASBOX
15946 ) | sed "s/^/$as_me: WARNING: /" >&2
15947 ;;
15948esac
15949{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15953else
15954 eval "$as_ac_Header=\$ac_header_preproc"
15955fi
15956ac_res=`eval echo '${'$as_ac_Header'}'`
15957 { echo "$as_me:$LINENO: result: $ac_res" >&5
15958echo "${ECHO_T}$ac_res" >&6; }
15959
15960fi
15961if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015962 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015964_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015965
15966fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015967
Reid Spencer59473af2004-12-25 07:31:29 +000015968done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015970
15971
15972
15973
15974
15975
Douglas Gregor071d73d2009-05-18 17:21:34 +000015976for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015977do
15978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984fi
15985ac_res=`eval echo '${'$as_ac_Header'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987echo "${ECHO_T}$ac_res" >&6; }
15988else
15989 # Is the header compilable?
15990{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15992cat >conftest.$ac_ext <<_ACEOF
15993/* confdefs.h. */
15994_ACEOF
15995cat confdefs.h >>conftest.$ac_ext
15996cat >>conftest.$ac_ext <<_ACEOF
15997/* end confdefs.h. */
15998$ac_includes_default
15999#include <$ac_header>
16000_ACEOF
16001rm -f conftest.$ac_objext
16002if { (ac_try="$ac_compile"
16003case "(($ac_try" in
16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 *) ac_try_echo=$ac_try;;
16006esac
16007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008 (eval "$ac_compile") 2>conftest.er1
16009 ac_status=$?
16010 grep -v '^ *+' conftest.er1 >conftest.err
16011 rm -f conftest.er1
16012 cat conftest.err >&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016 { (case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16019esac
16020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_try") 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest.$ac_objext'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029esac
16030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_header_compiler=yes
16036else
16037 echo "$as_me: failed program was:" >&5
16038sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ac_header_compiler=no
16041fi
16042
16043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045echo "${ECHO_T}$ac_header_compiler" >&6; }
16046
16047# Is the header present?
16048{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050cat >conftest.$ac_ext <<_ACEOF
16051/* confdefs.h. */
16052_ACEOF
16053cat confdefs.h >>conftest.$ac_ext
16054cat >>conftest.$ac_ext <<_ACEOF
16055/* end confdefs.h. */
16056#include <$ac_header>
16057_ACEOF
16058if { (ac_try="$ac_cpp conftest.$ac_ext"
16059case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062esac
16063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } >/dev/null; then
16071 if test -s conftest.err; then
16072 ac_cpp_err=$ac_c_preproc_warn_flag
16073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16074 else
16075 ac_cpp_err=
16076 fi
16077else
16078 ac_cpp_err=yes
16079fi
16080if test -z "$ac_cpp_err"; then
16081 ac_header_preproc=yes
16082else
16083 echo "$as_me: failed program was:" >&5
16084sed 's/^/| /' conftest.$ac_ext >&5
16085
16086 ac_header_preproc=no
16087fi
16088
16089rm -f conftest.err conftest.$ac_ext
16090{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091echo "${ECHO_T}$ac_header_preproc" >&6; }
16092
16093# So? What about this header?
16094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16095 yes:no: )
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16099echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16100 ac_header_preproc=yes
16101 ;;
16102 no:yes:* )
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16104echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16106echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16108echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16110echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16112echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16114echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16115 ( cat <<\_ASBOX
16116## ----------------------------------- ##
16117## Report this to llvmbugs@cs.uiuc.edu ##
16118## ----------------------------------- ##
16119_ASBOX
16120 ) | sed "s/^/$as_me: WARNING: /" >&2
16121 ;;
16122esac
16123{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16127else
16128 eval "$as_ac_Header=\$ac_header_preproc"
16129fi
16130ac_res=`eval echo '${'$as_ac_Header'}'`
16131 { echo "$as_me:$LINENO: result: $ac_res" >&5
16132echo "${ECHO_T}$ac_res" >&6; }
16133
16134fi
16135if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016136 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016138_ACEOF
16139
16140fi
16141
16142done
16143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016144
16145
Douglas Gregor071d73d2009-05-18 17:21:34 +000016146for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016147do
16148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16154fi
16155ac_res=`eval echo '${'$as_ac_Header'}'`
16156 { echo "$as_me:$LINENO: result: $ac_res" >&5
16157echo "${ECHO_T}$ac_res" >&6; }
16158else
16159 # Is the header compilable?
16160{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16162cat >conftest.$ac_ext <<_ACEOF
16163/* confdefs.h. */
16164_ACEOF
16165cat confdefs.h >>conftest.$ac_ext
16166cat >>conftest.$ac_ext <<_ACEOF
16167/* end confdefs.h. */
16168$ac_includes_default
16169#include <$ac_header>
16170_ACEOF
16171rm -f conftest.$ac_objext
16172if { (ac_try="$ac_compile"
16173case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16176esac
16177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_compile") 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16186 { (case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16189esac
16190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_try") 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 { ac_try='test -s conftest.$ac_objext'
16196 { (case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16199esac
16200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_try") 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_header_compiler=yes
16206else
16207 echo "$as_me: failed program was:" >&5
16208sed 's/^/| /' conftest.$ac_ext >&5
16209
16210 ac_header_compiler=no
16211fi
16212
16213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16215echo "${ECHO_T}$ac_header_compiler" >&6; }
16216
16217# Is the header present?
16218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16220cat >conftest.$ac_ext <<_ACEOF
16221/* confdefs.h. */
16222_ACEOF
16223cat confdefs.h >>conftest.$ac_ext
16224cat >>conftest.$ac_ext <<_ACEOF
16225/* end confdefs.h. */
16226#include <$ac_header>
16227_ACEOF
16228if { (ac_try="$ac_cpp conftest.$ac_ext"
16229case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16232esac
16233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } >/dev/null; then
16241 if test -s conftest.err; then
16242 ac_cpp_err=$ac_c_preproc_warn_flag
16243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16244 else
16245 ac_cpp_err=
16246 fi
16247else
16248 ac_cpp_err=yes
16249fi
16250if test -z "$ac_cpp_err"; then
16251 ac_header_preproc=yes
16252else
16253 echo "$as_me: failed program was:" >&5
16254sed 's/^/| /' conftest.$ac_ext >&5
16255
16256 ac_header_preproc=no
16257fi
16258
16259rm -f conftest.err conftest.$ac_ext
16260{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16261echo "${ECHO_T}$ac_header_preproc" >&6; }
16262
16263# So? What about this header?
16264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16265 yes:no: )
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16270 ac_header_preproc=yes
16271 ;;
16272 no:yes:* )
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16285 ( cat <<\_ASBOX
16286## ----------------------------------- ##
16287## Report this to llvmbugs@cs.uiuc.edu ##
16288## ----------------------------------- ##
16289_ASBOX
16290 ) | sed "s/^/$as_me: WARNING: /" >&2
16291 ;;
16292esac
16293{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16297else
16298 eval "$as_ac_Header=\$ac_header_preproc"
16299fi
16300ac_res=`eval echo '${'$as_ac_Header'}'`
16301 { echo "$as_me:$LINENO: result: $ac_res" >&5
16302echo "${ECHO_T}$ac_res" >&6; }
16303
16304fi
16305if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016306 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016308_ACEOF
16309
16310fi
16311
16312done
Reid Spencer59473af2004-12-25 07:31:29 +000016313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016314
16315
16316
16317
Daniel Dunbar3e462932011-02-03 02:40:02 +000016318
16319for 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 +000016320do
16321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16327fi
16328ac_res=`eval echo '${'$as_ac_Header'}'`
16329 { echo "$as_me:$LINENO: result: $ac_res" >&5
16330echo "${ECHO_T}$ac_res" >&6; }
16331else
16332 # Is the header compilable?
16333{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16335cat >conftest.$ac_ext <<_ACEOF
16336/* confdefs.h. */
16337_ACEOF
16338cat confdefs.h >>conftest.$ac_ext
16339cat >>conftest.$ac_ext <<_ACEOF
16340/* end confdefs.h. */
16341$ac_includes_default
16342#include <$ac_header>
16343_ACEOF
16344rm -f conftest.$ac_objext
16345if { (ac_try="$ac_compile"
16346case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16349esac
16350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_compile") 2>conftest.er1
16352 ac_status=$?
16353 grep -v '^ *+' conftest.er1 >conftest.err
16354 rm -f conftest.er1
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
16358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16359 { (case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_try") 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; } &&
16368 { ac_try='test -s conftest.$ac_objext'
16369 { (case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372esac
16373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_try") 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_header_compiler=yes
16379else
16380 echo "$as_me: failed program was:" >&5
16381sed 's/^/| /' conftest.$ac_ext >&5
16382
16383 ac_header_compiler=no
16384fi
16385
16386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16388echo "${ECHO_T}$ac_header_compiler" >&6; }
16389
16390# Is the header present?
16391{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16392echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16393cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h. */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h. */
16399#include <$ac_header>
16400_ACEOF
16401if { (ac_try="$ac_cpp conftest.$ac_ext"
16402case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405esac
16406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16408 ac_status=$?
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } >/dev/null; then
16414 if test -s conftest.err; then
16415 ac_cpp_err=$ac_c_preproc_warn_flag
16416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16417 else
16418 ac_cpp_err=
16419 fi
16420else
16421 ac_cpp_err=yes
16422fi
16423if test -z "$ac_cpp_err"; then
16424 ac_header_preproc=yes
16425else
16426 echo "$as_me: failed program was:" >&5
16427sed 's/^/| /' conftest.$ac_ext >&5
16428
16429 ac_header_preproc=no
16430fi
16431
16432rm -f conftest.err conftest.$ac_ext
16433{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16434echo "${ECHO_T}$ac_header_preproc" >&6; }
16435
16436# So? What about this header?
16437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16438 yes:no: )
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16443 ac_header_preproc=yes
16444 ;;
16445 no:yes:* )
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16453echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16458 ( cat <<\_ASBOX
16459## ----------------------------------- ##
16460## Report this to llvmbugs@cs.uiuc.edu ##
16461## ----------------------------------- ##
16462_ASBOX
16463 ) | sed "s/^/$as_me: WARNING: /" >&2
16464 ;;
16465esac
16466{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16470else
16471 eval "$as_ac_Header=\$ac_header_preproc"
16472fi
16473ac_res=`eval echo '${'$as_ac_Header'}'`
16474 { echo "$as_me:$LINENO: result: $ac_res" >&5
16475echo "${ECHO_T}$ac_res" >&6; }
16476
16477fi
16478if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016479 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016481_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016482
16483fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016484
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016485done
16486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016487
16488
16489
16490
Douglas Gregor01746742009-05-11 18:05:52 +000016491for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016492do
16493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499fi
16500ac_res=`eval echo '${'$as_ac_Header'}'`
16501 { echo "$as_me:$LINENO: result: $ac_res" >&5
16502echo "${ECHO_T}$ac_res" >&6; }
16503else
16504 # Is the header compilable?
16505{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16507cat >conftest.$ac_ext <<_ACEOF
16508/* confdefs.h. */
16509_ACEOF
16510cat confdefs.h >>conftest.$ac_ext
16511cat >>conftest.$ac_ext <<_ACEOF
16512/* end confdefs.h. */
16513$ac_includes_default
16514#include <$ac_header>
16515_ACEOF
16516rm -f conftest.$ac_objext
16517if { (ac_try="$ac_compile"
16518case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521esac
16522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_compile") 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
16530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16531 { (case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534esac
16535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_try") 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; } &&
16540 { ac_try='test -s conftest.$ac_objext'
16541 { (case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16544esac
16545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_try") 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ac_header_compiler=yes
16551else
16552 echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555 ac_header_compiler=no
16556fi
16557
16558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16560echo "${ECHO_T}$ac_header_compiler" >&6; }
16561
16562# Is the header present?
16563{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16565cat >conftest.$ac_ext <<_ACEOF
16566/* confdefs.h. */
16567_ACEOF
16568cat confdefs.h >>conftest.$ac_ext
16569cat >>conftest.$ac_ext <<_ACEOF
16570/* end confdefs.h. */
16571#include <$ac_header>
16572_ACEOF
16573if { (ac_try="$ac_cpp conftest.$ac_ext"
16574case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16577esac
16578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16580 ac_status=$?
16581 grep -v '^ *+' conftest.er1 >conftest.err
16582 rm -f conftest.er1
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } >/dev/null; then
16586 if test -s conftest.err; then
16587 ac_cpp_err=$ac_c_preproc_warn_flag
16588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16589 else
16590 ac_cpp_err=
16591 fi
16592else
16593 ac_cpp_err=yes
16594fi
16595if test -z "$ac_cpp_err"; then
16596 ac_header_preproc=yes
16597else
16598 echo "$as_me: failed program was:" >&5
16599sed 's/^/| /' conftest.$ac_ext >&5
16600
16601 ac_header_preproc=no
16602fi
16603
16604rm -f conftest.err conftest.$ac_ext
16605{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16606echo "${ECHO_T}$ac_header_preproc" >&6; }
16607
16608# So? What about this header?
16609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16610 yes:no: )
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16615 ac_header_preproc=yes
16616 ;;
16617 no:yes:* )
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16630 ( cat <<\_ASBOX
16631## ----------------------------------- ##
16632## Report this to llvmbugs@cs.uiuc.edu ##
16633## ----------------------------------- ##
16634_ASBOX
16635 ) | sed "s/^/$as_me: WARNING: /" >&2
16636 ;;
16637esac
16638{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16642else
16643 eval "$as_ac_Header=\$ac_header_preproc"
16644fi
16645ac_res=`eval echo '${'$as_ac_Header'}'`
16646 { echo "$as_me:$LINENO: result: $ac_res" >&5
16647echo "${ECHO_T}$ac_res" >&6; }
16648
16649fi
16650if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016651 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016653_ACEOF
16654
16655fi
16656
16657done
16658
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016659
16660for ac_header in valgrind/valgrind.h
16661do
16662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
16668fi
16669ac_res=`eval echo '${'$as_ac_Header'}'`
16670 { echo "$as_me:$LINENO: result: $ac_res" >&5
16671echo "${ECHO_T}$ac_res" >&6; }
16672else
16673 # Is the header compilable?
16674{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16676cat >conftest.$ac_ext <<_ACEOF
16677/* confdefs.h. */
16678_ACEOF
16679cat confdefs.h >>conftest.$ac_ext
16680cat >>conftest.$ac_ext <<_ACEOF
16681/* end confdefs.h. */
16682$ac_includes_default
16683#include <$ac_header>
16684_ACEOF
16685rm -f conftest.$ac_objext
16686if { (ac_try="$ac_compile"
16687case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16690esac
16691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_compile") 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700 { (case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703esac
16704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_try") 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest.$ac_objext'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_header_compiler=yes
16720else
16721 echo "$as_me: failed program was:" >&5
16722sed 's/^/| /' conftest.$ac_ext >&5
16723
16724 ac_header_compiler=no
16725fi
16726
16727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16729echo "${ECHO_T}$ac_header_compiler" >&6; }
16730
16731# Is the header present?
16732{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16733echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16734cat >conftest.$ac_ext <<_ACEOF
16735/* confdefs.h. */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h. */
16740#include <$ac_header>
16741_ACEOF
16742if { (ac_try="$ac_cpp conftest.$ac_ext"
16743case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746esac
16747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16749 ac_status=$?
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } >/dev/null; then
16755 if test -s conftest.err; then
16756 ac_cpp_err=$ac_c_preproc_warn_flag
16757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16758 else
16759 ac_cpp_err=
16760 fi
16761else
16762 ac_cpp_err=yes
16763fi
16764if test -z "$ac_cpp_err"; then
16765 ac_header_preproc=yes
16766else
16767 echo "$as_me: failed program was:" >&5
16768sed 's/^/| /' conftest.$ac_ext >&5
16769
16770 ac_header_preproc=no
16771fi
16772
16773rm -f conftest.err conftest.$ac_ext
16774{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16775echo "${ECHO_T}$ac_header_preproc" >&6; }
16776
16777# So? What about this header?
16778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16779 yes:no: )
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16784 ac_header_preproc=yes
16785 ;;
16786 no:yes:* )
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16794echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16799 ( cat <<\_ASBOX
16800## ----------------------------------- ##
16801## Report this to llvmbugs@cs.uiuc.edu ##
16802## ----------------------------------- ##
16803_ASBOX
16804 ) | sed "s/^/$as_me: WARNING: /" >&2
16805 ;;
16806esac
16807{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16811else
16812 eval "$as_ac_Header=\$ac_header_preproc"
16813fi
16814ac_res=`eval echo '${'$as_ac_Header'}'`
16815 { echo "$as_me:$LINENO: result: $ac_res" >&5
16816echo "${ECHO_T}$ac_res" >&6; }
16817
16818fi
16819if test `eval echo '${'$as_ac_Header'}'` = yes; then
16820 cat >>confdefs.h <<_ACEOF
16821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16822_ACEOF
16823
16824fi
16825
16826done
16827
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016828
16829for ac_header in fenv.h
16830do
16831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16837fi
16838ac_res=`eval echo '${'$as_ac_Header'}'`
16839 { echo "$as_me:$LINENO: result: $ac_res" >&5
16840echo "${ECHO_T}$ac_res" >&6; }
16841else
16842 # Is the header compilable?
16843{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16845cat >conftest.$ac_ext <<_ACEOF
16846/* confdefs.h. */
16847_ACEOF
16848cat confdefs.h >>conftest.$ac_ext
16849cat >>conftest.$ac_ext <<_ACEOF
16850/* end confdefs.h. */
16851$ac_includes_default
16852#include <$ac_header>
16853_ACEOF
16854rm -f conftest.$ac_objext
16855if { (ac_try="$ac_compile"
16856case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859esac
16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_compile") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872esac
16873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest.$ac_objext'
16879 { (case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16882esac
16883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_try") 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_header_compiler=yes
16889else
16890 echo "$as_me: failed program was:" >&5
16891sed 's/^/| /' conftest.$ac_ext >&5
16892
16893 ac_header_compiler=no
16894fi
16895
16896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16898echo "${ECHO_T}$ac_header_compiler" >&6; }
16899
16900# Is the header present?
16901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16903cat >conftest.$ac_ext <<_ACEOF
16904/* confdefs.h. */
16905_ACEOF
16906cat confdefs.h >>conftest.$ac_ext
16907cat >>conftest.$ac_ext <<_ACEOF
16908/* end confdefs.h. */
16909#include <$ac_header>
16910_ACEOF
16911if { (ac_try="$ac_cpp conftest.$ac_ext"
16912case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16918 ac_status=$?
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } >/dev/null; then
16924 if test -s conftest.err; then
16925 ac_cpp_err=$ac_c_preproc_warn_flag
16926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16927 else
16928 ac_cpp_err=
16929 fi
16930else
16931 ac_cpp_err=yes
16932fi
16933if test -z "$ac_cpp_err"; then
16934 ac_header_preproc=yes
16935else
16936 echo "$as_me: failed program was:" >&5
16937sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_header_preproc=no
16940fi
16941
16942rm -f conftest.err conftest.$ac_ext
16943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16944echo "${ECHO_T}$ac_header_preproc" >&6; }
16945
16946# So? What about this header?
16947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16948 yes:no: )
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16953 ac_header_preproc=yes
16954 ;;
16955 no:yes:* )
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16968 ( cat <<\_ASBOX
16969## ----------------------------------- ##
16970## Report this to llvmbugs@cs.uiuc.edu ##
16971## ----------------------------------- ##
16972_ASBOX
16973 ) | sed "s/^/$as_me: WARNING: /" >&2
16974 ;;
16975esac
16976{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16980else
16981 eval "$as_ac_Header=\$ac_header_preproc"
16982fi
16983ac_res=`eval echo '${'$as_ac_Header'}'`
16984 { echo "$as_me:$LINENO: result: $ac_res" >&5
16985echo "${ECHO_T}$ac_res" >&6; }
16986
16987fi
16988if test `eval echo '${'$as_ac_Header'}'` = yes; then
16989 cat >>confdefs.h <<_ACEOF
16990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16991_ACEOF
16992
16993fi
16994
16995done
16996
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016997if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016998
16999for ac_header in pthread.h
17000do
17001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17007fi
17008ac_res=`eval echo '${'$as_ac_Header'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010echo "${ECHO_T}$ac_res" >&6; }
17011else
17012 # Is the header compilable?
17013{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17015cat >conftest.$ac_ext <<_ACEOF
17016/* confdefs.h. */
17017_ACEOF
17018cat confdefs.h >>conftest.$ac_ext
17019cat >>conftest.$ac_ext <<_ACEOF
17020/* end confdefs.h. */
17021$ac_includes_default
17022#include <$ac_header>
17023_ACEOF
17024rm -f conftest.$ac_objext
17025if { (ac_try="$ac_compile"
17026case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029esac
17030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_compile") 2>conftest.er1
17032 ac_status=$?
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17039 { (case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17042esac
17043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_try") 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; } &&
17048 { ac_try='test -s conftest.$ac_objext'
17049 { (case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052esac
17053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_try") 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
17058 ac_header_compiler=yes
17059else
17060 echo "$as_me: failed program was:" >&5
17061sed 's/^/| /' conftest.$ac_ext >&5
17062
17063 ac_header_compiler=no
17064fi
17065
17066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17067{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17068echo "${ECHO_T}$ac_header_compiler" >&6; }
17069
17070# Is the header present?
17071{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17072echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17073cat >conftest.$ac_ext <<_ACEOF
17074/* confdefs.h. */
17075_ACEOF
17076cat confdefs.h >>conftest.$ac_ext
17077cat >>conftest.$ac_ext <<_ACEOF
17078/* end confdefs.h. */
17079#include <$ac_header>
17080_ACEOF
17081if { (ac_try="$ac_cpp conftest.$ac_ext"
17082case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17085esac
17086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17088 ac_status=$?
17089 grep -v '^ *+' conftest.er1 >conftest.err
17090 rm -f conftest.er1
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } >/dev/null; then
17094 if test -s conftest.err; then
17095 ac_cpp_err=$ac_c_preproc_warn_flag
17096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17097 else
17098 ac_cpp_err=
17099 fi
17100else
17101 ac_cpp_err=yes
17102fi
17103if test -z "$ac_cpp_err"; then
17104 ac_header_preproc=yes
17105else
17106 echo "$as_me: failed program was:" >&5
17107sed 's/^/| /' conftest.$ac_ext >&5
17108
17109 ac_header_preproc=no
17110fi
17111
17112rm -f conftest.err conftest.$ac_ext
17113{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17114echo "${ECHO_T}$ac_header_preproc" >&6; }
17115
17116# So? What about this header?
17117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17118 yes:no: )
17119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17120echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17122echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17123 ac_header_preproc=yes
17124 ;;
17125 no:yes:* )
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17129echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17131echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17133echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17137echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17138 ( cat <<\_ASBOX
17139## ----------------------------------- ##
17140## Report this to llvmbugs@cs.uiuc.edu ##
17141## ----------------------------------- ##
17142_ASBOX
17143 ) | sed "s/^/$as_me: WARNING: /" >&2
17144 ;;
17145esac
17146{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150else
17151 eval "$as_ac_Header=\$ac_header_preproc"
17152fi
17153ac_res=`eval echo '${'$as_ac_Header'}'`
17154 { echo "$as_me:$LINENO: result: $ac_res" >&5
17155echo "${ECHO_T}$ac_res" >&6; }
17156
17157fi
17158if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017159 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017160#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017161_ACEOF
17162 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017163
17164else
17165 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017166
17167fi
17168
Reid Spencerbe3e4192007-08-17 05:45:26 +000017169done
Reid Spencer1000b732006-12-01 00:37:14 +000017170
17171else
17172 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017173
17174fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017175
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017176if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017177
17178
17179for ac_header in ffi.h ffi/ffi.h
17180do
17181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187fi
17188ac_res=`eval echo '${'$as_ac_Header'}'`
17189 { echo "$as_me:$LINENO: result: $ac_res" >&5
17190echo "${ECHO_T}$ac_res" >&6; }
17191else
17192 # Is the header compilable?
17193{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17195cat >conftest.$ac_ext <<_ACEOF
17196/* confdefs.h. */
17197_ACEOF
17198cat confdefs.h >>conftest.$ac_ext
17199cat >>conftest.$ac_ext <<_ACEOF
17200/* end confdefs.h. */
17201$ac_includes_default
17202#include <$ac_header>
17203_ACEOF
17204rm -f conftest.$ac_objext
17205if { (ac_try="$ac_compile"
17206case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_compile") 2>conftest.er1
17212 ac_status=$?
17213 grep -v '^ *+' conftest.er1 >conftest.err
17214 rm -f conftest.er1
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17219 { (case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17222esac
17223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_try") 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; } &&
17228 { ac_try='test -s conftest.$ac_objext'
17229 { (case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232esac
17233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_try") 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 ac_header_compiler=yes
17239else
17240 echo "$as_me: failed program was:" >&5
17241sed 's/^/| /' conftest.$ac_ext >&5
17242
17243 ac_header_compiler=no
17244fi
17245
17246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17248echo "${ECHO_T}$ac_header_compiler" >&6; }
17249
17250# Is the header present?
17251{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17253cat >conftest.$ac_ext <<_ACEOF
17254/* confdefs.h. */
17255_ACEOF
17256cat confdefs.h >>conftest.$ac_ext
17257cat >>conftest.$ac_ext <<_ACEOF
17258/* end confdefs.h. */
17259#include <$ac_header>
17260_ACEOF
17261if { (ac_try="$ac_cpp conftest.$ac_ext"
17262case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17265esac
17266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17268 ac_status=$?
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } >/dev/null; then
17274 if test -s conftest.err; then
17275 ac_cpp_err=$ac_c_preproc_warn_flag
17276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17277 else
17278 ac_cpp_err=
17279 fi
17280else
17281 ac_cpp_err=yes
17282fi
17283if test -z "$ac_cpp_err"; then
17284 ac_header_preproc=yes
17285else
17286 echo "$as_me: failed program was:" >&5
17287sed 's/^/| /' conftest.$ac_ext >&5
17288
17289 ac_header_preproc=no
17290fi
17291
17292rm -f conftest.err conftest.$ac_ext
17293{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17294echo "${ECHO_T}$ac_header_preproc" >&6; }
17295
17296# So? What about this header?
17297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17298 yes:no: )
17299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17302echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17303 ac_header_preproc=yes
17304 ;;
17305 no:yes:* )
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17311echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17313echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17317echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17318 ( cat <<\_ASBOX
17319## ----------------------------------- ##
17320## Report this to llvmbugs@cs.uiuc.edu ##
17321## ----------------------------------- ##
17322_ASBOX
17323 ) | sed "s/^/$as_me: WARNING: /" >&2
17324 ;;
17325esac
17326{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330else
17331 eval "$as_ac_Header=\$ac_header_preproc"
17332fi
17333ac_res=`eval echo '${'$as_ac_Header'}'`
17334 { echo "$as_me:$LINENO: result: $ac_res" >&5
17335echo "${ECHO_T}$ac_res" >&6; }
17336
17337fi
17338if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017339 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017341_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017342
17343fi
17344
17345done
17346
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017347fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017348
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017349
Eric Christopher654dee42010-06-22 21:01:04 +000017350for ac_header in CrashReporterClient.h
17351do
17352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358fi
17359ac_res=`eval echo '${'$as_ac_Header'}'`
17360 { echo "$as_me:$LINENO: result: $ac_res" >&5
17361echo "${ECHO_T}$ac_res" >&6; }
17362else
17363 # Is the header compilable?
17364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17366cat >conftest.$ac_ext <<_ACEOF
17367/* confdefs.h. */
17368_ACEOF
17369cat confdefs.h >>conftest.$ac_ext
17370cat >>conftest.$ac_ext <<_ACEOF
17371/* end confdefs.h. */
17372$ac_includes_default
17373#include <$ac_header>
17374_ACEOF
17375rm -f conftest.$ac_objext
17376if { (ac_try="$ac_compile"
17377case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_compile") 2>conftest.er1
17383 ac_status=$?
17384 grep -v '^ *+' conftest.er1 >conftest.err
17385 rm -f conftest.er1
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393esac
17394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest.$ac_objext'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403esac
17404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_header_compiler=yes
17410else
17411 echo "$as_me: failed program was:" >&5
17412sed 's/^/| /' conftest.$ac_ext >&5
17413
17414 ac_header_compiler=no
17415fi
17416
17417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17419echo "${ECHO_T}$ac_header_compiler" >&6; }
17420
17421# Is the header present?
17422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17424cat >conftest.$ac_ext <<_ACEOF
17425/* confdefs.h. */
17426_ACEOF
17427cat confdefs.h >>conftest.$ac_ext
17428cat >>conftest.$ac_ext <<_ACEOF
17429/* end confdefs.h. */
17430#include <$ac_header>
17431_ACEOF
17432if { (ac_try="$ac_cpp conftest.$ac_ext"
17433case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436esac
17437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } >/dev/null; then
17445 if test -s conftest.err; then
17446 ac_cpp_err=$ac_c_preproc_warn_flag
17447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17448 else
17449 ac_cpp_err=
17450 fi
17451else
17452 ac_cpp_err=yes
17453fi
17454if test -z "$ac_cpp_err"; then
17455 ac_header_preproc=yes
17456else
17457 echo "$as_me: failed program was:" >&5
17458sed 's/^/| /' conftest.$ac_ext >&5
17459
17460 ac_header_preproc=no
17461fi
17462
17463rm -f conftest.err conftest.$ac_ext
17464{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17465echo "${ECHO_T}$ac_header_preproc" >&6; }
17466
17467# So? What about this header?
17468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17469 yes:no: )
17470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17474 ac_header_preproc=yes
17475 ;;
17476 no:yes:* )
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17489 ( cat <<\_ASBOX
17490## ----------------------------------- ##
17491## Report this to llvmbugs@cs.uiuc.edu ##
17492## ----------------------------------- ##
17493_ASBOX
17494 ) | sed "s/^/$as_me: WARNING: /" >&2
17495 ;;
17496esac
17497{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17501else
17502 eval "$as_ac_Header=\$ac_header_preproc"
17503fi
17504ac_res=`eval echo '${'$as_ac_Header'}'`
17505 { echo "$as_me:$LINENO: result: $ac_res" >&5
17506echo "${ECHO_T}$ac_res" >&6; }
17507
17508fi
17509if test `eval echo '${'$as_ac_Header'}'` = yes; then
17510 cat >>confdefs.h <<_ACEOF
17511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17512_ACEOF
17513
17514fi
17515
17516done
17517
17518
Eric Christopher51e57132010-12-07 02:05:42 +000017519{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17520echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017521cat >conftest.$ac_ext <<_ACEOF
17522/* confdefs.h. */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017527extern const char *__crashreporter_info__;
17528 int main() {
17529 __crashreporter_info__ = "test";
17530 return 0;
17531 }
Eric Christopher481d4022010-12-03 07:45:22 +000017532
Eric Christopher481d4022010-12-03 07:45:22 +000017533_ACEOF
17534rm -f conftest.$ac_objext conftest$ac_exeext
17535if { (ac_try="$ac_link"
17536case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>conftest.er1
17542 ac_status=$?
17543 grep -v '^ *+' conftest.er1 >conftest.err
17544 rm -f conftest.er1
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552esac
17553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562esac
17563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017568 { echo "$as_me:$LINENO: result: yes" >&5
17569echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017570
17571cat >>confdefs.h <<\_ACEOF
17572#define HAVE_CRASHREPORTER_INFO 1
17573_ACEOF
17574
Eric Christopher51e57132010-12-07 02:05:42 +000017575else
17576 echo "$as_me: failed program was:" >&5
17577sed 's/^/| /' conftest.$ac_ext >&5
17578
17579 { echo "$as_me:$LINENO: result: no" >&5
17580echo "${ECHO_T}no" >&6; }
17581
17582cat >>confdefs.h <<\_ACEOF
17583#define HAVE_CRASHREPORTER_INFO 0
17584_ACEOF
17585
Eric Christopher481d4022010-12-03 07:45:22 +000017586fi
Eric Christopher654dee42010-06-22 21:01:04 +000017587
Eric Christopher51e57132010-12-07 02:05:42 +000017588rm -f core conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17590
17591
Reid Spencer8085cff2005-01-16 02:58:39 +000017592
Torok Edwin871384f2010-01-26 08:50:50 +000017593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017594 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17595echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17596if test "${ac_cv_huge_val_sanity+set}" = set; then
17597 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017598else
17599
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017600 ac_ext=cpp
17601ac_cpp='$CXXCPP $CPPFLAGS'
17602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017605
Eric Christopherc7718502010-03-02 05:06:54 +000017606 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017607 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017608 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017609 ac_cv_huge_val_sanity=yes
17610else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017611 cat >conftest.$ac_ext <<_ACEOF
17612/* confdefs.h. */
17613_ACEOF
17614cat confdefs.h >>conftest.$ac_ext
17615cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017616/* end confdefs.h. */
17617#include <math.h>
17618int
17619main ()
17620{
17621double x = HUGE_VAL; return x != x;
17622 ;
17623 return 0;
17624}
17625_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017626rm -f conftest$ac_exeext
17627if { (ac_try="$ac_link"
17628case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17631esac
17632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_link") 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17637 { (case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17640esac
17641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_try") 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017646 ac_cv_huge_val_sanity=yes
17647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017648 echo "$as_me: program exited with status $ac_status" >&5
17649echo "$as_me: failed program was:" >&5
17650sed 's/^/| /' conftest.$ac_ext >&5
17651
17652( exit $ac_status )
17653ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017655rm -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 +000017656fi
17657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017658
Eric Christopherc7718502010-03-02 05:06:54 +000017659 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017660 ac_ext=c
17661ac_cpp='$CPP $CPPFLAGS'
17662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17664ac_compiler_gnu=$ac_cv_c_compiler_gnu
17665
17666
17667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017668{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17669echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017670 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17671
17672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017673{ echo "$as_me:$LINENO: checking for pid_t" >&5
17674echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17675if test "${ac_cv_type_pid_t+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17677else
17678 cat >conftest.$ac_ext <<_ACEOF
17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
17683/* end confdefs.h. */
17684$ac_includes_default
17685typedef pid_t ac__type_new_;
17686int
17687main ()
17688{
17689if ((ac__type_new_ *) 0)
17690 return 0;
17691if (sizeof (ac__type_new_))
17692 return 0;
17693 ;
17694 return 0;
17695}
17696_ACEOF
17697rm -f conftest.$ac_objext
17698if { (ac_try="$ac_compile"
17699case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17702esac
17703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_compile") 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715esac
17716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_try") 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725esac
17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 ac_cv_type_pid_t=yes
17732else
17733 echo "$as_me: failed program was:" >&5
17734sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017736 ac_cv_type_pid_t=no
17737fi
17738
17739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17740fi
17741{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17742echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17743if test $ac_cv_type_pid_t = yes; then
17744 :
John Criswell7a73b802003-06-30 21:59:07 +000017745else
17746
17747cat >>confdefs.h <<_ACEOF
17748#define pid_t int
17749_ACEOF
17750
17751fi
17752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017753{ echo "$as_me:$LINENO: checking for size_t" >&5
17754echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17755if test "${ac_cv_type_size_t+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757else
17758 cat >conftest.$ac_ext <<_ACEOF
17759/* confdefs.h. */
17760_ACEOF
17761cat confdefs.h >>conftest.$ac_ext
17762cat >>conftest.$ac_ext <<_ACEOF
17763/* end confdefs.h. */
17764$ac_includes_default
17765typedef size_t ac__type_new_;
17766int
17767main ()
17768{
17769if ((ac__type_new_ *) 0)
17770 return 0;
17771if (sizeof (ac__type_new_))
17772 return 0;
17773 ;
17774 return 0;
17775}
17776_ACEOF
17777rm -f conftest.$ac_objext
17778if { (ac_try="$ac_compile"
17779case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17782esac
17783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_compile") 2>conftest.er1
17785 ac_status=$?
17786 grep -v '^ *+' conftest.er1 >conftest.err
17787 rm -f conftest.er1
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } &&
17791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17792 { (case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17795esac
17796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_try") 2>&5
17798 ac_status=$?
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; } &&
17801 { ac_try='test -s conftest.$ac_objext'
17802 { (case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17805esac
17806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_try") 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; }; then
17811 ac_cv_type_size_t=yes
17812else
17813 echo "$as_me: failed program was:" >&5
17814sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017816 ac_cv_type_size_t=no
17817fi
17818
17819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820fi
17821{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17822echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17823if test $ac_cv_type_size_t = yes; then
17824 :
John Criswell7a73b802003-06-30 21:59:07 +000017825else
17826
17827cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017828#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017829_ACEOF
17830
17831fi
17832
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017833
17834cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017835#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017836_ACEOF
17837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017838{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17839echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17840if test "${ac_cv_struct_tm+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017843 cat >conftest.$ac_ext <<_ACEOF
17844/* confdefs.h. */
17845_ACEOF
17846cat confdefs.h >>conftest.$ac_ext
17847cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017848/* end confdefs.h. */
17849#include <sys/types.h>
17850#include <time.h>
17851
17852int
17853main ()
17854{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017855struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017856 ;
17857 return 0;
17858}
17859_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017860rm -f conftest.$ac_objext
17861if { (ac_try="$ac_compile"
17862case "(($ac_try" in
17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864 *) ac_try_echo=$ac_try;;
17865esac
17866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867 (eval "$ac_compile") 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17875 { (case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17878esac
17879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_try") 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest.$ac_objext'
17885 { (case "(($ac_try" in
17886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887 *) ac_try_echo=$ac_try;;
17888esac
17889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890 (eval "$ac_try") 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017894 ac_cv_struct_tm=time.h
17895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017896 echo "$as_me: failed program was:" >&5
17897sed 's/^/| /' conftest.$ac_ext >&5
17898
17899 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017900fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017901
Reid Spencera773bd52006-08-04 18:18:08 +000017902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017904{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17905echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017906if test $ac_cv_struct_tm = sys/time.h; then
17907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017908cat >>confdefs.h <<\_ACEOF
17909#define TM_IN_SYS_TIME 1
17910_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017911
17912fi
17913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017914{ echo "$as_me:$LINENO: checking for int64_t" >&5
17915echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17916if test "${ac_cv_type_int64_t+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17918else
17919 cat >conftest.$ac_ext <<_ACEOF
17920/* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
17925$ac_includes_default
17926typedef int64_t ac__type_new_;
17927int
17928main ()
17929{
17930if ((ac__type_new_ *) 0)
17931 return 0;
17932if (sizeof (ac__type_new_))
17933 return 0;
17934 ;
17935 return 0;
17936}
17937_ACEOF
17938rm -f conftest.$ac_objext
17939if { (ac_try="$ac_compile"
17940case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17943esac
17944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_compile") 2>conftest.er1
17946 ac_status=$?
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17953 { (case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17956esac
17957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_try") 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
17963 { (case "(($ac_try" in
17964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965 *) ac_try_echo=$ac_try;;
17966esac
17967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968 (eval "$ac_try") 2>&5
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; }; then
17972 ac_cv_type_int64_t=yes
17973else
17974 echo "$as_me: failed program was:" >&5
17975sed 's/^/| /' conftest.$ac_ext >&5
17976
17977 ac_cv_type_int64_t=no
17978fi
17979
17980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17981fi
17982{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17983echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17984if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017985
17986cat >>confdefs.h <<_ACEOF
17987#define HAVE_INT64_T 1
17988_ACEOF
17989
17990
17991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017992 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17993echo "$as_me: error: Type int64_t required but not found" >&2;}
17994 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017995fi
17996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017997{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17998echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17999if test "${ac_cv_type_uint64_t+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001else
18002 cat >conftest.$ac_ext <<_ACEOF
18003/* confdefs.h. */
18004_ACEOF
18005cat confdefs.h >>conftest.$ac_ext
18006cat >>conftest.$ac_ext <<_ACEOF
18007/* end confdefs.h. */
18008$ac_includes_default
18009typedef uint64_t ac__type_new_;
18010int
18011main ()
18012{
18013if ((ac__type_new_ *) 0)
18014 return 0;
18015if (sizeof (ac__type_new_))
18016 return 0;
18017 ;
18018 return 0;
18019}
18020_ACEOF
18021rm -f conftest.$ac_objext
18022if { (ac_try="$ac_compile"
18023case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18026esac
18027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_compile") 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039esac
18040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; } &&
18045 { ac_try='test -s conftest.$ac_objext'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049esac
18050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_type_uint64_t=yes
18056else
18057 echo "$as_me: failed program was:" >&5
18058sed 's/^/| /' conftest.$ac_ext >&5
18059
18060 ac_cv_type_uint64_t=no
18061fi
18062
18063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064fi
18065{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18066echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18067if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018068
18069cat >>confdefs.h <<_ACEOF
18070#define HAVE_UINT64_T 1
18071_ACEOF
18072
18073
18074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018075 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18076echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18077if test "${ac_cv_type_u_int64_t+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18079else
18080 cat >conftest.$ac_ext <<_ACEOF
18081/* confdefs.h. */
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
18086$ac_includes_default
18087typedef u_int64_t ac__type_new_;
18088int
18089main ()
18090{
18091if ((ac__type_new_ *) 0)
18092 return 0;
18093if (sizeof (ac__type_new_))
18094 return 0;
18095 ;
18096 return 0;
18097}
18098_ACEOF
18099rm -f conftest.$ac_objext
18100if { (ac_try="$ac_compile"
18101case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_compile") 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117esac
18118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest.$ac_objext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127esac
18128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_type_u_int64_t=yes
18134else
18135 echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138 ac_cv_type_u_int64_t=no
18139fi
18140
18141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18142fi
18143{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18144echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18145if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018146
18147cat >>confdefs.h <<_ACEOF
18148#define HAVE_U_INT64_T 1
18149_ACEOF
18150
18151
Misha Brukmanceca9042004-09-02 23:02:30 +000018152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018153 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18154echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18155 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018156fi
18157
John Criswell679ff312004-09-02 18:44:44 +000018158fi
18159
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018160
18161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018162
18163
18164
18165
18166
18167
18168
Reid Spencerdf3be822006-01-23 08:15:53 +000018169for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018170do
18171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18172{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18174if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18176else
18177 cat >conftest.$ac_ext <<_ACEOF
18178/* confdefs.h. */
18179_ACEOF
18180cat confdefs.h >>conftest.$ac_ext
18181cat >>conftest.$ac_ext <<_ACEOF
18182/* end confdefs.h. */
18183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18185#define $ac_func innocuous_$ac_func
18186
18187/* System header to define __stub macros and hopefully few prototypes,
18188 which can conflict with char $ac_func (); below.
18189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18190 <limits.h> exists even on freestanding compilers. */
18191
18192#ifdef __STDC__
18193# include <limits.h>
18194#else
18195# include <assert.h>
18196#endif
18197
18198#undef $ac_func
18199
18200/* Override any GCC internal prototype to avoid an error.
18201 Use char because int might match the return type of a GCC
18202 builtin and then its argument prototype would still apply. */
18203#ifdef __cplusplus
18204extern "C"
18205#endif
18206char $ac_func ();
18207/* The GNU C library defines this for functions which it implements
18208 to always fail with ENOSYS. Some functions are actually named
18209 something starting with __ and the normal name is an alias. */
18210#if defined __stub_$ac_func || defined __stub___$ac_func
18211choke me
18212#endif
18213
18214int
18215main ()
18216{
18217return $ac_func ();
18218 ;
18219 return 0;
18220}
18221_ACEOF
18222rm -f conftest.$ac_objext conftest$ac_exeext
18223if { (ac_try="$ac_link"
18224case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18227esac
18228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229 (eval "$ac_link") 2>conftest.er1
18230 ac_status=$?
18231 grep -v '^ *+' conftest.er1 >conftest.err
18232 rm -f conftest.er1
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18237 { (case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18240esac
18241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242 (eval "$ac_try") 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest$ac_exeext'
18247 { (case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18250esac
18251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_try") 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 eval "$as_ac_var=yes"
18257else
18258 echo "$as_me: failed program was:" >&5
18259sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 eval "$as_ac_var=no"
18262fi
18263
18264rm -f core conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266fi
18267ac_res=`eval echo '${'$as_ac_var'}'`
18268 { echo "$as_me:$LINENO: result: $ac_res" >&5
18269echo "${ECHO_T}$ac_res" >&6; }
18270if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018271 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018273_ACEOF
18274
18275fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018276done
John Criswell7a73b802003-06-30 21:59:07 +000018277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018278
18279
18280
18281
Reid Spencer96cf5872007-07-13 10:05:30 +000018282for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018283do
18284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18285{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18287if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289else
18290 cat >conftest.$ac_ext <<_ACEOF
18291/* confdefs.h. */
18292_ACEOF
18293cat confdefs.h >>conftest.$ac_ext
18294cat >>conftest.$ac_ext <<_ACEOF
18295/* end confdefs.h. */
18296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18298#define $ac_func innocuous_$ac_func
18299
18300/* System header to define __stub macros and hopefully few prototypes,
18301 which can conflict with char $ac_func (); below.
18302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18303 <limits.h> exists even on freestanding compilers. */
18304
18305#ifdef __STDC__
18306# include <limits.h>
18307#else
18308# include <assert.h>
18309#endif
18310
18311#undef $ac_func
18312
18313/* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18316#ifdef __cplusplus
18317extern "C"
18318#endif
18319char $ac_func ();
18320/* The GNU C library defines this for functions which it implements
18321 to always fail with ENOSYS. Some functions are actually named
18322 something starting with __ and the normal name is an alias. */
18323#if defined __stub_$ac_func || defined __stub___$ac_func
18324choke me
18325#endif
18326
18327int
18328main ()
18329{
18330return $ac_func ();
18331 ;
18332 return 0;
18333}
18334_ACEOF
18335rm -f conftest.$ac_objext conftest$ac_exeext
18336if { (ac_try="$ac_link"
18337case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340esac
18341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_link") 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353esac
18354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest$ac_exeext'
18360 { (case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18363esac
18364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_try") 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 eval "$as_ac_var=yes"
18370else
18371 echo "$as_me: failed program was:" >&5
18372sed 's/^/| /' conftest.$ac_ext >&5
18373
18374 eval "$as_ac_var=no"
18375fi
18376
18377rm -f core conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18379fi
18380ac_res=`eval echo '${'$as_ac_var'}'`
18381 { echo "$as_me:$LINENO: result: $ac_res" >&5
18382echo "${ECHO_T}$ac_res" >&6; }
18383if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018384 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018386_ACEOF
18387
18388fi
18389done
18390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018391
18392
18393
18394
18395
Reid Spencerb90645c2007-02-16 19:17:20 +000018396for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018397do
18398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18399{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18401if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18403else
18404 cat >conftest.$ac_ext <<_ACEOF
18405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
18410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18412#define $ac_func innocuous_$ac_func
18413
18414/* System header to define __stub macros and hopefully few prototypes,
18415 which can conflict with char $ac_func (); below.
18416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18417 <limits.h> exists even on freestanding compilers. */
18418
18419#ifdef __STDC__
18420# include <limits.h>
18421#else
18422# include <assert.h>
18423#endif
18424
18425#undef $ac_func
18426
18427/* Override any GCC internal prototype to avoid an error.
18428 Use char because int might match the return type of a GCC
18429 builtin and then its argument prototype would still apply. */
18430#ifdef __cplusplus
18431extern "C"
18432#endif
18433char $ac_func ();
18434/* The GNU C library defines this for functions which it implements
18435 to always fail with ENOSYS. Some functions are actually named
18436 something starting with __ and the normal name is an alias. */
18437#if defined __stub_$ac_func || defined __stub___$ac_func
18438choke me
18439#endif
18440
18441int
18442main ()
18443{
18444return $ac_func ();
18445 ;
18446 return 0;
18447}
18448_ACEOF
18449rm -f conftest.$ac_objext conftest$ac_exeext
18450if { (ac_try="$ac_link"
18451case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18454esac
18455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456 (eval "$ac_link") 2>conftest.er1
18457 ac_status=$?
18458 grep -v '^ *+' conftest.er1 >conftest.err
18459 rm -f conftest.er1
18460 cat conftest.err >&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18464 { (case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18467esac
18468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_try") 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; } &&
18473 { ac_try='test -s conftest$ac_exeext'
18474 { (case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18477esac
18478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_try") 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 eval "$as_ac_var=yes"
18484else
18485 echo "$as_me: failed program was:" >&5
18486sed 's/^/| /' conftest.$ac_ext >&5
18487
18488 eval "$as_ac_var=no"
18489fi
18490
18491rm -f core conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18493fi
18494ac_res=`eval echo '${'$as_ac_var'}'`
18495 { echo "$as_me:$LINENO: result: $ac_res" >&5
18496echo "${ECHO_T}$ac_res" >&6; }
18497if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018498 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018500_ACEOF
18501
18502fi
18503done
18504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018505
18506
18507
Reid Spencerb90645c2007-02-16 19:17:20 +000018508for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018509do
18510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18511{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18515else
18516 cat >conftest.$ac_ext <<_ACEOF
18517/* confdefs.h. */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h. */
18522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18524#define $ac_func innocuous_$ac_func
18525
18526/* System header to define __stub macros and hopefully few prototypes,
18527 which can conflict with char $ac_func (); below.
18528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18529 <limits.h> exists even on freestanding compilers. */
18530
18531#ifdef __STDC__
18532# include <limits.h>
18533#else
18534# include <assert.h>
18535#endif
18536
18537#undef $ac_func
18538
18539/* Override any GCC internal prototype to avoid an error.
18540 Use char because int might match the return type of a GCC
18541 builtin and then its argument prototype would still apply. */
18542#ifdef __cplusplus
18543extern "C"
18544#endif
18545char $ac_func ();
18546/* The GNU C library defines this for functions which it implements
18547 to always fail with ENOSYS. Some functions are actually named
18548 something starting with __ and the normal name is an alias. */
18549#if defined __stub_$ac_func || defined __stub___$ac_func
18550choke me
18551#endif
18552
18553int
18554main ()
18555{
18556return $ac_func ();
18557 ;
18558 return 0;
18559}
18560_ACEOF
18561rm -f conftest.$ac_objext conftest$ac_exeext
18562if { (ac_try="$ac_link"
18563case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18566esac
18567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_link") 2>conftest.er1
18569 ac_status=$?
18570 grep -v '^ *+' conftest.er1 >conftest.err
18571 rm -f conftest.er1
18572 cat conftest.err >&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
18575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18576 { (case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18579esac
18580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581 (eval "$ac_try") 2>&5
18582 ac_status=$?
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; } &&
18585 { ac_try='test -s conftest$ac_exeext'
18586 { (case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589esac
18590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_try") 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; }; then
18595 eval "$as_ac_var=yes"
18596else
18597 echo "$as_me: failed program was:" >&5
18598sed 's/^/| /' conftest.$ac_ext >&5
18599
18600 eval "$as_ac_var=no"
18601fi
18602
18603rm -f core conftest.err conftest.$ac_objext \
18604 conftest$ac_exeext conftest.$ac_ext
18605fi
18606ac_res=`eval echo '${'$as_ac_var'}'`
18607 { echo "$as_me:$LINENO: result: $ac_res" >&5
18608echo "${ECHO_T}$ac_res" >&6; }
18609if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018610 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018612_ACEOF
18613
18614fi
18615done
18616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018617
18618
18619
18620
18621
Eric Christophere4291822010-04-16 05:14:21 +000018622
18623for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018624do
18625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18626{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18628if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18630else
18631 cat >conftest.$ac_ext <<_ACEOF
18632/* confdefs.h. */
18633_ACEOF
18634cat confdefs.h >>conftest.$ac_ext
18635cat >>conftest.$ac_ext <<_ACEOF
18636/* end confdefs.h. */
18637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18639#define $ac_func innocuous_$ac_func
18640
18641/* System header to define __stub macros and hopefully few prototypes,
18642 which can conflict with char $ac_func (); below.
18643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18644 <limits.h> exists even on freestanding compilers. */
18645
18646#ifdef __STDC__
18647# include <limits.h>
18648#else
18649# include <assert.h>
18650#endif
18651
18652#undef $ac_func
18653
18654/* Override any GCC internal prototype to avoid an error.
18655 Use char because int might match the return type of a GCC
18656 builtin and then its argument prototype would still apply. */
18657#ifdef __cplusplus
18658extern "C"
18659#endif
18660char $ac_func ();
18661/* The GNU C library defines this for functions which it implements
18662 to always fail with ENOSYS. Some functions are actually named
18663 something starting with __ and the normal name is an alias. */
18664#if defined __stub_$ac_func || defined __stub___$ac_func
18665choke me
18666#endif
18667
18668int
18669main ()
18670{
18671return $ac_func ();
18672 ;
18673 return 0;
18674}
18675_ACEOF
18676rm -f conftest.$ac_objext conftest$ac_exeext
18677if { (ac_try="$ac_link"
18678case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681esac
18682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_link") 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694esac
18695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest$ac_exeext'
18701 { (case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18704esac
18705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_try") 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 eval "$as_ac_var=yes"
18711else
18712 echo "$as_me: failed program was:" >&5
18713sed 's/^/| /' conftest.$ac_ext >&5
18714
18715 eval "$as_ac_var=no"
18716fi
18717
18718rm -f core conftest.err conftest.$ac_objext \
18719 conftest$ac_exeext conftest.$ac_ext
18720fi
18721ac_res=`eval echo '${'$as_ac_var'}'`
18722 { echo "$as_me:$LINENO: result: $ac_res" >&5
18723echo "${ECHO_T}$ac_res" >&6; }
18724if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018725 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018727_ACEOF
18728
18729fi
18730done
Reid Spencerdf3be822006-01-23 08:15:53 +000018731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018732
18733
18734
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018735for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018736do
18737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18738{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18740if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743 cat >conftest.$ac_ext <<_ACEOF
18744/* confdefs.h. */
18745_ACEOF
18746cat confdefs.h >>conftest.$ac_ext
18747cat >>conftest.$ac_ext <<_ACEOF
18748/* end confdefs.h. */
18749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18751#define $ac_func innocuous_$ac_func
18752
18753/* System header to define __stub macros and hopefully few prototypes,
18754 which can conflict with char $ac_func (); below.
18755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18756 <limits.h> exists even on freestanding compilers. */
18757
18758#ifdef __STDC__
18759# include <limits.h>
18760#else
18761# include <assert.h>
18762#endif
18763
18764#undef $ac_func
18765
18766/* Override any GCC internal prototype to avoid an error.
18767 Use char because int might match the return type of a GCC
18768 builtin and then its argument prototype would still apply. */
18769#ifdef __cplusplus
18770extern "C"
18771#endif
18772char $ac_func ();
18773/* The GNU C library defines this for functions which it implements
18774 to always fail with ENOSYS. Some functions are actually named
18775 something starting with __ and the normal name is an alias. */
18776#if defined __stub_$ac_func || defined __stub___$ac_func
18777choke me
18778#endif
18779
18780int
18781main ()
18782{
18783return $ac_func ();
18784 ;
18785 return 0;
18786}
18787_ACEOF
18788rm -f conftest.$ac_objext conftest$ac_exeext
18789if { (ac_try="$ac_link"
18790case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793esac
18794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_link") 2>conftest.er1
18796 ac_status=$?
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18803 { (case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806esac
18807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_try") 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try='test -s conftest$ac_exeext'
18813 { (case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18816esac
18817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_try") 2>&5
18819 ac_status=$?
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; }; then
18822 eval "$as_ac_var=yes"
18823else
18824 echo "$as_me: failed program was:" >&5
18825sed 's/^/| /' conftest.$ac_ext >&5
18826
18827 eval "$as_ac_var=no"
18828fi
18829
18830rm -f core conftest.err conftest.$ac_objext \
18831 conftest$ac_exeext conftest.$ac_ext
18832fi
18833ac_res=`eval echo '${'$as_ac_var'}'`
18834 { echo "$as_me:$LINENO: result: $ac_res" >&5
18835echo "${ECHO_T}$ac_res" >&6; }
18836if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018837 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018839_ACEOF
18840
18841fi
18842done
18843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018844
18845
18846
18847
Chris Lattner511f11d2005-11-14 07:25:50 +000018848for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018849do
18850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18851{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18853if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18855else
18856 cat >conftest.$ac_ext <<_ACEOF
18857/* confdefs.h. */
18858_ACEOF
18859cat confdefs.h >>conftest.$ac_ext
18860cat >>conftest.$ac_ext <<_ACEOF
18861/* end confdefs.h. */
18862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18864#define $ac_func innocuous_$ac_func
18865
18866/* System header to define __stub macros and hopefully few prototypes,
18867 which can conflict with char $ac_func (); below.
18868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18869 <limits.h> exists even on freestanding compilers. */
18870
18871#ifdef __STDC__
18872# include <limits.h>
18873#else
18874# include <assert.h>
18875#endif
18876
18877#undef $ac_func
18878
18879/* Override any GCC internal prototype to avoid an error.
18880 Use char because int might match the return type of a GCC
18881 builtin and then its argument prototype would still apply. */
18882#ifdef __cplusplus
18883extern "C"
18884#endif
18885char $ac_func ();
18886/* The GNU C library defines this for functions which it implements
18887 to always fail with ENOSYS. Some functions are actually named
18888 something starting with __ and the normal name is an alias. */
18889#if defined __stub_$ac_func || defined __stub___$ac_func
18890choke me
18891#endif
18892
18893int
18894main ()
18895{
18896return $ac_func ();
18897 ;
18898 return 0;
18899}
18900_ACEOF
18901rm -f conftest.$ac_objext conftest$ac_exeext
18902if { (ac_try="$ac_link"
18903case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18906esac
18907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_link") 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18916 { (case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919esac
18920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_try") 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest$ac_exeext'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929esac
18930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 eval "$as_ac_var=yes"
18936else
18937 echo "$as_me: failed program was:" >&5
18938sed 's/^/| /' conftest.$ac_ext >&5
18939
18940 eval "$as_ac_var=no"
18941fi
18942
18943rm -f core conftest.err conftest.$ac_objext \
18944 conftest$ac_exeext conftest.$ac_ext
18945fi
18946ac_res=`eval echo '${'$as_ac_var'}'`
18947 { echo "$as_me:$LINENO: result: $ac_res" >&5
18948echo "${ECHO_T}$ac_res" >&6; }
18949if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018950 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018951#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018952_ACEOF
18953
18954fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018955done
John Criswell7a73b802003-06-30 21:59:07 +000018956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018957
18958
18959
18960
Daniel Dunbar3e462932011-02-03 02:40:02 +000018961
18962for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018963do
18964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18965{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969else
18970 cat >conftest.$ac_ext <<_ACEOF
18971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
18976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18978#define $ac_func innocuous_$ac_func
18979
18980/* System header to define __stub macros and hopefully few prototypes,
18981 which can conflict with char $ac_func (); below.
18982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18983 <limits.h> exists even on freestanding compilers. */
18984
18985#ifdef __STDC__
18986# include <limits.h>
18987#else
18988# include <assert.h>
18989#endif
18990
18991#undef $ac_func
18992
18993/* Override any GCC internal prototype to avoid an error.
18994 Use char because int might match the return type of a GCC
18995 builtin and then its argument prototype would still apply. */
18996#ifdef __cplusplus
18997extern "C"
18998#endif
18999char $ac_func ();
19000/* The GNU C library defines this for functions which it implements
19001 to always fail with ENOSYS. Some functions are actually named
19002 something starting with __ and the normal name is an alias. */
19003#if defined __stub_$ac_func || defined __stub___$ac_func
19004choke me
19005#endif
19006
19007int
19008main ()
19009{
19010return $ac_func ();
19011 ;
19012 return 0;
19013}
19014_ACEOF
19015rm -f conftest.$ac_objext conftest$ac_exeext
19016if { (ac_try="$ac_link"
19017case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19020esac
19021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_link") 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19030 { (case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19033esac
19034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_try") 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest$ac_exeext'
19040 { (case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043esac
19044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_try") 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; }; then
19049 eval "$as_ac_var=yes"
19050else
19051 echo "$as_me: failed program was:" >&5
19052sed 's/^/| /' conftest.$ac_ext >&5
19053
19054 eval "$as_ac_var=no"
19055fi
19056
19057rm -f core conftest.err conftest.$ac_objext \
19058 conftest$ac_exeext conftest.$ac_ext
19059fi
19060ac_res=`eval echo '${'$as_ac_var'}'`
19061 { echo "$as_me:$LINENO: result: $ac_res" >&5
19062echo "${ECHO_T}$ac_res" >&6; }
19063if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019064 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019066_ACEOF
19067
19068fi
19069done
19070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019071{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19072echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19073if test "${llvm_cv_c_printf_a+set}" = set; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019075else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019076 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019077ac_cpp='$CPP $CPPFLAGS'
19078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19080ac_compiler_gnu=$ac_cv_c_compiler_gnu
19081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019082 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019083 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019085 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019087 /* confdefs.h. */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019092
John Criswella0137d32003-10-13 16:22:01 +000019093#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019094#include <stdlib.h>
19095
John Criswella0137d32003-10-13 16:22:01 +000019096int
19097main ()
19098{
19099
Reid Spencer2706f8c2004-09-19 23:53:36 +000019100volatile double A, B;
19101char Buffer[100];
19102A = 1;
19103A /= 10.0;
19104sprintf(Buffer, "%a", A);
19105B = atof(Buffer);
19106if (A != B)
19107 return (1);
19108if (A != 0x1.999999999999ap-4)
19109 return (1);
19110return (0);
John Criswella0137d32003-10-13 16:22:01 +000019111 ;
19112 return 0;
19113}
19114_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019115rm -f conftest$ac_exeext
19116if { (ac_try="$ac_link"
19117case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19120esac
19121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_link") 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19126 { (case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19129esac
19130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_try") 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019135 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019136else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019137 echo "$as_me: program exited with status $ac_status" >&5
19138echo "$as_me: failed program was:" >&5
19139sed 's/^/| /' conftest.$ac_ext >&5
19140
19141( exit $ac_status )
19142llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019144rm -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 +000019145fi
Reid Spencera773bd52006-08-04 18:18:08 +000019146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019147
Reid Spencer2706f8c2004-09-19 23:53:36 +000019148 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019149ac_cpp='$CPP $CPPFLAGS'
19150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152ac_compiler_gnu=$ac_cv_c_compiler_gnu
19153
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019155{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19156echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019157 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019159cat >>confdefs.h <<\_ACEOF
19160#define HAVE_PRINTF_A 1
19161_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019162
Reid Spencer2706f8c2004-09-19 23:53:36 +000019163 fi
John Criswella0137d32003-10-13 16:22:01 +000019164
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019166{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19167echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19168if test "${ac_cv_func_rand48+set}" = set; then
19169 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019170else
Reid Spencera773bd52006-08-04 18:18:08 +000019171 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019172ac_cpp='$CXXCPP $CPPFLAGS'
19173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019177 cat >conftest.$ac_ext <<_ACEOF
19178/* confdefs.h. */
19179_ACEOF
19180cat confdefs.h >>conftest.$ac_ext
19181cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019182/* end confdefs.h. */
19183#include <stdlib.h>
19184int
19185main ()
19186{
19187srand48(0);lrand48();drand48();
19188 ;
19189 return 0;
19190}
19191_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019192rm -f conftest.$ac_objext
19193if { (ac_try="$ac_compile"
19194case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19197esac
19198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_compile") 2>conftest.er1
19200 ac_status=$?
19201 grep -v '^ *+' conftest.er1 >conftest.err
19202 rm -f conftest.er1
19203 cat conftest.err >&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } &&
19206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19207 { (case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19210esac
19211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_try") 2>&5
19213 ac_status=$?
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; } &&
19216 { ac_try='test -s conftest.$ac_objext'
19217 { (case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19220esac
19221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_try") 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019226 ac_cv_func_rand48=yes
19227else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019228 echo "$as_me: failed program was:" >&5
19229sed 's/^/| /' conftest.$ac_ext >&5
19230
19231 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019233
Reid Spencera773bd52006-08-04 18:18:08 +000019234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019235 ac_ext=c
19236ac_cpp='$CPP $CPPFLAGS'
19237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239ac_compiler_gnu=$ac_cv_c_compiler_gnu
19240
19241fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019242{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19243echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019244
19245if test "$ac_cv_func_rand48" = "yes" ; then
19246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019247cat >>confdefs.h <<\_ACEOF
19248#define HAVE_RAND48 1
19249_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019250
19251fi
John Criswell0021c312004-02-13 21:57:29 +000019252
19253
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000019254{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19255echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19256if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19258else
19259 cat >conftest.$ac_ext <<_ACEOF
19260/* confdefs.h. */
19261_ACEOF
19262cat confdefs.h >>conftest.$ac_ext
19263cat >>conftest.$ac_ext <<_ACEOF
19264/* end confdefs.h. */
19265$ac_includes_default
19266int
19267main ()
19268{
19269#ifndef strerror_s
19270 char *p = (char *) strerror_s;
19271 return !p;
19272#endif
19273
19274 ;
19275 return 0;
19276}
19277_ACEOF
19278rm -f conftest.$ac_objext
19279if { (ac_try="$ac_compile"
19280case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283esac
19284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_compile") 2>conftest.er1
19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296esac
19297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306esac
19307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_have_decl_strerror_s=yes
19313else
19314 echo "$as_me: failed program was:" >&5
19315sed 's/^/| /' conftest.$ac_ext >&5
19316
19317 ac_cv_have_decl_strerror_s=no
19318fi
19319
19320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321fi
19322{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19323echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19324if test $ac_cv_have_decl_strerror_s = yes; then
19325
19326cat >>confdefs.h <<_ACEOF
19327#define HAVE_DECL_STRERROR_S 1
19328_ACEOF
19329
19330
19331else
19332 cat >>confdefs.h <<_ACEOF
19333#define HAVE_DECL_STRERROR_S 0
19334_ACEOF
19335
19336
19337fi
19338
19339
19340
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000019341if test "$llvm_cv_os_type" = "MingW" ; then
19342 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19343echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19344if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346else
19347 ac_check_lib_save_LIBS=$LIBS
19348LIBS="-lgcc $LIBS"
19349cat >conftest.$ac_ext <<_ACEOF
19350/* confdefs.h. */
19351_ACEOF
19352cat confdefs.h >>conftest.$ac_ext
19353cat >>conftest.$ac_ext <<_ACEOF
19354/* end confdefs.h. */
19355
19356/* Override any GCC internal prototype to avoid an error.
19357 Use char because int might match the return type of a GCC
19358 builtin and then its argument prototype would still apply. */
19359#ifdef __cplusplus
19360extern "C"
19361#endif
19362char _alloca ();
19363int
19364main ()
19365{
19366return _alloca ();
19367 ;
19368 return 0;
19369}
19370_ACEOF
19371rm -f conftest.$ac_objext conftest$ac_exeext
19372if { (ac_try="$ac_link"
19373case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376esac
19377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_link") 2>conftest.er1
19379 ac_status=$?
19380 grep -v '^ *+' conftest.er1 >conftest.err
19381 rm -f conftest.er1
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19386 { (case "(($ac_try" in
19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388 *) ac_try_echo=$ac_try;;
19389esac
19390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391 (eval "$ac_try") 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest$ac_exeext'
19396 { (case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19399esac
19400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_try") 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19405 ac_cv_lib_gcc__alloca=yes
19406else
19407 echo "$as_me: failed program was:" >&5
19408sed 's/^/| /' conftest.$ac_ext >&5
19409
19410 ac_cv_lib_gcc__alloca=no
19411fi
19412
19413rm -f core conftest.err conftest.$ac_objext \
19414 conftest$ac_exeext conftest.$ac_ext
19415LIBS=$ac_check_lib_save_LIBS
19416fi
19417{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19418echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19419if test $ac_cv_lib_gcc__alloca = yes; then
19420
19421cat >>confdefs.h <<\_ACEOF
19422#define HAVE__ALLOCA 1
19423_ACEOF
19424
19425fi
19426
19427 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19428echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19429if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431else
19432 ac_check_lib_save_LIBS=$LIBS
19433LIBS="-lgcc $LIBS"
19434cat >conftest.$ac_ext <<_ACEOF
19435/* confdefs.h. */
19436_ACEOF
19437cat confdefs.h >>conftest.$ac_ext
19438cat >>conftest.$ac_ext <<_ACEOF
19439/* end confdefs.h. */
19440
19441/* Override any GCC internal prototype to avoid an error.
19442 Use char because int might match the return type of a GCC
19443 builtin and then its argument prototype would still apply. */
19444#ifdef __cplusplus
19445extern "C"
19446#endif
19447char __alloca ();
19448int
19449main ()
19450{
19451return __alloca ();
19452 ;
19453 return 0;
19454}
19455_ACEOF
19456rm -f conftest.$ac_objext conftest$ac_exeext
19457if { (ac_try="$ac_link"
19458case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19461esac
19462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_link") 2>conftest.er1
19464 ac_status=$?
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19471 { (case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19474esac
19475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_try") 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; } &&
19480 { ac_try='test -s conftest$ac_exeext'
19481 { (case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19484esac
19485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_try") 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; }; then
19490 ac_cv_lib_gcc___alloca=yes
19491else
19492 echo "$as_me: failed program was:" >&5
19493sed 's/^/| /' conftest.$ac_ext >&5
19494
19495 ac_cv_lib_gcc___alloca=no
19496fi
19497
19498rm -f core conftest.err conftest.$ac_objext \
19499 conftest$ac_exeext conftest.$ac_ext
19500LIBS=$ac_check_lib_save_LIBS
19501fi
19502{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19503echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19504if test $ac_cv_lib_gcc___alloca = yes; then
19505
19506cat >>confdefs.h <<\_ACEOF
19507#define HAVE___ALLOCA 1
19508_ACEOF
19509
19510fi
19511
19512 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19513echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19514if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19516else
19517 ac_check_lib_save_LIBS=$LIBS
19518LIBS="-lgcc $LIBS"
19519cat >conftest.$ac_ext <<_ACEOF
19520/* confdefs.h. */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
19524/* end confdefs.h. */
19525
19526/* Override any GCC internal prototype to avoid an error.
19527 Use char because int might match the return type of a GCC
19528 builtin and then its argument prototype would still apply. */
19529#ifdef __cplusplus
19530extern "C"
19531#endif
19532char __chkstk ();
19533int
19534main ()
19535{
19536return __chkstk ();
19537 ;
19538 return 0;
19539}
19540_ACEOF
19541rm -f conftest.$ac_objext conftest$ac_exeext
19542if { (ac_try="$ac_link"
19543case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19546esac
19547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_link") 2>conftest.er1
19549 ac_status=$?
19550 grep -v '^ *+' conftest.er1 >conftest.err
19551 rm -f conftest.er1
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
19555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19556 { (case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19559esac
19560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_try") 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest$ac_exeext'
19566 { (case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19569esac
19570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571 (eval "$ac_try") 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_cv_lib_gcc___chkstk=yes
19576else
19577 echo "$as_me: failed program was:" >&5
19578sed 's/^/| /' conftest.$ac_ext >&5
19579
19580 ac_cv_lib_gcc___chkstk=no
19581fi
19582
19583rm -f core conftest.err conftest.$ac_objext \
19584 conftest$ac_exeext conftest.$ac_ext
19585LIBS=$ac_check_lib_save_LIBS
19586fi
19587{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19588echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19589if test $ac_cv_lib_gcc___chkstk = yes; then
19590
19591cat >>confdefs.h <<\_ACEOF
19592#define HAVE___CHKSTK 1
19593_ACEOF
19594
19595fi
19596
19597 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19598echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19599if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19601else
19602 ac_check_lib_save_LIBS=$LIBS
19603LIBS="-lgcc $LIBS"
19604cat >conftest.$ac_ext <<_ACEOF
19605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
19609/* end confdefs.h. */
19610
19611/* Override any GCC internal prototype to avoid an error.
19612 Use char because int might match the return type of a GCC
19613 builtin and then its argument prototype would still apply. */
19614#ifdef __cplusplus
19615extern "C"
19616#endif
19617char ___chkstk ();
19618int
19619main ()
19620{
19621return ___chkstk ();
19622 ;
19623 return 0;
19624}
19625_ACEOF
19626rm -f conftest.$ac_objext conftest$ac_exeext
19627if { (ac_try="$ac_link"
19628case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631esac
19632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_link") 2>conftest.er1
19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644esac
19645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest$ac_exeext'
19651 { (case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19654esac
19655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_try") 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 ac_cv_lib_gcc____chkstk=yes
19661else
19662 echo "$as_me: failed program was:" >&5
19663sed 's/^/| /' conftest.$ac_ext >&5
19664
19665 ac_cv_lib_gcc____chkstk=no
19666fi
19667
19668rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19670LIBS=$ac_check_lib_save_LIBS
19671fi
19672{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19673echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19674if test $ac_cv_lib_gcc____chkstk = yes; then
19675
19676cat >>confdefs.h <<\_ACEOF
19677#define HAVE____CHKSTK 1
19678_ACEOF
19679
19680fi
19681
19682
19683 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19684echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19685if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19687else
19688 ac_check_lib_save_LIBS=$LIBS
19689LIBS="-lgcc $LIBS"
19690cat >conftest.$ac_ext <<_ACEOF
19691/* confdefs.h. */
19692_ACEOF
19693cat confdefs.h >>conftest.$ac_ext
19694cat >>conftest.$ac_ext <<_ACEOF
19695/* end confdefs.h. */
19696
19697/* Override any GCC internal prototype to avoid an error.
19698 Use char because int might match the return type of a GCC
19699 builtin and then its argument prototype would still apply. */
19700#ifdef __cplusplus
19701extern "C"
19702#endif
19703char __ashldi3 ();
19704int
19705main ()
19706{
19707return __ashldi3 ();
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext conftest$ac_exeext
19713if { (ac_try="$ac_link"
19714case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717esac
19718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_link") 2>conftest.er1
19720 ac_status=$?
19721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730esac
19731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest$ac_exeext'
19737 { (case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19740esac
19741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_try") 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 ac_cv_lib_gcc___ashldi3=yes
19747else
19748 echo "$as_me: failed program was:" >&5
19749sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 ac_cv_lib_gcc___ashldi3=no
19752fi
19753
19754rm -f core conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
19756LIBS=$ac_check_lib_save_LIBS
19757fi
19758{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19759echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19760if test $ac_cv_lib_gcc___ashldi3 = yes; then
19761
19762cat >>confdefs.h <<\_ACEOF
19763#define HAVE___ASHLDI3 1
19764_ACEOF
19765
19766fi
19767
19768 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19769echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19770if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19772else
19773 ac_check_lib_save_LIBS=$LIBS
19774LIBS="-lgcc $LIBS"
19775cat >conftest.$ac_ext <<_ACEOF
19776/* confdefs.h. */
19777_ACEOF
19778cat confdefs.h >>conftest.$ac_ext
19779cat >>conftest.$ac_ext <<_ACEOF
19780/* end confdefs.h. */
19781
19782/* Override any GCC internal prototype to avoid an error.
19783 Use char because int might match the return type of a GCC
19784 builtin and then its argument prototype would still apply. */
19785#ifdef __cplusplus
19786extern "C"
19787#endif
19788char __ashrdi3 ();
19789int
19790main ()
19791{
19792return __ashrdi3 ();
19793 ;
19794 return 0;
19795}
19796_ACEOF
19797rm -f conftest.$ac_objext conftest$ac_exeext
19798if { (ac_try="$ac_link"
19799case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802esac
19803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_link") 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19812 { (case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19815esac
19816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_try") 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; } &&
19821 { ac_try='test -s conftest$ac_exeext'
19822 { (case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19825esac
19826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_try") 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 ac_cv_lib_gcc___ashrdi3=yes
19832else
19833 echo "$as_me: failed program was:" >&5
19834sed 's/^/| /' conftest.$ac_ext >&5
19835
19836 ac_cv_lib_gcc___ashrdi3=no
19837fi
19838
19839rm -f core conftest.err conftest.$ac_objext \
19840 conftest$ac_exeext conftest.$ac_ext
19841LIBS=$ac_check_lib_save_LIBS
19842fi
19843{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19844echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19845if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19846
19847cat >>confdefs.h <<\_ACEOF
19848#define HAVE___ASHRDI3 1
19849_ACEOF
19850
19851fi
19852
19853 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19854echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19855if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857else
19858 ac_check_lib_save_LIBS=$LIBS
19859LIBS="-lgcc $LIBS"
19860cat >conftest.$ac_ext <<_ACEOF
19861/* confdefs.h. */
19862_ACEOF
19863cat confdefs.h >>conftest.$ac_ext
19864cat >>conftest.$ac_ext <<_ACEOF
19865/* end confdefs.h. */
19866
19867/* Override any GCC internal prototype to avoid an error.
19868 Use char because int might match the return type of a GCC
19869 builtin and then its argument prototype would still apply. */
19870#ifdef __cplusplus
19871extern "C"
19872#endif
19873char __divdi3 ();
19874int
19875main ()
19876{
19877return __divdi3 ();
19878 ;
19879 return 0;
19880}
19881_ACEOF
19882rm -f conftest.$ac_objext conftest$ac_exeext
19883if { (ac_try="$ac_link"
19884case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887esac
19888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_link") 2>conftest.er1
19890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19900esac
19901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; } &&
19906 { ac_try='test -s conftest$ac_exeext'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19910esac
19911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916 ac_cv_lib_gcc___divdi3=yes
19917else
19918 echo "$as_me: failed program was:" >&5
19919sed 's/^/| /' conftest.$ac_ext >&5
19920
19921 ac_cv_lib_gcc___divdi3=no
19922fi
19923
19924rm -f core conftest.err conftest.$ac_objext \
19925 conftest$ac_exeext conftest.$ac_ext
19926LIBS=$ac_check_lib_save_LIBS
19927fi
19928{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19929echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19930if test $ac_cv_lib_gcc___divdi3 = yes; then
19931
19932cat >>confdefs.h <<\_ACEOF
19933#define HAVE___DIVDI3 1
19934_ACEOF
19935
19936fi
19937
19938 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19939echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19940if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942else
19943 ac_check_lib_save_LIBS=$LIBS
19944LIBS="-lgcc $LIBS"
19945cat >conftest.$ac_ext <<_ACEOF
19946/* confdefs.h. */
19947_ACEOF
19948cat confdefs.h >>conftest.$ac_ext
19949cat >>conftest.$ac_ext <<_ACEOF
19950/* end confdefs.h. */
19951
19952/* Override any GCC internal prototype to avoid an error.
19953 Use char because int might match the return type of a GCC
19954 builtin and then its argument prototype would still apply. */
19955#ifdef __cplusplus
19956extern "C"
19957#endif
19958char __fixdfdi ();
19959int
19960main ()
19961{
19962return __fixdfdi ();
19963 ;
19964 return 0;
19965}
19966_ACEOF
19967rm -f conftest.$ac_objext conftest$ac_exeext
19968if { (ac_try="$ac_link"
19969case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19972esac
19973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_link") 2>conftest.er1
19975 ac_status=$?
19976 grep -v '^ *+' conftest.er1 >conftest.err
19977 rm -f conftest.er1
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19982 { (case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985esac
19986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_try") 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; } &&
19991 { ac_try='test -s conftest$ac_exeext'
19992 { (case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19995esac
19996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_try") 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_lib_gcc___fixdfdi=yes
20002else
20003 echo "$as_me: failed program was:" >&5
20004sed 's/^/| /' conftest.$ac_ext >&5
20005
20006 ac_cv_lib_gcc___fixdfdi=no
20007fi
20008
20009rm -f core conftest.err conftest.$ac_objext \
20010 conftest$ac_exeext conftest.$ac_ext
20011LIBS=$ac_check_lib_save_LIBS
20012fi
20013{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20014echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20015if test $ac_cv_lib_gcc___fixdfdi = yes; then
20016
20017cat >>confdefs.h <<\_ACEOF
20018#define HAVE___FIXDFDI 1
20019_ACEOF
20020
20021fi
20022
20023 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20024echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20025if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20027else
20028 ac_check_lib_save_LIBS=$LIBS
20029LIBS="-lgcc $LIBS"
20030cat >conftest.$ac_ext <<_ACEOF
20031/* confdefs.h. */
20032_ACEOF
20033cat confdefs.h >>conftest.$ac_ext
20034cat >>conftest.$ac_ext <<_ACEOF
20035/* end confdefs.h. */
20036
20037/* Override any GCC internal prototype to avoid an error.
20038 Use char because int might match the return type of a GCC
20039 builtin and then its argument prototype would still apply. */
20040#ifdef __cplusplus
20041extern "C"
20042#endif
20043char __fixsfdi ();
20044int
20045main ()
20046{
20047return __fixsfdi ();
20048 ;
20049 return 0;
20050}
20051_ACEOF
20052rm -f conftest.$ac_objext conftest$ac_exeext
20053if { (ac_try="$ac_link"
20054case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20057esac
20058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_link") 2>conftest.er1
20060 ac_status=$?
20061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
20066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20067 { (case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20070esac
20071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_try") 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest$ac_exeext'
20077 { (case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20080esac
20081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_try") 2>&5
20083 ac_status=$?
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; }; then
20086 ac_cv_lib_gcc___fixsfdi=yes
20087else
20088 echo "$as_me: failed program was:" >&5
20089sed 's/^/| /' conftest.$ac_ext >&5
20090
20091 ac_cv_lib_gcc___fixsfdi=no
20092fi
20093
20094rm -f core conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext conftest.$ac_ext
20096LIBS=$ac_check_lib_save_LIBS
20097fi
20098{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20099echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20100if test $ac_cv_lib_gcc___fixsfdi = yes; then
20101
20102cat >>confdefs.h <<\_ACEOF
20103#define HAVE___FIXSFDI 1
20104_ACEOF
20105
20106fi
20107
20108 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20109echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20110if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20112else
20113 ac_check_lib_save_LIBS=$LIBS
20114LIBS="-lgcc $LIBS"
20115cat >conftest.$ac_ext <<_ACEOF
20116/* confdefs.h. */
20117_ACEOF
20118cat confdefs.h >>conftest.$ac_ext
20119cat >>conftest.$ac_ext <<_ACEOF
20120/* end confdefs.h. */
20121
20122/* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
20125#ifdef __cplusplus
20126extern "C"
20127#endif
20128char __floatdidf ();
20129int
20130main ()
20131{
20132return __floatdidf ();
20133 ;
20134 return 0;
20135}
20136_ACEOF
20137rm -f conftest.$ac_objext conftest$ac_exeext
20138if { (ac_try="$ac_link"
20139case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20142esac
20143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_link") 2>conftest.er1
20145 ac_status=$?
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
20151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20152 { (case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155esac
20156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_try") 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } &&
20161 { ac_try='test -s conftest$ac_exeext'
20162 { (case "(($ac_try" in
20163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20164 *) ac_try_echo=$ac_try;;
20165esac
20166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20167 (eval "$ac_try") 2>&5
20168 ac_status=$?
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); }; }; then
20171 ac_cv_lib_gcc___floatdidf=yes
20172else
20173 echo "$as_me: failed program was:" >&5
20174sed 's/^/| /' conftest.$ac_ext >&5
20175
20176 ac_cv_lib_gcc___floatdidf=no
20177fi
20178
20179rm -f core conftest.err conftest.$ac_objext \
20180 conftest$ac_exeext conftest.$ac_ext
20181LIBS=$ac_check_lib_save_LIBS
20182fi
20183{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20184echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20185if test $ac_cv_lib_gcc___floatdidf = yes; then
20186
20187cat >>confdefs.h <<\_ACEOF
20188#define HAVE___FLOATDIDF 1
20189_ACEOF
20190
20191fi
20192
20193 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20194echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20195if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197else
20198 ac_check_lib_save_LIBS=$LIBS
20199LIBS="-lgcc $LIBS"
20200cat >conftest.$ac_ext <<_ACEOF
20201/* confdefs.h. */
20202_ACEOF
20203cat confdefs.h >>conftest.$ac_ext
20204cat >>conftest.$ac_ext <<_ACEOF
20205/* end confdefs.h. */
20206
20207/* Override any GCC internal prototype to avoid an error.
20208 Use char because int might match the return type of a GCC
20209 builtin and then its argument prototype would still apply. */
20210#ifdef __cplusplus
20211extern "C"
20212#endif
20213char __lshrdi3 ();
20214int
20215main ()
20216{
20217return __lshrdi3 ();
20218 ;
20219 return 0;
20220}
20221_ACEOF
20222rm -f conftest.$ac_objext conftest$ac_exeext
20223if { (ac_try="$ac_link"
20224case "(($ac_try" in
20225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226 *) ac_try_echo=$ac_try;;
20227esac
20228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229 (eval "$ac_link") 2>conftest.er1
20230 ac_status=$?
20231 grep -v '^ *+' conftest.er1 >conftest.err
20232 rm -f conftest.er1
20233 cat conftest.err >&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } &&
20236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20237 { (case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20240esac
20241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_try") 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try='test -s conftest$ac_exeext'
20247 { (case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20250esac
20251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_try") 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; }; then
20256 ac_cv_lib_gcc___lshrdi3=yes
20257else
20258 echo "$as_me: failed program was:" >&5
20259sed 's/^/| /' conftest.$ac_ext >&5
20260
20261 ac_cv_lib_gcc___lshrdi3=no
20262fi
20263
20264rm -f core conftest.err conftest.$ac_objext \
20265 conftest$ac_exeext conftest.$ac_ext
20266LIBS=$ac_check_lib_save_LIBS
20267fi
20268{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20269echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20270if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20271
20272cat >>confdefs.h <<\_ACEOF
20273#define HAVE___LSHRDI3 1
20274_ACEOF
20275
20276fi
20277
20278 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20279echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20280if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20281 echo $ECHO_N "(cached) $ECHO_C" >&6
20282else
20283 ac_check_lib_save_LIBS=$LIBS
20284LIBS="-lgcc $LIBS"
20285cat >conftest.$ac_ext <<_ACEOF
20286/* confdefs.h. */
20287_ACEOF
20288cat confdefs.h >>conftest.$ac_ext
20289cat >>conftest.$ac_ext <<_ACEOF
20290/* end confdefs.h. */
20291
20292/* Override any GCC internal prototype to avoid an error.
20293 Use char because int might match the return type of a GCC
20294 builtin and then its argument prototype would still apply. */
20295#ifdef __cplusplus
20296extern "C"
20297#endif
20298char __moddi3 ();
20299int
20300main ()
20301{
20302return __moddi3 ();
20303 ;
20304 return 0;
20305}
20306_ACEOF
20307rm -f conftest.$ac_objext conftest$ac_exeext
20308if { (ac_try="$ac_link"
20309case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20312esac
20313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_link") 2>conftest.er1
20315 ac_status=$?
20316 grep -v '^ *+' conftest.er1 >conftest.err
20317 rm -f conftest.er1
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20322 { (case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20325esac
20326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_try") 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; } &&
20331 { ac_try='test -s conftest$ac_exeext'
20332 { (case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20335esac
20336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_try") 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_cv_lib_gcc___moddi3=yes
20342else
20343 echo "$as_me: failed program was:" >&5
20344sed 's/^/| /' conftest.$ac_ext >&5
20345
20346 ac_cv_lib_gcc___moddi3=no
20347fi
20348
20349rm -f core conftest.err conftest.$ac_objext \
20350 conftest$ac_exeext conftest.$ac_ext
20351LIBS=$ac_check_lib_save_LIBS
20352fi
20353{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20354echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20355if test $ac_cv_lib_gcc___moddi3 = yes; then
20356
20357cat >>confdefs.h <<\_ACEOF
20358#define HAVE___MODDI3 1
20359_ACEOF
20360
20361fi
20362
20363 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20364echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20365if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20367else
20368 ac_check_lib_save_LIBS=$LIBS
20369LIBS="-lgcc $LIBS"
20370cat >conftest.$ac_ext <<_ACEOF
20371/* confdefs.h. */
20372_ACEOF
20373cat confdefs.h >>conftest.$ac_ext
20374cat >>conftest.$ac_ext <<_ACEOF
20375/* end confdefs.h. */
20376
20377/* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20380#ifdef __cplusplus
20381extern "C"
20382#endif
20383char __udivdi3 ();
20384int
20385main ()
20386{
20387return __udivdi3 ();
20388 ;
20389 return 0;
20390}
20391_ACEOF
20392rm -f conftest.$ac_objext conftest$ac_exeext
20393if { (ac_try="$ac_link"
20394case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20397esac
20398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_link") 2>conftest.er1
20400 ac_status=$?
20401 grep -v '^ *+' conftest.er1 >conftest.err
20402 rm -f conftest.er1
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
20406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20407 { (case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20410esac
20411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_try") 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest$ac_exeext'
20417 { (case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420esac
20421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_try") 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 ac_cv_lib_gcc___udivdi3=yes
20427else
20428 echo "$as_me: failed program was:" >&5
20429sed 's/^/| /' conftest.$ac_ext >&5
20430
20431 ac_cv_lib_gcc___udivdi3=no
20432fi
20433
20434rm -f core conftest.err conftest.$ac_objext \
20435 conftest$ac_exeext conftest.$ac_ext
20436LIBS=$ac_check_lib_save_LIBS
20437fi
20438{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20439echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20440if test $ac_cv_lib_gcc___udivdi3 = yes; then
20441
20442cat >>confdefs.h <<\_ACEOF
20443#define HAVE___UDIVDI3 1
20444_ACEOF
20445
20446fi
20447
20448 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20449echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20450if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20452else
20453 ac_check_lib_save_LIBS=$LIBS
20454LIBS="-lgcc $LIBS"
20455cat >conftest.$ac_ext <<_ACEOF
20456/* confdefs.h. */
20457_ACEOF
20458cat confdefs.h >>conftest.$ac_ext
20459cat >>conftest.$ac_ext <<_ACEOF
20460/* end confdefs.h. */
20461
20462/* Override any GCC internal prototype to avoid an error.
20463 Use char because int might match the return type of a GCC
20464 builtin and then its argument prototype would still apply. */
20465#ifdef __cplusplus
20466extern "C"
20467#endif
20468char __umoddi3 ();
20469int
20470main ()
20471{
20472return __umoddi3 ();
20473 ;
20474 return 0;
20475}
20476_ACEOF
20477rm -f conftest.$ac_objext conftest$ac_exeext
20478if { (ac_try="$ac_link"
20479case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482esac
20483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
20485 ac_status=$?
20486 grep -v '^ *+' conftest.er1 >conftest.err
20487 rm -f conftest.er1
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
20491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495esac
20496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest$ac_exeext'
20502 { (case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505esac
20506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_try") 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 ac_cv_lib_gcc___umoddi3=yes
20512else
20513 echo "$as_me: failed program was:" >&5
20514sed 's/^/| /' conftest.$ac_ext >&5
20515
20516 ac_cv_lib_gcc___umoddi3=no
20517fi
20518
20519rm -f core conftest.err conftest.$ac_objext \
20520 conftest$ac_exeext conftest.$ac_ext
20521LIBS=$ac_check_lib_save_LIBS
20522fi
20523{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20524echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20525if test $ac_cv_lib_gcc___umoddi3 = yes; then
20526
20527cat >>confdefs.h <<\_ACEOF
20528#define HAVE___UMODDI3 1
20529_ACEOF
20530
20531fi
20532
20533
20534 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20535echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20536if test "${ac_cv_lib_gcc___main+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20538else
20539 ac_check_lib_save_LIBS=$LIBS
20540LIBS="-lgcc $LIBS"
20541cat >conftest.$ac_ext <<_ACEOF
20542/* confdefs.h. */
20543_ACEOF
20544cat confdefs.h >>conftest.$ac_ext
20545cat >>conftest.$ac_ext <<_ACEOF
20546/* end confdefs.h. */
20547
20548/* Override any GCC internal prototype to avoid an error.
20549 Use char because int might match the return type of a GCC
20550 builtin and then its argument prototype would still apply. */
20551#ifdef __cplusplus
20552extern "C"
20553#endif
20554char __main ();
20555int
20556main ()
20557{
20558return __main ();
20559 ;
20560 return 0;
20561}
20562_ACEOF
20563rm -f conftest.$ac_objext conftest$ac_exeext
20564if { (ac_try="$ac_link"
20565case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20568esac
20569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_link") 2>conftest.er1
20571 ac_status=$?
20572 grep -v '^ *+' conftest.er1 >conftest.err
20573 rm -f conftest.er1
20574 cat conftest.err >&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } &&
20577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20578 { (case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581esac
20582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_try") 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; } &&
20587 { ac_try='test -s conftest$ac_exeext'
20588 { (case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20591esac
20592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_try") 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20597 ac_cv_lib_gcc___main=yes
20598else
20599 echo "$as_me: failed program was:" >&5
20600sed 's/^/| /' conftest.$ac_ext >&5
20601
20602 ac_cv_lib_gcc___main=no
20603fi
20604
20605rm -f core conftest.err conftest.$ac_objext \
20606 conftest$ac_exeext conftest.$ac_ext
20607LIBS=$ac_check_lib_save_LIBS
20608fi
20609{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20610echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20611if test $ac_cv_lib_gcc___main = yes; then
20612
20613cat >>confdefs.h <<\_ACEOF
20614#define HAVE___MAIN 1
20615_ACEOF
20616
20617fi
20618
20619 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20620echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20621if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20623else
20624 ac_check_lib_save_LIBS=$LIBS
20625LIBS="-lgcc $LIBS"
20626cat >conftest.$ac_ext <<_ACEOF
20627/* confdefs.h. */
20628_ACEOF
20629cat confdefs.h >>conftest.$ac_ext
20630cat >>conftest.$ac_ext <<_ACEOF
20631/* end confdefs.h. */
20632
20633/* Override any GCC internal prototype to avoid an error.
20634 Use char because int might match the return type of a GCC
20635 builtin and then its argument prototype would still apply. */
20636#ifdef __cplusplus
20637extern "C"
20638#endif
20639char __cmpdi2 ();
20640int
20641main ()
20642{
20643return __cmpdi2 ();
20644 ;
20645 return 0;
20646}
20647_ACEOF
20648rm -f conftest.$ac_objext conftest$ac_exeext
20649if { (ac_try="$ac_link"
20650case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20653esac
20654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655 (eval "$ac_link") 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
20662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20663 { (case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20666esac
20667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_try") 2>&5
20669 ac_status=$?
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; } &&
20672 { ac_try='test -s conftest$ac_exeext'
20673 { (case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20676esac
20677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_try") 2>&5
20679 ac_status=$?
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 ac_cv_lib_gcc___cmpdi2=yes
20683else
20684 echo "$as_me: failed program was:" >&5
20685sed 's/^/| /' conftest.$ac_ext >&5
20686
20687 ac_cv_lib_gcc___cmpdi2=no
20688fi
20689
20690rm -f core conftest.err conftest.$ac_objext \
20691 conftest$ac_exeext conftest.$ac_ext
20692LIBS=$ac_check_lib_save_LIBS
20693fi
20694{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20695echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20696if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20697
20698cat >>confdefs.h <<\_ACEOF
20699#define HAVE___CMPDI2 1
20700_ACEOF
20701
20702fi
20703
20704fi
20705
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000020706if test "$llvm_cv_os_type" = "MingW" ; then
20707 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20708echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20709 cat >conftest.$ac_ext <<_ACEOF
20710#include <windows.h>
20711#include <imagehlp.h>
20712extern void foo(PENUMLOADED_MODULES_CALLBACK);
20713extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20714_ACEOF
20715rm -f conftest.$ac_objext
20716if { (ac_try="$ac_compile"
20717case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20720esac
20721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_compile") 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20730 { (case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20733esac
20734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_try") 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; } &&
20739 { ac_try='test -s conftest.$ac_objext'
20740 { (case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20743esac
20744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_try") 2>&5
20746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; }; then
20749
20750 { echo "$as_me:$LINENO: result: yes" >&5
20751echo "${ECHO_T}yes" >&6; }
20752 llvm_cv_win32_elmcb_pcstr="PCSTR"
20753
20754else
20755 echo "$as_me: failed program was:" >&5
20756sed 's/^/| /' conftest.$ac_ext >&5
20757
20758
20759 { echo "$as_me:$LINENO: result: no" >&5
20760echo "${ECHO_T}no" >&6; }
20761 llvm_cv_win32_elmcb_pcstr="PSTR"
20762
20763fi
20764
20765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766
20767cat >>confdefs.h <<_ACEOF
20768#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20769_ACEOF
20770
20771fi
20772
Torok Edwin871384f2010-01-26 08:50:50 +000020773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20775echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20776if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020778else
Reid Spencera773bd52006-08-04 18:18:08 +000020779 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000020780ac_cpp='$CXXCPP $CPPFLAGS'
20781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020785 cat >conftest.$ac_ext <<_ACEOF
20786/* confdefs.h. */
20787_ACEOF
20788cat confdefs.h >>conftest.$ac_ext
20789cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020790/* end confdefs.h. */
20791#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020792int
20793main ()
20794{
20795float f; isnan(f);
20796 ;
20797 return 0;
20798}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020799_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020800rm -f conftest.$ac_objext
20801if { (ac_try="$ac_compile"
20802case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20805esac
20806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_compile") 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } &&
20814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20815 { (case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20818esac
20819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_try") 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; } &&
20824 { ac_try='test -s conftest.$ac_objext'
20825 { (case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20828esac
20829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_try") 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020834 ac_cv_func_isnan_in_math_h=yes
20835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020836 echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
20838
20839 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020841
Reid Spencera773bd52006-08-04 18:18:08 +000020842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020843 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020844ac_cpp='$CPP $CPPFLAGS'
20845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847ac_compiler_gnu=$ac_cv_c_compiler_gnu
20848
20849fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020850{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20851echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020852
20853
20854if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020856cat >>confdefs.h <<\_ACEOF
20857#define HAVE_ISNAN_IN_MATH_H 1
20858_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020859
Reid Spencerabec8f92004-10-27 23:03:44 +000020860fi
20861
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020862{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20863echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20864if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020866else
Reid Spencera773bd52006-08-04 18:18:08 +000020867 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020868ac_cpp='$CXXCPP $CPPFLAGS'
20869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020873 cat >conftest.$ac_ext <<_ACEOF
20874/* confdefs.h. */
20875_ACEOF
20876cat confdefs.h >>conftest.$ac_ext
20877cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020878/* end confdefs.h. */
20879#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020880int
20881main ()
20882{
20883float f; isnan(f);
20884 ;
20885 return 0;
20886}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020887_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020888rm -f conftest.$ac_objext
20889if { (ac_try="$ac_compile"
20890case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20893esac
20894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_compile") 2>conftest.er1
20896 ac_status=$?
20897 grep -v '^ *+' conftest.er1 >conftest.err
20898 rm -f conftest.er1
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } &&
20902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20903 { (case "(($ac_try" in
20904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905 *) ac_try_echo=$ac_try;;
20906esac
20907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908 (eval "$ac_try") 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; } &&
20912 { ac_try='test -s conftest.$ac_objext'
20913 { (case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20916esac
20917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_try") 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020922 ac_cv_func_isnan_in_cmath=yes
20923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020924 echo "$as_me: failed program was:" >&5
20925sed 's/^/| /' conftest.$ac_ext >&5
20926
20927 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020928fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020929
Reid Spencera773bd52006-08-04 18:18:08 +000020930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020931 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020932ac_cpp='$CPP $CPPFLAGS'
20933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20935ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936
20937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020938{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20939echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020940
20941if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020943cat >>confdefs.h <<\_ACEOF
20944#define HAVE_ISNAN_IN_CMATH 1
20945_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020946
Reid Spencerabec8f92004-10-27 23:03:44 +000020947fi
20948
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020949{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20950echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20951if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020953else
Reid Spencera773bd52006-08-04 18:18:08 +000020954 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020955ac_cpp='$CXXCPP $CPPFLAGS'
20956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020960 cat >conftest.$ac_ext <<_ACEOF
20961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020965/* end confdefs.h. */
20966#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020967int
20968main ()
20969{
20970float f; std::isnan(f);
20971 ;
20972 return 0;
20973}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020974_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020975rm -f conftest.$ac_objext
20976if { (ac_try="$ac_compile"
20977case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980esac
20981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993esac
20994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003esac
21004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021009 ac_cv_func_std_isnan_in_cmath=yes
21010else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021011 echo "$as_me: failed program was:" >&5
21012sed 's/^/| /' conftest.$ac_ext >&5
21013
21014 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021016
Reid Spencera773bd52006-08-04 18:18:08 +000021017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021018 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021019ac_cpp='$CPP $CPPFLAGS'
21020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21026echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021027
21028if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021030cat >>confdefs.h <<\_ACEOF
21031#define HAVE_STD_ISNAN_IN_CMATH 1
21032_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021033
Reid Spencerabec8f92004-10-27 23:03:44 +000021034fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021035
21036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021037{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21038echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21039if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021041else
Reid Spencera773bd52006-08-04 18:18:08 +000021042 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021043ac_cpp='$CXXCPP $CPPFLAGS'
21044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021048 cat >conftest.$ac_ext <<_ACEOF
21049/* confdefs.h. */
21050_ACEOF
21051cat confdefs.h >>conftest.$ac_ext
21052cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021053/* end confdefs.h. */
21054#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021055int
21056main ()
21057{
21058float f; isinf(f);
21059 ;
21060 return 0;
21061}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021062_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021063rm -f conftest.$ac_objext
21064if { (ac_try="$ac_compile"
21065case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21068esac
21069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_compile") 2>conftest.er1
21071 ac_status=$?
21072 grep -v '^ *+' conftest.er1 >conftest.err
21073 rm -f conftest.er1
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } &&
21077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21078 { (case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21081esac
21082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_try") 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; } &&
21087 { ac_try='test -s conftest.$ac_objext'
21088 { (case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21091esac
21092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_try") 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021097 ac_cv_func_isinf_in_math_h=yes
21098else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021099 echo "$as_me: failed program was:" >&5
21100sed 's/^/| /' conftest.$ac_ext >&5
21101
21102 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021103fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021104
Reid Spencera773bd52006-08-04 18:18:08 +000021105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021106 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021107ac_cpp='$CPP $CPPFLAGS'
21108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111
21112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021113{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21114echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021115
21116if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021118cat >>confdefs.h <<\_ACEOF
21119#define HAVE_ISINF_IN_MATH_H 1
21120_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021121
Reid Spencerabec8f92004-10-27 23:03:44 +000021122fi
21123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021124{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21125echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21126if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021128else
Reid Spencera773bd52006-08-04 18:18:08 +000021129 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021130ac_cpp='$CXXCPP $CPPFLAGS'
21131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021135 cat >conftest.$ac_ext <<_ACEOF
21136/* confdefs.h. */
21137_ACEOF
21138cat confdefs.h >>conftest.$ac_ext
21139cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021140/* end confdefs.h. */
21141#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021142int
21143main ()
21144{
21145float f; isinf(f);
21146 ;
21147 return 0;
21148}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021149_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021150rm -f conftest.$ac_objext
21151if { (ac_try="$ac_compile"
21152case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21155esac
21156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_compile") 2>conftest.er1
21158 ac_status=$?
21159 grep -v '^ *+' conftest.er1 >conftest.err
21160 rm -f conftest.er1
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } &&
21164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21165 { (case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21168esac
21169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170 (eval "$ac_try") 2>&5
21171 ac_status=$?
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try='test -s conftest.$ac_objext'
21175 { (case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21178esac
21179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_try") 2>&5
21181 ac_status=$?
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021184 ac_cv_func_isinf_in_cmath=yes
21185else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021186 echo "$as_me: failed program was:" >&5
21187sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021190fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021191
Reid Spencera773bd52006-08-04 18:18:08 +000021192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021193 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021194ac_cpp='$CPP $CPPFLAGS'
21195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198
21199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021200{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21201echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021202
21203if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021205cat >>confdefs.h <<\_ACEOF
21206#define HAVE_ISINF_IN_CMATH 1
21207_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021208
Reid Spencerabec8f92004-10-27 23:03:44 +000021209fi
21210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021211{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21212echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21213if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021215else
Reid Spencera773bd52006-08-04 18:18:08 +000021216 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021217ac_cpp='$CXXCPP $CPPFLAGS'
21218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021222 cat >conftest.$ac_ext <<_ACEOF
21223/* confdefs.h. */
21224_ACEOF
21225cat confdefs.h >>conftest.$ac_ext
21226cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021227/* end confdefs.h. */
21228#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021229int
21230main ()
21231{
21232float f; std::isinf(f)}
21233 ;
21234 return 0;
21235}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021236_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021237rm -f conftest.$ac_objext
21238if { (ac_try="$ac_compile"
21239case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21242esac
21243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_compile") 2>conftest.er1
21245 ac_status=$?
21246 grep -v '^ *+' conftest.er1 >conftest.err
21247 rm -f conftest.er1
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } &&
21251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21252 { (case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21255esac
21256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_try") 2>&5
21258 ac_status=$?
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try='test -s conftest.$ac_objext'
21262 { (case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21265esac
21266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_try") 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021271 ac_cv_func_std_isinf_in_cmath=yes
21272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021273 echo "$as_me: failed program was:" >&5
21274sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021278
Reid Spencera773bd52006-08-04 18:18:08 +000021279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021280 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021281ac_cpp='$CPP $CPPFLAGS'
21282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21284ac_compiler_gnu=$ac_cv_c_compiler_gnu
21285
21286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021287{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21288echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021289
21290if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021292cat >>confdefs.h <<\_ACEOF
21293#define HAVE_STD_ISINF_IN_CMATH 1
21294_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021295
Reid Spencerabec8f92004-10-27 23:03:44 +000021296fi
21297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021298{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21299echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21300if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000021302else
Reid Spencera773bd52006-08-04 18:18:08 +000021303 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000021304ac_cpp='$CXXCPP $CPPFLAGS'
21305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021309 cat >conftest.$ac_ext <<_ACEOF
21310/* confdefs.h. */
21311_ACEOF
21312cat confdefs.h >>conftest.$ac_ext
21313cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021314/* end confdefs.h. */
21315#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021316int
21317main ()
21318{
21319float f; finite(f);
21320 ;
21321 return 0;
21322}
Brian Gaeked59a6472004-07-21 03:33:58 +000021323_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021324rm -f conftest.$ac_objext
21325if { (ac_try="$ac_compile"
21326case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21329esac
21330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_compile") 2>conftest.er1
21332 ac_status=$?
21333 grep -v '^ *+' conftest.er1 >conftest.err
21334 rm -f conftest.er1
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } &&
21338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21339 { (case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21342esac
21343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_try") 2>&5
21345 ac_status=$?
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; } &&
21348 { ac_try='test -s conftest.$ac_objext'
21349 { (case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21352esac
21353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_try") 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021358 ac_cv_func_finite_in_ieeefp_h=yes
21359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021360 echo "$as_me: failed program was:" >&5
21361sed 's/^/| /' conftest.$ac_ext >&5
21362
21363 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000021364fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021365
Reid Spencera773bd52006-08-04 18:18:08 +000021366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021367 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000021368ac_cpp='$CPP $CPPFLAGS'
21369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21371ac_compiler_gnu=$ac_cv_c_compiler_gnu
21372
21373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021374{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21375echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021376
Brian Gaeke6802b552004-10-28 05:06:45 +000021377if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379cat >>confdefs.h <<\_ACEOF
21380#define HAVE_FINITE_IN_IEEEFP_H 1
21381_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021382
Reid Spencerabec8f92004-10-27 23:03:44 +000021383fi
21384
21385
21386
Reid Spencer30fe5262007-01-20 07:48:49 +000021387if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000021388
21389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021390for ac_header in stdlib.h unistd.h
21391do
21392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21398fi
21399ac_res=`eval echo '${'$as_ac_Header'}'`
21400 { echo "$as_me:$LINENO: result: $ac_res" >&5
21401echo "${ECHO_T}$ac_res" >&6; }
21402else
21403 # Is the header compilable?
21404{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21406cat >conftest.$ac_ext <<_ACEOF
21407/* confdefs.h. */
21408_ACEOF
21409cat confdefs.h >>conftest.$ac_ext
21410cat >>conftest.$ac_ext <<_ACEOF
21411/* end confdefs.h. */
21412$ac_includes_default
21413#include <$ac_header>
21414_ACEOF
21415rm -f conftest.$ac_objext
21416if { (ac_try="$ac_compile"
21417case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21420esac
21421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21430 { (case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21433esac
21434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_try") 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; } &&
21439 { ac_try='test -s conftest.$ac_objext'
21440 { (case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21443esac
21444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_try") 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_header_compiler=yes
21450else
21451 echo "$as_me: failed program was:" >&5
21452sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021453
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021454 ac_header_compiler=no
21455fi
21456
21457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21458{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21459echo "${ECHO_T}$ac_header_compiler" >&6; }
21460
21461# Is the header present?
21462{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21464cat >conftest.$ac_ext <<_ACEOF
21465/* confdefs.h. */
21466_ACEOF
21467cat confdefs.h >>conftest.$ac_ext
21468cat >>conftest.$ac_ext <<_ACEOF
21469/* end confdefs.h. */
21470#include <$ac_header>
21471_ACEOF
21472if { (ac_try="$ac_cpp conftest.$ac_ext"
21473case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21476esac
21477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21479 ac_status=$?
21480 grep -v '^ *+' conftest.er1 >conftest.err
21481 rm -f conftest.er1
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } >/dev/null; then
21485 if test -s conftest.err; then
21486 ac_cpp_err=$ac_c_preproc_warn_flag
21487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21488 else
21489 ac_cpp_err=
21490 fi
21491else
21492 ac_cpp_err=yes
21493fi
21494if test -z "$ac_cpp_err"; then
21495 ac_header_preproc=yes
21496else
21497 echo "$as_me: failed program was:" >&5
21498sed 's/^/| /' conftest.$ac_ext >&5
21499
21500 ac_header_preproc=no
21501fi
21502
21503rm -f conftest.err conftest.$ac_ext
21504{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505echo "${ECHO_T}$ac_header_preproc" >&6; }
21506
21507# So? What about this header?
21508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21509 yes:no: )
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21514 ac_header_preproc=yes
21515 ;;
21516 no:yes:* )
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21529 ( cat <<\_ASBOX
21530## ----------------------------------- ##
21531## Report this to llvmbugs@cs.uiuc.edu ##
21532## ----------------------------------- ##
21533_ASBOX
21534 ) | sed "s/^/$as_me: WARNING: /" >&2
21535 ;;
21536esac
21537{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541else
21542 eval "$as_ac_Header=\$ac_header_preproc"
21543fi
21544ac_res=`eval echo '${'$as_ac_Header'}'`
21545 { echo "$as_me:$LINENO: result: $ac_res" >&5
21546echo "${ECHO_T}$ac_res" >&6; }
21547
21548fi
21549if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021550 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021552_ACEOF
21553
21554fi
21555
21556done
21557
21558
21559for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021560do
21561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21562{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21564if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21566else
21567 cat >conftest.$ac_ext <<_ACEOF
21568/* confdefs.h. */
21569_ACEOF
21570cat confdefs.h >>conftest.$ac_ext
21571cat >>conftest.$ac_ext <<_ACEOF
21572/* end confdefs.h. */
21573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21575#define $ac_func innocuous_$ac_func
21576
21577/* System header to define __stub macros and hopefully few prototypes,
21578 which can conflict with char $ac_func (); below.
21579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21580 <limits.h> exists even on freestanding compilers. */
21581
21582#ifdef __STDC__
21583# include <limits.h>
21584#else
21585# include <assert.h>
21586#endif
21587
21588#undef $ac_func
21589
21590/* Override any GCC internal prototype to avoid an error.
21591 Use char because int might match the return type of a GCC
21592 builtin and then its argument prototype would still apply. */
21593#ifdef __cplusplus
21594extern "C"
21595#endif
21596char $ac_func ();
21597/* The GNU C library defines this for functions which it implements
21598 to always fail with ENOSYS. Some functions are actually named
21599 something starting with __ and the normal name is an alias. */
21600#if defined __stub_$ac_func || defined __stub___$ac_func
21601choke me
21602#endif
21603
21604int
21605main ()
21606{
21607return $ac_func ();
21608 ;
21609 return 0;
21610}
21611_ACEOF
21612rm -f conftest.$ac_objext conftest$ac_exeext
21613if { (ac_try="$ac_link"
21614case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21617esac
21618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_link") 2>conftest.er1
21620 ac_status=$?
21621 grep -v '^ *+' conftest.er1 >conftest.err
21622 rm -f conftest.er1
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } &&
21626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21627 { (case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21630esac
21631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_try") 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; } &&
21636 { ac_try='test -s conftest$ac_exeext'
21637 { (case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21640esac
21641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_try") 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21646 eval "$as_ac_var=yes"
21647else
21648 echo "$as_me: failed program was:" >&5
21649sed 's/^/| /' conftest.$ac_ext >&5
21650
21651 eval "$as_ac_var=no"
21652fi
21653
21654rm -f core conftest.err conftest.$ac_objext \
21655 conftest$ac_exeext conftest.$ac_ext
21656fi
21657ac_res=`eval echo '${'$as_ac_var'}'`
21658 { echo "$as_me:$LINENO: result: $ac_res" >&5
21659echo "${ECHO_T}$ac_res" >&6; }
21660if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021661 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021663_ACEOF
21664
21665fi
21666done
21667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021668{ echo "$as_me:$LINENO: checking for working mmap" >&5
21669echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21670if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21671 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021673 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021674 ac_cv_func_mmap_fixed_mapped=no
21675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021676 cat >conftest.$ac_ext <<_ACEOF
21677/* confdefs.h. */
21678_ACEOF
21679cat confdefs.h >>conftest.$ac_ext
21680cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021681/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021682$ac_includes_default
21683/* malloc might have been renamed as rpl_malloc. */
21684#undef malloc
21685
21686/* Thanks to Mike Haertel and Jim Avera for this test.
21687 Here is a matrix of mmap possibilities:
21688 mmap private not fixed
21689 mmap private fixed at somewhere currently unmapped
21690 mmap private fixed at somewhere already mapped
21691 mmap shared not fixed
21692 mmap shared fixed at somewhere currently unmapped
21693 mmap shared fixed at somewhere already mapped
21694 For private mappings, we should verify that changes cannot be read()
21695 back from the file, nor mmap's back from the file at a different
21696 address. (There have been systems where private was not correctly
21697 implemented like the infamous i386 svr4.0, and systems where the
21698 VM page cache was not coherent with the file system buffer cache
21699 like early versions of FreeBSD and possibly contemporary NetBSD.)
21700 For shared mappings, we should conversely verify that changes get
21701 propagated back to all the places they're supposed to be.
21702
21703 Grep wants private fixed already mapped.
21704 The main things grep needs to know about mmap are:
21705 * does it exist and is it safe to write into the mmap'd area
21706 * how to use it (BSD variants) */
21707
21708#include <fcntl.h>
21709#include <sys/mman.h>
21710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021711#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000021712char *malloc ();
21713#endif
21714
21715/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021716#if !HAVE_GETPAGESIZE
21717/* Assume that all systems that can run configure have sys/param.h. */
21718# if !HAVE_SYS_PARAM_H
21719# define HAVE_SYS_PARAM_H 1
21720# endif
21721
John Criswell7a73b802003-06-30 21:59:07 +000021722# ifdef _SC_PAGESIZE
21723# define getpagesize() sysconf(_SC_PAGESIZE)
21724# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021725# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000021726# include <sys/param.h>
21727# ifdef EXEC_PAGESIZE
21728# define getpagesize() EXEC_PAGESIZE
21729# else /* no EXEC_PAGESIZE */
21730# ifdef NBPG
21731# define getpagesize() NBPG * CLSIZE
21732# ifndef CLSIZE
21733# define CLSIZE 1
21734# endif /* no CLSIZE */
21735# else /* no NBPG */
21736# ifdef NBPC
21737# define getpagesize() NBPC
21738# else /* no NBPC */
21739# ifdef PAGESIZE
21740# define getpagesize() PAGESIZE
21741# endif /* PAGESIZE */
21742# endif /* no NBPC */
21743# endif /* no NBPG */
21744# endif /* no EXEC_PAGESIZE */
21745# else /* no HAVE_SYS_PARAM_H */
21746# define getpagesize() 8192 /* punt totally */
21747# endif /* no HAVE_SYS_PARAM_H */
21748# endif /* no _SC_PAGESIZE */
21749
21750#endif /* no HAVE_GETPAGESIZE */
21751
21752int
21753main ()
21754{
21755 char *data, *data2, *data3;
21756 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021757 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000021758
21759 pagesize = getpagesize ();
21760
21761 /* First, make a file with some known garbage in it. */
21762 data = (char *) malloc (pagesize);
21763 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000021764 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021765 for (i = 0; i < pagesize; ++i)
21766 *(data + i) = rand ();
21767 umask (0);
21768 fd = creat ("conftest.mmap", 0600);
21769 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021770 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021771 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021773 close (fd);
21774
21775 /* Next, try to mmap the file at a fixed address which already has
21776 something else allocated at it. If we can, also make sure that
21777 we see the same garbage. */
21778 fd = open ("conftest.mmap", O_RDWR);
21779 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021780 return 1;
21781 data2 = (char *) malloc (2 * pagesize);
21782 if (!data2)
21783 return 1;
21784 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021785 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000021786 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021787 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021788 for (i = 0; i < pagesize; ++i)
21789 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021790 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021791
21792 /* Finally, make sure that changes to the mapped area do not
21793 percolate back to the file as seen by read(). (This is a bug on
21794 some variants of i386 svr4.0.) */
21795 for (i = 0; i < pagesize; ++i)
21796 *(data2 + i) = *(data2 + i) + 1;
21797 data3 = (char *) malloc (pagesize);
21798 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021799 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021800 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021801 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021802 for (i = 0; i < pagesize; ++i)
21803 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021805 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000021806 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021807}
21808_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809rm -f conftest$ac_exeext
21810if { (ac_try="$ac_link"
21811case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21814esac
21815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_link") 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21820 { (case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21823esac
21824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_try") 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021829 ac_cv_func_mmap_fixed_mapped=yes
21830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021831 echo "$as_me: program exited with status $ac_status" >&5
21832echo "$as_me: failed program was:" >&5
21833sed 's/^/| /' conftest.$ac_ext >&5
21834
21835( exit $ac_status )
21836ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000021837fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021838rm -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 +000021839fi
Reid Spencera773bd52006-08-04 18:18:08 +000021840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841
John Criswell7a73b802003-06-30 21:59:07 +000021842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021843{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21844echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021845if test $ac_cv_func_mmap_fixed_mapped = yes; then
21846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847cat >>confdefs.h <<\_ACEOF
21848#define HAVE_MMAP 1
21849_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021850
21851fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000021853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021854 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21855echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21856if test "${ac_cv_func_mmap_file+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021858else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021859 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000021860ac_cpp='$CPP $CPPFLAGS'
21861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863ac_compiler_gnu=$ac_cv_c_compiler_gnu
21864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021865 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021866 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021868 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000021869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870 /* confdefs.h. */
21871_ACEOF
21872cat confdefs.h >>conftest.$ac_ext
21873cat >>conftest.$ac_ext <<_ACEOF
21874/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000021875
John Criswell7a73b802003-06-30 21:59:07 +000021876#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000021877#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000021878#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000021879
21880int
21881main ()
21882{
John Criswell7a73b802003-06-30 21:59:07 +000021883
21884 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021885 fd = creat ("foo",0777);
21886 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21887 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021888 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021889 ;
21890 return 0;
21891}
John Criswell7a73b802003-06-30 21:59:07 +000021892_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893rm -f conftest$ac_exeext
21894if { (ac_try="$ac_link"
21895case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21898esac
21899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_link") 2>&5
21901 ac_status=$?
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21904 { (case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21907esac
21908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_try") 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021913 ac_cv_func_mmap_file=yes
21914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021915 echo "$as_me: program exited with status $ac_status" >&5
21916echo "$as_me: failed program was:" >&5
21917sed 's/^/| /' conftest.$ac_ext >&5
21918
21919( exit $ac_status )
21920ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021921fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922rm -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 +000021923fi
Reid Spencera773bd52006-08-04 18:18:08 +000021924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021925
John Criswell7a73b802003-06-30 21:59:07 +000021926 ac_ext=c
21927ac_cpp='$CPP $CPPFLAGS'
21928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21930ac_compiler_gnu=$ac_cv_c_compiler_gnu
21931
21932
21933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021934{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21935echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021936if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938cat >>confdefs.h <<\_ACEOF
21939#define HAVE_MMAP_FILE
21940_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021941
21942 MMAP_FILE=yes
21943
21944fi
21945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021946 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21947echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21948if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021950else
Reid Spencer582a23c2004-12-29 07:07:57 +000021951 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021952 ac_cv_need_dev_zero_for_mmap=yes
21953 else
21954 ac_cv_need_dev_zero_for_mmap=no
21955 fi
21956
21957fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21959echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021960if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021962cat >>confdefs.h <<\_ACEOF
21963#define NEED_DEV_ZERO_FOR_MMAP 1
21964_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021965
21966fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021967
Reid Spencer30fe5262007-01-20 07:48:49 +000021968 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21969 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021970 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21971echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021972 fi
21973 if test "$ac_cv_func_mmap_file" = "no"
21974 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021975 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21976echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021977 fi
John Criswellb13092b2003-07-22 21:00:24 +000021978fi
John Criswell7a73b802003-06-30 21:59:07 +000021979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21981echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021982ac_ext=cpp
21983ac_cpp='$CXXCPP $CPPFLAGS'
21984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988cat >conftest.$ac_ext <<_ACEOF
21989/* confdefs.h. */
21990_ACEOF
21991cat confdefs.h >>conftest.$ac_ext
21992cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021993/* end confdefs.h. */
21994int main() {
Owen Andersona8603702009-05-19 22:18:56 +000021995 volatile unsigned long val = 1;
21996 __sync_synchronize();
21997 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000021998 __sync_add_and_fetch(&val, 1);
21999 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000022000 return 0;
22001 }
Owen Andersond4b272b2009-05-18 23:58:51 +000022002
22003_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022004rm -f conftest.$ac_objext conftest$ac_exeext
22005if { (ac_try="$ac_link"
22006case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22009esac
22010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_link") 2>conftest.er1
22012 ac_status=$?
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } &&
22018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22019 { (case "(($ac_try" in
22020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22022esac
22023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024 (eval "$ac_try") 2>&5
22025 ac_status=$?
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); }; } &&
22028 { ac_try='test -s conftest$ac_exeext'
22029 { (case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22032esac
22033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_try") 2>&5
22035 ac_status=$?
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000022038 ac_ext=c
22039ac_cpp='$CPP $CPPFLAGS'
22040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22042ac_compiler_gnu=$ac_cv_c_compiler_gnu
22043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022044 { echo "$as_me:$LINENO: result: yes" >&5
22045echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000022046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022047cat >>confdefs.h <<\_ACEOF
22048#define LLVM_MULTITHREADED 1
22049_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000022050
Owen Andersond4b272b2009-05-18 23:58:51 +000022051else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022052 echo "$as_me: failed program was:" >&5
22053sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000022054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022055 { echo "$as_me:$LINENO: result: no" >&5
22056echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000022057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022058cat >>confdefs.h <<\_ACEOF
22059#define LLVM_MULTITHREADED 0
22060_ACEOF
22061
22062 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22063echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000022064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022065
Owen Andersond4b272b2009-05-18 23:58:51 +000022066rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022067 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000022068
John Criswell7a73b802003-06-30 21:59:07 +000022069
Nick Lewycky4372e692009-09-29 06:18:23 +000022070if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022071 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22072echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22073if test "${llvm_cv_linux_mixed+set}" = set; then
22074 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000022075else
22076 ac_ext=c
22077ac_cpp='$CPP $CPPFLAGS'
22078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080ac_compiler_gnu=$ac_cv_c_compiler_gnu
22081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022082 cat >conftest.$ac_ext <<_ACEOF
22083/* confdefs.h. */
22084_ACEOF
22085cat confdefs.h >>conftest.$ac_ext
22086cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000022087/* end confdefs.h. */
22088#ifndef __x86_64__
22089 error: Not x86-64 even if uname says so!
22090 #endif
22091
22092int
22093main ()
22094{
22095
22096 ;
22097 return 0;
22098}
22099_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022100rm -f conftest.$ac_objext
22101if { (ac_try="$ac_compile"
22102case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22105esac
22106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107 (eval "$ac_compile") 2>conftest.er1
22108 ac_status=$?
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
22114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22115 { (case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22118esac
22119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_try") 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; } &&
22124 { ac_try='test -s conftest.$ac_objext'
22125 { (case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22128esac
22129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130 (eval "$ac_try") 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000022134 llvm_cv_linux_mixed=no
22135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022136 echo "$as_me: failed program was:" >&5
22137sed 's/^/| /' conftest.$ac_ext >&5
22138
22139 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000022140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022141
Nick Lewycky4372e692009-09-29 06:18:23 +000022142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 ac_ext=c
22144ac_cpp='$CPP $CPPFLAGS'
22145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22147ac_compiler_gnu=$ac_cv_c_compiler_gnu
22148
22149
22150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022151{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22152echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000022153
22154 if test "$llvm_cv_linux_mixed" = "yes"; then
22155 llvm_cv_target_arch="x86"
22156 ARCH="x86"
22157 fi
22158fi
22159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022160
Reid Spencer9372f152007-07-30 20:13:24 +000022161for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022162do
22163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22164{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22166if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22168else
22169 cat >conftest.$ac_ext <<_ACEOF
22170/* confdefs.h. */
22171_ACEOF
22172cat confdefs.h >>conftest.$ac_ext
22173cat >>conftest.$ac_ext <<_ACEOF
22174/* end confdefs.h. */
22175/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22177#define $ac_func innocuous_$ac_func
22178
22179/* System header to define __stub macros and hopefully few prototypes,
22180 which can conflict with char $ac_func (); below.
22181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22182 <limits.h> exists even on freestanding compilers. */
22183
22184#ifdef __STDC__
22185# include <limits.h>
22186#else
22187# include <assert.h>
22188#endif
22189
22190#undef $ac_func
22191
22192/* Override any GCC internal prototype to avoid an error.
22193 Use char because int might match the return type of a GCC
22194 builtin and then its argument prototype would still apply. */
22195#ifdef __cplusplus
22196extern "C"
22197#endif
22198char $ac_func ();
22199/* The GNU C library defines this for functions which it implements
22200 to always fail with ENOSYS. Some functions are actually named
22201 something starting with __ and the normal name is an alias. */
22202#if defined __stub_$ac_func || defined __stub___$ac_func
22203choke me
22204#endif
22205
22206int
22207main ()
22208{
22209return $ac_func ();
22210 ;
22211 return 0;
22212}
22213_ACEOF
22214rm -f conftest.$ac_objext conftest$ac_exeext
22215if { (ac_try="$ac_link"
22216case "(($ac_try" in
22217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218 *) ac_try_echo=$ac_try;;
22219esac
22220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221 (eval "$ac_link") 2>conftest.er1
22222 ac_status=$?
22223 grep -v '^ *+' conftest.er1 >conftest.err
22224 rm -f conftest.er1
22225 cat conftest.err >&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } &&
22228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22229 { (case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22232esac
22233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_try") 2>&5
22235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; } &&
22238 { ac_try='test -s conftest$ac_exeext'
22239 { (case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242esac
22243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_try") 2>&5
22245 ac_status=$?
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; }; then
22248 eval "$as_ac_var=yes"
22249else
22250 echo "$as_me: failed program was:" >&5
22251sed 's/^/| /' conftest.$ac_ext >&5
22252
22253 eval "$as_ac_var=no"
22254fi
22255
22256rm -f core conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22258fi
22259ac_res=`eval echo '${'$as_ac_var'}'`
22260 { echo "$as_me:$LINENO: result: $ac_res" >&5
22261echo "${ECHO_T}$ac_res" >&6; }
22262if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000022263 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000022265_ACEOF
22266
22267fi
22268done
22269
22270
Tobias Grossera84b5672010-11-10 16:31:34 +000022271{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22272echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22273if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22275else
22276 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022277if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022278 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022279 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000022280 if test $? -eq 0 ; then
22281 llvm_cv_llvmgcc_dragonegg="yes"
22282 fi
22283 rm conftest.c
22284fi
22285fi
22286{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22287echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22288
22289if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22290 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sandsfcc482e2011-05-23 16:50:29 +000022291 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
Tobias Grossera84b5672010-11-10 16:31:34 +000022292else
22293 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022294 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022295fi
22296
22297
22298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022299{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22300echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22301if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022303else
22304 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022305if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022306 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022307 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000022308 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022309 if test $? -eq 0 ; then
22310 llvm_cv_llvmgcc_sanity="yes"
22311 fi
22312 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000022313fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022315{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22316echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022317
22318if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022319 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22320echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000022321 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022322 LLVMCC1=$llvmcc1path
22323
Duncan Sands1526b192010-11-25 17:47:42 +000022324 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022325 LLVMCC1PLUS=$llvmcc1pluspath
22326
Reid Spencer502935f2004-12-22 05:56:56 +000022327 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22328 LLVMGCCDIR=$llvmgccdir
22329
Duncan Sands1526b192010-11-25 17:47:42 +000022330 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000022331 LLVMGCC_LANGS=$llvmgcclangs
22332
Tobias Grossera84b5672010-11-10 16:31:34 +000022333 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22334
22335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022336 { echo "$as_me:$LINENO: result: ok" >&5
22337echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000022338fi
22339
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022340SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000022341
22342
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022343SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22344
22345
Reid Spencere9de0912004-08-20 09:03:57 +000022346# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022347# information into substitutions that will end up in Makefile.config.in
22348# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000022349if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000022350 prefix="/usr/local"
22351fi
Reid Spencere9de0912004-08-20 09:03:57 +000022352eval LLVM_PREFIX="${prefix}";
22353eval LLVM_BINDIR="${prefix}/bin";
22354eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000022355eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000022356eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000022357eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000022358eval LLVM_INCLUDEDIR="${prefix}/include";
22359eval LLVM_INFODIR="${prefix}/info";
22360eval LLVM_MANDIR="${prefix}/man";
22361LLVM_CONFIGTIME=`date`
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022373# Place the various directores into the config.h file as #defines so that we
22374# can know about the installation paths within LLVM.
22375
Reid Spencere9de0912004-08-20 09:03:57 +000022376cat >>confdefs.h <<_ACEOF
22377#define LLVM_PREFIX "$LLVM_PREFIX"
22378_ACEOF
22379
22380
22381cat >>confdefs.h <<_ACEOF
22382#define LLVM_BINDIR "$LLVM_BINDIR"
22383_ACEOF
22384
22385
22386cat >>confdefs.h <<_ACEOF
22387#define LLVM_LIBDIR "$LLVM_LIBDIR"
22388_ACEOF
22389
22390
22391cat >>confdefs.h <<_ACEOF
22392#define LLVM_DATADIR "$LLVM_DATADIR"
22393_ACEOF
22394
22395
22396cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000022397#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022398_ACEOF
22399
22400
22401cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022402#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022403_ACEOF
22404
22405
22406cat >>confdefs.h <<_ACEOF
22407#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22408_ACEOF
22409
22410
22411cat >>confdefs.h <<_ACEOF
22412#define LLVM_INFODIR "$LLVM_INFODIR"
22413_ACEOF
22414
22415
22416cat >>confdefs.h <<_ACEOF
22417#define LLVM_MANDIR "$LLVM_MANDIR"
22418_ACEOF
22419
22420
22421cat >>confdefs.h <<_ACEOF
22422#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22423_ACEOF
22424
22425
Eric Christopher790e11c2007-12-01 00:34:39 +000022426cat >>confdefs.h <<_ACEOF
22427#define LLVM_HOSTTRIPLE "$host"
22428_ACEOF
22429
22430
Gordon Henriksenc0efff82007-10-02 09:50:32 +000022431# Determine which bindings to build.
22432if test "$BINDINGS_TO_BUILD" = auto ; then
22433 BINDINGS_TO_BUILD=""
22434 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22435 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22436 fi
22437fi
22438BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22439
22440
22441# This isn't really configurey, but it avoids having to repeat the list in
22442# other files.
22443ALL_BINDINGS=ocaml
22444
22445
Gordon Henriksenf0915682007-10-02 16:42:22 +000022446# Do any work necessary to ensure that bindings have what they need.
22447binding_prereqs_failed=0
22448for a_binding in $BINDINGS_TO_BUILD ; do
22449 case "$a_binding" in
22450 ocaml)
22451 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022452 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22453echo "$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 +000022454 binding_prereqs_failed=1
22455 fi
22456 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022457 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22458echo "$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 +000022459 binding_prereqs_failed=1
22460 fi
22461 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022462 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22463echo "$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 +000022464 fi
22465 if test "x$with_ocaml_libdir" != xauto ; then
22466 OCAML_LIBDIR=$with_ocaml_libdir
22467
22468 else
22469 ocaml_stdlib="`"$OCAMLC" -where`"
22470 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22471 then
22472 # ocaml stdlib is beneath our prefix; use stdlib
22473 OCAML_LIBDIR=$ocaml_stdlib
22474
22475 else
22476 # ocaml stdlib is outside our prefix; use libdir/ocaml
22477 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22478
22479 fi
22480 fi
22481 ;;
22482 esac
22483done
22484if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022485 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22486echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22487 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000022488fi
22489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022490{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22491echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22492if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022494else
22495 ac_ext=cpp
22496ac_cpp='$CXXCPP $CPPFLAGS'
22497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22500
22501 oldcxxflags="$CXXFLAGS"
22502 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022503 cat >conftest.$ac_ext <<_ACEOF
22504/* confdefs.h. */
22505_ACEOF
22506cat confdefs.h >>conftest.$ac_ext
22507cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022508/* end confdefs.h. */
22509
22510int
22511main ()
22512{
22513
22514 ;
22515 return 0;
22516}
22517_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022518rm -f conftest.$ac_objext
22519if { (ac_try="$ac_compile"
22520case "(($ac_try" in
22521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522 *) ac_try_echo=$ac_try;;
22523esac
22524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22525 (eval "$ac_compile") 2>conftest.er1
22526 ac_status=$?
22527 grep -v '^ *+' conftest.er1 >conftest.err
22528 rm -f conftest.er1
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22533 { (case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22536esac
22537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_try") 2>&5
22539 ac_status=$?
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; } &&
22542 { ac_try='test -s conftest.$ac_objext'
22543 { (case "(($ac_try" in
22544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545 *) ac_try_echo=$ac_try;;
22546esac
22547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548 (eval "$ac_try") 2>&5
22549 ac_status=$?
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022552 llvm_cv_cxx_visibility_inlines_hidden=yes
22553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022554 echo "$as_me: failed program was:" >&5
22555sed 's/^/| /' conftest.$ac_ext >&5
22556
22557 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022559
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561 CXXFLAGS="$oldcxxflags"
22562 ac_ext=c
22563ac_cpp='$CPP $CPPFLAGS'
22564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22566ac_compiler_gnu=$ac_cv_c_compiler_gnu
22567
22568
22569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022570{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22571echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022572if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22573 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22574
22575else
22576 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22577
22578fi
22579
Gordon Henriksenf0915682007-10-02 16:42:22 +000022580
Nick Lewycky731c6ab2009-03-05 08:20:44 +000022581if test "$llvm_cv_link_use_r" = "yes" ; then
22582 RPATH="-Wl,-R"
22583else
22584 RPATH="-Wl,-rpath"
22585fi
22586
22587
22588if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22589 RDYNAMIC="-Wl,-export-dynamic"
22590else
22591 RDYNAMIC=""
22592fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000022593
22594
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022595
Eric Christophera1cba682010-08-08 02:44:25 +000022596ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022597
Eric Christopher21d3eeb2010-08-08 09:20:39 +000022598
22599
22600
22601
22602
Douglas Gregor1555a232009-06-16 20:12:29 +000022603ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22604
22605ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22606
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022607ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22608
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022609ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22610
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022611ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022612
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022613
Reid Spencera773bd52006-08-04 18:18:08 +000022614ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022615
22616
Reid Spencerea949cf2006-08-16 00:45:38 +000022617ac_config_files="$ac_config_files llvm.spec"
22618
22619
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022620ac_config_files="$ac_config_files docs/doxygen.cfg"
22621
22622if test -f ${srcdir}/tools/clang/README.txt; then
22623 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22624
22625fi
22626
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022627ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000022628
22629
Reid Spencera773bd52006-08-04 18:18:08 +000022630ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000022631
22632
Reid Spencera773bd52006-08-04 18:18:08 +000022633ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000022634
Reid Spencera773bd52006-08-04 18:18:08 +000022635ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022636
22637
Reid Spencera773bd52006-08-04 18:18:08 +000022638ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022639
22640
Reid Spencera773bd52006-08-04 18:18:08 +000022641ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022642
22643
Reid Spencera773bd52006-08-04 18:18:08 +000022644ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022645
22646
Reid Spencer8b2e1412006-11-17 03:32:33 +000022647ac_config_commands="$ac_config_commands runtime/Makefile"
22648
22649
Reid Spencera773bd52006-08-04 18:18:08 +000022650ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022651
22652
Reid Spencera773bd52006-08-04 18:18:08 +000022653ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022654
22655
Bill Wendlingf24eb392009-01-04 23:12:30 +000022656ac_config_commands="$ac_config_commands unittests/Makefile"
22657
22658
Reid Spencera773bd52006-08-04 18:18:08 +000022659ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022660
22661
Reid Spencera773bd52006-08-04 18:18:08 +000022662ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022663
22664
Reid Spencera773bd52006-08-04 18:18:08 +000022665ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022666
22667
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022668ac_config_commands="$ac_config_commands bindings/Makefile"
22669
22670
22671ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22672
22673
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022674
John Criswell7a73b802003-06-30 21:59:07 +000022675cat >confcache <<\_ACEOF
22676# This file is a shell script that caches the results of configure
22677# tests run on this system so they can be shared between configure
22678# scripts and configure runs, see configure's option --config-cache.
22679# It is not useful on other systems. If it contains results you don't
22680# want to keep, you may remove or edit it.
22681#
22682# config.status only pays attention to the cache file if you give it
22683# the --recheck option to rerun configure.
22684#
John Criswell0c38eaf2003-09-10 15:17:25 +000022685# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022686# loading this file, other *unset* `ac_cv_foo' will be assigned the
22687# following values.
22688
22689_ACEOF
22690
22691# The following way of writing the cache mishandles newlines in values,
22692# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000022693# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000022694# Ultrix sh set writes to stderr and can't be redirected directly,
22695# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000022696(
22697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22698 eval ac_val=\$$ac_var
22699 case $ac_val in #(
22700 *${as_nl}*)
22701 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22703echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022704 esac
22705 case $ac_var in #(
22706 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022707 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022708 esac ;;
22709 esac
22710 done
22711
John Criswell7a73b802003-06-30 21:59:07 +000022712 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000022713 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22714 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022715 # `set' does not quote correctly, so add quotes (double-quote
22716 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000022717 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022718 "s/'/'\\\\''/g;
22719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000022720 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000022721 *)
22722 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000022723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000022724 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022725 esac |
22726 sort
22727) |
John Criswell7a73b802003-06-30 21:59:07 +000022728 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000022729 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000022730 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000022731 :clear
John Criswell7a73b802003-06-30 21:59:07 +000022732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22733 t end
Reid Spencera773bd52006-08-04 18:18:08 +000022734 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22735 :end' >>confcache
22736if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22737 if test -w "$cache_file"; then
22738 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022739 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22740echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022741 cat confcache >$cache_file
22742 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022743 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22744echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022745 fi
22746fi
22747rm -f confcache
22748
22749test "x$prefix" = xNONE && prefix=$ac_default_prefix
22750# Let make expand exec_prefix.
22751test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22752
John Criswell7a73b802003-06-30 21:59:07 +000022753DEFS=-DHAVE_CONFIG_H
22754
John Criswell0c38eaf2003-09-10 15:17:25 +000022755ac_libobjs=
22756ac_ltlibobjs=
22757for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22758 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000022759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022760 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000022761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22762 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022763 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22764 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000022765done
22766LIBOBJS=$ac_libobjs
22767
22768LTLIBOBJS=$ac_ltlibobjs
22769
22770
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022771if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022772 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22773Usually this means the macro was only invoked conditionally." >&5
22774echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22775Usually this means the macro was only invoked conditionally." >&2;}
22776 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022777fi
22778if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022779 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22780Usually this means the macro was only invoked conditionally." >&5
22781echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22782Usually this means the macro was only invoked conditionally." >&2;}
22783 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022784fi
John Criswell7a73b802003-06-30 21:59:07 +000022785
22786: ${CONFIG_STATUS=./config.status}
22787ac_clean_files_save=$ac_clean_files
22788ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022789{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22790echo "$as_me: creating $CONFIG_STATUS" >&6;}
22791cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022792#! $SHELL
22793# Generated by $as_me.
22794# Run this file to recreate the current configuration.
22795# Compiler output produced by configure, useful for debugging
22796# configure, is in config.log if it exists.
22797
22798debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022799ac_cs_recheck=false
22800ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022801SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022802_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022804cat >>$CONFIG_STATUS <<\_ACEOF
22805## --------------------- ##
22806## M4sh Initialization. ##
22807## --------------------- ##
22808
22809# Be Bourne compatible
22810if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022811 emulate sh
22812 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022813 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022814 # is contrary to our usage. Disable this feature.
22815 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000022816 setopt NO_GLOB_SUBST
22817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022818 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000022819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022820BIN_SH=xpg4; export BIN_SH # for Tru64
22821DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000022822
John Criswell7a73b802003-06-30 21:59:07 +000022823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022824# PATH needs CR
22825# Avoid depending upon Character Ranges.
22826as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22827as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22828as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22829as_cr_digits='0123456789'
22830as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000022831
22832# The user is always right.
22833if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022834 echo "#! /bin/sh" >conf$$.sh
22835 echo "exit 0" >>conf$$.sh
22836 chmod +x conf$$.sh
22837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22838 PATH_SEPARATOR=';'
22839 else
22840 PATH_SEPARATOR=:
22841 fi
22842 rm -f conf$$.sh
22843fi
22844
22845# Support unset when possible.
22846if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22847 as_unset=unset
22848else
22849 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000022850fi
John Criswell7a73b802003-06-30 21:59:07 +000022851
Reid Spencera773bd52006-08-04 18:18:08 +000022852
22853# IFS
22854# We need space, tab and new line, in precisely that order. Quoting is
22855# there to prevent editors from complaining about space-tab.
22856# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22857# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022858as_nl='
22859'
Reid Spencera773bd52006-08-04 18:18:08 +000022860IFS=" "" $as_nl"
22861
22862# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022863case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000022864 *[\\/]* ) as_myself=$0 ;;
22865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000022866for as_dir in $PATH
22867do
22868 IFS=$as_save_IFS
22869 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22871done
Reid Spencera773bd52006-08-04 18:18:08 +000022872IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000022873
Reid Spencera773bd52006-08-04 18:18:08 +000022874 ;;
22875esac
22876# We did not find ourselves, most probably we were run as `sh COMMAND'
22877# in which case we are not to be found in the path.
22878if test "x$as_myself" = x; then
22879 as_myself=$0
22880fi
22881if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022882 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22883 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000022884fi
22885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022886# Work around bugs in pre-3.0 UWIN ksh.
22887for as_var in ENV MAIL MAILPATH
22888do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000022889done
22890PS1='$ '
22891PS2='> '
22892PS4='+ '
22893
22894# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022895for as_var in \
22896 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22897 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22898 LC_TELEPHONE LC_TIME
22899do
22900 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22901 eval $as_var=C; export $as_var
22902 else
22903 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000022904 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022905done
Torok Edwin871384f2010-01-26 08:50:50 +000022906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022907# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000022908if expr a : '\(a\)' >/dev/null 2>&1 &&
22909 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22910 as_expr=expr
22911else
22912 as_expr=false
22913fi
22914
22915if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22916 as_basename=basename
22917else
22918 as_basename=false
22919fi
22920
22921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022922# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000022923as_me=`$as_basename -- "$0" ||
22924$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22925 X"$0" : 'X\(//\)$' \| \
22926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022927echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000022928 sed '/^.*\/\([^/][^/]*\)\/*$/{
22929 s//\1/
22930 q
22931 }
22932 /^X\/\(\/\/\)$/{
22933 s//\1/
22934 q
22935 }
22936 /^X\/\(\/\).*/{
22937 s//\1/
22938 q
22939 }
22940 s/.*/./; q'`
22941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022942# CDPATH.
22943$as_unset CDPATH
22944
22945
22946
22947 as_lineno_1=$LINENO
22948 as_lineno_2=$LINENO
22949 test "x$as_lineno_1" != "x$as_lineno_2" &&
22950 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22951
22952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22953 # uniformly replaced by the line number. The first 'sed' inserts a
22954 # line-number line after each line using $LINENO; the second 'sed'
22955 # does the real work. The second script uses 'N' to pair each
22956 # line-number line with the line containing $LINENO, and appends
22957 # trailing '-' during substitution so that $LINENO is not a special
22958 # case at line end.
22959 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22960 # scripts with optimization help from Paolo Bonzini. Blame Lee
22961 # E. McMahon (1931-1989) for sed's syntax. :-)
22962 sed -n '
22963 p
22964 /[$]LINENO/=
22965 ' <$as_myself |
22966 sed '
22967 s/[$]LINENO.*/&-/
22968 t lineno
22969 b
22970 :lineno
22971 N
22972 :loop
22973 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22974 t loop
22975 s/-\n.*//
22976 ' >$as_me.lineno &&
22977 chmod +x "$as_me.lineno" ||
22978 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22979 { (exit 1); exit 1; }; }
22980
22981 # Don't try to exec as it changes $[0], causing all sort of problems
22982 # (the dirname of $[0] is not the place where we might find the
22983 # original and so on. Autoconf is especially sensitive to this).
22984 . "./$as_me.lineno"
22985 # Exit status is that of the last command.
22986 exit
22987}
22988
22989
22990if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22991 as_dirname=dirname
22992else
22993 as_dirname=false
22994fi
Reid Spencera773bd52006-08-04 18:18:08 +000022995
22996ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022997case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000022998-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022999 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000023000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023001 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000023002 esac;;
23003*)
23004 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000023005esac
23006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023007if expr a : '\(a\)' >/dev/null 2>&1 &&
23008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23009 as_expr=expr
23010else
23011 as_expr=false
23012fi
23013
John Criswell7a73b802003-06-30 21:59:07 +000023014rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000023015if test -d conf$$.dir; then
23016 rm -f conf$$.dir/conf$$.file
23017else
23018 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023019 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000023020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023021echo >conf$$.file
23022if ln -s conf$$.file conf$$ 2>/dev/null; then
23023 as_ln_s='ln -s'
23024 # ... but there are two gotchas:
23025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23027 # In both cases, we have to default to `cp -p'.
23028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000023029 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023030elif ln conf$$.file conf$$ 2>/dev/null; then
23031 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000023032else
23033 as_ln_s='cp -p'
23034fi
Reid Spencera773bd52006-08-04 18:18:08 +000023035rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23036rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000023037
John Criswell0c38eaf2003-09-10 15:17:25 +000023038if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023039 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023040else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023041 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000023042 as_mkdir_p=false
23043fi
23044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023045# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23046# systems may use methods other than mode bits to determine executability.
23047cat >conf$$.file <<_ASEOF
23048#! /bin/sh
23049exit 0
23050_ASEOF
23051chmod +x conf$$.file
23052if test -x conf$$.file >/dev/null 2>&1; then
23053 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000023054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023055 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000023056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023057rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000023058
23059# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023060as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023061
23062# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023063as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023064
23065
John Criswell7a73b802003-06-30 21:59:07 +000023066exec 6>&1
23067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023068# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000023069# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000023070# values after options handling.
23071ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023072This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023073generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023074
23075 CONFIG_FILES = $CONFIG_FILES
23076 CONFIG_HEADERS = $CONFIG_HEADERS
23077 CONFIG_LINKS = $CONFIG_LINKS
23078 CONFIG_COMMANDS = $CONFIG_COMMANDS
23079 $ $0 $@
23080
Reid Spencera773bd52006-08-04 18:18:08 +000023081on `(hostname || uname -n) 2>/dev/null | sed 1q`
23082"
23083
John Criswell7a73b802003-06-30 21:59:07 +000023084_ACEOF
23085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023086cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023087# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000023088config_files="$ac_config_files"
23089config_headers="$ac_config_headers"
23090config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000023091
Reid Spencera773bd52006-08-04 18:18:08 +000023092_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023094cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023095ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023096\`$as_me' instantiates files from templates according to the
23097current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000023098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023099Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000023100
23101 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023102 -V, --version print version number, then exit
23103 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023104 -d, --debug don't remove temporary files
23105 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023106 --file=FILE[:TEMPLATE]
23107 instantiate the configuration file FILE
23108 --header=FILE[:TEMPLATE]
23109 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000023110
23111Configuration files:
23112$config_files
23113
23114Configuration headers:
23115$config_headers
23116
John Criswellc764fbc2003-09-06 15:17:13 +000023117Configuration commands:
23118$config_commands
23119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023120Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000023121
Reid Spencera773bd52006-08-04 18:18:08 +000023122_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023123cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023124ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023125llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023126configured by $0, generated by GNU Autoconf 2.60,
23127 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000023128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023129Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000023130This config.status script is free software; the Free Software Foundation
23131gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000023132
23133ac_pwd='$ac_pwd'
23134srcdir='$srcdir'
23135INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000023136_ACEOF
23137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023138cat >>$CONFIG_STATUS <<\_ACEOF
23139# If no file are specified by the user, then we need to provide default
23140# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000023141ac_need_defaults=:
23142while test $# != 0
23143do
23144 case $1 in
23145 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000023146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23147 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023148 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023149 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023150 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000023151 ac_option=$1
23152 ac_optarg=$2
23153 ac_shift=shift
23154 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023155 esac
23156
John Criswell0c38eaf2003-09-10 15:17:25 +000023157 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023158 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000023159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23160 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023161 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023162 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023163 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000023164 debug=: ;;
23165 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023166 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023167 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023168 ac_need_defaults=false;;
23169 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023170 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023171 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023172 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000023173 --he | --h)
23174 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023175 { echo "$as_me: error: ambiguous option: $1
23176Try \`$0 --help' for more information." >&2
23177 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023178 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023179 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23181 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23182 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023183
23184 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023185 -*) { echo "$as_me: error: unrecognized option: $1
23186Try \`$0 --help' for more information." >&2
23187 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000023188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023189 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000023190 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000023191
23192 esac
23193 shift
23194done
23195
John Criswell0c38eaf2003-09-10 15:17:25 +000023196ac_configure_extra_args=
23197
23198if $ac_cs_silent; then
23199 exec 6>/dev/null
23200 ac_configure_extra_args="$ac_configure_extra_args --silent"
23201fi
23202
23203_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023204cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023205if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023206 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23207 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000023208 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023209 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000023210fi
23211
John Criswell7a73b802003-06-30 21:59:07 +000023212_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023213cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023214exec 5>>config.log
23215{
23216 echo
23217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23218## Running $as_me. ##
23219_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023220 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000023221} >&5
John Criswell7a73b802003-06-30 21:59:07 +000023222
Reid Spencera773bd52006-08-04 18:18:08 +000023223_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023224cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023225#
Reid Spencera773bd52006-08-04 18:18:08 +000023226# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000023227#
Reid Spencerc0682832005-02-24 19:05:19 +000023228llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000023229
23230_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023232cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023233
23234# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000023235for ac_config_target in $ac_config_targets
23236do
Reid Spencera773bd52006-08-04 18:18:08 +000023237 case $ac_config_target in
23238 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000023239 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000023240 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23241 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000023242 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000023243 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000023244 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023245 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000023246 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000023247 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23248 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000023249 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023250 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23251 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23252 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23253 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23254 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23255 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023256 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023257 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23258 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023259 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023260 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23261 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23262 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023263 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23264 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023266 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23267echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23268 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000023269 esac
23270done
23271
Reid Spencera773bd52006-08-04 18:18:08 +000023272
John Criswell7a73b802003-06-30 21:59:07 +000023273# If the user did not use the arguments to specify the items to instantiate,
23274# then the envvar interface is used. Set only those that are not.
23275# We use the long form for the default assignment because of an extremely
23276# bizarre bug on SunOS 4.1.3.
23277if $ac_need_defaults; then
23278 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23279 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023280 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023281fi
23282
John Criswell0c38eaf2003-09-10 15:17:25 +000023283# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000023284# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000023285# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000023286# Hook for its removal unless debugging.
23287# Note that there is a small window in which the directory will not be cleaned:
23288# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000023289$debug ||
23290{
Reid Spencera773bd52006-08-04 18:18:08 +000023291 tmp=
23292 trap 'exit_status=$?
23293 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23294' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023295 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000023296}
John Criswell7a73b802003-06-30 21:59:07 +000023297# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023298
John Criswell7a73b802003-06-30 21:59:07 +000023299{
Reid Spencera773bd52006-08-04 18:18:08 +000023300 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023301 test -n "$tmp" && test -d "$tmp"
23302} ||
23303{
Reid Spencera773bd52006-08-04 18:18:08 +000023304 tmp=./conf$$-$RANDOM
23305 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023306} ||
23307{
23308 echo "$me: cannot create a temporary directory in ." >&2
23309 { (exit 1); exit 1; }
23310}
John Criswell7a73b802003-06-30 21:59:07 +000023311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023312#
23313# Set up the sed scripts for CONFIG_FILES section.
23314#
23315
23316# No need to generate the scripts if there are no CONFIG_FILES.
23317# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000023318if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000023319
23320_ACEOF
23321
Reid Spencera773bd52006-08-04 18:18:08 +000023322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023323
Reid Spencera773bd52006-08-04 18:18:08 +000023324ac_delim='%!_!# '
23325for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023326 cat >conf$$subs.sed <<_ACEOF
23327SHELL!$SHELL$ac_delim
23328PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23329PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23330PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23331PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23332PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23333PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23334exec_prefix!$exec_prefix$ac_delim
23335prefix!$prefix$ac_delim
23336program_transform_name!$program_transform_name$ac_delim
23337bindir!$bindir$ac_delim
23338sbindir!$sbindir$ac_delim
23339libexecdir!$libexecdir$ac_delim
23340datarootdir!$datarootdir$ac_delim
23341datadir!$datadir$ac_delim
23342sysconfdir!$sysconfdir$ac_delim
23343sharedstatedir!$sharedstatedir$ac_delim
23344localstatedir!$localstatedir$ac_delim
23345includedir!$includedir$ac_delim
23346oldincludedir!$oldincludedir$ac_delim
23347docdir!$docdir$ac_delim
23348infodir!$infodir$ac_delim
23349htmldir!$htmldir$ac_delim
23350dvidir!$dvidir$ac_delim
23351pdfdir!$pdfdir$ac_delim
23352psdir!$psdir$ac_delim
23353libdir!$libdir$ac_delim
23354localedir!$localedir$ac_delim
23355mandir!$mandir$ac_delim
23356DEFS!$DEFS$ac_delim
23357ECHO_C!$ECHO_C$ac_delim
23358ECHO_N!$ECHO_N$ac_delim
23359ECHO_T!$ECHO_T$ac_delim
23360LIBS!$LIBS$ac_delim
23361build_alias!$build_alias$ac_delim
23362host_alias!$host_alias$ac_delim
23363target_alias!$target_alias$ac_delim
23364LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23365subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023366ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23367LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023368build!$build$ac_delim
23369build_cpu!$build_cpu$ac_delim
23370build_vendor!$build_vendor$ac_delim
23371build_os!$build_os$ac_delim
23372host!$host$ac_delim
23373host_cpu!$host_cpu$ac_delim
23374host_vendor!$host_vendor$ac_delim
23375host_os!$host_os$ac_delim
23376target!$target$ac_delim
23377target_cpu!$target_cpu$ac_delim
23378target_vendor!$target_vendor$ac_delim
23379target_os!$target_os$ac_delim
23380OS!$OS$ac_delim
23381HOST_OS!$HOST_OS$ac_delim
23382TARGET_OS!$TARGET_OS$ac_delim
23383LINKALL!$LINKALL$ac_delim
23384NOLINKALL!$NOLINKALL$ac_delim
23385LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23386LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23387ARCH!$ARCH$ac_delim
23388ENDIAN!$ENDIAN$ac_delim
23389CC!$CC$ac_delim
23390CFLAGS!$CFLAGS$ac_delim
23391LDFLAGS!$LDFLAGS$ac_delim
23392CPPFLAGS!$CPPFLAGS$ac_delim
23393ac_ct_CC!$ac_ct_CC$ac_delim
23394EXEEXT!$EXEEXT$ac_delim
23395OBJEXT!$OBJEXT$ac_delim
23396CPP!$CPP$ac_delim
23397GREP!$GREP$ac_delim
23398EGREP!$EGREP$ac_delim
23399LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23400BUILD_CC!$BUILD_CC$ac_delim
23401BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23402BUILD_CXX!$BUILD_CXX$ac_delim
23403CVSBUILD!$CVSBUILD$ac_delim
23404ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23405ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23406DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23407ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23408EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23409DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23410DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23411JIT!$JIT$ac_delim
23412TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023413ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023414ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23415ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023416ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023417ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023418ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023419ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023420ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023421TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23422LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23423LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023424_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023426 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000023427 break
23428 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023429 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23430echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23431 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000023432 else
23433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000023434 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023435done
23436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023437ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23438if test -n "$ac_eof"; then
23439 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23440 ac_eof=`expr $ac_eof + 1`
23441fi
23442
23443cat >>$CONFIG_STATUS <<_ACEOF
23444cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23445/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000023446_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023447sed '
23448s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23449s/^/s,@/; s/!/@,|#_!!_#|/
23450:n
23451t n
23452s/'"$ac_delim"'$/,g/; t
23453s/$/\\/; p
23454N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23455' >>$CONFIG_STATUS <conf$$subs.sed
23456rm -f conf$$subs.sed
23457cat >>$CONFIG_STATUS <<_ACEOF
23458CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000023459_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023460
23461
23462ac_delim='%!_!# '
23463for ac_last_try in false false false false false :; do
23464 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023465LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023466LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023467ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023468CLANGPATH!$CLANGPATH$ac_delim
23469CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023470ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023471OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023472EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000023473EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023474BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023475CXX!$CXX$ac_delim
23476CXXFLAGS!$CXXFLAGS$ac_delim
23477ac_ct_CXX!$ac_ct_CXX$ac_delim
23478NM!$NM$ac_delim
23479ifGNUmake!$ifGNUmake$ac_delim
23480LN_S!$LN_S$ac_delim
23481CMP!$CMP$ac_delim
23482CP!$CP$ac_delim
23483DATE!$DATE$ac_delim
23484FIND!$FIND$ac_delim
23485MKDIR!$MKDIR$ac_delim
23486MV!$MV$ac_delim
23487RANLIB!$RANLIB$ac_delim
23488AR!$AR$ac_delim
23489RM!$RM$ac_delim
23490SED!$SED$ac_delim
23491TAR!$TAR$ac_delim
23492BINPWD!$BINPWD$ac_delim
23493GRAPHVIZ!$GRAPHVIZ$ac_delim
23494DOT!$DOT$ac_delim
23495FDP!$FDP$ac_delim
23496NEATO!$NEATO$ac_delim
23497TWOPI!$TWOPI$ac_delim
23498CIRCO!$CIRCO$ac_delim
23499GV!$GV$ac_delim
23500DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000023501XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023502PERL!$PERL$ac_delim
23503HAVE_PERL!$HAVE_PERL$ac_delim
23504INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23505INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23506INSTALL_DATA!$INSTALL_DATA$ac_delim
23507BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023508CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023509DOXYGEN!$DOXYGEN$ac_delim
23510GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000023511GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023512POD2HTML!$POD2HTML$ac_delim
23513POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023514PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023515RUNTEST!$RUNTEST$ac_delim
23516TCLSH!$TCLSH$ac_delim
23517ZIP!$ZIP$ac_delim
23518OCAMLC!$OCAMLC$ac_delim
23519OCAMLOPT!$OCAMLOPT$ac_delim
23520OCAMLDEP!$OCAMLDEP$ac_delim
23521OCAMLDOC!$OCAMLDOC$ac_delim
23522GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000023523HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023524INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23525INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23526CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23527CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23528LIBADD_DL!$LIBADD_DL$ac_delim
23529LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23530LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23531LLVMGCC!$LLVMGCC$ac_delim
23532LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023533LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023534NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23535NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23536USE_UDIS86!$USE_UDIS86$ac_delim
23537USE_OPROFILE!$USE_OPROFILE$ac_delim
23538HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23539HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23540MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023541LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023542LLVMCC1!$LLVMCC1$ac_delim
23543LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23544LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023545LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023546LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000023547LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023548SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023549SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023550LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23551LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23552LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23553LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23554LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23555LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23556LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23557LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23558LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23559LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23560BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23561ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000023562_ACEOF
23563
Tobias Grossera84b5672010-11-10 16:31:34 +000023564 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023565 break
23566 elif $ac_last_try; then
23567 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23568echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23569 { (exit 1); exit 1; }; }
23570 else
23571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23572 fi
23573done
23574
23575ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23576if test -n "$ac_eof"; then
23577 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23578 ac_eof=`expr $ac_eof + 1`
23579fi
23580
23581cat >>$CONFIG_STATUS <<_ACEOF
23582cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023583/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023584_ACEOF
23585sed '
23586s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23587s/^/s,@/; s/!/@,|#_!!_#|/
23588:n
23589t n
23590s/'"$ac_delim"'$/,g/; t
23591s/$/\\/; p
23592N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23593' >>$CONFIG_STATUS <conf$$subs.sed
23594rm -f conf$$subs.sed
23595cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023596CEOF$ac_eof
23597_ACEOF
23598
23599
Tobias Grossera84b5672010-11-10 16:31:34 +000023600ac_delim='%!_!# '
23601for ac_last_try in false false false false false :; do
23602 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbared344d22011-06-16 22:30:41 +000023603OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023604ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023605RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023606RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023607LIBOBJS!$LIBOBJS$ac_delim
23608LTLIBOBJS!$LTLIBOBJS$ac_delim
23609_ACEOF
23610
Daniel Dunbared344d22011-06-16 22:30:41 +000023611 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
Tobias Grossera84b5672010-11-10 16:31:34 +000023612 break
23613 elif $ac_last_try; then
23614 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23615echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23616 { (exit 1); exit 1; }; }
23617 else
23618 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23619 fi
23620done
23621
23622ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23623if test -n "$ac_eof"; then
23624 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23625 ac_eof=`expr $ac_eof + 1`
23626fi
23627
23628cat >>$CONFIG_STATUS <<_ACEOF
23629cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23630/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23631_ACEOF
23632sed '
23633s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23634s/^/s,@/; s/!/@,|#_!!_#|/
23635:n
23636t n
23637s/'"$ac_delim"'$/,g/; t
23638s/$/\\/; p
23639N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23640' >>$CONFIG_STATUS <conf$$subs.sed
23641rm -f conf$$subs.sed
23642cat >>$CONFIG_STATUS <<_ACEOF
23643:end
23644s/|#_!!_#|//g
23645CEOF$ac_eof
23646_ACEOF
23647
23648
Reid Spencera773bd52006-08-04 18:18:08 +000023649# VPATH may cause trouble with some makes, so we remove $(srcdir),
23650# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23651# trailing colons and then remove the whole line if VPATH becomes empty
23652# (actually we leave an empty line to preserve line numbers).
23653if test "x$srcdir" = x.; then
23654 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23655s/:*\$(srcdir):*/:/
23656s/:*\${srcdir}:*/:/
23657s/:*@srcdir@:*/:/
23658s/^\([^=]*=[ ]*\):*/\1/
23659s/:*$//
23660s/^[^=]*=[ ]*$//
23661}'
23662fi
23663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023664cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023665fi # test -n "$CONFIG_FILES"
23666
Reid Spencera773bd52006-08-04 18:18:08 +000023667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023668for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000023669do
23670 case $ac_tag in
23671 :[FHLC]) ac_mode=$ac_tag; continue;;
23672 esac
23673 case $ac_mode$ac_tag in
23674 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023675 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23676echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23677 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023678 :[FH]-) ac_tag=-:-;;
23679 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23680 esac
23681 ac_save_IFS=$IFS
23682 IFS=:
23683 set x $ac_tag
23684 IFS=$ac_save_IFS
23685 shift
23686 ac_file=$1
23687 shift
23688
23689 case $ac_mode in
23690 :L) ac_source=$1;;
23691 :[FH])
23692 ac_file_inputs=
23693 for ac_f
23694 do
23695 case $ac_f in
23696 -) ac_f="$tmp/stdin";;
23697 *) # Look for the file first in the build tree, then in the source tree
23698 # (if the path is not absolute). The absolute path cannot be DOS-style,
23699 # because $ac_f cannot contain `:'.
23700 test -f "$ac_f" ||
23701 case $ac_f in
23702 [\\/$]*) false;;
23703 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23704 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023705 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23706echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23707 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023708 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023709 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000023710 done
23711
23712 # Let's still pretend it is `configure' which instantiates (i.e., don't
23713 # use $as_me), people would be surprised to read:
23714 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023715 configure_input="Generated from "`IFS=:
23716 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000023717 if test x"$ac_file" != x-; then
23718 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023719 { echo "$as_me:$LINENO: creating $ac_file" >&5
23720echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023721 fi
23722
23723 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023724 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000023725 esac
23726 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023727 esac
23728
Reid Spencera773bd52006-08-04 18:18:08 +000023729 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000023730$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023731 X"$ac_file" : 'X\(//\)[^/]' \| \
23732 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000023733 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023734echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000023735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23736 s//\1/
23737 q
23738 }
23739 /^X\(\/\/\)[^/].*/{
23740 s//\1/
23741 q
23742 }
23743 /^X\(\/\/\)$/{
23744 s//\1/
23745 q
23746 }
23747 /^X\(\/\).*/{
23748 s//\1/
23749 q
23750 }
23751 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023752 { as_dir="$ac_dir"
23753 case $as_dir in #(
23754 -*) as_dir=./$as_dir;;
23755 esac
23756 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23757 as_dirs=
23758 while :; do
23759 case $as_dir in #(
23760 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23761 *) as_qdir=$as_dir;;
23762 esac
23763 as_dirs="'$as_qdir' $as_dirs"
23764 as_dir=`$as_dirname -- "$as_dir" ||
23765$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23766 X"$as_dir" : 'X\(//\)[^/]' \| \
23767 X"$as_dir" : 'X\(//\)$' \| \
23768 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23769echo X"$as_dir" |
23770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23771 s//\1/
23772 q
23773 }
23774 /^X\(\/\/\)[^/].*/{
23775 s//\1/
23776 q
23777 }
23778 /^X\(\/\/\)$/{
23779 s//\1/
23780 q
23781 }
23782 /^X\(\/\).*/{
23783 s//\1/
23784 q
23785 }
23786 s/.*/./; q'`
23787 test -d "$as_dir" && break
23788 done
23789 test -z "$as_dirs" || eval "mkdir $as_dirs"
23790 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23791echo "$as_me: error: cannot create directory $as_dir" >&2;}
23792 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023793 ac_builddir=.
23794
Reid Spencera773bd52006-08-04 18:18:08 +000023795case "$ac_dir" in
23796.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23797*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023798 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023799 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023800 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023801 case $ac_top_builddir_sub in
23802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23804 esac ;;
23805esac
23806ac_abs_top_builddir=$ac_pwd
23807ac_abs_builddir=$ac_pwd$ac_dir_suffix
23808# for backward compatibility:
23809ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000023810
23811case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023812 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000023813 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023814 ac_top_srcdir=$ac_top_builddir_sub
23815 ac_abs_top_srcdir=$ac_pwd ;;
23816 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000023817 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023818 ac_top_srcdir=$srcdir
23819 ac_abs_top_srcdir=$srcdir ;;
23820 *) # Relative name.
23821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23822 ac_top_srcdir=$ac_top_build_prefix$srcdir
23823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000023824esac
Reid Spencera773bd52006-08-04 18:18:08 +000023825ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000023826
John Criswell7a73b802003-06-30 21:59:07 +000023827
Reid Spencera773bd52006-08-04 18:18:08 +000023828 case $ac_mode in
23829 :F)
23830 #
23831 # CONFIG_FILE
23832 #
John Criswell7a73b802003-06-30 21:59:07 +000023833
23834 case $INSTALL in
23835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000023837 esac
John Criswell7a73b802003-06-30 21:59:07 +000023838_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023840cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023841# If the template does not know about datarootdir, expand it.
23842# FIXME: This hack should be removed a few years after 2.60.
23843ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023844
23845case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000023846 p
23847 q
23848}
23849/@datadir@/p
23850/@docdir@/p
23851/@infodir@/p
23852/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023853/@mandir@/p
23854' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000023855*datarootdir*) ac_datarootdir_seen=yes;;
23856*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023857 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23858echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000023859_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023860cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023861 ac_datarootdir_hack='
23862 s&@datadir@&$datadir&g
23863 s&@docdir@&$docdir&g
23864 s&@infodir@&$infodir&g
23865 s&@localedir@&$localedir&g
23866 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023867 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023868esac
23869_ACEOF
23870
23871# Neutralize VPATH when `$srcdir' = `.'.
23872# Shell code in configure.ac might set extrasub.
23873# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023874cat >>$CONFIG_STATUS <<_ACEOF
23875 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000023876$extrasub
23877_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023878cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023879:t
23880/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023881s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000023882s&@top_builddir@&$ac_top_builddir_sub&;t t
23883s&@srcdir@&$ac_srcdir&;t t
23884s&@abs_srcdir@&$ac_abs_srcdir&;t t
23885s&@top_srcdir@&$ac_top_srcdir&;t t
23886s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23887s&@builddir@&$ac_builddir&;t t
23888s&@abs_builddir@&$ac_abs_builddir&;t t
23889s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23890s&@INSTALL@&$ac_INSTALL&;t t
23891$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000023892" $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 +000023893
Reid Spencera773bd52006-08-04 18:18:08 +000023894test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23895 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23896 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023897 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023898which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023899echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023900which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023901
Reid Spencera773bd52006-08-04 18:18:08 +000023902 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000023903 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023904 -) cat "$tmp/out"; rm -f "$tmp/out";;
23905 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23906 esac
Reid Spencera773bd52006-08-04 18:18:08 +000023907 ;;
23908 :H)
23909 #
23910 # CONFIG_HEADER
23911 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023912_ACEOF
23913
23914# Transform confdefs.h into a sed script `conftest.defines', that
23915# substitutes the proper values into config.h.in to produce config.h.
23916rm -f conftest.defines conftest.tail
23917# First, append a space to every undef/define line, to ease matching.
23918echo 's/$/ /' >conftest.defines
23919# Then, protect against being on the right side of a sed subst, or in
23920# an unquoted here document, in config.status. If some macros were
23921# called several times there might be several #defines for the same
23922# symbol, which is useless. But do not sort them, since the last
23923# AC_DEFINE must be honored.
23924ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23925# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23926# NAME is the cpp macro being defined, VALUE is the value it is being given.
23927# PARAMS is the parameter list in the macro definition--in most cases, it's
23928# just an empty string.
23929ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23930ac_dB='\\)[ (].*,\\1define\\2'
23931ac_dC=' '
23932ac_dD=' ,'
23933
23934uniq confdefs.h |
23935 sed -n '
23936 t rset
23937 :rset
23938 s/^[ ]*#[ ]*define[ ][ ]*//
23939 t ok
23940 d
23941 :ok
23942 s/[\\&,]/\\&/g
23943 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23944 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23945 ' >>conftest.defines
23946
23947# Remove the space that was appended to ease matching.
23948# Then replace #undef with comments. This is necessary, for
23949# example, in the case of _POSIX_SOURCE, which is predefined and required
23950# on some systems where configure will not decide to define it.
23951# (The regexp can be short, since the line contains either #define or #undef.)
23952echo 's/ $//
23953s,^[ #]*u.*,/* & */,' >>conftest.defines
23954
23955# Break up conftest.defines:
23956ac_max_sed_lines=50
23957
23958# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23959# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23960# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23961# et cetera.
23962ac_in='$ac_file_inputs'
23963ac_out='"$tmp/out1"'
23964ac_nxt='"$tmp/out2"'
23965
23966while :
23967do
23968 # Write a here document:
23969 cat >>$CONFIG_STATUS <<_ACEOF
23970 # First, check the format of the line:
23971 cat >"\$tmp/defines.sed" <<\\CEOF
23972/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23973/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23974b
23975:def
23976_ACEOF
23977 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23978 echo 'CEOF
23979 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23980 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23981 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23982 grep . conftest.tail >/dev/null || break
23983 rm -f conftest.defines
23984 mv conftest.tail conftest.defines
23985done
23986rm -f conftest.defines conftest.tail
23987
23988echo "ac_result=$ac_in" >>$CONFIG_STATUS
23989cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023990 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023991 echo "/* $configure_input */" >"$tmp/config.h"
23992 cat "$ac_result" >>"$tmp/config.h"
23993 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23994 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23995echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000023996 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023997 rm -f $ac_file
23998 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000023999 fi
24000 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024001 echo "/* $configure_input */"
24002 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000024003 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024004 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000024005 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024007 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24008echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000024009 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024010 esac
John Criswell7a73b802003-06-30 21:59:07 +000024011
Reid Spencera773bd52006-08-04 18:18:08 +000024012
24013 case $ac_file$ac_mode in
24014 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024016 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000024017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024018 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024020 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000024022 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024024 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024026 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000024027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000024028 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024030 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024032 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024034 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024035 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024036 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024037 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024038 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000024039 ${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 +000024040
24041 esac
24042done # for ac_tag
24043
John Criswell7a73b802003-06-30 21:59:07 +000024044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024045{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000024046_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024047chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024048ac_clean_files=$ac_clean_files_save
24049
24050
24051# configure is writing to config.log, and then calls config.status.
24052# config.status does its own redirection, appending to config.log.
24053# Unfortunately, on DOS this fails, as config.log is still kept open
24054# by configure, so config.status won't be able to write to it; its
24055# output is simply discarded. So we exec the FD to /dev/null,
24056# effectively closing config.log, so it can be properly (re)opened and
24057# appended to by config.status. When coming back to configure, we
24058# need to make the FD available again.
24059if test "$no_create" != yes; then
24060 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024061 ac_config_status_args=
24062 test "$silent" = yes &&
24063 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024064 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024066 exec 5>>config.log
24067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24068 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024069 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000024070fi
24071
John Criswell12399a12003-09-30 15:55:44 +000024072#
24073# CONFIG_SUBDIRS section.
24074#
24075if test "$no_recursion" != yes; then
24076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024077 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000024078 ac_sub_configure_args=
24079 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000024080 eval "set x $ac_configure_args"
24081 shift
24082 for ac_arg
24083 do
John Criswell12399a12003-09-30 15:55:44 +000024084 if test -n "$ac_prev"; then
24085 ac_prev=
24086 continue
24087 fi
24088 case $ac_arg in
24089 -cache-file | --cache-file | --cache-fil | --cache-fi \
24090 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24091 ac_prev=cache_file ;;
24092 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24093 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24094 | --c=*)
24095 ;;
24096 --config-cache | -C)
24097 ;;
24098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24099 ac_prev=srcdir ;;
24100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24101 ;;
24102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24103 ac_prev=prefix ;;
24104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24105 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024106 *)
24107 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024108 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024109 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024110 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000024111 esac
24112 done
24113
24114 # Always prepend --prefix to ensure using the same prefix
24115 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000024116 ac_arg="--prefix=$prefix"
24117 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024118 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024119 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024120 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000024121
24122 ac_popdir=`pwd`
24123 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24124
24125 # Do not complain, so a configure script can configure whichever
24126 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000024127 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000024128
Reid Spencera773bd52006-08-04 18:18:08 +000024129 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024130 echo "$as_me:$LINENO: $ac_msg" >&5
24131 echo "$ac_msg" >&6
24132 { as_dir="$ac_dir"
24133 case $as_dir in #(
24134 -*) as_dir=./$as_dir;;
24135 esac
24136 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24137 as_dirs=
24138 while :; do
24139 case $as_dir in #(
24140 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24141 *) as_qdir=$as_dir;;
24142 esac
24143 as_dirs="'$as_qdir' $as_dirs"
24144 as_dir=`$as_dirname -- "$as_dir" ||
24145$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24146 X"$as_dir" : 'X\(//\)[^/]' \| \
24147 X"$as_dir" : 'X\(//\)$' \| \
24148 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24149echo X"$as_dir" |
24150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24151 s//\1/
24152 q
24153 }
24154 /^X\(\/\/\)[^/].*/{
24155 s//\1/
24156 q
24157 }
24158 /^X\(\/\/\)$/{
24159 s//\1/
24160 q
24161 }
24162 /^X\(\/\).*/{
24163 s//\1/
24164 q
24165 }
24166 s/.*/./; q'`
24167 test -d "$as_dir" && break
24168 done
24169 test -z "$as_dirs" || eval "mkdir $as_dirs"
24170 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24171echo "$as_me: error: cannot create directory $as_dir" >&2;}
24172 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000024173 ac_builddir=.
24174
Reid Spencera773bd52006-08-04 18:18:08 +000024175case "$ac_dir" in
24176.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24177*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024178 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024179 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024180 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024181 case $ac_top_builddir_sub in
24182 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24183 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24184 esac ;;
24185esac
24186ac_abs_top_builddir=$ac_pwd
24187ac_abs_builddir=$ac_pwd$ac_dir_suffix
24188# for backward compatibility:
24189ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000024190
24191case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000024192 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000024193 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000024194 ac_top_srcdir=$ac_top_builddir_sub
24195 ac_abs_top_srcdir=$ac_pwd ;;
24196 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000024197 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000024198 ac_top_srcdir=$srcdir
24199 ac_abs_top_srcdir=$srcdir ;;
24200 *) # Relative name.
24201 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24202 ac_top_srcdir=$ac_top_build_prefix$srcdir
24203 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000024204esac
Reid Spencera773bd52006-08-04 18:18:08 +000024205ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000024206
24207
Reid Spencera773bd52006-08-04 18:18:08 +000024208 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000024209
24210 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000024211 if test -f "$ac_srcdir/configure.gnu"; then
24212 ac_sub_configure=$ac_srcdir/configure.gnu
24213 elif test -f "$ac_srcdir/configure"; then
24214 ac_sub_configure=$ac_srcdir/configure
24215 elif test -f "$ac_srcdir/configure.in"; then
24216 # This should be Cygnus configure.
24217 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000024218 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024219 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24220echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000024221 ac_sub_configure=
24222 fi
24223
24224 # The recursion is here.
24225 if test -n "$ac_sub_configure"; then
24226 # Make the cache file name correct relative to the subdirectory.
24227 case $cache_file in
24228 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024229 *) # Relative name.
24230 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024231 esac
24232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024233 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24234echo "$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 +000024235 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000024236 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24237 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024238 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24239echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24240 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000024241 fi
24242
Reid Spencera773bd52006-08-04 18:18:08 +000024243 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000024244 done
24245fi
24246