blob: c8b3c767ad0bd77ebd2105afc52a2d3544836565 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00003# Generated by GNU Autoconf 2.60 for llvm 3.1svn.
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 Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
565PACKAGE_STRING='llvm 3.1svn'
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
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000694ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_DOXYGEN
696ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000697ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000699ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000700ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000701ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000711CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713NM
714ifGNUmake
715LN_S
716CMP
717CP
718DATE
719FIND
720MKDIR
721MV
722RANLIB
723AR
724RM
725SED
726TAR
727BINPWD
728GRAPHVIZ
729DOT
730FDP
731NEATO
732TWOPI
733CIRCO
734GV
735DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000736XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000737PERL
738HAVE_PERL
739INSTALL_PROGRAM
740INSTALL_SCRIPT
741INSTALL_DATA
742BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000743CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000744DOXYGEN
745GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000746GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747POD2HTML
748POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000749PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000750RUNTEST
751TCLSH
752ZIP
753OCAMLC
754OCAMLOPT
755OCAMLDEP
756OCAMLDOC
757GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000758HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000759INSTALL_LTDL_TRUE
760INSTALL_LTDL_FALSE
761CONVENIENCE_LTDL_TRUE
762CONVENIENCE_LTDL_FALSE
763LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000772SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
789LIBOBJS
790LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000791ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000799CXX
800CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000801CCC
802CPP'
John Criswell0157f502010-03-19 21:31:39 +0000803ac_subdirs_all='projects/llvm-gcc
804projects/test-suite
805projects/llvm-test
806projects/poolalloc
807projects/llvm-poolalloc
808projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000809projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000810projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-java
813projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000814projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000815projects/llvm-kernel
816tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000843# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000852includedir='${prefix}/include'
853oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000863
864ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000865ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000866for ac_option
867do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000870 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000871 ac_prev=
872 continue
873 fi
874
Reid Spencera773bd52006-08-04 18:18:08 +0000875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
John Criswell7a73b802003-06-30 21:59:07 +0000879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
Reid Spencera773bd52006-08-04 18:18:08 +0000882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
Reid Spencera773bd52006-08-04 18:18:08 +0000906 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000907 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000909 datadir=$ac_optarg ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
John Criswell7a73b802003-06-30 21:59:07 +0000918 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000920 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000936
937 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000939 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
Reid Spencera773bd52006-08-04 18:18:08 +0000971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
John Criswell7a73b802003-06-30 21:59:07 +0000977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
Reid Spencera773bd52006-08-04 18:18:08 +00001001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
John Criswell7a73b802003-06-30 21:59:07 +00001006 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001007 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
Reid Spencera773bd52006-08-04 18:18:08 +00001075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
John Criswell7a73b802003-06-30 21:59:07 +00001085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001136 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001142
1143 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001145 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001181 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001199fi
1200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001206do
Reid Spencera773bd52006-08-04 18:18:08 +00001207 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001208 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001211 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
Reid Spencera773bd52006-08-04 18:18:08 +00001240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248
1249
John Criswell7a73b802003-06-30 21:59:07 +00001250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001253 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001254 ac_confdir=`$as_dirname -- "$0" ||
1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001277 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001278 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=..
1280 fi
1281else
1282 ac_srcdir_defaulted=no
1283fi
Reid Spencera773bd52006-08-04 18:18:08 +00001284if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
John Criswell7a73b802003-06-30 21:59:07 +00001310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001318\`configure' configures llvm 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
John Criswell7a73b802003-06-30 21:59:07 +00001338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001340 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383 case $ac_init_help in
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001384 short | recursive ) echo "Configuration of llvm 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001385 esac
1386 cat <<\_ACEOF
1387
1388Optional Features:
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001391 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1395 YES)
David Greenea696d242007-06-28 19:36:08 +00001396 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001397 Compile with expensive debug checks enabled (default
1398 is NO)
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001403 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001404 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001405 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001406 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001407 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001408 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001409 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001412 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001413 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001414 --enable-timestamps Enable embedding timestamp information in build
1415 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001419 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1420 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001425 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001426 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001427
1428Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001431 --with-optimize-option Select the compiler options to use for optimized
1432 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001433 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001434 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001437 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1440 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001441 --with-c-include-dirs Colon separated list of directories clang will
1442 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001443 --with-cxx-include-root Directory with the libstdc++ headers.
1444 --with-cxx-include-arch Architecture of the libstdc++ headers.
1445 --with-cxx-include-32bit-dir
1446 32 bit multilib dir.
1447 --with-cxx-include-64bit-dir
1448 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001449 --with-binutils-include Specify path to binutils/include/ containing
1450 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001451 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001452 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001453 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001454 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001455 --with-oprofile=<prefix>
1456 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001459 CC C compiler command
1460 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001464 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001467 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469Use these variables to override the choices made by `configure' or to help
1470it to find libraries and programs with nonstandard names/locations.
1471
1472Report bugs to <llvmbugs@cs.uiuc.edu>.
1473_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001474ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001475fi
1476
1477if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001480 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001481 ac_builddir=.
1482
Reid Spencera773bd52006-08-04 18:18:08 +00001483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001487 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001498
1499case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001500 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001501 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001505 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001512esac
Reid Spencera773bd52006-08-04 18:18:08 +00001513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001514
Reid Spencera773bd52006-08-04 18:18:08 +00001515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001523 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001527 done
1528fi
1529
Reid Spencera773bd52006-08-04 18:18:08 +00001530test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001531if $ac_init_version; then
1532 cat <<\_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001533llvm configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001536Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15372002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001538This configure script is free software; the Free Software Foundation
1539gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001540
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001541Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001542_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001543 exit
John Criswell7a73b802003-06-30 21:59:07 +00001544fi
Reid Spencera773bd52006-08-04 18:18:08 +00001545cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001546This file contains any messages produced by compilers while
1547running configure, to aid debugging if configure makes a mistake.
1548
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001549It was created by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001550generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001551
1552 $ $0 $@
1553
1554_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001555exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001556{
1557cat <<_ASUNAME
1558## --------- ##
1559## Platform. ##
1560## --------- ##
1561
1562hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570
1571/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001574/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001575/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1578
1579_ASUNAME
1580
1581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001586 echo "PATH: $as_dir"
1587done
Reid Spencera773bd52006-08-04 18:18:08 +00001588IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001589
1590} >&5
1591
1592cat >&5 <<_ACEOF
1593
1594
1595## ----------- ##
1596## Core tests. ##
1597## ----------- ##
1598
1599_ACEOF
1600
1601
1602# Keep a trace of the command line.
1603# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001604# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001605# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001606# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001607ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001608ac_configure_args0=
1609ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001610ac_must_keep_next=false
1611for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001612do
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 for ac_arg
1614 do
1615 case $ac_arg in
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1619 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001620 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 esac
1623 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001628 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001630 case $ac_arg in
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 esac
1638 ;;
1639 -* ) ac_must_keep_next=true ;;
1640 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ;;
1644 esac
1645 done
John Criswell7a73b802003-06-30 21:59:07 +00001646done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648$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 +00001649
1650# When interrupted or exit'd, cleanup temporary files, and complete
1651# config.log. We remove comments because anyway the quotes in there
1652# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001653# WARNING: Use '\'' to represent an apostrophe within the trap.
1654# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001655trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1657 {
1658 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001659
John Criswell7a73b802003-06-30 21:59:07 +00001660 cat <<\_ASBOX
1661## ---------------- ##
1662## Cache variables. ##
1663## ---------------- ##
1664_ASBOX
1665 echo
1666 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001667(
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1670 case $ac_val in #(
1671 *${as_nl}*)
1672 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001675 esac
1676 case $ac_var in #(
1677 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001678 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001679 esac ;;
1680 esac
1681 done
John Criswell7a73b802003-06-30 21:59:07 +00001682 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001685 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001689 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001691 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001692 esac |
1693 sort
1694)
John Criswell7a73b802003-06-30 21:59:07 +00001695 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001696
1697 cat <<\_ASBOX
1698## ----------------- ##
1699## Output variables. ##
1700## ----------------- ##
1701_ASBOX
1702 echo
1703 for ac_var in $ac_subst_vars
1704 do
Reid Spencera773bd52006-08-04 18:18:08 +00001705 eval ac_val=\$$ac_var
1706 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001708 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001709 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 done | sort
1711 echo
1712
1713 if test -n "$ac_subst_files"; then
1714 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001715## ------------------- ##
1716## File substitutions. ##
1717## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001718_ASBOX
1719 echo
1720 for ac_var in $ac_subst_files
1721 do
Reid Spencera773bd52006-08-04 18:18:08 +00001722 eval ac_val=\$$ac_var
1723 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001725 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001726 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 done | sort
1728 echo
1729 fi
1730
John Criswell7a73b802003-06-30 21:59:07 +00001731 if test -s confdefs.h; then
1732 cat <<\_ASBOX
1733## ----------- ##
1734## confdefs.h. ##
1735## ----------- ##
1736_ASBOX
1737 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001738 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001739 echo
1740 fi
1741 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001744 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001747 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001748' 0
John Criswell7a73b802003-06-30 21:59:07 +00001749for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001751done
1752ac_signal=0
1753
1754# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001755rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001756
1757# Predefined preprocessor variables.
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_NAME "$PACKAGE_NAME"
1761_ACEOF
1762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001763
John Criswell7a73b802003-06-30 21:59:07 +00001764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766_ACEOF
1767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001768
John Criswell7a73b802003-06-30 21:59:07 +00001769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_VERSION "$PACKAGE_VERSION"
1771_ACEOF
1772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773
John Criswell7a73b802003-06-30 21:59:07 +00001774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_STRING "$PACKAGE_STRING"
1776_ACEOF
1777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001778
John Criswell7a73b802003-06-30 21:59:07 +00001779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781_ACEOF
1782
1783
1784# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001786if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001788elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001790else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794shift
1795for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001796do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001800 sed 's/^/| /' "$ac_site_file" >&5
1801 . "$ac_site_file"
1802 fi
1803done
1804
1805if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001811 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001814 esac
1815 fi
1816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001819 >$cache_file
1820fi
1821
1822# Check that the precious variables saved in the cache have kept the same
1823# value.
1824ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001825for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001830 case $ac_old_set,$ac_new_set in
1831 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001834 ac_cache_corrupted=: ;;
1835 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001838 ac_cache_corrupted=: ;;
1839 ,);;
1840 *)
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001849 fi;;
1850 esac
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1853 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001855 *) ac_arg=$ac_var=$ac_new_val ;;
1856 esac
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001860 esac
1861 fi
1862done
1863if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
Reid Spencera773bd52006-08-04 18:18:08 +00001894
John Criswell7a73b802003-06-30 21:59:07 +00001895ac_ext=c
1896ac_cpp='$CPP $CPPFLAGS'
1897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001903LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001904
1905
1906
1907
1908
1909
1910
John Criswell7a73b802003-06-30 21:59:07 +00001911ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001912for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001913 if test -f "$ac_dir/install-sh"; then
1914 ac_aux_dir=$ac_dir
1915 ac_install_sh="$ac_aux_dir/install-sh -c"
1916 break
1917 elif test -f "$ac_dir/install.sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install.sh -c"
1920 break
1921 elif test -f "$ac_dir/shtool"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/shtool install -c"
1924 break
1925 fi
John Criswell7a73b802003-06-30 21:59:07 +00001926done
1927if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001931fi
Reid Spencera773bd52006-08-04 18:18:08 +00001932
1933# These three variables are undocumented and unsupported,
1934# and are intended to be withdrawn in a future Autoconf release.
1935# They can cause serious problems if a builder's source tree is in a directory
1936# whose full name contains unusual characters.
1937ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1938ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1939ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1940
John Criswell7a73b802003-06-30 21:59:07 +00001941
John Criswell392aaa32003-07-22 19:18:09 +00001942
Reid Spencer2706f8c2004-09-19 23:53:36 +00001943if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001944 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001945 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001948 fi
John Criswell93e1c722003-09-15 17:04:06 +00001949fi
1950
Nick Lewycky83fc4472009-09-29 05:48:51 +00001951ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001952ac_cpp='$CPP $CPPFLAGS'
1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001956if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001957 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001958 do
1959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001965else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001968else
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 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 +00001976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978 break 2
1979 fi
1980done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001981done
Reid Spencera773bd52006-08-04 18:18:08 +00001982IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001983
1984fi
1985fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001986CC=$ac_cv_prog_CC
1987if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001988 { echo "$as_me:$LINENO: result: $CC" >&5
1989echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991 { echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001993fi
1994
Reid Spencera773bd52006-08-04 18:18:08 +00001995
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001996 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00001997 done
1998fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001999if test -z "$CC"; then
2000 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002001 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002002do
2003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2004set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002009else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002012else
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 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 +00002020 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002022 break 2
2023 fi
2024done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025done
Reid Spencera773bd52006-08-04 18:18:08 +00002026IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002027
2028fi
2029fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002037fi
2038
Reid Spencera773bd52006-08-04 18:18:08 +00002039
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002040 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002041done
John Criswell7a73b802003-06-30 21:59:07 +00002042
Reid Spencera773bd52006-08-04 18:18:08 +00002043 if test "x$ac_ct_CC" = x; then
2044 CC=""
2045 else
2046 case $cross_compiling:$ac_tool_warned in
2047yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002048{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049whose name does not start with the host triplet. If you think this
2050configuration is useful to you, please write to autoconf@gnu.org." >&5
2051echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2052whose name does not start with the host triplet. If you think this
2053configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002054ac_tool_warned=yes ;;
2055esac
2056 CC=$ac_ct_CC
2057 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058fi
2059
John Criswell7a73b802003-06-30 21:59:07 +00002060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062See \`config.log' for more details." >&5
2063echo "$as_me: error: no acceptable C compiler found in \$PATH
2064See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066
John Criswell7a73b802003-06-30 21:59:07 +00002067# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068echo "$as_me:$LINENO: checking for C compiler version" >&5
2069ac_compiler=`set X $ac_compile; echo $2`
2070{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002071case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002077 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080{ (ac_try="$ac_compiler -v >&5"
2081case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084esac
2085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler -v >&5") 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090{ (ac_try="$ac_compiler -V >&5"
2091case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094esac
2095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -V >&5") 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002101cat >conftest.$ac_ext <<_ACEOF
2102/* confdefs.h. */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002106/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002107
John Criswell7a73b802003-06-30 21:59:07 +00002108int
2109main ()
2110{
2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002118# Try to create an executable without -o first, disregard a.out.
2119# It will help us diagnose broken compilers, and finding out an intuition
2120# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002121{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124#
2125# List of possible output files, starting from the most likely.
2126# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127# only as a last resort. b.out is created by i960 compilers.
2128ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2129#
2130# The IRIX 6 linker writes into existing files which may not be
2131# executable, retaining their permissions. Remove them first so a
2132# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002133ac_rmfiles=
2134for ac_file in $ac_files
2135do
2136 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2139 esac
2140done
2141rm -f $ac_rmfiles
2142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002144case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002149 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002150 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155# in a Makefile. We should not override ac_cv_exeext if it was cached,
2156# so that the user can short-circuit this test for compilers unknown to
2157# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002158for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002159do
2160 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002161 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002163 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002164 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002165 # We found the default executable, but exeext='' is most
2166 # certainly right.
2167 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002168 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002170 then :; else
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172 fi
2173 # We set ac_cv_exeext here because the later test for it is not
2174 # safe: cross compilers may not add the suffix if given an `-o'
2175 # argument, so we may need to know it at that point already.
2176 # Even if this section looks crufty: it has the advantage of
2177 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002178 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002179 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002180 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002181 esac
2182done
Reid Spencera773bd52006-08-04 18:18:08 +00002183test "$ac_cv_exeext" = no && ac_cv_exeext=
2184
John Criswell7a73b802003-06-30 21:59:07 +00002185else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002187sed 's/^/| /' conftest.$ac_ext >&5
2188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190See \`config.log' for more details." >&5
2191echo "$as_me: error: C compiler cannot create executables
2192See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002194fi
John Criswell7a73b802003-06-30 21:59:07 +00002195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002196ac_exeext=$ac_cv_exeext
2197{ echo "$as_me:$LINENO: result: $ac_file" >&5
2198echo "${ECHO_T}$ac_file" >&6; }
2199
2200# Check that the compiler produces executables we can run. If not, either
2201# the compiler is broken, or we cross compile.
2202{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205# If not cross compiling, check that we can run a simple program.
2206if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211esac
2212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_try") 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 cross_compiling=no
2218 else
2219 if test "$cross_compiling" = maybe; then
2220 cross_compiling=yes
2221 else
2222 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223If you meant to cross compile, use \`--host'.
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2229 fi
2230 fi
2231fi
2232{ echo "$as_me:$LINENO: result: yes" >&5
2233echo "${ECHO_T}yes" >&6; }
2234
2235rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002236ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002237# Check that the compiler produces executables we can run. If not, either
2238# the compiler is broken, or we cross compile.
2239{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242echo "${ECHO_T}$cross_compiling" >&6; }
2243
2244{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002247case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002252 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002253 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258# work properly (i.e., refer to `conftest.exe'), while it won't with
2259# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002260for ac_file in conftest.exe conftest conftest.*; do
2261 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002262 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002265 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002266 * ) break;;
2267 esac
2268done
2269else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271See \`config.log' for more details." >&5
2272echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002276
2277rm -f conftest$ac_cv_exeext
2278{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002280
2281rm -f conftest.$ac_ext
2282EXEEXT=$ac_cv_exeext
2283ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002284{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002289 cat >conftest.$ac_ext <<_ACEOF
2290/* confdefs.h. */
2291_ACEOF
2292cat confdefs.h >>conftest.$ac_ext
2293cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002295
John Criswell7a73b802003-06-30 21:59:07 +00002296int
2297main ()
2298{
2299
2300 ;
2301 return 0;
2302}
2303_ACEOF
2304rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002305if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002306case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002311 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002312 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002315 for ac_file in conftest.o conftest.obj conftest.*; do
2316 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002317 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320 break;;
2321 esac
2322done
2323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002325sed 's/^/| /' conftest.$ac_ext >&5
2326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333
John Criswell7a73b802003-06-30 21:59:07 +00002334rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002338OBJEXT=$ac_cv_objext
2339ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002340{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002344else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345 cat >conftest.$ac_ext <<_ACEOF
2346/* confdefs.h. */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002351
John Criswell7a73b802003-06-30 21:59:07 +00002352int
2353main ()
2354{
2355#ifndef __GNUC__
2356 choke me
2357#endif
2358
2359 ;
2360 return 0;
2361}
2362_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363rm -f conftest.$ac_objext
2364if { (ac_try="$ac_compile"
2365case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368esac
2369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compile") 2>conftest.er1
2371 ac_status=$?
2372 grep -v '^ *+' conftest.er1 >conftest.err
2373 rm -f conftest.er1
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378 { (case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2381esac
2382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_try") 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002397 ac_compiler_gnu=yes
2398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002399 echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002404
Reid Spencera773bd52006-08-04 18:18:08 +00002405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002407
2408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412ac_test_CFLAGS=${CFLAGS+set}
2413ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002418else
Reid Spencera773bd52006-08-04 18:18:08 +00002419 ac_save_c_werror_flag=$ac_c_werror_flag
2420 ac_c_werror_flag=yes
2421 ac_cv_prog_cc_g=no
2422 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423 cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002429
John Criswell7a73b802003-06-30 21:59:07 +00002430int
2431main ()
2432{
2433
2434 ;
2435 return 0;
2436}
2437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002438rm -f conftest.$ac_objext
2439if { (ac_try="$ac_compile"
2440case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443esac
2444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453 { (case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
2457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_try") 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 CFLAGS=""
2478 cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002483/* end confdefs.h. */
2484
2485int
2486main ()
2487{
2488
2489 ;
2490 return 0;
2491}
2492_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002493rm -f conftest.$ac_objext
2494if { (ac_try="$ac_compile"
2495case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498esac
2499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_compile") 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508 { (case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2511esac
2512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_try") 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2527 :
Torok Edwin871384f2010-01-26 08:50:50 +00002528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002529 echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002533 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002534 cat >conftest.$ac_ext <<_ACEOF
2535/* confdefs.h. */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002539/* end confdefs.h. */
2540
2541int
2542main ()
2543{
2544
2545 ;
2546 return 0;
2547}
2548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002549rm -f conftest.$ac_objext
2550if { (ac_try="$ac_compile"
2551case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554esac
2555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_compile") 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567esac
2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_try") 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002583 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002584else
2585 echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588
John Criswell7a73b802003-06-30 21:59:07 +00002589fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002590
Reid Spencera773bd52006-08-04 18:18:08 +00002591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593
Reid Spencera773bd52006-08-04 18:18:08 +00002594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596
Reid Spencera773bd52006-08-04 18:18:08 +00002597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_c_werror_flag=$ac_save_c_werror_flag
2599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602if test "$ac_test_CFLAGS" = set; then
2603 CFLAGS=$ac_save_CFLAGS
2604elif test $ac_cv_prog_cc_g = yes; then
2605 if test "$GCC" = yes; then
2606 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002607 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002609 fi
2610else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611 if test "$GCC" = yes; then
2612 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002613 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002615 fi
2616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002617{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619if test "${ac_cv_prog_cc_c89+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621else
Reid Spencera773bd52006-08-04 18:18:08 +00002622 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002624cat >conftest.$ac_ext <<_ACEOF
2625/* confdefs.h. */
2626_ACEOF
2627cat confdefs.h >>conftest.$ac_ext
2628cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629/* end confdefs.h. */
2630#include <stdarg.h>
2631#include <stdio.h>
2632#include <sys/types.h>
2633#include <sys/stat.h>
2634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2635struct buf { int x; };
2636FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637static char *e (p, i)
2638 char **p;
2639 int i;
2640{
2641 return p[i];
2642}
2643static char *f (char * (*g) (char **, int), char **p, ...)
2644{
2645 char *s;
2646 va_list v;
2647 va_start (v,p);
2648 s = g (p, va_arg (v,int));
2649 va_end (v);
2650 return s;
2651}
2652
2653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2654 function prototypes and stuff, but not '\xHH' hex character constants.
2655 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002656 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2658 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002659 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661
Reid Spencera773bd52006-08-04 18:18:08 +00002662/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663 inside strings and character constants. */
2664#define FOO(x) 'x'
2665int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2666
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667int test (int i, double x);
2668struct s1 {int (*f) (int a);};
2669struct s2 {int (*f) (double a);};
2670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2671int argc;
2672char **argv;
2673int
2674main ()
2675{
2676return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2677 ;
2678 return 0;
2679}
2680_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002681for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683do
2684 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002685 rm -f conftest.$ac_objext
2686if { (ac_try="$ac_compile"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_try") 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002719 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002720else
2721 echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002725fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002726
Reid Spencera773bd52006-08-04 18:18:08 +00002727rm -f core conftest.err conftest.$ac_objext
2728 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002729done
Reid Spencera773bd52006-08-04 18:18:08 +00002730rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002731CC=$ac_save_CC
2732
2733fi
Reid Spencera773bd52006-08-04 18:18:08 +00002734# AC_CACHE_VAL
2735case "x$ac_cv_prog_cc_c89" in
2736 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002737 { echo "$as_me:$LINENO: result: none needed" >&5
2738echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002739 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740 { echo "$as_me:$LINENO: result: unsupported" >&5
2741echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002742 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002743 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002746esac
2747
John Criswell0c38eaf2003-09-10 15:17:25 +00002748
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749ac_ext=c
2750ac_cpp='$CPP $CPPFLAGS'
2751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754
Eric Christopherffee5722011-09-16 20:36:25 +00002755ac_ext=cpp
2756ac_cpp='$CXXCPP $CPPFLAGS'
2757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760if test -z "$CXX"; then
2761 if test -n "$CCC"; then
2762 CXX=$CCC
2763 else
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in clang++ llvm-g++ g++
2766 do
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771if test "${ac_cv_prog_CXX+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773else
2774 if test -n "$CXX"; then
2775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794CXX=$ac_cv_prog_CXX
2795if test -n "$CXX"; then
2796 { echo "$as_me:$LINENO: result: $CXX" >&5
2797echo "${ECHO_T}$CXX" >&6; }
2798else
2799 { echo "$as_me:$LINENO: result: no" >&5
2800echo "${ECHO_T}no" >&6; }
2801fi
2802
2803
2804 test -n "$CXX" && break
2805 done
2806fi
2807if test -z "$CXX"; then
2808 ac_ct_CXX=$CXX
2809 for ac_prog in clang++ llvm-g++ g++
2810do
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812set dummy $ac_prog; ac_word=$2
2813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818 if test -n "$ac_ct_CXX"; then
2819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CXX="$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839if test -n "$ac_ct_CXX"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841echo "${ECHO_T}$ac_ct_CXX" >&6; }
2842else
2843 { echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6; }
2845fi
2846
2847
2848 test -n "$ac_ct_CXX" && break
2849done
2850
2851 if test "x$ac_ct_CXX" = x; then
2852 CXX="g++"
2853 else
2854 case $cross_compiling:$ac_tool_warned in
2855yes:)
2856{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857whose name does not start with the host triplet. If you think this
2858configuration is useful to you, please write to autoconf@gnu.org." >&5
2859echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860whose name does not start with the host triplet. If you think this
2861configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862ac_tool_warned=yes ;;
2863esac
2864 CXX=$ac_ct_CXX
2865 fi
2866fi
2867
2868 fi
2869fi
2870# Provide some information about the compiler.
2871echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872ac_compiler=`set X $ac_compile; echo $2`
2873{ (ac_try="$ac_compiler --version >&5"
2874case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler --version >&5") 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883{ (ac_try="$ac_compiler -v >&5"
2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -v >&5") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893{ (ac_try="$ac_compiler -V >&5"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903
2904{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915
2916int
2917main ()
2918{
2919#ifndef __GNUC__
2920 choke me
2921#endif
2922
2923 ;
2924 return 0;
2925}
2926_ACEOF
2927rm -f conftest.$ac_objext
2928if { (ac_try="$ac_compile"
2929case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932esac
2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 ac_compiler_gnu=yes
2962else
2963 echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 ac_compiler_gnu=no
2967fi
2968
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2971
2972fi
2973{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975GXX=`test $ac_compiler_gnu = yes && echo yes`
2976ac_test_CXXFLAGS=${CXXFLAGS+set}
2977ac_save_CXXFLAGS=$CXXFLAGS
2978{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980if test "${ac_cv_prog_cxx_g+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984 ac_cxx_werror_flag=yes
2985 ac_cv_prog_cxx_g=no
2986 CXXFLAGS="-g"
2987 cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
2993
2994int
2995main ()
2996{
2997
2998 ;
2999 return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext
3003if { (ac_try="$ac_compile"
3004case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007esac
3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3010 ac_status=$?
3011 grep -v '^ *+' conftest.er1 >conftest.err
3012 rm -f conftest.er1
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_prog_cxx_g=yes
3037else
3038 echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041 CXXFLAGS=""
3042 cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h. */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h. */
3048
3049int
3050main ()
3051{
3052
3053 ;
3054 return 0;
3055}
3056_ACEOF
3057rm -f conftest.$ac_objext
3058if { (ac_try="$ac_compile"
3059case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 :
3092else
3093 echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3097 CXXFLAGS="-g"
3098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104
3105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.$ac_objext
3114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cxx_g=yes
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153fi
3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156fi
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160
3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3163fi
3164{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166if test "$ac_test_CXXFLAGS" = set; then
3167 CXXFLAGS=$ac_save_CXXFLAGS
3168elif test $ac_cv_prog_cxx_g = yes; then
3169 if test "$GXX" = yes; then
3170 CXXFLAGS="-g -O2"
3171 else
3172 CXXFLAGS="-g"
3173 fi
3174else
3175 if test "$GXX" = yes; then
3176 CXXFLAGS="-O2"
3177 else
3178 CXXFLAGS=
3179 fi
3180fi
3181ac_ext=c
3182ac_cpp='$CPP $CPPFLAGS'
3183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003186
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003187ac_ext=c
3188ac_cpp='$CPP $CPPFLAGS'
3189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003192{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003194# On Suns, sometimes $CPP names a directory.
3195if test -n "$CPP" && test -d "$CPP"; then
3196 CPP=
3197fi
3198if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003199 if test "${ac_cv_prog_CPP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003201else
3202 # Double quotes because CPP needs to be expanded
3203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3204 do
3205 ac_preproc_ok=false
3206for ac_c_preproc_warn_flag in '' yes
3207do
3208 # Use a header file that comes with gcc, so configuring glibc
3209 # with a fresh cross-compiler works.
3210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211 # <limits.h> exists even on freestanding compilers.
3212 # On the NeXT, cc -E runs the code through the compiler's parser,
3213 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219/* end confdefs.h. */
3220#ifdef __STDC__
3221# include <limits.h>
3222#else
3223# include <assert.h>
3224#endif
3225 Syntax error
3226_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227if { (ac_try="$ac_cpp conftest.$ac_ext"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243 else
3244 ac_cpp_err=
3245 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003247 ac_cpp_err=yes
3248fi
3249if test -z "$ac_cpp_err"; then
3250 :
3251else
3252 echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255 # Broken: fails on valid input.
3256continue
3257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003258
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259rm -f conftest.err conftest.$ac_ext
3260
Reid Spencera773bd52006-08-04 18:18:08 +00003261 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003263 cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h. */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268/* end confdefs.h. */
3269#include <ac_nonexistent.h>
3270_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271if { (ac_try="$ac_cpp conftest.$ac_ext"
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287 else
3288 ac_cpp_err=
3289 fi
3290else
3291 ac_cpp_err=yes
3292fi
3293if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294 # Broken: success on invalid input.
3295continue
3296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003297 echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003300 # Passes both tests.
3301ac_preproc_ok=:
3302break
3303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003304
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305rm -f conftest.err conftest.$ac_ext
3306
3307done
3308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003310if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311 break
3312fi
3313
3314 done
3315 ac_cv_prog_CPP=$CPP
3316
3317fi
3318 CPP=$ac_cv_prog_CPP
3319else
3320 ac_cv_prog_CPP=$CPP
3321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003322{ echo "$as_me:$LINENO: result: $CPP" >&5
3323echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324ac_preproc_ok=false
3325for ac_c_preproc_warn_flag in '' yes
3326do
3327 # Use a header file that comes with gcc, so configuring glibc
3328 # with a fresh cross-compiler works.
3329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330 # <limits.h> exists even on freestanding compilers.
3331 # On the NeXT, cc -E runs the code through the compiler's parser,
3332 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003333 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338/* end confdefs.h. */
3339#ifdef __STDC__
3340# include <limits.h>
3341#else
3342# include <assert.h>
3343#endif
3344 Syntax error
3345_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003346if { (ac_try="$ac_cpp conftest.$ac_ext"
3347case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
3351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 else
3363 ac_cpp_err=
3364 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003365else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003366 ac_cpp_err=yes
3367fi
3368if test -z "$ac_cpp_err"; then
3369 :
3370else
3371 echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374 # Broken: fails on valid input.
3375continue
3376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003377
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378rm -f conftest.err conftest.$ac_ext
3379
Reid Spencera773bd52006-08-04 18:18:08 +00003380 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003382 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387/* end confdefs.h. */
3388#include <ac_nonexistent.h>
3389_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003390if { (ac_try="$ac_cpp conftest.$ac_ext"
3391case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394esac
3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406 else
3407 ac_cpp_err=
3408 fi
3409else
3410 ac_cpp_err=yes
3411fi
3412if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003413 # Broken: success on invalid input.
3414continue
3415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003416 echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419 # Passes both tests.
3420ac_preproc_ok=:
3421break
3422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424rm -f conftest.err conftest.$ac_ext
3425
3426done
3427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003429if $ac_preproc_ok; then
3430 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433See \`config.log' for more details." >&5
3434echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437fi
3438
John Criswell7a73b802003-06-30 21:59:07 +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
3444
John Criswell7a73b802003-06-30 21:59:07 +00003445
Eric Christopherffee5722011-09-16 20:36:25 +00003446
3447
3448if test -d ${srcdir}/projects/llvm-gcc ; then
3449 subdirs="$subdirs projects/llvm-gcc"
3450
3451fi
3452
3453if test -d ${srcdir}/projects/test-suite ; then
3454 subdirs="$subdirs projects/test-suite"
3455
3456fi
3457
3458if test -d ${srcdir}/projects/llvm-test ; then
3459 subdirs="$subdirs projects/llvm-test"
3460
3461fi
3462
3463if test -d ${srcdir}/projects/poolalloc ; then
3464 subdirs="$subdirs projects/poolalloc"
3465
3466fi
3467
3468if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469 subdirs="$subdirs projects/llvm-poolalloc"
3470
3471fi
3472
3473for i in `ls ${srcdir}/projects`
3474do
3475 if test -d ${srcdir}/projects/${i} ; then
3476 case ${i} in
3477 sample) subdirs="$subdirs projects/sample"
3478 ;;
3479 privbracket) subdirs="$subdirs projects/privbracket"
3480 ;;
3481 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3482 ;;
3483 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3484;;
3485 llvm-java) subdirs="$subdirs projects/llvm-java"
3486 ;;
3487 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3488 ;;
3489 safecode) subdirs="$subdirs projects/safecode"
3490 ;;
3491 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3492 ;;
3493 llvm-gcc) ;;
3494 test-suite) ;;
3495 llvm-test) ;;
3496 poolalloc) ;;
3497 llvm-poolalloc) ;;
3498 *)
3499 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3501 ;;
3502 esac
3503 fi
3504done
3505
3506# Check whether --enable-polly was given.
3507if test "${enable_polly+set}" = set; then
3508 enableval=$enable_polly;
3509else
3510 enableval=default
3511fi
3512
3513case "$enableval" in
3514 yes) ENABLE_POLLY=1
3515 ;;
3516 no) ENABLE_POLLY=0
3517 ;;
3518 default) ENABLE_POLLY=1
3519 ;;
3520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522 { (exit 1); exit 1; }; } ;;
3523esac
3524
3525
3526if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3527 LLVM_HAS_POLLY=1
3528
3529 subdirs="$subdirs tools/polly"
3530
3531fi
3532
3533
3534# Make sure we can run config.sub.
3535$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538 { (exit 1); exit 1; }; }
3539
3540{ echo "$as_me:$LINENO: checking build system type" >&5
3541echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542if test "${ac_cv_build+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544else
3545 ac_build_alias=$build_alias
3546test "x$ac_build_alias" = x &&
3547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548test "x$ac_build_alias" = x &&
3549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551 { (exit 1); exit 1; }; }
3552ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555 { (exit 1); exit 1; }; }
3556
3557fi
3558{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559echo "${ECHO_T}$ac_cv_build" >&6; }
3560case $ac_cv_build in
3561*-*-*) ;;
3562*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563echo "$as_me: error: invalid value of canonical build" >&2;}
3564 { (exit 1); exit 1; }; };;
3565esac
3566build=$ac_cv_build
3567ac_save_IFS=$IFS; IFS='-'
3568set x $ac_cv_build
3569shift
3570build_cpu=$1
3571build_vendor=$2
3572shift; shift
3573# Remember, the first character of IFS is used to create $*,
3574# except with old shells:
3575build_os=$*
3576IFS=$ac_save_IFS
3577case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3578
3579
3580{ echo "$as_me:$LINENO: checking host system type" >&5
3581echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582if test "${ac_cv_host+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585 if test "x$host_alias" = x; then
3586 ac_cv_host=$ac_cv_build
3587else
3588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591 { (exit 1); exit 1; }; }
3592fi
3593
3594fi
3595{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596echo "${ECHO_T}$ac_cv_host" >&6; }
3597case $ac_cv_host in
3598*-*-*) ;;
3599*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600echo "$as_me: error: invalid value of canonical host" >&2;}
3601 { (exit 1); exit 1; }; };;
3602esac
3603host=$ac_cv_host
3604ac_save_IFS=$IFS; IFS='-'
3605set x $ac_cv_host
3606shift
3607host_cpu=$1
3608host_vendor=$2
3609shift; shift
3610# Remember, the first character of IFS is used to create $*,
3611# except with old shells:
3612host_os=$*
3613IFS=$ac_save_IFS
3614case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3615
3616
3617{ echo "$as_me:$LINENO: checking target system type" >&5
3618echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619if test "${ac_cv_target+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622 if test "x$target_alias" = x; then
3623 ac_cv_target=$ac_cv_host
3624else
3625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628 { (exit 1); exit 1; }; }
3629fi
3630
3631fi
3632{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633echo "${ECHO_T}$ac_cv_target" >&6; }
3634case $ac_cv_target in
3635*-*-*) ;;
3636*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637echo "$as_me: error: invalid value of canonical target" >&2;}
3638 { (exit 1); exit 1; }; };;
3639esac
3640target=$ac_cv_target
3641ac_save_IFS=$IFS; IFS='-'
3642set x $ac_cv_target
3643shift
3644target_cpu=$1
3645target_vendor=$2
3646shift; shift
3647# Remember, the first character of IFS is used to create $*,
3648# except with old shells:
3649target_os=$*
3650IFS=$ac_save_IFS
3651case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652
3653
3654# The aliases save the names the user supplied, while $host etc.
3655# will get canonicalized.
3656test -n "$target_alias" &&
3657 test "$program_prefix$program_suffix$program_transform_name" = \
3658 NONENONEs,x,x, &&
3659 program_prefix=${target_alias}-
3660
3661{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663if test "${llvm_cv_os_type+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666 case $host in
3667 *-*-aix*)
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="AIX"
3671 llvm_cv_platform_type="Unix" ;;
3672 *-*-irix*)
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="IRIX"
3676 llvm_cv_platform_type="Unix" ;;
3677 *-*-cygwin*)
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Cygwin"
3681 llvm_cv_platform_type="Unix" ;;
3682 *-*-darwin*)
3683 llvm_cv_link_all_option="-Wl,-all_load"
3684 llvm_cv_no_link_all_option="-Wl,-noall_load"
3685 llvm_cv_os_type="Darwin"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-minix*)
3688 llvm_cv_link_all_option="-Wl,-all_load"
3689 llvm_cv_no_link_all_option="-Wl,-noall_load"
3690 llvm_cv_os_type="Minix"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-freebsd*)
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="FreeBSD"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-openbsd*)
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="OpenBSD"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-netbsd*)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="NetBSD"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-*-dragonfly*)
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="DragonFly"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-hpux*)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="HP-UX"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-*-interix*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Interix"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-*-linux*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Linux"
3726 llvm_cv_platform_type="Unix" ;;
3727 *-*-solaris*)
3728 llvm_cv_link_all_option="-Wl,-z,allextract"
3729 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730 llvm_cv_os_type="SunOS"
3731 llvm_cv_platform_type="Unix" ;;
3732 *-*-auroraux*)
3733 llvm_cv_link_all_option="-Wl,-z,allextract"
3734 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735 llvm_cv_os_type="AuroraUX"
3736 llvm_cv_platform_type="Unix" ;;
3737 *-*-win32*)
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Win32"
3741 llvm_cv_platform_type="Win32" ;;
3742 *-*-mingw*)
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="MingW"
3746 llvm_cv_platform_type="Win32" ;;
3747 *-*-haiku*)
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Haiku"
3751 llvm_cv_platform_type="Unix" ;;
3752 *-unknown-eabi*)
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Freestanding"
3756 llvm_cv_platform_type="Unix" ;;
3757 *-unknown-elf*)
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="Freestanding"
3761 llvm_cv_platform_type="Unix" ;;
3762 *)
3763 llvm_cv_link_all_option=""
3764 llvm_cv_no_link_all_option=""
3765 llvm_cv_os_type="Unknown"
3766 llvm_cv_platform_type="Unknown" ;;
3767esac
3768fi
3769{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3771
3772{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774if test "${llvm_cv_target_os_type+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 case $target in
3778 *-*-aix*)
3779 llvm_cv_target_os_type="AIX" ;;
3780 *-*-irix*)
3781 llvm_cv_target_os_type="IRIX" ;;
3782 *-*-cygwin*)
3783 llvm_cv_target_os_type="Cygwin" ;;
3784 *-*-darwin*)
3785 llvm_cv_target_os_type="Darwin" ;;
3786 *-*-minix*)
3787 llvm_cv_target_os_type="Minix" ;;
3788 *-*-freebsd*)
3789 llvm_cv_target_os_type="FreeBSD" ;;
3790 *-*-openbsd*)
3791 llvm_cv_target_os_type="OpenBSD" ;;
3792 *-*-netbsd*)
3793 llvm_cv_target_os_type="NetBSD" ;;
3794 *-*-dragonfly*)
3795 llvm_cv_target_os_type="DragonFly" ;;
3796 *-*-hpux*)
3797 llvm_cv_target_os_type="HP-UX" ;;
3798 *-*-interix*)
3799 llvm_cv_target_os_type="Interix" ;;
3800 *-*-linux*)
3801 llvm_cv_target_os_type="Linux" ;;
3802 *-*-solaris*)
3803 llvm_cv_target_os_type="SunOS" ;;
3804 *-*-auroraux*)
3805 llvm_cv_target_os_type="AuroraUX" ;;
3806 *-*-win32*)
3807 llvm_cv_target_os_type="Win32" ;;
3808 *-*-mingw*)
3809 llvm_cv_target_os_type="MingW" ;;
3810 *-*-haiku*)
3811 llvm_cv_target_os_type="Haiku" ;;
3812 *-*-rtems*)
3813 llvm_cv_target_os_type="RTEMS" ;;
3814 *-*-nacl*)
3815 llvm_cv_target_os_type="NativeClient" ;;
3816 *-unknown-eabi*)
3817 llvm_cv_target_os_type="Freestanding" ;;
3818 *)
3819 llvm_cv_target_os_type="Unknown" ;;
3820esac
3821fi
3822{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3824
3825if test "$llvm_cv_os_type" = "Unknown" ; then
3826 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828 { (exit 1); exit 1; }; }
3829fi
3830
3831OS=$llvm_cv_os_type
3832
3833HOST_OS=$llvm_cv_os_type
3834
3835TARGET_OS=$llvm_cv_target_os_type
3836
3837
3838LINKALL=$llvm_cv_link_all_option
3839
3840NOLINKALL=$llvm_cv_no_link_all_option
3841
3842
3843case $llvm_cv_platform_type in
3844 Unix)
3845
3846cat >>confdefs.h <<\_ACEOF
3847#define LLVM_ON_UNIX 1
3848_ACEOF
3849
3850 LLVM_ON_UNIX=1
3851
3852 LLVM_ON_WIN32=0
3853
3854 ;;
3855 Win32)
3856
3857cat >>confdefs.h <<\_ACEOF
3858#define LLVM_ON_WIN32 1
3859_ACEOF
3860
3861 LLVM_ON_UNIX=0
3862
3863 LLVM_ON_WIN32=1
3864
3865 ;;
3866esac
3867
3868{ echo "$as_me:$LINENO: checking target architecture" >&5
3869echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870if test "${llvm_cv_target_arch+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 case $target in
3874 i?86-*) llvm_cv_target_arch="x86" ;;
3875 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3876 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3877 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3878 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3879 arm*-*) llvm_cv_target_arch="ARM" ;;
3880 mips-*) llvm_cv_target_arch="Mips" ;;
3881 xcore-*) llvm_cv_target_arch="XCore" ;;
3882 msp430-*) llvm_cv_target_arch="MSP430" ;;
3883 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3884 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3885 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3886 ptx-*) llvm_cv_target_arch="PTX" ;;
3887 *) llvm_cv_target_arch="Unknown" ;;
3888esac
3889fi
3890{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3891echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3892
3893if test "$llvm_cv_target_arch" = "Unknown" ; then
3894 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3895echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3896fi
3897
3898# Determine the LLVM native architecture for the target
3899case "$llvm_cv_target_arch" in
3900 x86) LLVM_NATIVE_ARCH="X86" ;;
3901 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3902 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3903esac
3904
3905ARCH=$llvm_cv_target_arch
3906
3907
3908
3909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003910{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3911echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3912if test "${ac_cv_path_GREP+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003915 # Extract the first word of "grep ggrep" to use in msg output
3916if test -z "$GREP"; then
3917set dummy grep ggrep; ac_prog_name=$2
3918if test "${ac_cv_path_GREP+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
Reid Spencera773bd52006-08-04 18:18:08 +00003921 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922# Loop through the user's path and test for each of PROGNAME-LIST
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003928 for ac_prog in grep ggrep; do
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3932 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003933 # Check for GNU $ac_path_GREP
3934case `"$ac_path_GREP" --version 2>&1` in
3935*GNU*)
3936 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937*)
3938 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003939 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003940 while :
3941 do
3942 cat "conftest.in" "conftest.in" >"conftest.tmp"
3943 mv "conftest.tmp" "conftest.in"
3944 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003945 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003948 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950 # Best one so far, save it but keep looking for a better one
3951 ac_cv_path_GREP="$ac_path_GREP"
3952 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003953 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003954 # 10*(2^10) chars as input seems more than enough
3955 test $ac_count -gt 10 && break
3956 done
3957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958esac
3959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003960
3961 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003962 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003963done
3964
3965done
Reid Spencera773bd52006-08-04 18:18:08 +00003966IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967
3968
3969fi
3970
3971GREP="$ac_cv_path_GREP"
3972if test -z "$GREP"; then
3973 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3974echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3975 { (exit 1); exit 1; }; }
3976fi
3977
Reid Spencera773bd52006-08-04 18:18:08 +00003978else
3979 ac_cv_path_GREP=$GREP
3980fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982
Reid Spencera773bd52006-08-04 18:18:08 +00003983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003984{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3985echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003986 GREP="$ac_cv_path_GREP"
3987
3988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989{ echo "$as_me:$LINENO: checking for egrep" >&5
3990echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3991if test "${ac_cv_path_EGREP+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003993else
3994 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3995 then ac_cv_path_EGREP="$GREP -E"
3996 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997 # Extract the first word of "egrep" to use in msg output
3998if test -z "$EGREP"; then
3999set dummy egrep; ac_prog_name=$2
4000if test "${ac_cv_path_EGREP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
Reid Spencera773bd52006-08-04 18:18:08 +00004003 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004004# Loop through the user's path and test for each of PROGNAME-LIST
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004010 for ac_prog in egrep; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4013 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4014 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004015 # Check for GNU $ac_path_EGREP
4016case `"$ac_path_EGREP" --version 2>&1` in
4017*GNU*)
4018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019*)
4020 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004021 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004022 while :
4023 do
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004027 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004030 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_EGREP="$ac_path_EGREP"
4034 ac_path_EGREP_max=$ac_count
4035 fi
4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4038 done
4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040esac
4041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004042
4043 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004044 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004045done
4046
4047done
Reid Spencera773bd52006-08-04 18:18:08 +00004048IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004049
4050
4051fi
4052
4053EGREP="$ac_cv_path_EGREP"
4054if test -z "$EGREP"; then
4055 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4056echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4057 { (exit 1); exit 1; }; }
4058fi
4059
Reid Spencera773bd52006-08-04 18:18:08 +00004060else
4061 ac_cv_path_EGREP=$EGREP
4062fi
4063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004064
Reid Spencera773bd52006-08-04 18:18:08 +00004065 fi
4066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004067{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4068echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004069 EGREP="$ac_cv_path_EGREP"
4070
4071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004072{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4073echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4074if test "${ac_cv_header_stdc+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004076else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004077 cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h. */
4079_ACEOF
4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004082/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004083#include <stdlib.h>
4084#include <stdarg.h>
4085#include <string.h>
4086#include <float.h>
4087
John Criswell0c38eaf2003-09-10 15:17:25 +00004088int
4089main ()
4090{
4091
4092 ;
4093 return 0;
4094}
John Criswell7a73b802003-06-30 21:59:07 +00004095_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004096rm -f conftest.$ac_objext
4097if { (ac_try="$ac_compile"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_compile") 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4111 { (case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114esac
4115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_try") 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124esac
4125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_try") 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004130 ac_cv_header_stdc=yes
4131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004132 echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004137
Reid Spencera773bd52006-08-04 18:18:08 +00004138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004139
4140if test $ac_cv_header_stdc = yes; then
4141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004142 cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004148#include <string.h>
4149
4150_ACEOF
4151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004152 $EGREP "memchr" >/dev/null 2>&1; then
4153 :
John Criswell7a73b802003-06-30 21:59:07 +00004154else
4155 ac_cv_header_stdc=no
4156fi
4157rm -f conftest*
4158
4159fi
4160
4161if test $ac_cv_header_stdc = yes; then
4162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004163 cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004168/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004169#include <stdlib.h>
4170
4171_ACEOF
4172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004173 $EGREP "free" >/dev/null 2>&1; then
4174 :
John Criswell7a73b802003-06-30 21:59:07 +00004175else
4176 ac_cv_header_stdc=no
4177fi
4178rm -f conftest*
4179
4180fi
4181
4182if test $ac_cv_header_stdc = yes; then
4183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004184 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004185 :
4186else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004187 cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h. */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004192/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004193#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004194#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004195#if ((' ' & 0x0FF) == 0x020)
4196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4198#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004199# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004200 (('a' <= (c) && (c) <= 'i') \
4201 || ('j' <= (c) && (c) <= 'r') \
4202 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204#endif
4205
4206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4207int
4208main ()
4209{
4210 int i;
4211 for (i = 0; i < 256; i++)
4212 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004213 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004214 return 2;
4215 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004216}
4217_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004218rm -f conftest$ac_exeext
4219if { (ac_try="$ac_link"
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_link") 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 :
John Criswell7a73b802003-06-30 21:59:07 +00004239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004240 echo "$as_me: program exited with status $ac_status" >&5
4241echo "$as_me: failed program was:" >&5
4242sed 's/^/| /' conftest.$ac_ext >&5
4243
4244( exit $ac_status )
4245ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004247rm -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 +00004248fi
4249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004250
John Criswell7a73b802003-06-30 21:59:07 +00004251fi
4252fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004253{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4254echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004255if test $ac_cv_header_stdc = yes; then
4256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257cat >>confdefs.h <<\_ACEOF
4258#define STDC_HEADERS 1
4259_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004260
4261fi
4262
Reid Spencera773bd52006-08-04 18:18:08 +00004263# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004264
4265
4266
4267
4268
4269
4270
4271
4272
Reid Spencera773bd52006-08-04 18:18:08 +00004273for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4274 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004275do
4276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281else
4282 cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h. */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h. */
4288$ac_includes_default
4289
4290#include <$ac_header>
4291_ACEOF
4292rm -f conftest.$ac_objext
4293if { (ac_try="$ac_compile"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_compile") 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307 { (case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310esac
4311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; } &&
4316 { ac_try='test -s conftest.$ac_objext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 eval "$as_ac_Header=yes"
4327else
4328 echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 eval "$as_ac_Header=no"
4332fi
4333
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335fi
4336ac_res=`eval echo '${'$as_ac_Header'}'`
4337 { echo "$as_me:$LINENO: result: $ac_res" >&5
4338echo "${ECHO_T}$ac_res" >&6; }
4339if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004340 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004342_ACEOF
4343
4344fi
4345
4346done
4347
4348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004349{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4350echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4351if test "${ac_cv_c_bigendian+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004354 # See if sys/param.h defines the BYTE_ORDER macro.
4355cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004357_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004360/* end confdefs.h. */
4361#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004362#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004363
4364int
4365main ()
4366{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004367#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4368 bogus endian macros
4369#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004370
4371 ;
4372 return 0;
4373}
4374_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375rm -f conftest.$ac_objext
4376if { (ac_try="$ac_compile"
4377case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380esac
4381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390 { (case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393esac
4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_try") 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest.$ac_objext'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_try") 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004409 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004410cat >conftest.$ac_ext <<_ACEOF
4411/* confdefs.h. */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004415/* end confdefs.h. */
4416#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004418
4419int
4420main ()
4421{
4422#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423 not big endian
4424#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004425
4426 ;
4427 return 0;
4428}
4429_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004430rm -f conftest.$ac_objext
4431if { (ac_try="$ac_compile"
4432case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
4436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_compile") 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4445 { (case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448esac
4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_try") 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458esac
4459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_try") 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004464 ac_cv_c_bigendian=yes
4465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004466 echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004469 ac_cv_c_bigendian=no
4470fi
4471
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473else
4474 echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 # It does not; compile a test program.
4478if test "$cross_compiling" = yes; then
4479 # try to guess the endianness by grepping values into an object file
4480 ac_cv_c_bigendian=unknown
4481 cat >conftest.$ac_ext <<_ACEOF
4482/* confdefs.h. */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4486/* end confdefs.h. */
4487short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4488short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4489void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4490short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4491short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4492void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004493int
4494main ()
4495{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004496 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004497 ;
4498 return 0;
4499}
4500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004501rm -f conftest.$ac_objext
4502if { (ac_try="$ac_compile"
4503case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506esac
4507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508 (eval "$ac_compile") 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4516 { (case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519esac
4520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_try") 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try='test -s conftest.$ac_objext'
4526 { (case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529esac
4530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_try") 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4535 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004536 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004537fi
4538if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4539 if test "$ac_cv_c_bigendian" = unknown; then
4540 ac_cv_c_bigendian=no
4541 else
4542 # finding both strings is unlikely to happen, but who knows?
4543 ac_cv_c_bigendian=unknown
4544 fi
4545fi
Reid Spencera773bd52006-08-04 18:18:08 +00004546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004547 echo "$as_me: failed program was:" >&5
4548sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550
Torok Edwin871384f2010-01-26 08:50:50 +00004551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552
Reid Spencera773bd52006-08-04 18:18:08 +00004553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004555 cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h. */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004560/* end confdefs.h. */
4561$ac_includes_default
4562int
4563main ()
4564{
4565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566 /* Are we little or big endian? From Harbison&Steele. */
4567 union
4568 {
4569 long int l;
4570 char c[sizeof (long int)];
4571 } u;
4572 u.l = 1;
4573 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004574
4575 ;
4576 return 0;
4577}
4578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579rm -f conftest$ac_exeext
4580if { (ac_try="$ac_link"
4581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_link") 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4590 { (case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
4594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_try") 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004599 ac_cv_c_bigendian=no
4600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004601 echo "$as_me: program exited with status $ac_status" >&5
4602echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605( exit $ac_status )
4606ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608rm -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 +00004609fi
4610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004611
Reid Spencera773bd52006-08-04 18:18:08 +00004612fi
4613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615fi
4616{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4617echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4618case $ac_cv_c_bigendian in
4619 yes)
4620 ENDIAN=big
4621 ;;
4622 no)
4623 ENDIAN=little
4624 ;;
4625 *)
4626 { { echo "$as_me:$LINENO: error: unknown endianness
4627presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4628echo "$as_me: error: unknown endianness
4629presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4630 { (exit 1); exit 1; }; } ;;
4631esac
Reid Spencera773bd52006-08-04 18:18:08 +00004632
4633
4634if test "$cross_compiling" = yes; then
4635 LLVM_CROSS_COMPILING=1
4636
4637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004638{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4639echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4640if test "${ac_cv_build_exeext+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004642else
4643 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4644 ac_cv_build_exeext=.exe
4645else
4646 ac_build_prefix=${build_alias}-
4647
4648 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4649set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004654else
4655 if test -n "$BUILD_CC"; then
4656 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 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 +00004665 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004667 break 2
4668 fi
4669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004670done
Reid Spencera773bd52006-08-04 18:18:08 +00004671IFS=$as_save_IFS
4672
4673fi
4674fi
4675BUILD_CC=$ac_cv_prog_BUILD_CC
4676if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004680 { echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004682fi
4683
4684
4685 if test -z "$BUILD_CC"; then
4686 # Extract the first word of "gcc", so it can be a program name with args.
4687set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004692else
4693 if test -n "$BUILD_CC"; then
4694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 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 +00004703 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004705 break 2
4706 fi
4707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004708done
Reid Spencera773bd52006-08-04 18:18:08 +00004709IFS=$as_save_IFS
4710
4711fi
4712fi
4713BUILD_CC=$ac_cv_prog_BUILD_CC
4714if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4716echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718 { echo "$as_me:$LINENO: result: no" >&5
4719echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004720fi
4721
4722
4723 if test -z "$BUILD_CC"; then
4724 # Extract the first word of "cc", so it can be a program name with args.
4725set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004730else
4731 if test -n "$BUILD_CC"; then
4732 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733else
4734 ac_prog_rejected=no
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 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 +00004742 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4743 ac_prog_rejected=yes
4744 continue
4745 fi
4746 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004748 break 2
4749 fi
4750done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004751done
Reid Spencera773bd52006-08-04 18:18:08 +00004752IFS=$as_save_IFS
4753
4754if test $ac_prog_rejected = yes; then
4755 # We found a bogon in the path, so make sure we never use it.
4756 set dummy $ac_cv_prog_BUILD_CC
4757 shift
4758 if test $# != 0; then
4759 # We chose a different compiler from the bogus one.
4760 # However, it has the same basename, so the bogon will be chosen
4761 # first if we set BUILD_CC to just the basename; use the full file name.
4762 shift
4763 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4764 fi
4765fi
4766fi
4767fi
4768BUILD_CC=$ac_cv_prog_BUILD_CC
4769if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004770 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4771echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004773 { echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004775fi
4776
4777
4778 fi
4779 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004780 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4781echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4782 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004783 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4784 rm -f conftest*
4785 echo 'int main () { return 0; }' > conftest.$ac_ext
4786 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004788 (eval $ac_build_link) 2>&5
4789 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004792 for file in conftest.*; do
4793 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004794 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004795 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4796 esac
4797 done
4798 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004799 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4800echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4801 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004802 fi
4803 rm -f conftest*
4804 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4805fi
4806fi
4807
4808BUILD_EXEEXT=""
4809test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004810{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4811echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004812ac_build_exeext=$BUILD_EXEEXT
4813
Jim Grosbach673612e2008-10-02 22:56:44 +00004814 ac_build_prefix=${build_alias}-
4815 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4816set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004821else
4822 if test -n "$BUILD_CXX"; then
4823 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 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 +00004832 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004834 break 2
4835 fi
4836done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837done
Jim Grosbach673612e2008-10-02 22:56:44 +00004838IFS=$as_save_IFS
4839
4840fi
4841fi
4842BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004846else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004847 { echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004849fi
4850
4851
4852 if test -z "$BUILD_CXX"; then
4853 # Extract the first word of "g++", so it can be a program name with args.
4854set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004859else
4860 if test -n "$BUILD_CXX"; then
4861 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 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 +00004870 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004872 break 2
4873 fi
4874done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004875done
Jim Grosbach673612e2008-10-02 22:56:44 +00004876IFS=$as_save_IFS
4877
4878fi
4879fi
4880BUILD_CXX=$ac_cv_prog_BUILD_CXX
4881if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4883echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004885 { echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004887fi
4888
4889
4890 if test -z "$BUILD_CXX"; then
4891 # Extract the first word of "c++", so it can be a program name with args.
4892set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004897else
4898 if test -n "$BUILD_CXX"; then
4899 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900else
4901 ac_prog_rejected=no
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 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 +00004909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4910 ac_prog_rejected=yes
4911 continue
4912 fi
4913 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004915 break 2
4916 fi
4917done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918done
Jim Grosbach673612e2008-10-02 22:56:44 +00004919IFS=$as_save_IFS
4920
4921if test $ac_prog_rejected = yes; then
4922 # We found a bogon in the path, so make sure we never use it.
4923 set dummy $ac_cv_prog_BUILD_CXX
4924 shift
4925 if test $# != 0; then
4926 # We chose a different compiler from the bogus one.
4927 # However, it has the same basename, so the bogon will be chosen
4928 # first if we set BUILD_CXX to just the basename; use the full file name.
4929 shift
4930 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4931 fi
4932fi
4933fi
4934fi
4935BUILD_CXX=$ac_cv_prog_BUILD_CXX
4936if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004937 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4938echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004940 { echo "$as_me:$LINENO: result: no" >&5
4941echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004942fi
4943
4944
4945 fi
4946 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004947else
4948 LLVM_CROSS_COMPILING=0
4949
4950fi
4951
Dan Gohman56fb5f92010-08-04 16:25:01 +00004952if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004953 cvsbuild="yes"
4954 optimize="no"
4955 CVSBUILD=CVSBUILD=1
4956
4957else
4958 cvsbuild="no"
4959 optimize="yes"
4960fi
4961
4962
4963# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004964if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004965 enableval=$enable_optimized;
4966else
4967 enableval=$optimize
4968fi
4969
4970if test ${enableval} = "no" ; then
4971 ENABLE_OPTIMIZED=
4972
4973else
4974 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4975
4976fi
4977
David Greene2a5a12c2009-04-17 14:50:39 +00004978# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004979if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004980 enableval=$enable_profiling;
4981else
4982 enableval="no"
4983fi
4984
4985if test ${enableval} = "no" ; then
4986 ENABLE_PROFILING=
4987
4988else
4989 ENABLE_PROFILING=ENABLE_PROFILING=1
4990
4991fi
4992
Reid Spencera773bd52006-08-04 18:18:08 +00004993# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004994if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004995 enableval=$enable_assertions;
4996else
4997 enableval="yes"
4998fi
4999
5000if test ${enableval} = "yes" ; then
5001 DISABLE_ASSERTIONS=
5002
5003else
5004 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5005
5006fi
5007
David Greenea696d242007-06-28 19:36:08 +00005008# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005009if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005010 enableval=$enable_expensive_checks;
5011else
5012 enableval="no"
5013fi
5014
5015if test ${enableval} = "yes" ; then
5016 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5017
5018 EXPENSIVE_CHECKS=yes
5019
5020else
5021 ENABLE_EXPENSIVE_CHECKS=
5022
5023 EXPENSIVE_CHECKS=no
5024
5025fi
5026
Reid Spencer8b2e1412006-11-17 03:32:33 +00005027# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005028if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005029 enableval=$enable_debug_runtime;
5030else
5031 enableval=no
5032fi
5033
5034if test ${enableval} = "no" ; then
5035 DEBUG_RUNTIME=
5036
5037else
5038 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5039
5040fi
5041
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005042# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005043if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005044 enableval=$enable_debug_symbols;
5045else
5046 enableval=no
5047fi
5048
5049if test ${enableval} = "no" ; then
5050 DEBUG_SYMBOLS=
5051
5052else
5053 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5054
5055fi
5056
Reid Spencera773bd52006-08-04 18:18:08 +00005057# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005058if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005059 enableval=$enable_jit;
5060else
5061 enableval=default
5062fi
5063
5064if test ${enableval} = "no"
5065then
5066 JIT=
5067
5068else
5069 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005070 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005071 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005072 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005073 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005074 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005075 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005076 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005077 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00005078 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005079 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005080 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005081 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005082 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005083 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005084 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005085 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005086 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005087 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005088 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00005089 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005090 Blackfin) TARGET_HAS_JIT=0
5091 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005092 MBlaze) TARGET_HAS_JIT=0
5093 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005094 PTX) TARGET_HAS_JIT=0
5095 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005096 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005097 ;;
5098 esac
5099fi
5100
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005101# Check whether --enable-docs was given.
5102if test "${enable_docs+set}" = set; then
5103 enableval=$enable_docs;
5104else
5105 enableval=default
5106fi
5107
5108case "$enableval" in
5109 yes) ENABLE_DOCS=1
5110 ;;
5111 no) ENABLE_DOCS=0
5112 ;;
5113 default) ENABLE_DOCS=1
5114 ;;
5115 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5116echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5118esac
5119
Reid Spencera773bd52006-08-04 18:18:08 +00005120# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005121if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005122 enableval=$enable_doxygen;
5123else
5124 enableval=default
5125fi
5126
5127case "$enableval" in
5128 yes) ENABLE_DOXYGEN=1
5129 ;;
5130 no) ENABLE_DOXYGEN=0
5131 ;;
5132 default) ENABLE_DOXYGEN=0
5133 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005134 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5135echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5136 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005137esac
5138
5139# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005140if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005141 enableval=$enable_threads;
5142else
Reid Spencer65c5d752006-11-05 17:08:18 +00005143 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005144fi
5145
5146case "$enableval" in
5147 yes) ENABLE_THREADS=1
5148 ;;
5149 no) ENABLE_THREADS=0
5150 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005151 default) ENABLE_THREADS=1
5152 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5154echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5155 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005156esac
5157
Owen Andersona8603702009-05-19 22:18:56 +00005158cat >>confdefs.h <<_ACEOF
5159#define ENABLE_THREADS $ENABLE_THREADS
5160_ACEOF
5161
5162
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005163# Check whether --enable-pthreads was given.
5164if test "${enable_pthreads+set}" = set; then
5165 enableval=$enable_pthreads;
5166else
5167 enableval=default
5168fi
5169
5170case "$enableval" in
5171 yes) ENABLE_PTHREADS=1
5172 ;;
5173 no) ENABLE_PTHREADS=0
5174 ;;
5175 default) ENABLE_PTHREADS=1
5176 ;;
5177 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5178echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5179 { (exit 1); exit 1; }; } ;;
5180esac
5181
Reid Spencer89b0d992006-12-16 22:07:52 +00005182# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005183if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005184 enableval=$enable_pic;
5185else
5186 enableval=default
5187fi
5188
5189case "$enableval" in
5190 yes) ENABLE_PIC=1
5191 ;;
5192 no) ENABLE_PIC=0
5193 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005194 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005195 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005196 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5197echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5198 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005199esac
5200
5201cat >>confdefs.h <<_ACEOF
5202#define ENABLE_PIC $ENABLE_PIC
5203_ACEOF
5204
5205
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005206# Check whether --enable-shared was given.
5207if test "${enable_shared+set}" = set; then
5208 enableval=$enable_shared;
5209else
5210 enableval=default
5211fi
5212
5213case "$enableval" in
5214 yes) ENABLE_SHARED=1
5215 ;;
5216 no) ENABLE_SHARED=0
5217 ;;
5218 default) ENABLE_SHARED=0
5219 ;;
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5221echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5223esac
5224
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005225# Check whether --enable-embed-stdcxx was given.
5226if test "${enable_embed_stdcxx+set}" = set; then
5227 enableval=$enable_embed_stdcxx;
5228else
5229 enableval=default
5230fi
5231
5232case "$enableval" in
5233 yes) ENABLE_EMBED_STDCXX=1
5234 ;;
5235 no) ENABLE_EMBED_STDCXX=0
5236 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005237 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005238 ;;
5239 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5240echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5241 { (exit 1); exit 1; }; } ;;
5242esac
5243
Daniel Dunbardd464df2010-05-10 20:11:56 +00005244# Check whether --enable-timestamps was given.
5245if test "${enable_timestamps+set}" = set; then
5246 enableval=$enable_timestamps;
5247else
5248 enableval=default
5249fi
5250
5251case "$enableval" in
5252 yes) ENABLE_TIMESTAMPS=1
5253 ;;
5254 no) ENABLE_TIMESTAMPS=0
5255 ;;
5256 default) ENABLE_TIMESTAMPS=1
5257 ;;
5258 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5259echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5261esac
5262
5263cat >>confdefs.h <<_ACEOF
5264#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5265_ACEOF
5266
5267
Reid Spencera773bd52006-08-04 18:18:08 +00005268TARGETS_TO_BUILD=""
5269# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005270if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005271 enableval=$enable_targets;
5272else
5273 enableval=all
5274fi
5275
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005276if test "$enableval" = host-only ; then
5277 enableval=host
5278fi
Reid Spencera773bd52006-08-04 18:18:08 +00005279case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005280 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 +00005281 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5282 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005283 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5284 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5285 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5286 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5287 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5288 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5289 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5290 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005291 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5292 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5293 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5294 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5295 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005296 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005297 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005298 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005299 host) case "$llvm_cv_target_arch" in
5300 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5301 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5302 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5303 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5304 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5305 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5306 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005307 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005308 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005309 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5310 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005311 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005312 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005313 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005314 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5315echo "$as_me: error: Can not set target to build" >&2;}
5316 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005317 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005318 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5319echo "$as_me: error: Unrecognized target $a_target" >&2;}
5320 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005321 esac
5322 done
5323 ;;
5324esac
Reid Spencera773bd52006-08-04 18:18:08 +00005325TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5326
5327
Douglas Gregor0711c302009-06-17 00:43:20 +00005328# Determine whether we are building LLVM support for the native architecture.
5329# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5330for a_target in $TARGETS_TO_BUILD; do
5331 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5332
5333cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005334#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5335_ACEOF
5336
5337 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5338 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005339 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005340 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005341 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5342 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5343 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005344
5345cat >>confdefs.h <<_ACEOF
5346#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005347_ACEOF
5348
5349
5350cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005351#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5352_ACEOF
5353
5354
5355cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005356#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005357_ACEOF
5358
5359
5360cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005361#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005362_ACEOF
5363
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005364 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005365
5366cat >>confdefs.h <<_ACEOF
5367#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5368_ACEOF
5369
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005370 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005371 fi
5372done
5373
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005374# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5375# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005376LLVM_ENUM_TARGETS=""
5377LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005378LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005379LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005380for target_to_build in $TARGETS_TO_BUILD; do
5381 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005382 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005383 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5384 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005385 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5386 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5387 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005388 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5389 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5390 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005391done
5392
5393
5394
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005395
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005396
Reid Spencer65c5d752006-11-05 17:08:18 +00005397# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005398if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005399 enableval=$enable_cbe_printf_a;
5400else
5401 enableval=default
5402fi
5403
5404case "$enableval" in
5405 yes) ENABLE_CBE_PRINTF_A=1
5406 ;;
5407 no) ENABLE_CBE_PRINTF_A=0
5408 ;;
5409 default) ENABLE_CBE_PRINTF_A=1
5410 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005411 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5412echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5413 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005414esac
5415
5416cat >>confdefs.h <<_ACEOF
5417#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5418_ACEOF
5419
5420
Reid Spencera773bd52006-08-04 18:18:08 +00005421
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005422# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005423if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005424 withval=$with_optimize_option;
5425else
5426 withval=default
5427fi
5428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005429{ echo "$as_me:$LINENO: checking optimization flags" >&5
5430echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005431case "$withval" in
5432 default)
5433 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005434 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005435 MingW) optimize_option=-O2 ;;
5436 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005437 esac ;;
5438 *) optimize_option="$withval" ;;
5439esac
5440OPTIMIZE_OPTION=$optimize_option
5441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005442{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5443echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005444
5445
Reid Spencera773bd52006-08-04 18:18:08 +00005446# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005448 withval=$with_extra_options;
5449else
5450 withval=default
5451fi
5452
5453case "$withval" in
5454 default) EXTRA_OPTIONS= ;;
5455 *) EXTRA_OPTIONS=$withval ;;
5456esac
5457EXTRA_OPTIONS=$EXTRA_OPTIONS
5458
5459
Daniel Dunbared344d22011-06-16 22:30:41 +00005460
5461# Check whether --with-extra-ld-options was given.
5462if test "${with_extra_ld_options+set}" = set; then
5463 withval=$with_extra_ld_options;
5464else
5465 withval=default
5466fi
5467
5468case "$withval" in
5469 default) EXTRA_LD_OPTIONS= ;;
5470 *) EXTRA_LD_OPTIONS=$withval ;;
5471esac
5472EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5473
5474
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005475# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005476if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005477 enableval=$enable_bindings;
5478else
5479 enableval=default
5480fi
5481
5482BINDINGS_TO_BUILD=""
5483case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005484 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005485 all ) BINDINGS_TO_BUILD="ocaml" ;;
5486 none | no) BINDINGS_TO_BUILD="" ;;
5487 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5488 case "$a_binding" in
5489 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005490 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5491echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5492 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005493 esac
5494 done
5495 ;;
5496esac
5497
Reid Spencera773bd52006-08-04 18:18:08 +00005498
Gordon Henriksenf0915682007-10-02 16:42:22 +00005499# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005500if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005501 withval=$with_ocaml_libdir;
5502else
5503 withval=auto
5504fi
5505
5506case "$withval" in
5507 auto) with_ocaml_libdir="$withval" ;;
5508 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005509 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5510echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5511 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005512esac
5513
5514
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005515# Check whether --with-clang-srcdir was given.
5516if test "${with_clang_srcdir+set}" = set; then
5517 withval=$with_clang_srcdir;
5518else
5519 withval="-"
5520fi
5521
5522case "$withval" in
5523 -) clang_src_root="" ;;
5524 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5525 *) clang_src_root="$ac_pwd/$withval" ;;
5526esac
5527CLANG_SRC_ROOT=$clang_src_root
5528
5529
5530
Chandler Carruth6b241162010-10-19 08:21:25 +00005531# Check whether --with-clang-resource-dir was given.
5532if test "${with_clang_resource_dir+set}" = set; then
5533 withval=$with_clang_resource_dir;
5534else
5535 withval=""
5536fi
5537
5538
5539cat >>confdefs.h <<_ACEOF
5540#define CLANG_RESOURCE_DIR "$withval"
5541_ACEOF
5542
5543
5544
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005545# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005546if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005547 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005548else
5549 withval=""
5550fi
5551
5552
5553cat >>confdefs.h <<_ACEOF
5554#define C_INCLUDE_DIRS "$withval"
5555_ACEOF
5556
5557
5558
Rafael Espindola420d23c2009-11-16 19:46:55 +00005559# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005560if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005561 withval=$with_cxx_include_root;
5562else
5563 withval=""
5564fi
5565
5566
5567cat >>confdefs.h <<_ACEOF
5568#define CXX_INCLUDE_ROOT "$withval"
5569_ACEOF
5570
5571
5572
5573# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005574if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005575 withval=$with_cxx_include_arch;
5576else
5577 withval=""
5578fi
5579
5580
5581cat >>confdefs.h <<_ACEOF
5582#define CXX_INCLUDE_ARCH "$withval"
5583_ACEOF
5584
5585
5586
5587# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005588if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005589 withval=$with_cxx_include_32bit_dir;
5590else
5591 withval=""
5592fi
5593
5594
5595cat >>confdefs.h <<_ACEOF
5596#define CXX_INCLUDE_32BIT_DIR "$withval"
5597_ACEOF
5598
5599
5600
5601# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005602if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005603 withval=$with_cxx_include_64bit_dir;
5604else
5605 withval=""
5606fi
5607
5608
5609cat >>confdefs.h <<_ACEOF
5610#define CXX_INCLUDE_64BIT_DIR "$withval"
5611_ACEOF
5612
5613
5614
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005615# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005617 withval=$with_binutils_include;
5618else
5619 withval=default
5620fi
5621
5622case "$withval" in
5623 default) WITH_BINUTILS_INCDIR=default ;;
5624 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005625 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5626echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5627 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005628esac
5629if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5630 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5631
5632 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5633 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005634 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5635echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5636 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005637 fi
5638fi
5639
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005640
5641# Check whether --with-bug-report-url was given.
5642if test "${with_bug_report_url+set}" = set; then
5643 withval=$with_bug_report_url;
5644else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005645 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005646fi
5647
5648
5649cat >>confdefs.h <<_ACEOF
5650#define BUG_REPORT_URL "$withval"
5651_ACEOF
5652
5653
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005654# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005656 enableval=$enable_libffi; case "$enableval" in
5657 yes) llvm_cv_enable_libffi="yes" ;;
5658 no) llvm_cv_enable_libffi="no" ;;
5659 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5661 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005662 esac
5663else
5664 llvm_cv_enable_libffi=no
5665fi
5666
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005667
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005669{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5670echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5671if test "${lt_cv_path_NM+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005673else
5674 if test -n "$NM"; then
5675 # Let the user override the test.
5676 lt_cv_path_NM="$NM"
5677else
5678 lt_nm_to_check="${ac_tool_prefix}nm"
5679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5680 lt_nm_to_check="$lt_nm_to_check nm"
5681 fi
5682 for lt_tmp_nm in $lt_nm_to_check; do
5683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5685 IFS="$lt_save_ifs"
5686 test -z "$ac_dir" && ac_dir=.
5687 tmp_nm="$ac_dir/$lt_tmp_nm"
5688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5689 # Check to see if the nm accepts a BSD-compat flag.
5690 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5691 # nm: unknown option "B" ignored
5692 # Tru64's nm complains that /dev/null is an invalid object file
5693 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5694 */dev/null* | *'Invalid file or object type'*)
5695 lt_cv_path_NM="$tmp_nm -B"
5696 break
5697 ;;
5698 *)
5699 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5700 */dev/null*)
5701 lt_cv_path_NM="$tmp_nm -p"
5702 break
5703 ;;
5704 *)
5705 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5706 continue # so that we can try to find one that supports BSD flags
5707 ;;
5708 esac
5709 ;;
5710 esac
5711 fi
5712 done
5713 IFS="$lt_save_ifs"
5714 done
5715 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5716fi
5717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005718{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5719echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005720NM="$lt_cv_path_NM"
5721
5722
5723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724{ echo "$as_me:$LINENO: checking for GNU make" >&5
5725echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5726if test "${llvm_cv_gnu_make_command+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005728else
5729 llvm_cv_gnu_make_command=''
5730 for a in "$MAKE" make gmake gnumake ; do
5731 if test -z "$a" ; then continue ; fi ;
5732 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5733 then
5734 llvm_cv_gnu_make_command=$a ;
5735 break;
5736 fi
5737 done
5738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5740echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005741 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5742 ifGNUmake='' ;
5743 else
5744 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005745 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5746echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005747 fi
5748
5749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005750{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5751echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005752LN_S=$as_ln_s
5753if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005754 { echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005756else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005757 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5758echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005759fi
5760
5761# Extract the first word of "cmp", so it can be a program name with args.
5762set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765if test "${ac_cv_path_CMP+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005767else
5768 case $CMP in
5769 [\\/]* | ?:[\\/]*)
5770 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5771 ;;
5772 *)
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 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 +00005780 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005782 break 2
5783 fi
5784done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005785done
Reid Spencera773bd52006-08-04 18:18:08 +00005786IFS=$as_save_IFS
5787
5788 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5789 ;;
5790esac
5791fi
5792CMP=$ac_cv_path_CMP
5793if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794 { echo "$as_me:$LINENO: result: $CMP" >&5
5795echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 { echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005799fi
5800
5801
5802# Extract the first word of "cp", so it can be a program name with args.
5803set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5806if test "${ac_cv_path_CP+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005808else
5809 case $CP in
5810 [\\/]* | ?:[\\/]*)
5811 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5812 ;;
5813 *)
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005821 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005823 break 2
5824 fi
5825done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005826done
Reid Spencera773bd52006-08-04 18:18:08 +00005827IFS=$as_save_IFS
5828
5829 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5830 ;;
5831esac
5832fi
5833CP=$ac_cv_path_CP
5834if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835 { echo "$as_me:$LINENO: result: $CP" >&5
5836echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838 { echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005840fi
5841
5842
5843# Extract the first word of "date", so it can be a program name with args.
5844set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5847if test "${ac_cv_path_DATE+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005849else
5850 case $DATE in
5851 [\\/]* | ?:[\\/]*)
5852 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5853 ;;
5854 *)
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 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 +00005862 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005864 break 2
5865 fi
5866done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005867done
Reid Spencera773bd52006-08-04 18:18:08 +00005868IFS=$as_save_IFS
5869
5870 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5871 ;;
5872esac
5873fi
5874DATE=$ac_cv_path_DATE
5875if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876 { echo "$as_me:$LINENO: result: $DATE" >&5
5877echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879 { echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005881fi
5882
5883
5884# Extract the first word of "find", so it can be a program name with args.
5885set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888if test "${ac_cv_path_FIND+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005890else
5891 case $FIND in
5892 [\\/]* | ?:[\\/]*)
5893 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5894 ;;
5895 *)
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 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 +00005903 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005905 break 2
5906 fi
5907done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005908done
Reid Spencera773bd52006-08-04 18:18:08 +00005909IFS=$as_save_IFS
5910
5911 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5912 ;;
5913esac
5914fi
5915FIND=$ac_cv_path_FIND
5916if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917 { echo "$as_me:$LINENO: result: $FIND" >&5
5918echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920 { echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005922fi
5923
5924
5925# Extract the first word of "grep", so it can be a program name with args.
5926set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929if test "${ac_cv_path_GREP+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005931else
5932 case $GREP in
5933 [\\/]* | ?:[\\/]*)
5934 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5935 ;;
5936 *)
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 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 +00005944 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005946 break 2
5947 fi
5948done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005949done
Reid Spencera773bd52006-08-04 18:18:08 +00005950IFS=$as_save_IFS
5951
5952 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5953 ;;
5954esac
5955fi
5956GREP=$ac_cv_path_GREP
5957if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958 { echo "$as_me:$LINENO: result: $GREP" >&5
5959echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005961 { echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005963fi
5964
5965
5966# Extract the first word of "mkdir", so it can be a program name with args.
5967set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970if test "${ac_cv_path_MKDIR+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005972else
5973 case $MKDIR in
5974 [\\/]* | ?:[\\/]*)
5975 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5976 ;;
5977 *)
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 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 +00005985 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005987 break 2
5988 fi
5989done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005990done
Reid Spencera773bd52006-08-04 18:18:08 +00005991IFS=$as_save_IFS
5992
5993 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5994 ;;
5995esac
5996fi
5997MKDIR=$ac_cv_path_MKDIR
5998if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6000echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002 { echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006004fi
6005
6006
6007# Extract the first word of "mv", so it can be a program name with args.
6008set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011if test "${ac_cv_path_MV+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006013else
6014 case $MV in
6015 [\\/]* | ?:[\\/]*)
6016 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6017 ;;
6018 *)
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 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 +00006026 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006028 break 2
6029 fi
6030done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006031done
Reid Spencera773bd52006-08-04 18:18:08 +00006032IFS=$as_save_IFS
6033
6034 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6035 ;;
6036esac
6037fi
6038MV=$ac_cv_path_MV
6039if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040 { echo "$as_me:$LINENO: result: $MV" >&5
6041echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043 { echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006045fi
6046
6047
6048if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6050set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053if test "${ac_cv_prog_RANLIB+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006055else
6056 if test -n "$RANLIB"; then
6057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 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 +00006066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006068 break 2
6069 fi
6070done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071done
Reid Spencera773bd52006-08-04 18:18:08 +00006072IFS=$as_save_IFS
6073
6074fi
6075fi
6076RANLIB=$ac_cv_prog_RANLIB
6077if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006078 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6079echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006081 { echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006083fi
6084
6085
6086fi
6087if test -z "$ac_cv_prog_RANLIB"; then
6088 ac_ct_RANLIB=$RANLIB
6089 # Extract the first word of "ranlib", so it can be a program name with args.
6090set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006095else
6096 if test -n "$ac_ct_RANLIB"; then
6097 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 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 +00006106 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006108 break 2
6109 fi
6110done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006111done
Reid Spencera773bd52006-08-04 18:18:08 +00006112IFS=$as_save_IFS
6113
6114fi
6115fi
6116ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6117if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006118 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6119echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006121 { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006123fi
6124
6125 if test "x$ac_ct_RANLIB" = x; then
6126 RANLIB=":"
6127 else
6128 case $cross_compiling:$ac_tool_warned in
6129yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006130{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6131whose name does not start with the host triplet. If you think this
6132configuration is useful to you, please write to autoconf@gnu.org." >&5
6133echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6134whose name does not start with the host triplet. If you think this
6135configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006136ac_tool_warned=yes ;;
6137esac
6138 RANLIB=$ac_ct_RANLIB
6139 fi
6140else
6141 RANLIB="$ac_cv_prog_RANLIB"
6142fi
6143
Torok Edwin871384f2010-01-26 08:50:50 +00006144if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6146set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149if test "${ac_cv_prog_AR+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006151else
6152 if test -n "$AR"; then
6153 ac_cv_prog_AR="$AR" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 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 +00006162 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006164 break 2
6165 fi
6166done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167done
Torok Edwin871384f2010-01-26 08:50:50 +00006168IFS=$as_save_IFS
6169
6170fi
6171fi
6172AR=$ac_cv_prog_AR
6173if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006174 { echo "$as_me:$LINENO: result: $AR" >&5
6175echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006176else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177 { echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006179fi
6180
6181
6182fi
6183if test -z "$ac_cv_prog_AR"; then
6184 ac_ct_AR=$AR
6185 # Extract the first word of "ar", so it can be a program name with args.
6186set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006191else
6192 if test -n "$ac_ct_AR"; then
6193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6194else
6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 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 +00006202 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006204 break 2
6205 fi
6206done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006207done
Torok Edwin871384f2010-01-26 08:50:50 +00006208IFS=$as_save_IFS
6209
6210fi
6211fi
6212ac_ct_AR=$ac_cv_prog_ac_ct_AR
6213if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006214 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6215echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006217 { echo "$as_me:$LINENO: result: no" >&5
6218echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006219fi
6220
6221 if test "x$ac_ct_AR" = x; then
6222 AR="false"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6227whose name does not start with the host triplet. If you think this
6228configuration is useful to you, please write to autoconf@gnu.org." >&5
6229echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6230whose name does not start with the host triplet. If you think this
6231configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006232ac_tool_warned=yes ;;
6233esac
6234 AR=$ac_ct_AR
6235 fi
6236else
6237 AR="$ac_cv_prog_AR"
6238fi
6239
Reid Spencera773bd52006-08-04 18:18:08 +00006240# Extract the first word of "rm", so it can be a program name with args.
6241set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244if test "${ac_cv_path_RM+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006246else
6247 case $RM in
6248 [\\/]* | ?:[\\/]*)
6249 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6250 ;;
6251 *)
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 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 +00006259 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006261 break 2
6262 fi
6263done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006264done
Reid Spencera773bd52006-08-04 18:18:08 +00006265IFS=$as_save_IFS
6266
6267 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6268 ;;
6269esac
6270fi
6271RM=$ac_cv_path_RM
6272if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273 { echo "$as_me:$LINENO: result: $RM" >&5
6274echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006275else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276 { echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006278fi
6279
6280
6281# Extract the first word of "sed", so it can be a program name with args.
6282set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6285if test "${ac_cv_path_SED+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006287else
6288 case $SED in
6289 [\\/]* | ?:[\\/]*)
6290 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6291 ;;
6292 *)
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 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 +00006300 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006302 break 2
6303 fi
6304done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006305done
Reid Spencera773bd52006-08-04 18:18:08 +00006306IFS=$as_save_IFS
6307
6308 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6309 ;;
6310esac
6311fi
6312SED=$ac_cv_path_SED
6313if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006314 { echo "$as_me:$LINENO: result: $SED" >&5
6315echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317 { echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006319fi
6320
6321
6322# Extract the first word of "tar", so it can be a program name with args.
6323set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326if test "${ac_cv_path_TAR+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006328else
6329 case $TAR in
6330 [\\/]* | ?:[\\/]*)
6331 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6332 ;;
6333 *)
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 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 +00006341 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006343 break 2
6344 fi
6345done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006346done
Reid Spencera773bd52006-08-04 18:18:08 +00006347IFS=$as_save_IFS
6348
6349 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6350 ;;
6351esac
6352fi
6353TAR=$ac_cv_path_TAR
6354if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355 { echo "$as_me:$LINENO: result: $TAR" >&5
6356echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358 { echo "$as_me:$LINENO: result: no" >&5
6359echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006360fi
6361
6362
6363# Extract the first word of "pwd", so it can be a program name with args.
6364set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367if test "${ac_cv_path_BINPWD+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006369else
6370 case $BINPWD in
6371 [\\/]* | ?:[\\/]*)
6372 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6373 ;;
6374 *)
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 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 +00006382 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006384 break 2
6385 fi
6386done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006387done
Reid Spencera773bd52006-08-04 18:18:08 +00006388IFS=$as_save_IFS
6389
6390 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6391 ;;
6392esac
6393fi
6394BINPWD=$ac_cv_path_BINPWD
6395if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006396 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6397echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399 { echo "$as_me:$LINENO: result: no" >&5
6400echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006401fi
6402
6403
6404
6405# Extract the first word of "Graphviz", so it can be a program name with args.
6406set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006411else
6412 case $GRAPHVIZ in
6413 [\\/]* | ?:[\\/]*)
6414 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6415 ;;
6416 *)
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 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 +00006424 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006426 break 2
6427 fi
6428done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006429done
Reid Spencera773bd52006-08-04 18:18:08 +00006430IFS=$as_save_IFS
6431
6432 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6433 ;;
6434esac
6435fi
6436GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6437if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6439echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 { echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006443fi
6444
6445
6446if test "$GRAPHVIZ" != "echo Graphviz" ; then
6447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448cat >>confdefs.h <<\_ACEOF
6449#define HAVE_GRAPHVIZ 1
6450_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006451
Jeff Cohen28783c32007-01-12 18:22:38 +00006452 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006453 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6454 fi
6455
6456cat >>confdefs.h <<_ACEOF
6457#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6458_ACEOF
6459
6460fi
6461# Extract the first word of "dot", so it can be a program name with args.
6462set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465if test "${ac_cv_path_DOT+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006467else
6468 case $DOT in
6469 [\\/]* | ?:[\\/]*)
6470 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6471 ;;
6472 *)
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 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 +00006480 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006482 break 2
6483 fi
6484done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006485done
Reid Spencera773bd52006-08-04 18:18:08 +00006486IFS=$as_save_IFS
6487
6488 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6489 ;;
6490esac
6491fi
6492DOT=$ac_cv_path_DOT
6493if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006494 { echo "$as_me:$LINENO: result: $DOT" >&5
6495echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006497 { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006499fi
6500
6501
6502if test "$DOT" != "echo dot" ; then
6503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504cat >>confdefs.h <<\_ACEOF
6505#define HAVE_DOT 1
6506_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006507
Jeff Cohen28783c32007-01-12 18:22:38 +00006508 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006509 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6510 fi
6511
6512cat >>confdefs.h <<_ACEOF
6513#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6514_ACEOF
6515
6516fi
David Greenef0b9eff2009-07-09 17:16:26 +00006517# Extract the first word of "fdp", so it can be a program name with args.
6518set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521if test "${ac_cv_path_FDP+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006523else
6524 case $FDP in
6525 [\\/]* | ?:[\\/]*)
6526 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6527 ;;
6528 *)
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 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 +00006536 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006538 break 2
6539 fi
6540done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006541done
David Greenef0b9eff2009-07-09 17:16:26 +00006542IFS=$as_save_IFS
6543
6544 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6545 ;;
6546esac
6547fi
6548FDP=$ac_cv_path_FDP
6549if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006550 { echo "$as_me:$LINENO: result: $FDP" >&5
6551echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553 { echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006555fi
6556
6557
6558if test "$FDP" != "echo fdp" ; then
6559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006560cat >>confdefs.h <<\_ACEOF
6561#define HAVE_FDP 1
6562_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006563
6564 if test "$llvm_cv_os_type" = "MingW" ; then
6565 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6566 fi
6567
6568cat >>confdefs.h <<_ACEOF
6569#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6570_ACEOF
6571
6572fi
6573# Extract the first word of "neato", so it can be a program name with args.
6574set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577if test "${ac_cv_path_NEATO+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006579else
6580 case $NEATO in
6581 [\\/]* | ?:[\\/]*)
6582 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6583 ;;
6584 *)
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 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 +00006592 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006594 break 2
6595 fi
6596done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006597done
David Greenef0b9eff2009-07-09 17:16:26 +00006598IFS=$as_save_IFS
6599
6600 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6601 ;;
6602esac
6603fi
6604NEATO=$ac_cv_path_NEATO
6605if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606 { echo "$as_me:$LINENO: result: $NEATO" >&5
6607echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609 { echo "$as_me:$LINENO: result: no" >&5
6610echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006611fi
6612
6613
6614if test "$NEATO" != "echo neato" ; then
6615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006616cat >>confdefs.h <<\_ACEOF
6617#define HAVE_NEATO 1
6618_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006619
6620 if test "$llvm_cv_os_type" = "MingW" ; then
6621 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6622 fi
6623
6624cat >>confdefs.h <<_ACEOF
6625#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6626_ACEOF
6627
6628fi
6629# Extract the first word of "twopi", so it can be a program name with args.
6630set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633if test "${ac_cv_path_TWOPI+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006635else
6636 case $TWOPI in
6637 [\\/]* | ?:[\\/]*)
6638 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6639 ;;
6640 *)
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 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 +00006648 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006650 break 2
6651 fi
6652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006653done
David Greenef0b9eff2009-07-09 17:16:26 +00006654IFS=$as_save_IFS
6655
6656 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6657 ;;
6658esac
6659fi
6660TWOPI=$ac_cv_path_TWOPI
6661if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6663echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665 { echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006667fi
6668
6669
6670if test "$TWOPI" != "echo twopi" ; then
6671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006672cat >>confdefs.h <<\_ACEOF
6673#define HAVE_TWOPI 1
6674_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006675
6676 if test "$llvm_cv_os_type" = "MingW" ; then
6677 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6678 fi
6679
6680cat >>confdefs.h <<_ACEOF
6681#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6682_ACEOF
6683
6684fi
6685# Extract the first word of "circo", so it can be a program name with args.
6686set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689if test "${ac_cv_path_CIRCO+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006691else
6692 case $CIRCO in
6693 [\\/]* | ?:[\\/]*)
6694 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6695 ;;
6696 *)
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 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 +00006704 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006706 break 2
6707 fi
6708done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006709done
David Greenef0b9eff2009-07-09 17:16:26 +00006710IFS=$as_save_IFS
6711
6712 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6713 ;;
6714esac
6715fi
6716CIRCO=$ac_cv_path_CIRCO
6717if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6719echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006720else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721 { echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006723fi
6724
6725
6726if test "$CIRCO" != "echo circo" ; then
6727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728cat >>confdefs.h <<\_ACEOF
6729#define HAVE_CIRCO 1
6730_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006731
6732 if test "$llvm_cv_os_type" = "MingW" ; then
6733 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6734 fi
6735
6736cat >>confdefs.h <<_ACEOF
6737#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6738_ACEOF
6739
6740fi
Reid Spencera773bd52006-08-04 18:18:08 +00006741for ac_prog in gv gsview32
6742do
6743 # Extract the first word of "$ac_prog", so it can be a program name with args.
6744set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747if test "${ac_cv_path_GV+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006749else
6750 case $GV in
6751 [\\/]* | ?:[\\/]*)
6752 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6753 ;;
6754 *)
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 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 +00006762 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006764 break 2
6765 fi
6766done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767done
Reid Spencera773bd52006-08-04 18:18:08 +00006768IFS=$as_save_IFS
6769
6770 ;;
6771esac
6772fi
6773GV=$ac_cv_path_GV
6774if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006775 { echo "$as_me:$LINENO: result: $GV" >&5
6776echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006778 { echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006780fi
6781
6782
6783 test -n "$GV" && break
6784done
6785test -n "$GV" || GV="echo gv"
6786
6787if test "$GV" != "echo gv" ; then
6788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789cat >>confdefs.h <<\_ACEOF
6790#define HAVE_GV 1
6791_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006792
Jeff Cohen28783c32007-01-12 18:22:38 +00006793 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006794 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6795 fi
6796
6797cat >>confdefs.h <<_ACEOF
6798#define LLVM_PATH_GV "$GV${EXEEXT}"
6799_ACEOF
6800
6801fi
6802# Extract the first word of "dotty", so it can be a program name with args.
6803set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806if test "${ac_cv_path_DOTTY+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006808else
6809 case $DOTTY in
6810 [\\/]* | ?:[\\/]*)
6811 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6812 ;;
6813 *)
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 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 +00006821 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006823 break 2
6824 fi
6825done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826done
Reid Spencera773bd52006-08-04 18:18:08 +00006827IFS=$as_save_IFS
6828
6829 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6830 ;;
6831esac
6832fi
6833DOTTY=$ac_cv_path_DOTTY
6834if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006835 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6836echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838 { echo "$as_me:$LINENO: result: no" >&5
6839echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006840fi
6841
6842
6843if test "$DOTTY" != "echo dotty" ; then
6844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845cat >>confdefs.h <<\_ACEOF
6846#define HAVE_DOTTY 1
6847_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006848
Jeff Cohen28783c32007-01-12 18:22:38 +00006849 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006850 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6851 fi
6852
6853cat >>confdefs.h <<_ACEOF
6854#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6855_ACEOF
6856
6857fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006858# Extract the first word of "xdot.py", so it can be a program name with args.
6859set dummy xdot.py; ac_word=$2
6860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862if test "${ac_cv_path_XDOT_PY+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865 case $XDOT_PY in
6866 [\\/]* | ?:[\\/]*)
6867 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6868 ;;
6869 *)
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881done
6882done
6883IFS=$as_save_IFS
6884
6885 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6886 ;;
6887esac
6888fi
6889XDOT_PY=$ac_cv_path_XDOT_PY
6890if test -n "$XDOT_PY"; then
6891 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6892echo "${ECHO_T}$XDOT_PY" >&6; }
6893else
6894 { echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6; }
6896fi
6897
6898
6899if test "$XDOT_PY" != "echo xdot.py" ; then
6900
6901cat >>confdefs.h <<\_ACEOF
6902#define HAVE_XDOT_PY 1
6903_ACEOF
6904
6905 if test "$llvm_cv_os_type" = "MingW" ; then
6906 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6907 fi
6908
6909cat >>confdefs.h <<_ACEOF
6910#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6911_ACEOF
6912
6913fi
Reid Spencera773bd52006-08-04 18:18:08 +00006914
6915
6916# Extract the first word of "perl", so it can be a program name with args.
6917set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6920if test "${ac_cv_path_PERL+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006922else
6923 case $PERL in
6924 [\\/]* | ?:[\\/]*)
6925 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6926 ;;
6927 *)
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929for as_dir in $PATH
6930do
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 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 +00006935 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006937 break 2
6938 fi
6939done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006940done
Reid Spencera773bd52006-08-04 18:18:08 +00006941IFS=$as_save_IFS
6942
6943 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6944 ;;
6945esac
6946fi
6947PERL=$ac_cv_path_PERL
6948if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006949 { echo "$as_me:$LINENO: result: $PERL" >&5
6950echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006951else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006952 { echo "$as_me:$LINENO: result: no" >&5
6953echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006954fi
6955
6956
6957if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006958 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6959echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006960 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006961 { echo "$as_me:$LINENO: result: yes" >&5
6962echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006963 else
6964 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965 { echo "$as_me:$LINENO: result: not found" >&5
6966echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006967 fi
6968fi
6969
6970
6971if test x"$PERL" = xnone; then
6972 HAVE_PERL=0
6973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006974 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6975echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6976 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006977else
6978 HAVE_PERL=1
6979
6980fi
6981
6982# Find a good install program. We prefer a C program (faster),
6983# so one script is as good as another. But avoid the broken or
6984# incompatible versions:
6985# SysV /etc/install, /usr/sbin/install
6986# SunOS /usr/etc/install
6987# IRIX /sbin/install
6988# AIX /bin/install
6989# AmigaOS /C/install, which installs bootblocks on floppy discs
6990# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6991# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6992# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6993# OS/2's system install, which has a completely different semantic
6994# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6996echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006997if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998if test "${ac_cv_path_install+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007000else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006 # Account for people who put trailing slashes in PATH elements.
7007case $as_dir/ in
7008 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007011 /usr/ucb/* ) ;;
7012 *)
7013 # OSF1 and SCO ODT 3.0 have their own names for install.
7014 # Don't use installbsd from OSF since it installs stuff as root
7015 # by default.
7016 for ac_prog in ginstall scoinst install; do
7017 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007018 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 +00007019 if test $ac_prog = install &&
7020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7021 # AIX install. It has an incompatible calling convention.
7022 :
7023 elif test $ac_prog = install &&
7024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7025 # program-specific install script used by HP pwplus--don't use.
7026 :
7027 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007028 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7029 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007030 fi
7031 fi
7032 done
7033 done
7034 ;;
7035esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036done
Reid Spencera773bd52006-08-04 18:18:08 +00007037IFS=$as_save_IFS
7038
7039
7040fi
7041 if test "${ac_cv_path_install+set}" = set; then
7042 INSTALL=$ac_cv_path_install
7043 else
7044 # As a last resort, use the slow shell script. Don't cache a
7045 # value for INSTALL within a source directory, because that will
7046 # break other packages using the cache if that directory is
7047 # removed, or if the value is a relative name.
7048 INSTALL=$ac_install_sh
7049 fi
7050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7052echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007053
7054# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7055# It thinks the first close brace ends the variable substitution.
7056test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7057
7058test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7059
7060test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7061
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007062case "$INSTALL" in
7063 [\\/$]* | ?:[\\/]* ) ;;
7064 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7065esac
Reid Spencera773bd52006-08-04 18:18:08 +00007066
7067# Extract the first word of "bzip2", so it can be a program name with args.
7068set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7071if test "${ac_cv_path_BZIP2+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007073else
7074 case $BZIP2 in
7075 [\\/]* | ?:[\\/]*)
7076 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7077 ;;
7078 *)
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 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 +00007086 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007088 break 2
7089 fi
7090done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091done
Reid Spencera773bd52006-08-04 18:18:08 +00007092IFS=$as_save_IFS
7093
Reid Spencera773bd52006-08-04 18:18:08 +00007094 ;;
7095esac
7096fi
7097BZIP2=$ac_cv_path_BZIP2
7098if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7100echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102 { echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007104fi
7105
7106
mike-m68cb3192010-05-06 23:45:43 +00007107# Extract the first word of "cat", so it can be a program name with args.
7108set dummy cat; ac_word=$2
7109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111if test "${ac_cv_path_CAT+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113else
7114 case $CAT in
7115 [\\/]* | ?:[\\/]*)
7116 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7117 ;;
7118 *)
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130done
7131done
7132IFS=$as_save_IFS
7133
7134 ;;
7135esac
7136fi
7137CAT=$ac_cv_path_CAT
7138if test -n "$CAT"; then
7139 { echo "$as_me:$LINENO: result: $CAT" >&5
7140echo "${ECHO_T}$CAT" >&6; }
7141else
7142 { echo "$as_me:$LINENO: result: no" >&5
7143echo "${ECHO_T}no" >&6; }
7144fi
7145
7146
Reid Spencera773bd52006-08-04 18:18:08 +00007147# Extract the first word of "doxygen", so it can be a program name with args.
7148set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7151if test "${ac_cv_path_DOXYGEN+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007153else
7154 case $DOXYGEN in
7155 [\\/]* | ?:[\\/]*)
7156 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7157 ;;
7158 *)
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 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 +00007166 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007168 break 2
7169 fi
7170done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171done
Reid Spencera773bd52006-08-04 18:18:08 +00007172IFS=$as_save_IFS
7173
Reid Spencera773bd52006-08-04 18:18:08 +00007174 ;;
7175esac
7176fi
7177DOXYGEN=$ac_cv_path_DOXYGEN
7178if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007179 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7180echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007181else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182 { echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007184fi
7185
7186
Reid Spencera773bd52006-08-04 18:18:08 +00007187# Extract the first word of "groff", so it can be a program name with args.
7188set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7191if test "${ac_cv_path_GROFF+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007193else
7194 case $GROFF in
7195 [\\/]* | ?:[\\/]*)
7196 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7197 ;;
7198 *)
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 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 +00007206 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007208 break 2
7209 fi
7210done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211done
Reid Spencera773bd52006-08-04 18:18:08 +00007212IFS=$as_save_IFS
7213
Reid Spencera773bd52006-08-04 18:18:08 +00007214 ;;
7215esac
7216fi
7217GROFF=$ac_cv_path_GROFF
7218if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 { echo "$as_me:$LINENO: result: $GROFF" >&5
7220echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 { echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007224fi
7225
7226
7227# Extract the first word of "gzip", so it can be a program name with args.
7228set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007229{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007231if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007232 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007233else
Eric Christopher031d3072010-12-10 01:31:51 +00007234 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007235 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007236 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007237 ;;
7238 *)
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 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 +00007246 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007248 break 2
7249 fi
7250done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007251done
Reid Spencera773bd52006-08-04 18:18:08 +00007252IFS=$as_save_IFS
7253
Reid Spencera773bd52006-08-04 18:18:08 +00007254 ;;
7255esac
7256fi
Eric Christopher031d3072010-12-10 01:31:51 +00007257GZIPBIN=$ac_cv_path_GZIPBIN
7258if test -n "$GZIPBIN"; then
7259 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7260echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262 { echo "$as_me:$LINENO: result: no" >&5
7263echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007264fi
7265
7266
7267# Extract the first word of "pod2html", so it can be a program name with args.
7268set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7271if test "${ac_cv_path_POD2HTML+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007273else
7274 case $POD2HTML in
7275 [\\/]* | ?:[\\/]*)
7276 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7277 ;;
7278 *)
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 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 +00007286 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007288 break 2
7289 fi
7290done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291done
Reid Spencera773bd52006-08-04 18:18:08 +00007292IFS=$as_save_IFS
7293
Reid Spencera773bd52006-08-04 18:18:08 +00007294 ;;
7295esac
7296fi
7297POD2HTML=$ac_cv_path_POD2HTML
7298if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007299 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7300echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 { echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007304fi
7305
7306
7307# Extract the first word of "pod2man", so it can be a program name with args.
7308set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7311if test "${ac_cv_path_POD2MAN+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007313else
7314 case $POD2MAN in
7315 [\\/]* | ?:[\\/]*)
7316 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7317 ;;
7318 *)
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 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 +00007326 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007328 break 2
7329 fi
7330done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331done
Reid Spencera773bd52006-08-04 18:18:08 +00007332IFS=$as_save_IFS
7333
Reid Spencera773bd52006-08-04 18:18:08 +00007334 ;;
7335esac
7336fi
7337POD2MAN=$ac_cv_path_POD2MAN
7338if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7340echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342 { echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007344fi
7345
7346
mike-m68cb3192010-05-06 23:45:43 +00007347# Extract the first word of "pdfroff", so it can be a program name with args.
7348set dummy pdfroff; ac_word=$2
7349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7351if test "${ac_cv_path_PDFROFF+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354 case $PDFROFF in
7355 [\\/]* | ?:[\\/]*)
7356 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7357 ;;
7358 *)
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370done
7371done
7372IFS=$as_save_IFS
7373
7374 ;;
7375esac
7376fi
7377PDFROFF=$ac_cv_path_PDFROFF
7378if test -n "$PDFROFF"; then
7379 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7380echo "${ECHO_T}$PDFROFF" >&6; }
7381else
7382 { echo "$as_me:$LINENO: result: no" >&5
7383echo "${ECHO_T}no" >&6; }
7384fi
7385
7386
Reid Spencera773bd52006-08-04 18:18:08 +00007387# Extract the first word of "runtest", so it can be a program name with args.
7388set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391if test "${ac_cv_path_RUNTEST+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007393else
7394 case $RUNTEST in
7395 [\\/]* | ?:[\\/]*)
7396 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7397 ;;
7398 *)
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007406 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007408 break 2
7409 fi
7410done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411done
Reid Spencera773bd52006-08-04 18:18:08 +00007412IFS=$as_save_IFS
7413
Reid Spencera773bd52006-08-04 18:18:08 +00007414 ;;
7415esac
7416fi
7417RUNTEST=$ac_cv_path_RUNTEST
7418if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007419 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7420echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422 { echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007424fi
7425
7426
7427
7428no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7430echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007431
7432# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007434 withval=$with_tclinclude; with_tclinclude=${withval}
7435else
7436 with_tclinclude=''
7437fi
7438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439if test "${ac_cv_path_tclsh+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007441else
7442
7443if test x"${with_tclinclude}" != x ; then
7444 if test -f ${with_tclinclude}/tclsh ; then
7445 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7446 elif test -f ${with_tclinclude}/src/tclsh ; then
7447 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7448 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007449 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7450echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7451 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007452 fi
7453fi
Torok Edwin871384f2010-01-26 08:50:50 +00007454fi
7455
Reid Spencera773bd52006-08-04 18:18:08 +00007456
7457if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458 { echo "$as_me:$LINENO: result: none" >&5
7459echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007460 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
7461do
7462 # Extract the first word of "$ac_prog", so it can be a program name with args.
7463set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466if test "${ac_cv_path_TCLSH+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007468else
7469 case $TCLSH in
7470 [\\/]* | ?:[\\/]*)
7471 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7472 ;;
7473 *)
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 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 +00007481 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007483 break 2
7484 fi
7485done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486done
Reid Spencera773bd52006-08-04 18:18:08 +00007487IFS=$as_save_IFS
7488
7489 ;;
7490esac
7491fi
7492TCLSH=$ac_cv_path_TCLSH
7493if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007494 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7495echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497 { echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007499fi
7500
7501
7502 test -n "$TCLSH" && break
7503done
7504
7505 if test x"${TCLSH}" = x ; then
7506 ac_cv_path_tclsh='';
7507 else
7508 ac_cv_path_tclsh="${TCLSH}";
7509 fi
7510else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7512echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007513 TCLSH="${ac_cv_path_tclsh}"
7514
7515fi
7516
Reid Spencera773bd52006-08-04 18:18:08 +00007517# Extract the first word of "zip", so it can be a program name with args.
7518set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521if test "${ac_cv_path_ZIP+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007523else
7524 case $ZIP in
7525 [\\/]* | ?:[\\/]*)
7526 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7527 ;;
7528 *)
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 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 +00007536 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007538 break 2
7539 fi
7540done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541done
Reid Spencera773bd52006-08-04 18:18:08 +00007542IFS=$as_save_IFS
7543
Reid Spencera773bd52006-08-04 18:18:08 +00007544 ;;
7545esac
7546fi
7547ZIP=$ac_cv_path_ZIP
7548if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007549 { echo "$as_me:$LINENO: result: $ZIP" >&5
7550echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007552 { echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007554fi
7555
7556
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007557for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007558do
7559 # Extract the first word of "$ac_prog", so it can be a program name with args.
7560set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7563if test "${ac_cv_path_OCAMLC+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007565else
7566 case $OCAMLC in
7567 [\\/]* | ?:[\\/]*)
7568 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7569 ;;
7570 *)
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572for as_dir in $PATH
7573do
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 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 +00007578 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007580 break 2
7581 fi
7582done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007583done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007584IFS=$as_save_IFS
7585
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007586 ;;
7587esac
7588fi
7589OCAMLC=$ac_cv_path_OCAMLC
7590if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007591 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7592echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594 { echo "$as_me:$LINENO: result: no" >&5
7595echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007596fi
7597
7598
Gordon Henriksene7072162008-03-07 18:20:01 +00007599 test -n "$OCAMLC" && break
7600done
7601
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007602for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007603do
7604 # Extract the first word of "$ac_prog", so it can be a program name with args.
7605set dummy $ac_prog; 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_OCAMLOPT+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007610else
7611 case $OCAMLOPT in
7612 [\\/]* | ?:[\\/]*)
7613 ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007623 ac_cv_path_OCAMLOPT="$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
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007625 break 2
7626 fi
7627done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007629IFS=$as_save_IFS
7630
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007631 ;;
7632esac
7633fi
7634OCAMLOPT=$ac_cv_path_OCAMLOPT
7635if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007636 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7637echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007639 { echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007641fi
7642
7643
Gordon Henriksene7072162008-03-07 18:20:01 +00007644 test -n "$OCAMLOPT" && break
7645done
7646
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007647for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007648do
7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
7650set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7653if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007655else
7656 case $OCAMLDEP in
7657 [\\/]* | ?:[\\/]*)
7658 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7659 ;;
7660 *)
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662for as_dir in $PATH
7663do
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 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 +00007668 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007670 break 2
7671 fi
7672done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007673done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007674IFS=$as_save_IFS
7675
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007676 ;;
7677esac
7678fi
7679OCAMLDEP=$ac_cv_path_OCAMLDEP
7680if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007681 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7682echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684 { echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007686fi
7687
7688
Gordon Henriksene7072162008-03-07 18:20:01 +00007689 test -n "$OCAMLDEP" && break
7690done
7691
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007692for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007693do
7694 # Extract the first word of "$ac_prog", so it can be a program name with args.
7695set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7698if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007700else
7701 case $OCAMLDOC in
7702 [\\/]* | ?:[\\/]*)
7703 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7704 ;;
7705 *)
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 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 +00007713 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007715 break 2
7716 fi
7717done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007719IFS=$as_save_IFS
7720
7721 ;;
7722esac
7723fi
7724OCAMLDOC=$ac_cv_path_OCAMLDOC
7725if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007726 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7727echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007728else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007729 { echo "$as_me:$LINENO: result: no" >&5
7730echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007731fi
7732
7733
7734 test -n "$OCAMLDOC" && break
7735done
7736
Torok Edwincc499a42008-10-22 09:56:27 +00007737for ac_prog in gas as
7738do
7739 # Extract the first word of "$ac_prog", so it can be a program name with args.
7740set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7743if test "${ac_cv_path_GAS+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007745else
7746 case $GAS in
7747 [\\/]* | ?:[\\/]*)
7748 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7749 ;;
7750 *)
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 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 +00007758 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007760 break 2
7761 fi
7762done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007763done
Torok Edwincc499a42008-10-22 09:56:27 +00007764IFS=$as_save_IFS
7765
7766 ;;
7767esac
7768fi
7769GAS=$ac_cv_path_GAS
7770if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007771 { echo "$as_me:$LINENO: result: $GAS" >&5
7772echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007774 { echo "$as_me:$LINENO: result: no" >&5
7775echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007776fi
7777
7778
7779 test -n "$GAS" && break
7780done
7781
Reid Spencera773bd52006-08-04 18:18:08 +00007782
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007783{ echo "$as_me:$LINENO: checking for linker version" >&5
7784echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7785if test "${llvm_cv_link_version+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788
7789 version_string="$(ld -v 2>&1 | head -1)"
7790
7791 # Check for ld64.
7792 if (echo "$version_string" | grep -q "ld64"); then
7793 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7794 else
7795 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7796 fi
7797
7798fi
7799{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7800echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7801
7802cat >>confdefs.h <<_ACEOF
7803#define HOST_LINK_VERSION "$llvm_cv_link_version"
7804_ACEOF
7805
7806
7807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7809echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7810if test "${llvm_cv_link_use_r+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007812else
7813 ac_ext=c
7814ac_cpp='$CPP $CPPFLAGS'
7815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817ac_compiler_gnu=$ac_cv_c_compiler_gnu
7818
7819 oldcflags="$CFLAGS"
7820 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007821 cat >conftest.$ac_ext <<_ACEOF
7822/* confdefs.h. */
7823_ACEOF
7824cat confdefs.h >>conftest.$ac_ext
7825cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007826/* end confdefs.h. */
7827
7828int
7829main ()
7830{
Dan Gohman39ed6782010-04-25 00:12:20 +00007831
Reid Spencera773bd52006-08-04 18:18:08 +00007832 ;
7833 return 0;
7834}
7835_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007836rm -f conftest.$ac_objext conftest$ac_exeext
7837if { (ac_try="$ac_link"
7838case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841esac
7842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_link") 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; } &&
7860 { ac_try='test -s conftest$ac_exeext'
7861 { (case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864esac
7865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_try") 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007870 llvm_cv_link_use_r=yes
7871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872 echo "$as_me: failed program was:" >&5
7873sed 's/^/| /' conftest.$ac_ext >&5
7874
7875 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007876fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007877
Bill Wendlingebcceee2009-04-18 11:20:33 +00007878rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007880 CFLAGS="$oldcflags"
7881 ac_ext=c
7882ac_cpp='$CPP $CPPFLAGS'
7883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7885ac_compiler_gnu=$ac_cv_c_compiler_gnu
7886
7887
7888fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007889{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7890echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007891if test "$llvm_cv_link_use_r" = yes ; then
7892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007893cat >>confdefs.h <<\_ACEOF
7894#define HAVE_LINK_R 1
7895_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007896
7897 fi
7898
7899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007900{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7901echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7902if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007904else
7905 ac_ext=c
7906ac_cpp='$CPP $CPPFLAGS'
7907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910
7911 oldcflags="$CFLAGS"
7912 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913 cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h. */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007918/* end confdefs.h. */
7919
7920int
7921main ()
7922{
Dan Gohman39ed6782010-04-25 00:12:20 +00007923
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007924 ;
7925 return 0;
7926}
7927_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007928rm -f conftest.$ac_objext conftest$ac_exeext
7929if { (ac_try="$ac_link"
7930case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7943 { (case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946esac
7947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_try") 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest$ac_exeext'
7953 { (case "(($ac_try" in
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7956esac
7957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_try") 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007962 llvm_cv_link_use_export_dynamic=yes
7963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007964 echo "$as_me: failed program was:" >&5
7965sed 's/^/| /' conftest.$ac_ext >&5
7966
7967 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969
Bill Wendlingebcceee2009-04-18 11:20:33 +00007970rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007971 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007972 CFLAGS="$oldcflags"
7973 ac_ext=c
7974ac_cpp='$CPP $CPPFLAGS'
7975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7977ac_compiler_gnu=$ac_cv_c_compiler_gnu
7978
7979
7980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007981{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7982echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007983if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985cat >>confdefs.h <<\_ACEOF
7986#define HAVE_LINK_EXPORT_DYNAMIC 1
7987_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007988
7989 fi
7990
7991
Dan Gohmanda612d62010-06-01 14:56:56 +00007992{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7993echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7994if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 ac_ext=c
7998ac_cpp='$CPP $CPPFLAGS'
7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003 oldcflags="$CFLAGS"
8004
8005 # The following code is from the autoconf manual,
8006 # "11.13: Limitations of Usual Tools".
8007 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8008 # Use mktemp if possible; otherwise fall back on mkdir,
8009 # with $RANDOM to make collisions less likely.
8010 : ${TMPDIR=/tmp}
8011 {
8012 tmp=`
8013 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8014 ` &&
8015 test -n "$tmp" && test -d "$tmp"
8016 } || {
8017 tmp=$TMPDIR/foo$$-$RANDOM
8018 (umask 077 && mkdir "$tmp")
8019 } || exit $?
8020
Dan Gohmanda612d62010-06-01 14:56:56 +00008021 echo "{" > "$tmp/export.map"
8022 echo " global: main;" >> "$tmp/export.map"
8023 echo " local: *;" >> "$tmp/export.map"
8024 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008025
Dan Gohmanda612d62010-06-01 14:56:56 +00008026 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008027 cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
8033
8034int
8035main ()
8036{
Dan Gohman39ed6782010-04-25 00:12:20 +00008037
Dan Gohman391569c2010-04-16 22:59:06 +00008038 ;
8039 return 0;
8040}
8041_ACEOF
8042rm -f conftest.$ac_objext conftest$ac_exeext
8043if { (ac_try="$ac_link"
8044case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047esac
8048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_link") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8057 { (case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060esac
8061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_try") 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; } &&
8066 { ac_try='test -s conftest$ac_exeext'
8067 { (case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070esac
8071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_try") 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008076 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008077else
8078 echo "$as_me: failed program was:" >&5
8079sed 's/^/| /' conftest.$ac_ext >&5
8080
Dan Gohman943005e2010-06-01 16:22:27 +00008081 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008082fi
8083
8084rm -f core conftest.err conftest.$ac_objext \
8085 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008086 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008087 rmdir "$tmp"
8088 CFLAGS="$oldcflags"
8089 ac_ext=c
8090ac_cpp='$CPP $CPPFLAGS'
8091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093ac_compiler_gnu=$ac_cv_c_compiler_gnu
8094
8095
8096fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008097{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8098echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8099if test "$llvm_cv_link_use_version_script" = yes ; then
8100 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008101
8102 fi
8103
8104
Reid Spencera773bd52006-08-04 18:18:08 +00008105
8106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008107{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8108echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8109if test "${ac_cv_c_const+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008111else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008112 cat >conftest.$ac_ext <<_ACEOF
8113/* confdefs.h. */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008117/* end confdefs.h. */
8118
8119int
8120main ()
8121{
8122/* FIXME: Include the comments suggested by Paul. */
8123#ifndef __cplusplus
8124 /* Ultrix mips cc rejects this. */
8125 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008127 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128 char const *const *ccp;
8129 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008130 /* NEC SVR4.0.2 mips cc rejects this. */
8131 struct point {int x, y;};
8132 static struct point const zero = {0,0};
8133 /* AIX XL C 1.02.0.0 rejects this.
8134 It does not let you subtract one const X* pointer from another in
8135 an arm of an if-expression whose if-part is not a constant
8136 expression */
8137 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008139 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008140 ++ccp;
8141 p = (char**) ccp;
8142 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008143 { /* SCO 3.2v4 cc rejects this. */
8144 char *t;
8145 char const *s = 0 ? (char *) 0 : (char const *) 0;
8146
8147 *t++ = 0;
8148 if (s) return 0;
8149 }
8150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8151 int x[] = {25, 17};
8152 const int *foo = &x[0];
8153 ++foo;
8154 }
8155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8156 typedef const int *iptr;
8157 iptr p = 0;
8158 ++p;
8159 }
8160 { /* AIX XL C 1.02.0.0 rejects this saying
8161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8162 struct s { int j; const int *ap[3]; };
8163 struct s *b; b->j = 5;
8164 }
8165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8166 const int foo = 10;
8167 if (!foo) return 0;
8168 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008170#endif
8171
8172 ;
8173 return 0;
8174}
8175_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008176rm -f conftest.$ac_objext
8177if { (ac_try="$ac_compile"
8178case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181esac
8182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194esac
8195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204esac
8205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_try") 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008210 ac_cv_c_const=yes
8211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212 echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008217
Reid Spencera773bd52006-08-04 18:18:08 +00008218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008220{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8221echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008222if test $ac_cv_c_const = no; then
8223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008224cat >>confdefs.h <<\_ACEOF
8225#define const
8226_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008227
8228fi
8229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230
8231
8232
8233
8234
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008235ac_header_dirent=no
8236for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008237 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8238{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8239echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243 cat >conftest.$ac_ext <<_ACEOF
8244/* confdefs.h. */
8245_ACEOF
8246cat confdefs.h >>conftest.$ac_ext
8247cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008248/* end confdefs.h. */
8249#include <sys/types.h>
8250#include <$ac_hdr>
8251
8252int
8253main ()
8254{
8255if ((DIR *) 0)
8256return 0;
8257 ;
8258 return 0;
8259}
8260_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261rm -f conftest.$ac_objext
8262if { (ac_try="$ac_compile"
8263case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266esac
8267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8276 { (case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279esac
8280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_try") 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; } &&
8285 { ac_try='test -s conftest.$ac_objext'
8286 { (case "(($ac_try" in
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8289esac
8290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_try") 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008295 eval "$as_ac_Header=yes"
8296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297 echo "$as_me: failed program was:" >&5
8298sed 's/^/| /' conftest.$ac_ext >&5
8299
8300 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008302
Reid Spencera773bd52006-08-04 18:18:08 +00008303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008304fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008305ac_res=`eval echo '${'$as_ac_Header'}'`
8306 { echo "$as_me:$LINENO: result: $ac_res" >&5
8307echo "${ECHO_T}$ac_res" >&6; }
8308if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008309 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008311_ACEOF
8312
8313ac_header_dirent=$ac_hdr; break
8314fi
8315
8316done
8317# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8318if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008319 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8320echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8321if test "${ac_cv_search_opendir+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008323else
8324 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008325cat >conftest.$ac_ext <<_ACEOF
8326/* confdefs.h. */
8327_ACEOF
8328cat confdefs.h >>conftest.$ac_ext
8329cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008330/* end confdefs.h. */
8331
Reid Spencera773bd52006-08-04 18:18:08 +00008332/* Override any GCC internal prototype to avoid an error.
8333 Use char because int might match the return type of a GCC
8334 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008335#ifdef __cplusplus
8336extern "C"
8337#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008338char opendir ();
8339int
8340main ()
8341{
Reid Spencera773bd52006-08-04 18:18:08 +00008342return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008343 ;
8344 return 0;
8345}
8346_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008347for ac_lib in '' dir; do
8348 if test -z "$ac_lib"; then
8349 ac_res="none required"
8350 else
8351 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008353 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354 rm -f conftest.$ac_objext conftest$ac_exeext
8355if { (ac_try="$ac_link"
8356case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8359esac
8360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_link") 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372esac
8373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest$ac_exeext'
8379 { (case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382esac
8383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_try") 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008388 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008389else
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008395
Bill Wendlingebcceee2009-04-18 11:20:33 +00008396rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008397 conftest$ac_exeext
8398 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008399 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008400fi
John Criswell7a73b802003-06-30 21:59:07 +00008401done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008402if test "${ac_cv_search_opendir+set}" = set; then
8403 :
Reid Spencera773bd52006-08-04 18:18:08 +00008404else
8405 ac_cv_search_opendir=no
8406fi
8407rm conftest.$ac_ext
8408LIBS=$ac_func_search_save_LIBS
8409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008410{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8411echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008412ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008415
Reid Spencera773bd52006-08-04 18:18:08 +00008416fi
8417
8418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008419 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8420echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8421if test "${ac_cv_search_opendir+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008423else
8424 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008425cat >conftest.$ac_ext <<_ACEOF
8426/* confdefs.h. */
8427_ACEOF
8428cat confdefs.h >>conftest.$ac_ext
8429cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008430/* end confdefs.h. */
8431
8432/* Override any GCC internal prototype to avoid an error.
8433 Use char because int might match the return type of a GCC
8434 builtin and then its argument prototype would still apply. */
8435#ifdef __cplusplus
8436extern "C"
8437#endif
8438char opendir ();
8439int
8440main ()
8441{
8442return opendir ();
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447for ac_lib in '' x; do
8448 if test -z "$ac_lib"; then
8449 ac_res="none required"
8450 else
8451 ac_res=-l$ac_lib
8452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8453 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008454 rm -f conftest.$ac_objext conftest$ac_exeext
8455if { (ac_try="$ac_link"
8456case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_link") 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8469 { (case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472esac
8473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_try") 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
8479 { (case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482esac
8483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_try") 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008488 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008489else
8490 echo "$as_me: failed program was:" >&5
8491sed 's/^/| /' conftest.$ac_ext >&5
8492
8493
Reid Spencera773bd52006-08-04 18:18:08 +00008494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008495
Bill Wendlingebcceee2009-04-18 11:20:33 +00008496rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497 conftest$ac_exeext
8498 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008499 break
8500fi
8501done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008502if test "${ac_cv_search_opendir+set}" = set; then
8503 :
Reid Spencera773bd52006-08-04 18:18:08 +00008504else
8505 ac_cv_search_opendir=no
8506fi
8507rm conftest.$ac_ext
8508LIBS=$ac_func_search_save_LIBS
8509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008510{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8511echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008512ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8515
8516fi
8517
8518fi
John Criswell7a73b802003-06-30 21:59:07 +00008519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008520
John Criswell7a73b802003-06-30 21:59:07 +00008521for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008522do
8523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529fi
8530ac_res=`eval echo '${'$as_ac_Header'}'`
8531 { echo "$as_me:$LINENO: result: $ac_res" >&5
8532echo "${ECHO_T}$ac_res" >&6; }
8533else
8534 # Is the header compilable?
8535{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8537cat >conftest.$ac_ext <<_ACEOF
8538/* confdefs.h. */
8539_ACEOF
8540cat confdefs.h >>conftest.$ac_ext
8541cat >>conftest.$ac_ext <<_ACEOF
8542/* end confdefs.h. */
8543$ac_includes_default
8544#include <$ac_header>
8545_ACEOF
8546rm -f conftest.$ac_objext
8547if { (ac_try="$ac_compile"
8548case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551esac
8552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_compile") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561 { (case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564esac
8565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_try") 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; } &&
8570 { ac_try='test -s conftest.$ac_objext'
8571 { (case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8574esac
8575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_try") 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_header_compiler=yes
8581else
8582 echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_header_compiler=no
8586fi
8587
8588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8590echo "${ECHO_T}$ac_header_compiler" >&6; }
8591
8592# Is the header present?
8593{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8595cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h. */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h. */
8601#include <$ac_header>
8602_ACEOF
8603if { (ac_try="$ac_cpp conftest.$ac_ext"
8604case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8607esac
8608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } >/dev/null; then
8616 if test -s conftest.err; then
8617 ac_cpp_err=$ac_c_preproc_warn_flag
8618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8619 else
8620 ac_cpp_err=
8621 fi
8622else
8623 ac_cpp_err=yes
8624fi
8625if test -z "$ac_cpp_err"; then
8626 ac_header_preproc=yes
8627else
8628 echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
8631 ac_header_preproc=no
8632fi
8633
8634rm -f conftest.err conftest.$ac_ext
8635{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8636echo "${ECHO_T}$ac_header_preproc" >&6; }
8637
8638# So? What about this header?
8639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8640 yes:no: )
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8645 ac_header_preproc=yes
8646 ;;
8647 no:yes:* )
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8655echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8660 ( cat <<\_ASBOX
8661## ----------------------------------- ##
8662## Report this to llvmbugs@cs.uiuc.edu ##
8663## ----------------------------------- ##
8664_ASBOX
8665 ) | sed "s/^/$as_me: WARNING: /" >&2
8666 ;;
8667esac
8668{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8672else
8673 eval "$as_ac_Header=\$ac_header_preproc"
8674fi
8675ac_res=`eval echo '${'$as_ac_Header'}'`
8676 { echo "$as_me:$LINENO: result: $ac_res" >&5
8677echo "${ECHO_T}$ac_res" >&6; }
8678
8679fi
8680if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008681 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008683_ACEOF
8684
8685fi
8686
8687done
8688
Reid Spencera773bd52006-08-04 18:18:08 +00008689# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008690if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008691 enableval=$enable_ltdl_install;
8692fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008693
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008695
8696
8697if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008698 INSTALL_LTDL_TRUE=
8699 INSTALL_LTDL_FALSE='#'
8700else
8701 INSTALL_LTDL_TRUE='#'
8702 INSTALL_LTDL_FALSE=
8703fi
8704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008705
8706
8707if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008708 CONVENIENCE_LTDL_TRUE=
8709 CONVENIENCE_LTDL_FALSE='#'
8710else
8711 CONVENIENCE_LTDL_TRUE='#'
8712 CONVENIENCE_LTDL_FALSE=
8713fi
8714
8715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008716{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8717echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008718library_names_spec=
8719libname_spec='lib$name'
8720soname_spec=
8721shrext_cmds=".so"
8722postinstall_cmds=
8723postuninstall_cmds=
8724finish_cmds=
8725finish_eval=
8726shlibpath_var=
8727shlibpath_overrides_runpath=unknown
8728version_type=none
8729dynamic_linker="$host_os ld.so"
8730sys_lib_dlsearch_path_spec="/lib /usr/lib"
8731if test "$GCC" = yes; then
8732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8733 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8734 # if the path contains ";" then we assume it to be the separator
8735 # otherwise default to the standard path separator (i.e. ":") - it is
8736 # assumed that no part of a normal pathname contains ";" but that should
8737 # okay in the real world where ";" in dirpaths is itself problematic.
8738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8739 else
8740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8741 fi
8742else
8743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8744fi
8745need_lib_prefix=unknown
8746hardcode_into_libs=no
8747
8748# when you set need_version to no, make sure it does not cause -set_version
8749# flags to be left without arguments
8750need_version=unknown
8751
8752case $host_os in
8753aix3*)
8754 version_type=linux
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8756 shlibpath_var=LIBPATH
8757
8758 # AIX 3 has no versioning support, so we append a major version to the name.
8759 soname_spec='${libname}${release}${shared_ext}$major'
8760 ;;
8761
8762aix4* | aix5*)
8763 version_type=linux
8764 need_lib_prefix=no
8765 need_version=no
8766 hardcode_into_libs=yes
8767 if test "$host_cpu" = ia64; then
8768 # AIX 5 supports IA64
8769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8770 shlibpath_var=LD_LIBRARY_PATH
8771 else
8772 # With GCC up to 2.95.x, collect2 would create an import file
8773 # for dependence libraries. The import file would start with
8774 # the line `#! .'. This would cause the generated library to
8775 # depend on `.', always an invalid library. This was fixed in
8776 # development snapshots of GCC prior to 3.0.
8777 case $host_os in
8778 aix4 | aix4.[01] | aix4.[01].*)
8779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8780 echo ' yes '
8781 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8782 :
8783 else
8784 can_build_shared=no
8785 fi
8786 ;;
8787 esac
8788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8789 # soname into executable. Probably we can add versioning support to
8790 # collect2, so additional links can be useful in future.
8791 if test "$aix_use_runtimelinking" = yes; then
8792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8793 # instead of lib<name>.a to let people know that these are not
8794 # typical AIX shared libraries.
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8796 else
8797 # We preserve .a as extension for shared libraries through AIX4.2
8798 # and later when we are not doing run time linking.
8799 library_names_spec='${libname}${release}.a $libname.a'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 fi
8802 shlibpath_var=LIBPATH
8803 fi
8804 ;;
8805
8806amigaos*)
8807 library_names_spec='$libname.ixlibrary $libname.a'
8808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8809 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'
8810 ;;
8811
8812beos*)
8813 library_names_spec='${libname}${shared_ext}'
8814 dynamic_linker="$host_os ld.so"
8815 shlibpath_var=LIBRARY_PATH
8816 ;;
8817
8818bsdi[45]*)
8819 version_type=linux
8820 need_version=no
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8827 # the default ld.so.conf also contains /usr/contrib/lib and
8828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8829 # libtool to hard-code these into programs
8830 ;;
8831
8832cygwin* | mingw* | pw32*)
8833 version_type=windows
8834 shrext_cmds=".dll"
8835 need_version=no
8836 need_lib_prefix=no
8837
8838 case $GCC,$host_os in
8839 yes,cygwin* | yes,mingw* | yes,pw32*)
8840 library_names_spec='$libname.dll.a'
8841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8842 postinstall_cmds='base_file=`basename \${file}`~
8843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8844 dldir=$destdir/`dirname \$dlpath`~
8845 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008846 $install_prog $dir/$dlname \$dldir/$dlname~
8847 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008848 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8849 dlpath=$dir/\$dldll~
8850 $rm \$dlpath'
8851 shlibpath_overrides_runpath=yes
8852
8853 case $host_os in
8854 cygwin*)
8855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8856 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8857 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8858 ;;
8859 mingw*)
8860 # MinGW DLLs use traditional 'lib' prefix
8861 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8862 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8863 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8864 # It is most probably a Windows format PATH printed by
8865 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8866 # path with ; separators, and with drive letters. We can handle the
8867 # drive letters (cygwin fileutils understands them), so leave them,
8868 # especially as we might pass files found there to a mingw objdump,
8869 # which wouldn't understand a cygwinified path. Ahh.
8870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8871 else
8872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8873 fi
8874 ;;
8875 pw32*)
8876 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008877 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 +00008878 ;;
8879 esac
8880 ;;
8881
8882 *)
8883 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8884 ;;
8885 esac
8886 dynamic_linker='Win32 ld.exe'
8887 # FIXME: first we should search . and the directory the executable is in
8888 shlibpath_var=PATH
8889 ;;
8890
8891darwin* | rhapsody*)
8892 dynamic_linker="$host_os dyld"
8893 version_type=darwin
8894 need_lib_prefix=no
8895 need_version=no
8896 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8897 soname_spec='${libname}${release}${major}$shared_ext'
8898 shlibpath_overrides_runpath=yes
8899 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008900 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008901 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8902 if test "$GCC" = yes; then
8903 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"`
8904 else
8905 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8906 fi
8907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8908 ;;
8909
8910dgux*)
8911 version_type=linux
8912 need_lib_prefix=no
8913 need_version=no
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 ;;
8918
8919freebsd1*)
8920 dynamic_linker=no
8921 ;;
8922
8923kfreebsd*-gnu)
8924 version_type=linux
8925 need_lib_prefix=no
8926 need_version=no
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=no
8931 hardcode_into_libs=yes
8932 dynamic_linker='GNU ld.so'
8933 ;;
8934
Reid Spencera773bd52006-08-04 18:18:08 +00008935freebsd* | dragonfly*)
8936 # DragonFly does not have aout. When/if they implement a new
8937 # versioning mechanism, adjust this.
8938 if test -x /usr/bin/objformat; then
8939 objformat=`/usr/bin/objformat`
8940 else
8941 case $host_os in
8942 freebsd[123]*) objformat=aout ;;
8943 *) objformat=elf ;;
8944 esac
8945 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008946 version_type=freebsd-$objformat
8947 case $version_type in
8948 freebsd-elf*)
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8950 need_version=no
8951 need_lib_prefix=no
8952 ;;
8953 freebsd-*)
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8955 need_version=yes
8956 ;;
8957 esac
8958 shlibpath_var=LD_LIBRARY_PATH
8959 case $host_os in
8960 freebsd2*)
8961 shlibpath_overrides_runpath=yes
8962 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008963 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008964 shlibpath_overrides_runpath=yes
8965 hardcode_into_libs=yes
8966 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008969 shlibpath_overrides_runpath=no
8970 hardcode_into_libs=yes
8971 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008972 freebsd*) # from 4.6 on
8973 shlibpath_overrides_runpath=yes
8974 hardcode_into_libs=yes
8975 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008976 esac
8977 ;;
8978
8979gnu*)
8980 version_type=linux
8981 need_lib_prefix=no
8982 need_version=no
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 shlibpath_var=LD_LIBRARY_PATH
8986 hardcode_into_libs=yes
8987 ;;
8988
8989hpux9* | hpux10* | hpux11*)
8990 # Give a soname corresponding to the major version so that dld.sl refuses to
8991 # link against other versions.
8992 version_type=sunos
8993 need_lib_prefix=no
8994 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008995 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008996 ia64*)
8997 shrext_cmds='.so'
8998 hardcode_into_libs=yes
8999 dynamic_linker="$host_os dld.so"
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 if test "X$HPUX_IA64_MODE" = X32; then
9005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9006 else
9007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9008 fi
9009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9010 ;;
9011 hppa*64*)
9012 shrext_cmds='.sl'
9013 hardcode_into_libs=yes
9014 dynamic_linker="$host_os dld.sl"
9015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9021 ;;
9022 *)
9023 shrext_cmds='.sl'
9024 dynamic_linker="$host_os dld.sl"
9025 shlibpath_var=SHLIB_PATH
9026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028 soname_spec='${libname}${release}${shared_ext}$major'
9029 ;;
9030 esac
9031 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9032 postinstall_cmds='chmod 555 $lib'
9033 ;;
9034
Reid Spencera773bd52006-08-04 18:18:08 +00009035interix3*)
9036 version_type=linux
9037 need_lib_prefix=no
9038 need_version=no
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=no
9044 hardcode_into_libs=yes
9045 ;;
9046
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009047irix5* | irix6* | nonstopux*)
9048 case $host_os in
9049 nonstopux*) version_type=nonstopux ;;
9050 *)
9051 if test "$lt_cv_prog_gnu_ld" = yes; then
9052 version_type=linux
9053 else
9054 version_type=irix
9055 fi ;;
9056 esac
9057 need_lib_prefix=no
9058 need_version=no
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9061 case $host_os in
9062 irix5* | nonstopux*)
9063 libsuff= shlibsuff=
9064 ;;
9065 *)
9066 case $LD in # libtool.m4 will add one of these switches to LD
9067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9068 libsuff= shlibsuff= libmagic=32-bit;;
9069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9070 libsuff=32 shlibsuff=N32 libmagic=N32;;
9071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9073 *) libsuff= shlibsuff= libmagic=never-match;;
9074 esac
9075 ;;
9076 esac
9077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9078 shlibpath_overrides_runpath=no
9079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9081 hardcode_into_libs=yes
9082 ;;
9083
9084# No shared lib support for Linux oldld, aout, or coff.
9085linux*oldld* | linux*aout* | linux*coff*)
9086 dynamic_linker=no
9087 ;;
9088
9089# This must be Linux ELF.
9090linux*)
9091 version_type=linux
9092 need_lib_prefix=no
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 # This implies no fast_install, which is unacceptable.
9100 # Some rework will be needed to allow for fast_install
9101 # before this can be enabled.
9102 hardcode_into_libs=yes
9103
9104 # Append ld.so.conf contents to the search path
9105 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009106 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 +00009107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9108 fi
9109
9110 # We used to test for /lib/ld.so.1 and disable shared libraries on
9111 # powerpc, because MkLinux only supported shared libraries with the
9112 # GNU dynamic linker. Since this was broken with cross compilers,
9113 # most powerpc-linux boxes support dynamic linking these days and
9114 # people can always --disable-shared, the test was removed, and we
9115 # assume the GNU/Linux dynamic linker is in use.
9116 dynamic_linker='GNU/Linux ld.so'
9117 ;;
9118
9119knetbsd*-gnu)
9120 version_type=linux
9121 need_lib_prefix=no
9122 need_version=no
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 shlibpath_overrides_runpath=no
9127 hardcode_into_libs=yes
9128 dynamic_linker='GNU ld.so'
9129 ;;
9130
9131netbsd*)
9132 version_type=sunos
9133 need_lib_prefix=no
9134 need_version=no
9135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9138 dynamic_linker='NetBSD (a.out) ld.so'
9139 else
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 dynamic_linker='NetBSD ld.elf_so'
9143 fi
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes
9146 hardcode_into_libs=yes
9147 ;;
9148
9149newsos6)
9150 version_type=linux
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=yes
9154 ;;
9155
9156nto-qnx*)
9157 version_type=linux
9158 need_lib_prefix=no
9159 need_version=no
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes
9164 ;;
9165
9166openbsd*)
9167 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009168 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009169 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009170 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9171 case $host_os in
9172 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9173 *) need_version=no ;;
9174 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9179 case $host_os in
9180 openbsd2.[89] | openbsd2.[89].*)
9181 shlibpath_overrides_runpath=no
9182 ;;
9183 *)
9184 shlibpath_overrides_runpath=yes
9185 ;;
9186 esac
9187 else
9188 shlibpath_overrides_runpath=yes
9189 fi
9190 ;;
9191
9192os2*)
9193 libname_spec='$name'
9194 shrext_cmds=".dll"
9195 need_lib_prefix=no
9196 library_names_spec='$libname${shared_ext} $libname.a'
9197 dynamic_linker='OS/2 ld.exe'
9198 shlibpath_var=LIBPATH
9199 ;;
9200
9201osf3* | osf4* | osf5*)
9202 version_type=osf
9203 need_lib_prefix=no
9204 need_version=no
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9209 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9210 ;;
9211
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009212solaris*)
9213 version_type=linux
9214 need_lib_prefix=no
9215 need_version=no
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9220 hardcode_into_libs=yes
9221 # ldd complains unless libraries are executable
9222 postinstall_cmds='chmod +x $lib'
9223 ;;
9224
9225sunos4*)
9226 version_type=sunos
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9228 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 shlibpath_overrides_runpath=yes
9231 if test "$with_gnu_ld" = yes; then
9232 need_lib_prefix=no
9233 fi
9234 need_version=yes
9235 ;;
9236
Reid Spencera773bd52006-08-04 18:18:08 +00009237sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009238 version_type=linux
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 case $host_vendor in
9243 sni)
9244 shlibpath_overrides_runpath=no
9245 need_lib_prefix=no
9246 export_dynamic_flag_spec='${wl}-Blargedynsym'
9247 runpath_var=LD_RUN_PATH
9248 ;;
9249 siemens)
9250 need_lib_prefix=no
9251 ;;
9252 motorola)
9253 need_lib_prefix=no
9254 need_version=no
9255 shlibpath_overrides_runpath=no
9256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9257 ;;
9258 esac
9259 ;;
9260
9261sysv4*MP*)
9262 if test -d /usr/nec ;then
9263 version_type=linux
9264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9265 soname_spec='$libname${shared_ext}.$major'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 fi
9268 ;;
9269
Reid Spencera773bd52006-08-04 18:18:08 +00009270sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9271 version_type=freebsd-elf
9272 need_lib_prefix=no
9273 need_version=no
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 hardcode_into_libs=yes
9278 if test "$with_gnu_ld" = yes; then
9279 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9280 shlibpath_overrides_runpath=no
9281 else
9282 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9283 shlibpath_overrides_runpath=yes
9284 case $host_os in
9285 sco3.2v5*)
9286 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9287 ;;
9288 esac
9289 fi
9290 sys_lib_dlsearch_path_spec='/usr/lib'
9291 ;;
9292
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009293uts4*)
9294 version_type=linux
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 ;;
9299
9300*)
9301 dynamic_linker=no
9302 ;;
9303esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009304{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9305echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009306test "$dynamic_linker" = no && can_build_shared=no
9307
Reid Spencera773bd52006-08-04 18:18:08 +00009308variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9309if test "$GCC" = yes; then
9310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9311fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009312
Reid Spencera773bd52006-08-04 18:18:08 +00009313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009314{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9315echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9316if test "${libltdl_cv_shlibext+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009318else
9319
9320module=yes
9321eval libltdl_cv_shlibext=$shrext_cmds
9322
9323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009324{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9325echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009326if test -n "$libltdl_cv_shlibext"; then
9327
9328cat >>confdefs.h <<_ACEOF
9329#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9330_ACEOF
9331
9332fi
9333
9334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009335{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9336echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9337if test "${libltdl_cv_shlibpath_var+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009339else
9340 libltdl_cv_shlibpath_var="$shlibpath_var"
9341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009342{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9343echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344if test -n "$libltdl_cv_shlibpath_var"; then
9345
9346cat >>confdefs.h <<_ACEOF
9347#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9348_ACEOF
9349
9350fi
9351
9352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009353{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9354echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9355if test "${libltdl_cv_sys_search_path+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357else
9358 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009360{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9361echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362if test -n "$libltdl_cv_sys_search_path"; then
9363 sys_search_path=
9364 for dir in $libltdl_cv_sys_search_path; do
9365 if test -z "$sys_search_path"; then
9366 sys_search_path="$dir"
9367 else
9368 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9369 fi
9370 done
9371
9372cat >>confdefs.h <<_ACEOF
9373#define LTDL_SYSSEARCHPATH "$sys_search_path"
9374_ACEOF
9375
9376fi
9377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009378{ echo "$as_me:$LINENO: checking for objdir" >&5
9379echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9380if test "${libltdl_cv_objdir+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009382else
9383 libltdl_cv_objdir="$objdir"
9384 if test -n "$objdir"; then
9385 :
9386 else
9387 rm -f .libs 2>/dev/null
9388 mkdir .libs 2>/dev/null
9389 if test -d .libs; then
9390 libltdl_cv_objdir=.libs
9391 else
9392 # MS-DOS does not allow filenames that begin with a dot.
9393 libltdl_cv_objdir=_libs
9394 fi
9395 rmdir .libs 2>/dev/null
9396 fi
9397
9398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009399{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9400echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401
9402cat >>confdefs.h <<_ACEOF
9403#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9404_ACEOF
9405
9406
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009407
9408
9409
9410
9411# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009412{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9413echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9414if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009416else
9417
9418# These are sane defaults that work on at least a few old systems.
9419# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9420
9421# Character class describing NM global symbol codes.
9422symcode='[BCDEGRST]'
9423
9424# Regexp to match symbols that can be accessed directly from C.
9425sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9426
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009427# Transform an extracted symbol line into a proper C declaration
9428lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9429
9430# Transform an extracted symbol line into symbol name and symbol address
9431lt_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'"
9432
9433# Define system-specific variables.
9434case $host_os in
9435aix*)
9436 symcode='[BCDT]'
9437 ;;
9438cygwin* | mingw* | pw32*)
9439 symcode='[ABCDGISTW]'
9440 ;;
9441hpux*) # Its linker distinguishes data from code symbols
9442 if test "$host_cpu" = ia64; then
9443 symcode='[ABCDEGRST]'
9444 fi
9445 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9446 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'"
9447 ;;
9448linux*)
9449 if test "$host_cpu" = ia64; then
9450 symcode='[ABCDGIRSTW]'
9451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9452 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'"
9453 fi
9454 ;;
9455irix* | nonstopux*)
9456 symcode='[BCDEGRST]'
9457 ;;
9458osf*)
9459 symcode='[BCDEGQRST]'
9460 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009461solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462 symcode='[BDRT]'
9463 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009464sco3.2v5*)
9465 symcode='[DT]'
9466 ;;
9467sysv4.2uw2*)
9468 symcode='[DT]'
9469 ;;
9470sysv5* | sco5v6* | unixware* | OpenUNIX*)
9471 symcode='[ABDT]'
9472 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009473sysv4)
9474 symcode='[DFNSTU]'
9475 ;;
9476esac
9477
9478# Handle CRLF in mingw tool chain
9479opt_cr=
9480case $build_os in
9481mingw*)
9482 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9483 ;;
9484esac
9485
9486# If we're using GNU nm, then use its standard symbol codes.
9487case `$NM -V 2>&1` in
9488*GNU* | *'with BFD'*)
9489 symcode='[ABCDGIRSTW]' ;;
9490esac
9491
9492# Try without a prefix undercore, then with it.
9493for ac_symprfx in "" "_"; do
9494
Reid Spencera773bd52006-08-04 18:18:08 +00009495 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9496 symxfrm="\\1 $ac_symprfx\\2 \\2"
9497
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009498 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009499 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 +00009500
9501 # Check to see that the pipe works correctly.
9502 pipe_works=no
9503
9504 rm -f conftest*
9505 cat > conftest.$ac_ext <<EOF
9506#ifdef __cplusplus
9507extern "C" {
9508#endif
9509char nm_test_var;
9510void nm_test_func(){}
9511#ifdef __cplusplus
9512}
9513#endif
9514int main(){nm_test_var='a';nm_test_func();return(0);}
9515EOF
9516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518 (eval $ac_compile) 2>&5
9519 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522 # Now try to grab the symbols.
9523 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009524 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 +00009525 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9526 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009529 # Try sorting and uniquifying the output.
9530 if sort "$nlist" | uniq > "$nlist"T; then
9531 mv -f "$nlist"T "$nlist"
9532 else
9533 rm -f "$nlist"T
9534 fi
9535
9536 # Make sure that we snagged all the symbols we need.
9537 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9538 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9539 cat <<EOF > conftest.$ac_ext
9540#ifdef __cplusplus
9541extern "C" {
9542#endif
9543
9544EOF
9545 # Now generate the symbol file.
9546 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9547
9548 cat <<EOF >> conftest.$ac_ext
9549#if defined (__STDC__) && __STDC__
9550# define lt_ptr_t void *
9551#else
9552# define lt_ptr_t char *
9553# define const
9554#endif
9555
9556/* The mapping between symbol names and symbols. */
9557const struct {
9558 const char *name;
9559 lt_ptr_t address;
9560}
9561lt_preloaded_symbols[] =
9562{
9563EOF
9564 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9565 cat <<\EOF >> conftest.$ac_ext
9566 {0, (lt_ptr_t) 0}
9567};
9568
9569#ifdef __cplusplus
9570}
9571#endif
9572EOF
9573 # Now try linking the two files.
9574 mv conftest.$ac_objext conftstm.$ac_objext
9575 lt_save_LIBS="$LIBS"
9576 lt_save_CFLAGS="$CFLAGS"
9577 LIBS="conftstm.$ac_objext"
9578 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009580 (eval $ac_link) 2>&5
9581 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009584 pipe_works=yes
9585 fi
9586 LIBS="$lt_save_LIBS"
9587 CFLAGS="$lt_save_CFLAGS"
9588 else
9589 echo "cannot find nm_test_func in $nlist" >&5
9590 fi
9591 else
9592 echo "cannot find nm_test_var in $nlist" >&5
9593 fi
9594 else
9595 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9596 fi
9597 else
9598 echo "$progname: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9600 fi
9601 rm -f conftest* conftst*
9602
9603 # Do not use the global_symbol_pipe unless it works.
9604 if test "$pipe_works" = yes; then
9605 break
9606 else
9607 lt_cv_sys_global_symbol_pipe=
9608 fi
9609done
9610
9611fi
9612
9613if test -z "$lt_cv_sys_global_symbol_pipe"; then
9614 lt_cv_sys_global_symbol_to_cdecl=
9615fi
9616if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009617 { echo "$as_me:$LINENO: result: failed" >&5
9618echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009620 { echo "$as_me:$LINENO: result: ok" >&5
9621echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622fi
9623
9624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009625{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9626echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9627if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009629else
9630 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9631 libltdl_cv_preloaded_symbols=yes
9632 else
9633 libltdl_cv_preloaded_symbols=no
9634 fi
9635
9636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009637{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9638echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009639if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009641cat >>confdefs.h <<\_ACEOF
9642#define HAVE_PRELOADED_SYMBOLS 1
9643_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009644
9645fi
9646
9647LIBADD_DL=
9648
9649ac_ext=c
9650ac_cpp='$CPP $CPPFLAGS'
9651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9653ac_compiler_gnu=$ac_cv_c_compiler_gnu
9654
9655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009656{ echo "$as_me:$LINENO: checking for shl_load" >&5
9657echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9658if test "${ac_cv_func_shl_load+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9660else
9661 cat >conftest.$ac_ext <<_ACEOF
9662/* confdefs.h. */
9663_ACEOF
9664cat confdefs.h >>conftest.$ac_ext
9665cat >>conftest.$ac_ext <<_ACEOF
9666/* end confdefs.h. */
9667/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9669#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009671/* System header to define __stub macros and hopefully few prototypes,
9672 which can conflict with char shl_load (); below.
9673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9674 <limits.h> exists even on freestanding compilers. */
9675
9676#ifdef __STDC__
9677# include <limits.h>
9678#else
9679# include <assert.h>
9680#endif
9681
9682#undef shl_load
9683
9684/* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9687#ifdef __cplusplus
9688extern "C"
9689#endif
9690char shl_load ();
9691/* The GNU C library defines this for functions which it implements
9692 to always fail with ENOSYS. Some functions are actually named
9693 something starting with __ and the normal name is an alias. */
9694#if defined __stub_shl_load || defined __stub___shl_load
9695choke me
9696#endif
9697
9698int
9699main ()
9700{
9701return shl_load ();
9702 ;
9703 return 0;
9704}
9705_ACEOF
9706rm -f conftest.$ac_objext conftest$ac_exeext
9707if { (ac_try="$ac_link"
9708case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9711esac
9712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_link") 2>conftest.er1
9714 ac_status=$?
9715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9721 { (case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724esac
9725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_try") 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; } &&
9730 { ac_try='test -s conftest$ac_exeext'
9731 { (case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734esac
9735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_try") 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_cv_func_shl_load=yes
9741else
9742 echo "$as_me: failed program was:" >&5
9743sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 ac_cv_func_shl_load=no
9746fi
9747
9748rm -f core conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9750fi
9751{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9752echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9753if test $ac_cv_func_shl_load = yes; then
9754
9755cat >>confdefs.h <<\_ACEOF
9756#define HAVE_SHL_LOAD 1
9757_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009758
9759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009760 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9761echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9762if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764else
9765 ac_check_lib_save_LIBS=$LIBS
9766LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009767cat >conftest.$ac_ext <<_ACEOF
9768/* confdefs.h. */
9769_ACEOF
9770cat confdefs.h >>conftest.$ac_ext
9771cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772/* end confdefs.h. */
9773
Reid Spencera773bd52006-08-04 18:18:08 +00009774/* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777#ifdef __cplusplus
9778extern "C"
9779#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780char shl_load ();
9781int
9782main ()
9783{
Reid Spencera773bd52006-08-04 18:18:08 +00009784return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785 ;
9786 return 0;
9787}
9788_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009789rm -f conftest.$ac_objext conftest$ac_exeext
9790if { (ac_try="$ac_link"
9791case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794esac
9795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
9797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807esac
9808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_try") 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823 ac_cv_lib_dld_shl_load=yes
9824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009825 echo "$as_me: failed program was:" >&5
9826sed 's/^/| /' conftest.$ac_ext >&5
9827
9828 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009830
Bill Wendlingebcceee2009-04-18 11:20:33 +00009831rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009832 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833LIBS=$ac_check_lib_save_LIBS
9834fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009835{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9836echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9837if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009839cat >>confdefs.h <<\_ACEOF
9840#define HAVE_SHL_LOAD 1
9841_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842
9843 LIBADD_DL="$LIBADD_DL -ldld"
9844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009845 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9846echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9847if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849else
9850 ac_check_lib_save_LIBS=$LIBS
9851LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009852cat >conftest.$ac_ext <<_ACEOF
9853/* confdefs.h. */
9854_ACEOF
9855cat confdefs.h >>conftest.$ac_ext
9856cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857/* end confdefs.h. */
9858
Reid Spencera773bd52006-08-04 18:18:08 +00009859/* Override any GCC internal prototype to avoid an error.
9860 Use char because int might match the return type of a GCC
9861 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862#ifdef __cplusplus
9863extern "C"
9864#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865char dlopen ();
9866int
9867main ()
9868{
Reid Spencera773bd52006-08-04 18:18:08 +00009869return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870 ;
9871 return 0;
9872}
9873_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009874rm -f conftest.$ac_objext conftest$ac_exeext
9875if { (ac_try="$ac_link"
9876case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879esac
9880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_link") 2>conftest.er1
9882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try='test -s conftest$ac_exeext'
9899 { (case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902esac
9903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_try") 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908 ac_cv_lib_dl_dlopen=yes
9909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009910 echo "$as_me: failed program was:" >&5
9911sed 's/^/| /' conftest.$ac_ext >&5
9912
9913 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009915
Bill Wendlingebcceee2009-04-18 11:20:33 +00009916rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009917 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918LIBS=$ac_check_lib_save_LIBS
9919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009920{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9921echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9922if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009924cat >>confdefs.h <<\_ACEOF
9925#define HAVE_LIBDL 1
9926_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009927
9928 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9929else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009930 cat >conftest.$ac_ext <<_ACEOF
9931/* confdefs.h. */
9932_ACEOF
9933cat confdefs.h >>conftest.$ac_ext
9934cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935/* end confdefs.h. */
9936#if HAVE_DLFCN_H
9937# include <dlfcn.h>
9938#endif
9939
9940int
9941main ()
9942{
9943dlopen(0, 0);
9944 ;
9945 return 0;
9946}
9947_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009948rm -f conftest.$ac_objext conftest$ac_exeext
9949if { (ac_try="$ac_link"
9950case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953esac
9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966esac
9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009983cat >>confdefs.h <<\_ACEOF
9984#define HAVE_LIBDL 1
9985_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009986 libltdl_cv_func_dlopen="yes"
9987else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009988 echo "$as_me: failed program was:" >&5
9989sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9992echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9993if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995else
9996 ac_check_lib_save_LIBS=$LIBS
9997LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003/* end confdefs.h. */
10004
Reid Spencera773bd52006-08-04 18:18:08 +000010005/* Override any GCC internal prototype to avoid an error.
10006 Use char because int might match the return type of a GCC
10007 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008#ifdef __cplusplus
10009extern "C"
10010#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011char dlopen ();
10012int
10013main ()
10014{
Reid Spencera773bd52006-08-04 18:18:08 +000010015return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016 ;
10017 return 0;
10018}
10019_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010020rm -f conftest.$ac_objext conftest$ac_exeext
10021if { (ac_try="$ac_link"
10022case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025esac
10026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_link") 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038esac
10039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_try") 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010054 ac_cv_lib_svld_dlopen=yes
10055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010056 echo "$as_me: failed program was:" >&5
10057sed 's/^/| /' conftest.$ac_ext >&5
10058
10059 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010061
Bill Wendlingebcceee2009-04-18 11:20:33 +000010062rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010063 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064LIBS=$ac_check_lib_save_LIBS
10065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010066{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10067echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10068if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010070cat >>confdefs.h <<\_ACEOF
10071#define HAVE_LIBDL 1
10072_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073
10074 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010076 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10077echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10078if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080else
10081 ac_check_lib_save_LIBS=$LIBS
10082LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010083cat >conftest.$ac_ext <<_ACEOF
10084/* confdefs.h. */
10085_ACEOF
10086cat confdefs.h >>conftest.$ac_ext
10087cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088/* end confdefs.h. */
10089
Reid Spencera773bd52006-08-04 18:18:08 +000010090/* Override any GCC internal prototype to avoid an error.
10091 Use char because int might match the return type of a GCC
10092 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093#ifdef __cplusplus
10094extern "C"
10095#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096char dld_link ();
10097int
10098main ()
10099{
Reid Spencera773bd52006-08-04 18:18:08 +000010100return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010101 ;
10102 return 0;
10103}
10104_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010105rm -f conftest.$ac_objext conftest$ac_exeext
10106if { (ac_try="$ac_link"
10107case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110esac
10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123esac
10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133esac
10134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139 ac_cv_lib_dld_dld_link=yes
10140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010146
Bill Wendlingebcceee2009-04-18 11:20:33 +000010147rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010148 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010149LIBS=$ac_check_lib_save_LIBS
10150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010151{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10152echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10153if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010155cat >>confdefs.h <<\_ACEOF
10156#define HAVE_DLD 1
10157_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158
10159 LIBADD_DL="$LIBADD_DL -ldld"
10160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010161 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10162echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10163if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165else
10166 cat >conftest.$ac_ext <<_ACEOF
10167/* confdefs.h. */
10168_ACEOF
10169cat confdefs.h >>conftest.$ac_ext
10170cat >>conftest.$ac_ext <<_ACEOF
10171/* end confdefs.h. */
10172/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10174#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010176/* System header to define __stub macros and hopefully few prototypes,
10177 which can conflict with char _dyld_func_lookup (); below.
10178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10179 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010181#ifdef __STDC__
10182# include <limits.h>
10183#else
10184# include <assert.h>
10185#endif
10186
10187#undef _dyld_func_lookup
10188
10189/* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10192#ifdef __cplusplus
10193extern "C"
10194#endif
10195char _dyld_func_lookup ();
10196/* The GNU C library defines this for functions which it implements
10197 to always fail with ENOSYS. Some functions are actually named
10198 something starting with __ and the normal name is an alias. */
10199#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10200choke me
10201#endif
10202
10203int
10204main ()
10205{
10206return _dyld_func_lookup ();
10207 ;
10208 return 0;
10209}
10210_ACEOF
10211rm -f conftest.$ac_objext conftest$ac_exeext
10212if { (ac_try="$ac_link"
10213case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_link") 2>conftest.er1
10219 ac_status=$?
10220 grep -v '^ *+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229esac
10230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10239esac
10240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_try") 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_func__dyld_func_lookup=yes
10246else
10247 echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251fi
Reid Spencera773bd52006-08-04 18:18:08 +000010252
Bill Wendlingebcceee2009-04-18 11:20:33 +000010253rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010254 conftest$ac_exeext conftest.$ac_ext
10255fi
10256{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10257echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10258if test $ac_cv_func__dyld_func_lookup = yes; then
10259
10260cat >>confdefs.h <<\_ACEOF
10261#define HAVE_DYLD 1
10262_ACEOF
10263
10264fi
10265
10266
10267fi
10268
10269
10270fi
10271
10272
10273fi
10274
10275rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277
10278fi
10279
10280
10281fi
10282
10283
10284fi
10285
10286
10287if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10288then
10289 lt_save_LIBS="$LIBS"
10290 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010291
10292for ac_func in dlerror
10293do
10294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10295{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10297if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299else
10300 cat >conftest.$ac_ext <<_ACEOF
10301/* confdefs.h. */
10302_ACEOF
10303cat confdefs.h >>conftest.$ac_ext
10304cat >>conftest.$ac_ext <<_ACEOF
10305/* end confdefs.h. */
10306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10308#define $ac_func innocuous_$ac_func
10309
10310/* System header to define __stub macros and hopefully few prototypes,
10311 which can conflict with char $ac_func (); below.
10312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10313 <limits.h> exists even on freestanding compilers. */
10314
10315#ifdef __STDC__
10316# include <limits.h>
10317#else
10318# include <assert.h>
10319#endif
10320
10321#undef $ac_func
10322
10323/* Override any GCC internal prototype to avoid an error.
10324 Use char because int might match the return type of a GCC
10325 builtin and then its argument prototype would still apply. */
10326#ifdef __cplusplus
10327extern "C"
10328#endif
10329char $ac_func ();
10330/* The GNU C library defines this for functions which it implements
10331 to always fail with ENOSYS. Some functions are actually named
10332 something starting with __ and the normal name is an alias. */
10333#if defined __stub_$ac_func || defined __stub___$ac_func
10334choke me
10335#endif
10336
10337int
10338main ()
10339{
10340return $ac_func ();
10341 ;
10342 return 0;
10343}
10344_ACEOF
10345rm -f conftest.$ac_objext conftest$ac_exeext
10346if { (ac_try="$ac_link"
10347case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350esac
10351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_link") 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363esac
10364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest$ac_exeext'
10370 { (case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373esac
10374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_try") 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 eval "$as_ac_var=yes"
10380else
10381 echo "$as_me: failed program was:" >&5
10382sed 's/^/| /' conftest.$ac_ext >&5
10383
10384 eval "$as_ac_var=no"
10385fi
10386
10387rm -f core conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389fi
10390ac_res=`eval echo '${'$as_ac_var'}'`
10391 { echo "$as_me:$LINENO: result: $ac_res" >&5
10392echo "${ECHO_T}$ac_res" >&6; }
10393if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010394 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396_ACEOF
10397
10398fi
10399done
10400
10401 LIBS="$lt_save_LIBS"
10402fi
10403ac_ext=c
10404ac_cpp='$CPP $CPPFLAGS'
10405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10407ac_compiler_gnu=$ac_cv_c_compiler_gnu
10408
10409
10410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010411{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10412echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10413if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415else
10416 ac_cv_sys_symbol_underscore=no
10417 cat > conftest.$ac_ext <<EOF
10418void nm_test_func(){}
10419int main(){nm_test_func;return 0;}
10420EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422 (eval $ac_compile) 2>&5
10423 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426 # Now try to grab the symbols.
10427 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010428 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 +000010429 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10430 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433 # See whether the symbols have a leading underscore.
10434 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10435 ac_cv_sys_symbol_underscore=yes
10436 else
10437 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10438 :
10439 else
10440 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10441 fi
10442 fi
10443 else
10444 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10445 fi
10446 else
10447 echo "configure: failed program was:" >&5
10448 cat conftest.c >&5
10449 fi
10450 rm -rf conftest*
10451
10452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010453{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10454echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010455
10456
10457if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10458 if test x"$libltdl_cv_func_dlopen" = xyes ||
10459 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010460 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10461echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10462if test "${libltdl_cv_need_uscore+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464else
10465 libltdl_cv_need_uscore=unknown
10466 save_LIBS="$LIBS"
10467 LIBS="$LIBS $LIBADD_DL"
10468 if test "$cross_compiling" = yes; then :
10469 libltdl_cv_need_uscore=cross
10470else
10471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10472 lt_status=$lt_dlunknown
10473 cat > conftest.$ac_ext <<EOF
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000010474#line 10474 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010475#include "confdefs.h"
10476
10477#if HAVE_DLFCN_H
10478#include <dlfcn.h>
10479#endif
10480
10481#include <stdio.h>
10482
10483#ifdef RTLD_GLOBAL
10484# define LT_DLGLOBAL RTLD_GLOBAL
10485#else
10486# ifdef DL_GLOBAL
10487# define LT_DLGLOBAL DL_GLOBAL
10488# else
10489# define LT_DLGLOBAL 0
10490# endif
10491#endif
10492
10493/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10494 find out it does not work in some platform. */
10495#ifndef LT_DLLAZY_OR_NOW
10496# ifdef RTLD_LAZY
10497# define LT_DLLAZY_OR_NOW RTLD_LAZY
10498# else
10499# ifdef DL_LAZY
10500# define LT_DLLAZY_OR_NOW DL_LAZY
10501# else
10502# ifdef RTLD_NOW
10503# define LT_DLLAZY_OR_NOW RTLD_NOW
10504# else
10505# ifdef DL_NOW
10506# define LT_DLLAZY_OR_NOW DL_NOW
10507# else
10508# define LT_DLLAZY_OR_NOW 0
10509# endif
10510# endif
10511# endif
10512# endif
10513#endif
10514
10515#ifdef __cplusplus
10516extern "C" void exit (int);
10517#endif
10518
10519void fnord() { int i=42;}
10520int main ()
10521{
10522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10523 int status = $lt_dlunknown;
10524
10525 if (self)
10526 {
10527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10528 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10529 /* dlclose (self); */
10530 }
Reid Spencera773bd52006-08-04 18:18:08 +000010531 else
10532 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010533
10534 exit (status);
10535}
10536EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538 (eval $ac_link) 2>&5
10539 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010542 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010543 lt_status=$?
10544 case x$lt_status in
10545 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10546 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010547 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010548 esac
10549 else :
10550 # compilation failed
10551
10552 fi
10553fi
10554rm -fr conftest*
10555
10556 LIBS="$save_LIBS"
10557
10558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010559{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10560echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561 fi
10562fi
10563
10564if test x"$libltdl_cv_need_uscore" = xyes; then
10565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010566cat >>confdefs.h <<\_ACEOF
10567#define NEED_USCORE 1
10568_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569
10570fi
10571
10572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010573{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10574echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10575if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577else
10578 # PORTME does your system automatically load deplibs for dlopen?
10579 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10580 # For now, we just catch OSes we know something about -- in the
10581 # future, we'll try test this programmatically.
10582 libltdl_cv_sys_dlopen_deplibs=unknown
10583 case "$host_os" in
10584 aix3*|aix4.1.*|aix4.2.*)
10585 # Unknown whether this is true for these versions of AIX, but
10586 # we want this `case' here to explicitly catch those versions.
10587 libltdl_cv_sys_dlopen_deplibs=unknown
10588 ;;
10589 aix[45]*)
10590 libltdl_cv_sys_dlopen_deplibs=yes
10591 ;;
10592 darwin*)
10593 # Assuming the user has installed a libdl from somewhere, this is true
10594 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10595 libltdl_cv_sys_dlopen_deplibs=yes
10596 ;;
10597 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10598 # GNU and its variants, using gnu ld.so (Glibc)
10599 libltdl_cv_sys_dlopen_deplibs=yes
10600 ;;
10601 hpux10*|hpux11*)
10602 libltdl_cv_sys_dlopen_deplibs=yes
10603 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010604 interix*)
10605 libltdl_cv_sys_dlopen_deplibs=yes
10606 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010607 irix[12345]*|irix6.[01]*)
10608 # Catch all versions of IRIX before 6.2, and indicate that we don't
10609 # know how it worked for any of those versions.
10610 libltdl_cv_sys_dlopen_deplibs=unknown
10611 ;;
10612 irix*)
10613 # The case above catches anything before 6.2, and it's known that
10614 # at 6.2 and later dlopen does load deplibs.
10615 libltdl_cv_sys_dlopen_deplibs=yes
10616 ;;
10617 netbsd*)
10618 libltdl_cv_sys_dlopen_deplibs=yes
10619 ;;
10620 openbsd*)
10621 libltdl_cv_sys_dlopen_deplibs=yes
10622 ;;
10623 osf[1234]*)
10624 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10625 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010626 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010627 libltdl_cv_sys_dlopen_deplibs=no
10628 ;;
10629 osf5.0|osf5.0a|osf5.1)
10630 # dlopen *does* load deplibs and with the right loader patch applied
10631 # it even uses RPATH in a shared library to search for shared objects
10632 # that the library depends on, but there's no easy way to know if that
10633 # patch is installed. Since this is the case, all we can really
10634 # say is unknown -- it depends on the patch being installed. If
10635 # it is, this changes to `yes'. Without it, it would be `no'.
10636 libltdl_cv_sys_dlopen_deplibs=unknown
10637 ;;
10638 osf*)
10639 # the two cases above should catch all versions of osf <= 5.1. Read
10640 # the comments above for what we know about them.
10641 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10642 # is used to find them so we can finally say `yes'.
10643 libltdl_cv_sys_dlopen_deplibs=yes
10644 ;;
10645 solaris*)
10646 libltdl_cv_sys_dlopen_deplibs=yes
10647 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10649 libltdl_cv_sys_dlopen_deplibs=yes
10650 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010651 esac
10652
10653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010654{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10655echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010658cat >>confdefs.h <<\_ACEOF
10659#define LTDL_DLOPEN_DEPLIBS 1
10660_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010661
10662fi
10663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010664
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010666do
10667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10673fi
10674ac_res=`eval echo '${'$as_ac_Header'}'`
10675 { echo "$as_me:$LINENO: result: $ac_res" >&5
10676echo "${ECHO_T}$ac_res" >&6; }
10677else
10678 # Is the header compilable?
10679{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10681cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h. */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h. */
10687$ac_includes_default
10688#include <$ac_header>
10689_ACEOF
10690rm -f conftest.$ac_objext
10691if { (ac_try="$ac_compile"
10692case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695esac
10696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
10704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10705 { (case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708esac
10709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_try") 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718esac
10719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_try") 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724 ac_header_compiler=yes
10725else
10726 echo "$as_me: failed program was:" >&5
10727sed 's/^/| /' conftest.$ac_ext >&5
10728
10729 ac_header_compiler=no
10730fi
10731
10732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10734echo "${ECHO_T}$ac_header_compiler" >&6; }
10735
10736# Is the header present?
10737{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10739cat >conftest.$ac_ext <<_ACEOF
10740/* confdefs.h. */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
10744/* end confdefs.h. */
10745#include <$ac_header>
10746_ACEOF
10747if { (ac_try="$ac_cpp conftest.$ac_ext"
10748case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751esac
10752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } >/dev/null; then
10760 if test -s conftest.err; then
10761 ac_cpp_err=$ac_c_preproc_warn_flag
10762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10763 else
10764 ac_cpp_err=
10765 fi
10766else
10767 ac_cpp_err=yes
10768fi
10769if test -z "$ac_cpp_err"; then
10770 ac_header_preproc=yes
10771else
10772 echo "$as_me: failed program was:" >&5
10773sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 ac_header_preproc=no
10776fi
10777
10778rm -f conftest.err conftest.$ac_ext
10779{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10780echo "${ECHO_T}$ac_header_preproc" >&6; }
10781
10782# So? What about this header?
10783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10784 yes:no: )
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10789 ac_header_preproc=yes
10790 ;;
10791 no:yes:* )
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10795echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10799echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10804 ( cat <<\_ASBOX
10805## ----------------------------------- ##
10806## Report this to llvmbugs@cs.uiuc.edu ##
10807## ----------------------------------- ##
10808_ASBOX
10809 ) | sed "s/^/$as_me: WARNING: /" >&2
10810 ;;
10811esac
10812{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816else
10817 eval "$as_ac_Header=\$ac_header_preproc"
10818fi
10819ac_res=`eval echo '${'$as_ac_Header'}'`
10820 { echo "$as_me:$LINENO: result: $ac_res" >&5
10821echo "${ECHO_T}$ac_res" >&6; }
10822
10823fi
10824if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010825 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827_ACEOF
10828
10829fi
10830
10831done
10832
10833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010834{ echo "$as_me:$LINENO: checking for error_t" >&5
10835echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10836if test "${ac_cv_type_error_t+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838else
10839 cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010846# include <argz.h>
10847#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010848
10849typedef error_t ac__type_new_;
10850int
10851main ()
10852{
10853if ((ac__type_new_ *) 0)
10854 return 0;
10855if (sizeof (ac__type_new_))
10856 return 0;
10857 ;
10858 return 0;
10859}
10860_ACEOF
10861rm -f conftest.$ac_objext
10862if { (ac_try="$ac_compile"
10863case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866esac
10867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_compile") 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10876 { (case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879esac
10880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_try") 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889esac
10890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_try") 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 ac_cv_type_error_t=yes
10896else
10897 echo "$as_me: failed program was:" >&5
10898sed 's/^/| /' conftest.$ac_ext >&5
10899
10900 ac_cv_type_error_t=no
10901fi
10902
10903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10904fi
10905{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10906echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10907if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908
10909cat >>confdefs.h <<_ACEOF
10910#define HAVE_ERROR_T 1
10911_ACEOF
10912
10913
10914else
10915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010916cat >>confdefs.h <<\_ACEOF
10917#define error_t int
10918_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919
10920fi
10921
10922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010923
10924
10925
10926
10927
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010929do
10930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10931{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10933if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10935else
10936 cat >conftest.$ac_ext <<_ACEOF
10937/* confdefs.h. */
10938_ACEOF
10939cat confdefs.h >>conftest.$ac_ext
10940cat >>conftest.$ac_ext <<_ACEOF
10941/* end confdefs.h. */
10942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10944#define $ac_func innocuous_$ac_func
10945
10946/* System header to define __stub macros and hopefully few prototypes,
10947 which can conflict with char $ac_func (); below.
10948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10949 <limits.h> exists even on freestanding compilers. */
10950
10951#ifdef __STDC__
10952# include <limits.h>
10953#else
10954# include <assert.h>
10955#endif
10956
10957#undef $ac_func
10958
10959/* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10962#ifdef __cplusplus
10963extern "C"
10964#endif
10965char $ac_func ();
10966/* The GNU C library defines this for functions which it implements
10967 to always fail with ENOSYS. Some functions are actually named
10968 something starting with __ and the normal name is an alias. */
10969#if defined __stub_$ac_func || defined __stub___$ac_func
10970choke me
10971#endif
10972
10973int
10974main ()
10975{
10976return $ac_func ();
10977 ;
10978 return 0;
10979}
10980_ACEOF
10981rm -f conftest.$ac_objext conftest$ac_exeext
10982if { (ac_try="$ac_link"
10983case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10986esac
10987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_link") 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10996 { (case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999esac
11000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_try") 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest$ac_exeext'
11006 { (case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11009esac
11010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_try") 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; }; then
11015 eval "$as_ac_var=yes"
11016else
11017 echo "$as_me: failed program was:" >&5
11018sed 's/^/| /' conftest.$ac_ext >&5
11019
11020 eval "$as_ac_var=no"
11021fi
11022
11023rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025fi
11026ac_res=`eval echo '${'$as_ac_var'}'`
11027 { echo "$as_me:$LINENO: result: $ac_res" >&5
11028echo "${ECHO_T}$ac_res" >&6; }
11029if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011030 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011032_ACEOF
11033
11034fi
11035done
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011056
11057
11058
11059
11060
11061
11062
11063
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011064for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11065 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011066do
11067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073fi
11074ac_res=`eval echo '${'$as_ac_Header'}'`
11075 { echo "$as_me:$LINENO: result: $ac_res" >&5
11076echo "${ECHO_T}$ac_res" >&6; }
11077else
11078 # Is the header compilable?
11079{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11081cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h. */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h. */
11087$ac_includes_default
11088#include <$ac_header>
11089_ACEOF
11090rm -f conftest.$ac_objext
11091if { (ac_try="$ac_compile"
11092case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095esac
11096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_compile") 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108esac
11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest.$ac_objext'
11115 { (case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118esac
11119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_try") 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_header_compiler=yes
11125else
11126 echo "$as_me: failed program was:" >&5
11127sed 's/^/| /' conftest.$ac_ext >&5
11128
11129 ac_header_compiler=no
11130fi
11131
11132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11133{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11134echo "${ECHO_T}$ac_header_compiler" >&6; }
11135
11136# Is the header present?
11137{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11139cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145#include <$ac_header>
11146_ACEOF
11147if { (ac_try="$ac_cpp conftest.$ac_ext"
11148case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11151esac
11152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } >/dev/null; then
11160 if test -s conftest.err; then
11161 ac_cpp_err=$ac_c_preproc_warn_flag
11162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11163 else
11164 ac_cpp_err=
11165 fi
11166else
11167 ac_cpp_err=yes
11168fi
11169if test -z "$ac_cpp_err"; then
11170 ac_header_preproc=yes
11171else
11172 echo "$as_me: failed program was:" >&5
11173sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 ac_header_preproc=no
11176fi
11177
11178rm -f conftest.err conftest.$ac_ext
11179{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11180echo "${ECHO_T}$ac_header_preproc" >&6; }
11181
11182# So? What about this header?
11183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11184 yes:no: )
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11189 ac_header_preproc=yes
11190 ;;
11191 no:yes:* )
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11195echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11199echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11204 ( cat <<\_ASBOX
11205## ----------------------------------- ##
11206## Report this to llvmbugs@cs.uiuc.edu ##
11207## ----------------------------------- ##
11208_ASBOX
11209 ) | sed "s/^/$as_me: WARNING: /" >&2
11210 ;;
11211esac
11212{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216else
11217 eval "$as_ac_Header=\$ac_header_preproc"
11218fi
11219ac_res=`eval echo '${'$as_ac_Header'}'`
11220 { echo "$as_me:$LINENO: result: $ac_res" >&5
11221echo "${ECHO_T}$ac_res" >&6; }
11222
11223fi
11224if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011225 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011227_ACEOF
11228
11229fi
11230
11231done
11232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011233
11234
11235
11236
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011238do
11239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11245fi
11246ac_res=`eval echo '${'$as_ac_Header'}'`
11247 { echo "$as_me:$LINENO: result: $ac_res" >&5
11248echo "${ECHO_T}$ac_res" >&6; }
11249else
11250 # Is the header compilable?
11251{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11252echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11253cat >conftest.$ac_ext <<_ACEOF
11254/* confdefs.h. */
11255_ACEOF
11256cat confdefs.h >>conftest.$ac_ext
11257cat >>conftest.$ac_ext <<_ACEOF
11258/* end confdefs.h. */
11259$ac_includes_default
11260#include <$ac_header>
11261_ACEOF
11262rm -f conftest.$ac_objext
11263if { (ac_try="$ac_compile"
11264case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267esac
11268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try='test -s conftest.$ac_objext'
11287 { (case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290esac
11291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_try") 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 ac_header_compiler=yes
11297else
11298 echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_header_compiler=no
11302fi
11303
11304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11306echo "${ECHO_T}$ac_header_compiler" >&6; }
11307
11308# Is the header present?
11309{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11311cat >conftest.$ac_ext <<_ACEOF
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
11317#include <$ac_header>
11318_ACEOF
11319if { (ac_try="$ac_cpp conftest.$ac_ext"
11320case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323esac
11324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11326 ac_status=$?
11327 grep -v '^ *+' conftest.er1 >conftest.err
11328 rm -f conftest.er1
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } >/dev/null; then
11332 if test -s conftest.err; then
11333 ac_cpp_err=$ac_c_preproc_warn_flag
11334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11335 else
11336 ac_cpp_err=
11337 fi
11338else
11339 ac_cpp_err=yes
11340fi
11341if test -z "$ac_cpp_err"; then
11342 ac_header_preproc=yes
11343else
11344 echo "$as_me: failed program was:" >&5
11345sed 's/^/| /' conftest.$ac_ext >&5
11346
11347 ac_header_preproc=no
11348fi
11349
11350rm -f conftest.err conftest.$ac_ext
11351{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11352echo "${ECHO_T}$ac_header_preproc" >&6; }
11353
11354# So? What about this header?
11355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11356 yes:no: )
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11358echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11360echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11361 ac_header_preproc=yes
11362 ;;
11363 no:yes:* )
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11365echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11367echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11369echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11371echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11375echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11376 ( cat <<\_ASBOX
11377## ----------------------------------- ##
11378## Report this to llvmbugs@cs.uiuc.edu ##
11379## ----------------------------------- ##
11380_ASBOX
11381 ) | sed "s/^/$as_me: WARNING: /" >&2
11382 ;;
11383esac
11384{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388else
11389 eval "$as_ac_Header=\$ac_header_preproc"
11390fi
11391ac_res=`eval echo '${'$as_ac_Header'}'`
11392 { echo "$as_me:$LINENO: result: $ac_res" >&5
11393echo "${ECHO_T}$ac_res" >&6; }
11394
11395fi
11396if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011397 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399_ACEOF
11400
11401fi
11402
11403done
11404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011405
11406
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011407for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011408do
11409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415fi
11416ac_res=`eval echo '${'$as_ac_Header'}'`
11417 { echo "$as_me:$LINENO: result: $ac_res" >&5
11418echo "${ECHO_T}$ac_res" >&6; }
11419else
11420 # Is the header compilable?
11421{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11423cat >conftest.$ac_ext <<_ACEOF
11424/* confdefs.h. */
11425_ACEOF
11426cat confdefs.h >>conftest.$ac_ext
11427cat >>conftest.$ac_ext <<_ACEOF
11428/* end confdefs.h. */
11429$ac_includes_default
11430#include <$ac_header>
11431_ACEOF
11432rm -f conftest.$ac_objext
11433if { (ac_try="$ac_compile"
11434case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11437esac
11438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_compile") 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450esac
11451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460esac
11461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ac_header_compiler=yes
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471 ac_header_compiler=no
11472fi
11473
11474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11476echo "${ECHO_T}$ac_header_compiler" >&6; }
11477
11478# Is the header present?
11479{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11481cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
11487#include <$ac_header>
11488_ACEOF
11489if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
11502 if test -s conftest.err; then
11503 ac_cpp_err=$ac_c_preproc_warn_flag
11504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11505 else
11506 ac_cpp_err=
11507 fi
11508else
11509 ac_cpp_err=yes
11510fi
11511if test -z "$ac_cpp_err"; then
11512 ac_header_preproc=yes
11513else
11514 echo "$as_me: failed program was:" >&5
11515sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 ac_header_preproc=no
11518fi
11519
11520rm -f conftest.err conftest.$ac_ext
11521{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11522echo "${ECHO_T}$ac_header_preproc" >&6; }
11523
11524# So? What about this header?
11525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11526 yes:no: )
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11530echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11531 ac_header_preproc=yes
11532 ;;
11533 no:yes:* )
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11539echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11541echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11545echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11546 ( cat <<\_ASBOX
11547## ----------------------------------- ##
11548## Report this to llvmbugs@cs.uiuc.edu ##
11549## ----------------------------------- ##
11550_ASBOX
11551 ) | sed "s/^/$as_me: WARNING: /" >&2
11552 ;;
11553esac
11554{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558else
11559 eval "$as_ac_Header=\$ac_header_preproc"
11560fi
11561ac_res=`eval echo '${'$as_ac_Header'}'`
11562 { echo "$as_me:$LINENO: result: $ac_res" >&5
11563echo "${ECHO_T}$ac_res" >&6; }
11564
11565fi
11566if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569_ACEOF
11570 break
11571fi
11572
11573done
11574
11575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011576
11577
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011579do
11580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11581{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11583if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585else
11586 cat >conftest.$ac_ext <<_ACEOF
11587/* confdefs.h. */
11588_ACEOF
11589cat confdefs.h >>conftest.$ac_ext
11590cat >>conftest.$ac_ext <<_ACEOF
11591/* end confdefs.h. */
11592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11594#define $ac_func innocuous_$ac_func
11595
11596/* System header to define __stub macros and hopefully few prototypes,
11597 which can conflict with char $ac_func (); below.
11598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11599 <limits.h> exists even on freestanding compilers. */
11600
11601#ifdef __STDC__
11602# include <limits.h>
11603#else
11604# include <assert.h>
11605#endif
11606
11607#undef $ac_func
11608
11609/* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11612#ifdef __cplusplus
11613extern "C"
11614#endif
11615char $ac_func ();
11616/* The GNU C library defines this for functions which it implements
11617 to always fail with ENOSYS. Some functions are actually named
11618 something starting with __ and the normal name is an alias. */
11619#if defined __stub_$ac_func || defined __stub___$ac_func
11620choke me
11621#endif
11622
11623int
11624main ()
11625{
11626return $ac_func ();
11627 ;
11628 return 0;
11629}
11630_ACEOF
11631rm -f conftest.$ac_objext conftest$ac_exeext
11632if { (ac_try="$ac_link"
11633case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636esac
11637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_link") 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11646 { (case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11649esac
11650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_try") 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try='test -s conftest$ac_exeext'
11656 { (case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659esac
11660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_try") 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 eval "$as_ac_var=yes"
11666else
11667 echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 eval "$as_ac_var=no"
11671fi
11672
11673rm -f core conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
11675fi
11676ac_res=`eval echo '${'$as_ac_var'}'`
11677 { echo "$as_me:$LINENO: result: $ac_res" >&5
11678echo "${ECHO_T}$ac_res" >&6; }
11679if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011682_ACEOF
11683 break
11684fi
11685done
11686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011687
11688
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011689for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011690do
11691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11692{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11694if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11696else
11697 cat >conftest.$ac_ext <<_ACEOF
11698/* confdefs.h. */
11699_ACEOF
11700cat confdefs.h >>conftest.$ac_ext
11701cat >>conftest.$ac_ext <<_ACEOF
11702/* end confdefs.h. */
11703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11705#define $ac_func innocuous_$ac_func
11706
11707/* System header to define __stub macros and hopefully few prototypes,
11708 which can conflict with char $ac_func (); below.
11709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11710 <limits.h> exists even on freestanding compilers. */
11711
11712#ifdef __STDC__
11713# include <limits.h>
11714#else
11715# include <assert.h>
11716#endif
11717
11718#undef $ac_func
11719
11720/* Override any GCC internal prototype to avoid an error.
11721 Use char because int might match the return type of a GCC
11722 builtin and then its argument prototype would still apply. */
11723#ifdef __cplusplus
11724extern "C"
11725#endif
11726char $ac_func ();
11727/* The GNU C library defines this for functions which it implements
11728 to always fail with ENOSYS. Some functions are actually named
11729 something starting with __ and the normal name is an alias. */
11730#if defined __stub_$ac_func || defined __stub___$ac_func
11731choke me
11732#endif
11733
11734int
11735main ()
11736{
11737return $ac_func ();
11738 ;
11739 return 0;
11740}
11741_ACEOF
11742rm -f conftest.$ac_objext conftest$ac_exeext
11743if { (ac_try="$ac_link"
11744case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11747esac
11748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_link") 2>conftest.er1
11750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11757 { (case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_try") 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest$ac_exeext'
11767 { (case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11770esac
11771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_try") 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 eval "$as_ac_var=yes"
11777else
11778 echo "$as_me: failed program was:" >&5
11779sed 's/^/| /' conftest.$ac_ext >&5
11780
11781 eval "$as_ac_var=no"
11782fi
11783
11784rm -f core conftest.err conftest.$ac_objext \
11785 conftest$ac_exeext conftest.$ac_ext
11786fi
11787ac_res=`eval echo '${'$as_ac_var'}'`
11788 { echo "$as_me:$LINENO: result: $ac_res" >&5
11789echo "${ECHO_T}$ac_res" >&6; }
11790if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011791 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011793_ACEOF
11794 break
11795fi
11796done
11797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011798
11799
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011800for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011801do
11802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11803{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11805if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807else
11808 cat >conftest.$ac_ext <<_ACEOF
11809/* confdefs.h. */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h. */
11814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11816#define $ac_func innocuous_$ac_func
11817
11818/* System header to define __stub macros and hopefully few prototypes,
11819 which can conflict with char $ac_func (); below.
11820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11821 <limits.h> exists even on freestanding compilers. */
11822
11823#ifdef __STDC__
11824# include <limits.h>
11825#else
11826# include <assert.h>
11827#endif
11828
11829#undef $ac_func
11830
11831/* Override any GCC internal prototype to avoid an error.
11832 Use char because int might match the return type of a GCC
11833 builtin and then its argument prototype would still apply. */
11834#ifdef __cplusplus
11835extern "C"
11836#endif
11837char $ac_func ();
11838/* The GNU C library defines this for functions which it implements
11839 to always fail with ENOSYS. Some functions are actually named
11840 something starting with __ and the normal name is an alias. */
11841#if defined __stub_$ac_func || defined __stub___$ac_func
11842choke me
11843#endif
11844
11845int
11846main ()
11847{
11848return $ac_func ();
11849 ;
11850 return 0;
11851}
11852_ACEOF
11853rm -f conftest.$ac_objext conftest$ac_exeext
11854if { (ac_try="$ac_link"
11855case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11858esac
11859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860 (eval "$ac_link") 2>conftest.er1
11861 ac_status=$?
11862 grep -v '^ *+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
11867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871esac
11872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest$ac_exeext'
11878 { (case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11881esac
11882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_try") 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 eval "$as_ac_var=yes"
11888else
11889 echo "$as_me: failed program was:" >&5
11890sed 's/^/| /' conftest.$ac_ext >&5
11891
11892 eval "$as_ac_var=no"
11893fi
11894
11895rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897fi
11898ac_res=`eval echo '${'$as_ac_var'}'`
11899 { echo "$as_me:$LINENO: result: $ac_res" >&5
11900echo "${ECHO_T}$ac_res" >&6; }
11901if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011902 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011904_ACEOF
11905 break
11906fi
11907done
11908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011909
11910
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011911for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011912do
11913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11914{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11916if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919 cat >conftest.$ac_ext <<_ACEOF
11920/* confdefs.h. */
11921_ACEOF
11922cat confdefs.h >>conftest.$ac_ext
11923cat >>conftest.$ac_ext <<_ACEOF
11924/* end confdefs.h. */
11925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11927#define $ac_func innocuous_$ac_func
11928
11929/* System header to define __stub macros and hopefully few prototypes,
11930 which can conflict with char $ac_func (); below.
11931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11932 <limits.h> exists even on freestanding compilers. */
11933
11934#ifdef __STDC__
11935# include <limits.h>
11936#else
11937# include <assert.h>
11938#endif
11939
11940#undef $ac_func
11941
11942/* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11945#ifdef __cplusplus
11946extern "C"
11947#endif
11948char $ac_func ();
11949/* The GNU C library defines this for functions which it implements
11950 to always fail with ENOSYS. Some functions are actually named
11951 something starting with __ and the normal name is an alias. */
11952#if defined __stub_$ac_func || defined __stub___$ac_func
11953choke me
11954#endif
11955
11956int
11957main ()
11958{
11959return $ac_func ();
11960 ;
11961 return 0;
11962}
11963_ACEOF
11964rm -f conftest.$ac_objext conftest$ac_exeext
11965if { (ac_try="$ac_link"
11966case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969esac
11970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_link") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982esac
11983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } &&
11988 { ac_try='test -s conftest$ac_exeext'
11989 { (case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992esac
11993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_try") 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 eval "$as_ac_var=yes"
11999else
12000 echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
12002
12003 eval "$as_ac_var=no"
12004fi
12005
12006rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008fi
12009ac_res=`eval echo '${'$as_ac_var'}'`
12010 { echo "$as_me:$LINENO: result: $ac_res" >&5
12011echo "${ECHO_T}$ac_res" >&6; }
12012if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012013 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012015_ACEOF
12016
12017fi
12018done
12019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012020
12021
12022
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012023for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012024do
12025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12026{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12028if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030else
12031 cat >conftest.$ac_ext <<_ACEOF
12032/* confdefs.h. */
12033_ACEOF
12034cat confdefs.h >>conftest.$ac_ext
12035cat >>conftest.$ac_ext <<_ACEOF
12036/* end confdefs.h. */
12037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12039#define $ac_func innocuous_$ac_func
12040
12041/* System header to define __stub macros and hopefully few prototypes,
12042 which can conflict with char $ac_func (); below.
12043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12044 <limits.h> exists even on freestanding compilers. */
12045
12046#ifdef __STDC__
12047# include <limits.h>
12048#else
12049# include <assert.h>
12050#endif
12051
12052#undef $ac_func
12053
12054/* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12057#ifdef __cplusplus
12058extern "C"
12059#endif
12060char $ac_func ();
12061/* The GNU C library defines this for functions which it implements
12062 to always fail with ENOSYS. Some functions are actually named
12063 something starting with __ and the normal name is an alias. */
12064#if defined __stub_$ac_func || defined __stub___$ac_func
12065choke me
12066#endif
12067
12068int
12069main ()
12070{
12071return $ac_func ();
12072 ;
12073 return 0;
12074}
12075_ACEOF
12076rm -f conftest.$ac_objext conftest$ac_exeext
12077if { (ac_try="$ac_link"
12078case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081esac
12082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_link") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12091 { (case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094esac
12095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_try") 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; } &&
12100 { ac_try='test -s conftest$ac_exeext'
12101 { (case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12104esac
12105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_try") 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 eval "$as_ac_var=yes"
12111else
12112 echo "$as_me: failed program was:" >&5
12113sed 's/^/| /' conftest.$ac_ext >&5
12114
12115 eval "$as_ac_var=no"
12116fi
12117
12118rm -f core conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12120fi
12121ac_res=`eval echo '${'$as_ac_var'}'`
12122 { echo "$as_me:$LINENO: result: $ac_res" >&5
12123echo "${ECHO_T}$ac_res" >&6; }
12124if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012125 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012127_ACEOF
12128
12129fi
12130done
12131
12132
Douglas Gregor01746742009-05-11 18:05:52 +000012133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012134{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12135echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012136
Reid Spencer86901802004-12-08 23:07:27 +000012137ICC=no
12138IXX=no
12139case $CC in
12140 icc*|icpc*)
12141 ICC=yes
12142 IXX=yes
12143 ;;
12144 *)
12145 ;;
12146esac
12147
Duraid Madina937c60a2006-02-15 07:57:42 +000012148if test "$GCC" != "yes" && test "$ICC" != "yes"
12149then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012150 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12151echo "$as_me: error: gcc|icc required but not found" >&2;}
12152 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012153fi
12154
12155if test "$GXX" != "yes" && test "$IXX" != "yes"
12156then
Eric Christopher73e36da2010-12-08 02:02:14 +000012157 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12158echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012159 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012160fi
12161
Reid Spencer86901802004-12-08 23:07:27 +000012162if test "$GCC" = "yes"
12163then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012164 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012165#if !defined(__GNUC__) || __GNUC__ < 3
12166#error Unsupported GCC version
12167#endif
12168
12169_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012170rm -f conftest.$ac_objext
12171if { (ac_try="$ac_compile"
12172case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175esac
12176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_compile") 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12185 { (case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188esac
12189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_try") 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012206 echo "$as_me: failed program was:" >&5
12207sed 's/^/| /' conftest.$ac_ext >&5
12208
12209 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12210echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12211 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012213
Chris Lattner399c7c72008-02-05 19:43:53 +000012214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012215fi
12216
12217if test -z "$llvm_cv_gnu_make_command"
12218then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012219 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12220echo "$as_me: error: GNU Make required but not found" >&2;}
12221 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012222fi
12223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012224{ echo "$as_me:$LINENO: result: ok" >&5
12225echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012227{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12228echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012229NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12230
12231NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012233{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12234echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012235
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237
12238{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12239echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12240if test "${ac_cv_lib_m_sin+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012242else
12243 ac_check_lib_save_LIBS=$LIBS
12244LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012245cat >conftest.$ac_ext <<_ACEOF
12246/* confdefs.h. */
12247_ACEOF
12248cat confdefs.h >>conftest.$ac_ext
12249cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012250/* end confdefs.h. */
12251
Reid Spencera773bd52006-08-04 18:18:08 +000012252/* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012255#ifdef __cplusplus
12256extern "C"
12257#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012258char sin ();
12259int
12260main ()
12261{
Reid Spencera773bd52006-08-04 18:18:08 +000012262return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012263 ;
12264 return 0;
12265}
12266_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012267rm -f conftest.$ac_objext conftest$ac_exeext
12268if { (ac_try="$ac_link"
12269case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272esac
12273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_link") 2>conftest.er1
12275 ac_status=$?
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12282 { (case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12285esac
12286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_try") 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest$ac_exeext'
12292 { (case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12295esac
12296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_try") 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012301 ac_cv_lib_m_sin=yes
12302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012303 echo "$as_me: failed program was:" >&5
12304sed 's/^/| /' conftest.$ac_ext >&5
12305
12306 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012307fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012308
Bill Wendlingebcceee2009-04-18 11:20:33 +000012309rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012310 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012311LIBS=$ac_check_lib_save_LIBS
12312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012313{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12314echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12315if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012316 cat >>confdefs.h <<_ACEOF
12317#define HAVE_LIBM 1
12318_ACEOF
12319
12320 LIBS="-lm $LIBS"
12321
12322fi
12323
Jeff Cohen28783c32007-01-12 18:22:38 +000012324if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012325
12326{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12327echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12328if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012330else
12331 ac_check_lib_save_LIBS=$LIBS
12332LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012333cat >conftest.$ac_ext <<_ACEOF
12334/* confdefs.h. */
12335_ACEOF
12336cat confdefs.h >>conftest.$ac_ext
12337cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012338/* end confdefs.h. */
12339
Reid Spencer48fdf912006-06-01 19:03:21 +000012340
Reid Spencer484fc8e2006-06-01 16:55:59 +000012341int
12342main ()
12343{
Reid Spencera773bd52006-08-04 18:18:08 +000012344return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012345 ;
12346 return 0;
12347}
12348_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012349rm -f conftest.$ac_objext conftest$ac_exeext
12350if { (ac_try="$ac_link"
12351case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12354esac
12355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_link") 2>conftest.er1
12357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12364 { (case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367esac
12368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_try") 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest$ac_exeext'
12374 { (case "(($ac_try" in
12375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376 *) ac_try_echo=$ac_try;;
12377esac
12378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_try") 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012383 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012385 echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012389fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012390
Bill Wendlingebcceee2009-04-18 11:20:33 +000012391rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012392 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012393LIBS=$ac_check_lib_save_LIBS
12394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012395{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12396echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12397if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012398 cat >>confdefs.h <<_ACEOF
12399#define HAVE_LIBIMAGEHLP 1
12400_ACEOF
12401
12402 LIBS="-limagehlp $LIBS"
12403
12404fi
12405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012406
12407{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12408echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12409if test "${ac_cv_lib_psapi_main+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012411else
12412 ac_check_lib_save_LIBS=$LIBS
12413LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414cat >conftest.$ac_ext <<_ACEOF
12415/* confdefs.h. */
12416_ACEOF
12417cat confdefs.h >>conftest.$ac_ext
12418cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012419/* end confdefs.h. */
12420
Reid Spencer48fdf912006-06-01 19:03:21 +000012421
Reid Spencer484fc8e2006-06-01 16:55:59 +000012422int
12423main ()
12424{
Reid Spencera773bd52006-08-04 18:18:08 +000012425return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012426 ;
12427 return 0;
12428}
12429_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012430rm -f conftest.$ac_objext conftest$ac_exeext
12431if { (ac_try="$ac_link"
12432case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12435esac
12436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_link") 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12445 { (case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12448esac
12449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_try") 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest$ac_exeext'
12455 { (case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458esac
12459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_try") 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012464 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012466 echo "$as_me: failed program was:" >&5
12467sed 's/^/| /' conftest.$ac_ext >&5
12468
12469 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012470fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012471
Bill Wendlingebcceee2009-04-18 11:20:33 +000012472rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012473 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012474LIBS=$ac_check_lib_save_LIBS
12475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012476{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12477echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12478if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012479 cat >>confdefs.h <<_ACEOF
12480#define HAVE_LIBPSAPI 1
12481_ACEOF
12482
12483 LIBS="-lpsapi $LIBS"
12484
12485fi
12486
12487fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012489{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12490echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12491if test "${ac_cv_search_dlopen+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012493else
12494 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012495cat >conftest.$ac_ext <<_ACEOF
12496/* confdefs.h. */
12497_ACEOF
12498cat confdefs.h >>conftest.$ac_ext
12499cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012500/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012501
Reid Spencera773bd52006-08-04 18:18:08 +000012502/* Override any GCC internal prototype to avoid an error.
12503 Use char because int might match the return type of a GCC
12504 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012505#ifdef __cplusplus
12506extern "C"
12507#endif
John Criswell7a73b802003-06-30 21:59:07 +000012508char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012509int
12510main ()
12511{
Reid Spencera773bd52006-08-04 18:18:08 +000012512return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012513 ;
12514 return 0;
12515}
12516_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012517for ac_lib in '' dl; do
12518 if test -z "$ac_lib"; then
12519 ac_res="none required"
12520 else
12521 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012523 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012524 rm -f conftest.$ac_objext conftest$ac_exeext
12525if { (ac_try="$ac_link"
12526case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12529esac
12530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_link") 2>conftest.er1
12532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12539 { (case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542esac
12543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_try") 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest$ac_exeext'
12549 { (case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12552esac
12553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_try") 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012558 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012559else
12560 echo "$as_me: failed program was:" >&5
12561sed 's/^/| /' conftest.$ac_ext >&5
12562
12563
John Criswell7a73b802003-06-30 21:59:07 +000012564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012565
Bill Wendlingebcceee2009-04-18 11:20:33 +000012566rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012567 conftest$ac_exeext
12568 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012569 break
John Criswell7a73b802003-06-30 21:59:07 +000012570fi
Reid Spencera773bd52006-08-04 18:18:08 +000012571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012572if test "${ac_cv_search_dlopen+set}" = set; then
12573 :
Reid Spencera773bd52006-08-04 18:18:08 +000012574else
12575 ac_cv_search_dlopen=no
12576fi
12577rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012578LIBS=$ac_func_search_save_LIBS
12579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012580{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12581echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012582ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012583if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012586cat >>confdefs.h <<\_ACEOF
12587#define HAVE_DLOPEN 1
12588_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012589
12590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012591 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12592echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012593fi
12594
12595
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012596if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012597 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12598echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12599if test "${ac_cv_search_ffi_call+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012601else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012602 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012603cat >conftest.$ac_ext <<_ACEOF
12604/* confdefs.h. */
12605_ACEOF
12606cat confdefs.h >>conftest.$ac_ext
12607cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012608/* end confdefs.h. */
12609
12610/* Override any GCC internal prototype to avoid an error.
12611 Use char because int might match the return type of a GCC
12612 builtin and then its argument prototype would still apply. */
12613#ifdef __cplusplus
12614extern "C"
12615#endif
12616char ffi_call ();
12617int
12618main ()
12619{
12620return ffi_call ();
12621 ;
12622 return 0;
12623}
12624_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012625for ac_lib in '' ffi; do
12626 if test -z "$ac_lib"; then
12627 ac_res="none required"
12628 else
12629 ac_res=-l$ac_lib
12630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12631 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012632 rm -f conftest.$ac_objext conftest$ac_exeext
12633if { (ac_try="$ac_link"
12634case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637esac
12638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_link") 2>conftest.er1
12640 ac_status=$?
12641 grep -v '^ *+' conftest.er1 >conftest.err
12642 rm -f conftest.er1
12643 cat conftest.err >&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12647 { (case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650esac
12651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_try") 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest$ac_exeext'
12657 { (case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12660esac
12661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_try") 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012666 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012667else
12668 echo "$as_me: failed program was:" >&5
12669sed 's/^/| /' conftest.$ac_ext >&5
12670
12671
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012673
Bill Wendlingebcceee2009-04-18 11:20:33 +000012674rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012675 conftest$ac_exeext
12676 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012677 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012678fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012679done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012680if test "${ac_cv_search_ffi_call+set}" = set; then
12681 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012682else
12683 ac_cv_search_ffi_call=no
12684fi
12685rm conftest.$ac_ext
12686LIBS=$ac_func_search_save_LIBS
12687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012688{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12689echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012690ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012691if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012694cat >>confdefs.h <<\_ACEOF
12695#define HAVE_FFI_CALL 1
12696_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012697
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012698else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012699 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12700echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12701 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012702fi
12703
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012704fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012706{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12707echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12708if test "${ac_cv_search_mallinfo+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012710else
12711 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012712cat >conftest.$ac_ext <<_ACEOF
12713/* confdefs.h. */
12714_ACEOF
12715cat confdefs.h >>conftest.$ac_ext
12716cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012717/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012718
Reid Spencera773bd52006-08-04 18:18:08 +000012719/* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012722#ifdef __cplusplus
12723extern "C"
12724#endif
John Criswell7a73b802003-06-30 21:59:07 +000012725char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012726int
12727main ()
12728{
Reid Spencera773bd52006-08-04 18:18:08 +000012729return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012730 ;
12731 return 0;
12732}
12733_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012734for ac_lib in '' malloc; do
12735 if test -z "$ac_lib"; then
12736 ac_res="none required"
12737 else
12738 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012740 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012741 rm -f conftest.$ac_objext conftest$ac_exeext
12742if { (ac_try="$ac_link"
12743case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12746esac
12747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_link") 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12756 { (case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759esac
12760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_try") 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest$ac_exeext'
12766 { (case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12769esac
12770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_try") 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012775 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012776else
12777 echo "$as_me: failed program was:" >&5
12778sed 's/^/| /' conftest.$ac_ext >&5
12779
12780
John Criswell7a73b802003-06-30 21:59:07 +000012781fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012782
Bill Wendlingebcceee2009-04-18 11:20:33 +000012783rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012784 conftest$ac_exeext
12785 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012786 break
John Criswell7a73b802003-06-30 21:59:07 +000012787fi
Reid Spencera773bd52006-08-04 18:18:08 +000012788done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012789if test "${ac_cv_search_mallinfo+set}" = set; then
12790 :
Reid Spencera773bd52006-08-04 18:18:08 +000012791else
12792 ac_cv_search_mallinfo=no
12793fi
12794rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012795LIBS=$ac_func_search_save_LIBS
12796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012797{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12798echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012799ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012800if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012803cat >>confdefs.h <<\_ACEOF
12804#define HAVE_MALLINFO 1
12805_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012806
12807fi
12808
12809
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000012810if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012811
12812{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12813echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12814if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012816else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012817 ac_check_lib_save_LIBS=$LIBS
12818LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819cat >conftest.$ac_ext <<_ACEOF
12820/* confdefs.h. */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012824/* end confdefs.h. */
12825
Reid Spencera773bd52006-08-04 18:18:08 +000012826/* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012829#ifdef __cplusplus
12830extern "C"
12831#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012832char pthread_mutex_init ();
12833int
12834main ()
12835{
Reid Spencera773bd52006-08-04 18:18:08 +000012836return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012837 ;
12838 return 0;
12839}
12840_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012841rm -f conftest.$ac_objext conftest$ac_exeext
12842if { (ac_try="$ac_link"
12843case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846esac
12847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_link") 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856 { (case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12859esac
12860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_try") 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest$ac_exeext'
12866 { (case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12869esac
12870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_try") 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012875 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012877 echo "$as_me: failed program was:" >&5
12878sed 's/^/| /' conftest.$ac_ext >&5
12879
12880 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012882
Bill Wendlingebcceee2009-04-18 11:20:33 +000012883rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012884 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012885LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012886fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012887{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12888echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12889if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012890 cat >>confdefs.h <<_ACEOF
12891#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012892_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012893
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012894 LIBS="-lpthread $LIBS"
12895
Reid Spencer22177fe2005-07-12 15:24:20 +000012896fi
12897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012898 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12899echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12900if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012902else
12903 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012904cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012909/* end confdefs.h. */
12910
Reid Spencera773bd52006-08-04 18:18:08 +000012911/* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
12913 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012914#ifdef __cplusplus
12915extern "C"
12916#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012917char pthread_mutex_lock ();
12918int
12919main ()
12920{
Reid Spencera773bd52006-08-04 18:18:08 +000012921return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012922 ;
12923 return 0;
12924}
12925_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012926for ac_lib in '' pthread; do
12927 if test -z "$ac_lib"; then
12928 ac_res="none required"
12929 else
12930 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012932 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012933 rm -f conftest.$ac_objext conftest$ac_exeext
12934if { (ac_try="$ac_link"
12935case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12938esac
12939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_link") 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } &&
12947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12948 { (case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12951esac
12952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953 (eval "$ac_try") 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try='test -s conftest$ac_exeext'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961esac
12962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012967 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012968else
12969 echo "$as_me: failed program was:" >&5
12970sed 's/^/| /' conftest.$ac_ext >&5
12971
12972
Brian Gaeke5f268f72003-12-05 19:29:01 +000012973fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012974
Bill Wendlingebcceee2009-04-18 11:20:33 +000012975rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012976 conftest$ac_exeext
12977 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012978 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012979fi
Reid Spencera773bd52006-08-04 18:18:08 +000012980done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012981if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12982 :
Reid Spencera773bd52006-08-04 18:18:08 +000012983else
12984 ac_cv_search_pthread_mutex_lock=no
12985fi
12986rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012987LIBS=$ac_func_search_save_LIBS
12988fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012989{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12990echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012991ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012992if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012995cat >>confdefs.h <<\_ACEOF
12996#define HAVE_PTHREAD_MUTEX_LOCK 1
12997_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012998
12999fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013001 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13002echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13003if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013005else
13006 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013007cat >conftest.$ac_ext <<_ACEOF
13008/* confdefs.h. */
13009_ACEOF
13010cat confdefs.h >>conftest.$ac_ext
13011cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013012/* end confdefs.h. */
13013
13014/* Override any GCC internal prototype to avoid an error.
13015 Use char because int might match the return type of a GCC
13016 builtin and then its argument prototype would still apply. */
13017#ifdef __cplusplus
13018extern "C"
13019#endif
13020char pthread_rwlock_init ();
13021int
13022main ()
13023{
13024return pthread_rwlock_init ();
13025 ;
13026 return 0;
13027}
13028_ACEOF
13029for ac_lib in '' pthread; do
13030 if test -z "$ac_lib"; then
13031 ac_res="none required"
13032 else
13033 ac_res=-l$ac_lib
13034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13035 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013036 rm -f conftest.$ac_objext conftest$ac_exeext
13037if { (ac_try="$ac_link"
13038case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13041esac
13042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_link") 2>conftest.er1
13044 ac_status=$?
13045 grep -v '^ *+' conftest.er1 >conftest.err
13046 rm -f conftest.er1
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13051 { (case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054esac
13055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_try") 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; } &&
13060 { ac_try='test -s conftest$ac_exeext'
13061 { (case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064esac
13065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_try") 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013070 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013071else
13072 echo "$as_me: failed program was:" >&5
13073sed 's/^/| /' conftest.$ac_ext >&5
13074
13075
Owen Andersonde8aed22009-06-16 18:20:20 +000013076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013077
Owen Andersonde8aed22009-06-16 18:20:20 +000013078rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013079 conftest$ac_exeext
13080 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013081 break
13082fi
13083done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013084if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13085 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013086else
13087 ac_cv_search_pthread_rwlock_init=no
13088fi
13089rm conftest.$ac_ext
13090LIBS=$ac_func_search_save_LIBS
13091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013092{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13093echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013094ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013095if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013098cat >>confdefs.h <<\_ACEOF
13099#define HAVE_PTHREAD_RWLOCK_INIT 1
13100_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013101
13102fi
13103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013104 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13105echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13106if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013108else
13109 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110cat >conftest.$ac_ext <<_ACEOF
13111/* confdefs.h. */
13112_ACEOF
13113cat confdefs.h >>conftest.$ac_ext
13114cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013115/* end confdefs.h. */
13116
13117/* Override any GCC internal prototype to avoid an error.
13118 Use char because int might match the return type of a GCC
13119 builtin and then its argument prototype would still apply. */
13120#ifdef __cplusplus
13121extern "C"
13122#endif
13123char pthread_getspecific ();
13124int
13125main ()
13126{
13127return pthread_getspecific ();
13128 ;
13129 return 0;
13130}
13131_ACEOF
13132for ac_lib in '' pthread; do
13133 if test -z "$ac_lib"; then
13134 ac_res="none required"
13135 else
13136 ac_res=-l$ac_lib
13137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13138 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013139 rm -f conftest.$ac_objext conftest$ac_exeext
13140if { (ac_try="$ac_link"
13141case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144esac
13145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_link") 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
13153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13154 { (case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157esac
13158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_try") 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; } &&
13163 { ac_try='test -s conftest$ac_exeext'
13164 { (case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167esac
13168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_try") 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013173 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013174else
13175 echo "$as_me: failed program was:" >&5
13176sed 's/^/| /' conftest.$ac_ext >&5
13177
13178
Owen Anderson27fcfe12009-06-25 23:10:26 +000013179fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013180
Owen Anderson27fcfe12009-06-25 23:10:26 +000013181rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013182 conftest$ac_exeext
13183 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013184 break
13185fi
13186done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013187if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13188 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013189else
13190 ac_cv_search_pthread_getspecific=no
13191fi
13192rm conftest.$ac_ext
13193LIBS=$ac_func_search_save_LIBS
13194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013195{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13196echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013197ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013198if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013201cat >>confdefs.h <<\_ACEOF
13202#define HAVE_PTHREAD_GETSPECIFIC 1
13203_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013204
13205fi
13206
Reid Spencer0a262ba2005-08-24 10:07:20 +000013207fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013208
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013209
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013210# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013212 withval=$with_udis86;
13213 USE_UDIS86=1
13214
13215 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013216 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013217 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13218 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013219
13220{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13221echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13222if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013224else
13225 ac_check_lib_save_LIBS=$LIBS
13226LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013227cat >conftest.$ac_ext <<_ACEOF
13228/* confdefs.h. */
13229_ACEOF
13230cat confdefs.h >>conftest.$ac_ext
13231cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013232/* end confdefs.h. */
13233
13234/* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13237#ifdef __cplusplus
13238extern "C"
13239#endif
13240char ud_init ();
13241int
13242main ()
13243{
13244return ud_init ();
13245 ;
13246 return 0;
13247}
13248_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013249rm -f conftest.$ac_objext conftest$ac_exeext
13250if { (ac_try="$ac_link"
13251case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254esac
13255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_link") 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13264 { (case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267esac
13268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_try") 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest$ac_exeext'
13274 { (case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13277esac
13278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_try") 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013283 ac_cv_lib_udis86_ud_init=yes
13284else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285 echo "$as_me: failed program was:" >&5
13286sed 's/^/| /' conftest.$ac_ext >&5
13287
13288 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013290
Bill Wendlingebcceee2009-04-18 11:20:33 +000013291rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013292 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013293LIBS=$ac_check_lib_save_LIBS
13294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013295{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13296echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13297if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013298 cat >>confdefs.h <<_ACEOF
13299#define HAVE_LIBUDIS86 1
13300_ACEOF
13301
13302 LIBS="-ludis86 $LIBS"
13303
13304else
13305
13306 echo "Error! You need to have libudis86 around."
13307 exit -1
13308
13309fi
13310
13311
13312else
13313 USE_UDIS86=0
13314
13315fi
13316
13317
13318cat >>confdefs.h <<_ACEOF
13319#define USE_UDIS86 $USE_UDIS86
13320_ACEOF
13321
13322
13323
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013324# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013325if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013326 withval=$with_oprofile;
13327 USE_OPROFILE=1
13328
13329 case "$withval" in
13330 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013331 no) llvm_cv_oppath=
13332 USE_OPROFILE=0
13333 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013334 *) llvm_cv_oppath="${withval}/lib/oprofile"
13335 CPPFLAGS="-I${withval}/include";;
13336 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013337 if test -n "$llvm_cv_oppath" ; then
13338 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013339 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13340echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13341if test "${ac_cv_search_bfd_init+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013343else
13344 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013345cat >conftest.$ac_ext <<_ACEOF
13346/* confdefs.h. */
13347_ACEOF
13348cat confdefs.h >>conftest.$ac_ext
13349cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013350/* end confdefs.h. */
13351
13352/* Override any GCC internal prototype to avoid an error.
13353 Use char because int might match the return type of a GCC
13354 builtin and then its argument prototype would still apply. */
13355#ifdef __cplusplus
13356extern "C"
13357#endif
13358char bfd_init ();
13359int
13360main ()
13361{
13362return bfd_init ();
13363 ;
13364 return 0;
13365}
13366_ACEOF
13367for ac_lib in '' bfd; do
13368 if test -z "$ac_lib"; then
13369 ac_res="none required"
13370 else
13371 ac_res=-l$ac_lib
13372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13373 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013374 rm -f conftest.$ac_objext conftest$ac_exeext
13375if { (ac_try="$ac_link"
13376case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13379esac
13380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_link") 2>conftest.er1
13382 ac_status=$?
13383 grep -v '^ *+' conftest.er1 >conftest.err
13384 rm -f conftest.er1
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392esac
13393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest$ac_exeext'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402esac
13403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013408 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013409else
13410 echo "$as_me: failed program was:" >&5
13411sed 's/^/| /' conftest.$ac_ext >&5
13412
13413
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013416rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013417 conftest$ac_exeext
13418 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013419 break
13420fi
13421done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013422if test "${ac_cv_search_bfd_init+set}" = set; then
13423 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013424else
13425 ac_cv_search_bfd_init=no
13426fi
13427rm conftest.$ac_ext
13428LIBS=$ac_func_search_save_LIBS
13429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013430{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13431echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013432ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13435
13436fi
13437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013438 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13439echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13440if test "${ac_cv_search_op_open_agent+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013442else
13443 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013444cat >conftest.$ac_ext <<_ACEOF
13445/* confdefs.h. */
13446_ACEOF
13447cat confdefs.h >>conftest.$ac_ext
13448cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013449/* end confdefs.h. */
13450
13451/* Override any GCC internal prototype to avoid an error.
13452 Use char because int might match the return type of a GCC
13453 builtin and then its argument prototype would still apply. */
13454#ifdef __cplusplus
13455extern "C"
13456#endif
13457char op_open_agent ();
13458int
13459main ()
13460{
13461return op_open_agent ();
13462 ;
13463 return 0;
13464}
13465_ACEOF
13466for ac_lib in '' opagent; do
13467 if test -z "$ac_lib"; then
13468 ac_res="none required"
13469 else
13470 ac_res=-l$ac_lib
13471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13472 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013473 rm -f conftest.$ac_objext conftest$ac_exeext
13474if { (ac_try="$ac_link"
13475case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478esac
13479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_link") 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } &&
13487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13488 { (case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13491esac
13492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_try") 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } &&
13497 { ac_try='test -s conftest$ac_exeext'
13498 { (case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13501esac
13502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_try") 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013507 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013508else
13509 echo "$as_me: failed program was:" >&5
13510sed 's/^/| /' conftest.$ac_ext >&5
13511
13512
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013513fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013514
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013515rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516 conftest$ac_exeext
13517 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013518 break
13519fi
13520done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013521if test "${ac_cv_search_op_open_agent+set}" = set; then
13522 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013523else
13524 ac_cv_search_op_open_agent=no
13525fi
13526rm conftest.$ac_ext
13527LIBS=$ac_func_search_save_LIBS
13528fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013529{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13530echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013531ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013532if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13534
13535else
13536
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013537 echo "Error! You need to have libopagent around."
13538 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013539
13540fi
13541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013542 if test "${ac_cv_header_opagent_h+set}" = set; then
13543 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13544echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13545if test "${ac_cv_header_opagent_h+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13547fi
13548{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13549echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13550else
13551 # Is the header compilable?
13552{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13553echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13554cat >conftest.$ac_ext <<_ACEOF
13555/* confdefs.h. */
13556_ACEOF
13557cat confdefs.h >>conftest.$ac_ext
13558cat >>conftest.$ac_ext <<_ACEOF
13559/* end confdefs.h. */
13560$ac_includes_default
13561#include <opagent.h>
13562_ACEOF
13563rm -f conftest.$ac_objext
13564if { (ac_try="$ac_compile"
13565case "(($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_compile") 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13578 { (case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581esac
13582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_try") 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; } &&
13587 { ac_try='test -s conftest.$ac_objext'
13588 { (case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591esac
13592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_try") 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_header_compiler=yes
13598else
13599 echo "$as_me: failed program was:" >&5
13600sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013602 ac_header_compiler=no
13603fi
13604
13605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13607echo "${ECHO_T}$ac_header_compiler" >&6; }
13608
13609# Is the header present?
13610{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13611echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13612cat >conftest.$ac_ext <<_ACEOF
13613/* confdefs.h. */
13614_ACEOF
13615cat confdefs.h >>conftest.$ac_ext
13616cat >>conftest.$ac_ext <<_ACEOF
13617/* end confdefs.h. */
13618#include <opagent.h>
13619_ACEOF
13620if { (ac_try="$ac_cpp conftest.$ac_ext"
13621case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13624esac
13625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } >/dev/null; then
13633 if test -s conftest.err; then
13634 ac_cpp_err=$ac_c_preproc_warn_flag
13635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13636 else
13637 ac_cpp_err=
13638 fi
13639else
13640 ac_cpp_err=yes
13641fi
13642if test -z "$ac_cpp_err"; then
13643 ac_header_preproc=yes
13644else
13645 echo "$as_me: failed program was:" >&5
13646sed 's/^/| /' conftest.$ac_ext >&5
13647
13648 ac_header_preproc=no
13649fi
13650
13651rm -f conftest.err conftest.$ac_ext
13652{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13653echo "${ECHO_T}$ac_header_preproc" >&6; }
13654
13655# So? What about this header?
13656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13657 yes:no: )
13658 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13659echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13661echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13662 ac_header_preproc=yes
13663 ;;
13664 no:yes:* )
13665 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13666echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13668echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13670echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13672echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13673 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13674echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13675 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13676echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13677 ( cat <<\_ASBOX
13678## ----------------------------------- ##
13679## Report this to llvmbugs@cs.uiuc.edu ##
13680## ----------------------------------- ##
13681_ASBOX
13682 ) | sed "s/^/$as_me: WARNING: /" >&2
13683 ;;
13684esac
13685{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13686echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13687if test "${ac_cv_header_opagent_h+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13689else
13690 ac_cv_header_opagent_h=$ac_header_preproc
13691fi
13692{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13693echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13694
13695fi
13696if test $ac_cv_header_opagent_h = yes; then
13697 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013698else
13699
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013700 echo "Error! You need to have opagent.h around."
13701 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013702
13703fi
13704
13705
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013706 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013707
13708else
13709
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013710 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013711
13712
13713fi
13714
13715
13716cat >>confdefs.h <<_ACEOF
13717#define USE_OPROFILE $USE_OPROFILE
13718_ACEOF
13719
13720
13721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013722
13723
13724
13725
13726
Reid Spencer59473af2004-12-25 07:31:29 +000013727ac_header_dirent=no
13728for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013729 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13730{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13731echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013734else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013735 cat >conftest.$ac_ext <<_ACEOF
13736/* confdefs.h. */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013740/* end confdefs.h. */
13741#include <sys/types.h>
13742#include <$ac_hdr>
13743
13744int
13745main ()
13746{
13747if ((DIR *) 0)
13748return 0;
13749 ;
13750 return 0;
13751}
13752_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753rm -f conftest.$ac_objext
13754if { (ac_try="$ac_compile"
13755case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758esac
13759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_compile") 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771esac
13772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781esac
13782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013787 eval "$as_ac_Header=yes"
13788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013789 echo "$as_me: failed program was:" >&5
13790sed 's/^/| /' conftest.$ac_ext >&5
13791
13792 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794
Reid Spencera773bd52006-08-04 18:18:08 +000013795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013797ac_res=`eval echo '${'$as_ac_Header'}'`
13798 { echo "$as_me:$LINENO: result: $ac_res" >&5
13799echo "${ECHO_T}$ac_res" >&6; }
13800if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013801 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013802#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013803_ACEOF
13804
13805ac_header_dirent=$ac_hdr; break
13806fi
13807
13808done
13809# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13810if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013811 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13812echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13813if test "${ac_cv_search_opendir+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013815else
13816 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013817cat >conftest.$ac_ext <<_ACEOF
13818/* confdefs.h. */
13819_ACEOF
13820cat confdefs.h >>conftest.$ac_ext
13821cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013822/* end confdefs.h. */
13823
Reid Spencera773bd52006-08-04 18:18:08 +000013824/* Override any GCC internal prototype to avoid an error.
13825 Use char because int might match the return type of a GCC
13826 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013827#ifdef __cplusplus
13828extern "C"
13829#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013830char opendir ();
13831int
13832main ()
13833{
Reid Spencera773bd52006-08-04 18:18:08 +000013834return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013835 ;
13836 return 0;
13837}
13838_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013839for ac_lib in '' dir; do
13840 if test -z "$ac_lib"; then
13841 ac_res="none required"
13842 else
13843 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013845 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013846 rm -f conftest.$ac_objext conftest$ac_exeext
13847if { (ac_try="$ac_link"
13848case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851esac
13852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_link") 2>conftest.er1
13854 ac_status=$?
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13864esac
13865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest$ac_exeext'
13871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874esac
13875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013880 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013881else
13882 echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885
Reid Spencer59473af2004-12-25 07:31:29 +000013886fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013887
Bill Wendlingebcceee2009-04-18 11:20:33 +000013888rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013889 conftest$ac_exeext
13890 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013891 break
Reid Spencer59473af2004-12-25 07:31:29 +000013892fi
Reid Spencera773bd52006-08-04 18:18:08 +000013893done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013894if test "${ac_cv_search_opendir+set}" = set; then
13895 :
Reid Spencera773bd52006-08-04 18:18:08 +000013896else
13897 ac_cv_search_opendir=no
13898fi
13899rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013900LIBS=$ac_func_search_save_LIBS
13901fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013902{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13903echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013904ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013905if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013907
13908fi
13909
13910else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013911 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13912echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13913if test "${ac_cv_search_opendir+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013915else
13916 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013917cat >conftest.$ac_ext <<_ACEOF
13918/* confdefs.h. */
13919_ACEOF
13920cat confdefs.h >>conftest.$ac_ext
13921cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013922/* end confdefs.h. */
13923
Reid Spencera773bd52006-08-04 18:18:08 +000013924/* Override any GCC internal prototype to avoid an error.
13925 Use char because int might match the return type of a GCC
13926 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013927#ifdef __cplusplus
13928extern "C"
13929#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013930char opendir ();
13931int
13932main ()
13933{
Reid Spencera773bd52006-08-04 18:18:08 +000013934return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013935 ;
13936 return 0;
13937}
13938_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013939for ac_lib in '' x; do
13940 if test -z "$ac_lib"; then
13941 ac_res="none required"
13942 else
13943 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013945 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013946 rm -f conftest.$ac_objext conftest$ac_exeext
13947if { (ac_try="$ac_link"
13948case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951esac
13952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_link") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
13960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13961 { (case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964esac
13965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_try") 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; } &&
13970 { ac_try='test -s conftest$ac_exeext'
13971 { (case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13974esac
13975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13976 (eval "$ac_try") 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013980 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013981else
13982 echo "$as_me: failed program was:" >&5
13983sed 's/^/| /' conftest.$ac_ext >&5
13984
13985
Reid Spencer59473af2004-12-25 07:31:29 +000013986fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013987
Bill Wendlingebcceee2009-04-18 11:20:33 +000013988rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989 conftest$ac_exeext
13990 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013991 break
Reid Spencer59473af2004-12-25 07:31:29 +000013992fi
Reid Spencera773bd52006-08-04 18:18:08 +000013993done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013994if test "${ac_cv_search_opendir+set}" = set; then
13995 :
Reid Spencera773bd52006-08-04 18:18:08 +000013996else
13997 ac_cv_search_opendir=no
13998fi
13999rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014000LIBS=$ac_func_search_save_LIBS
14001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014002{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14003echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014004ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014005if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014007
14008fi
14009
14010fi
14011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14013echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14014if test "${ac_cv_header_mmap_anon+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014016else
14017 ac_ext=c
14018ac_cpp='$CPP $CPPFLAGS'
14019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021ac_compiler_gnu=$ac_cv_c_compiler_gnu
14022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023 cat >conftest.$ac_ext <<_ACEOF
14024/* confdefs.h. */
14025_ACEOF
14026cat confdefs.h >>conftest.$ac_ext
14027cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014028/* end confdefs.h. */
14029#include <sys/mman.h>
14030#include <unistd.h>
14031#include <fcntl.h>
14032int
14033main ()
14034{
14035mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14036 ;
14037 return 0;
14038}
14039_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014040rm -f conftest.$ac_objext
14041if { (ac_try="$ac_compile"
14042case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045esac
14046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14055 { (case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14058esac
14059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_try") 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; } &&
14064 { ac_try='test -s conftest.$ac_objext'
14065 { (case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14068esac
14069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_try") 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014074 ac_cv_header_mmap_anon=yes
14075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014076 echo "$as_me: failed program was:" >&5
14077sed 's/^/| /' conftest.$ac_ext >&5
14078
14079 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014081
Reid Spencera773bd52006-08-04 18:18:08 +000014082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014083 ac_ext=c
14084ac_cpp='$CPP $CPPFLAGS'
14085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14087ac_compiler_gnu=$ac_cv_c_compiler_gnu
14088
14089
14090fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014091{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14092echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014093if test "$ac_cv_header_mmap_anon" = yes; then
14094
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014095cat >>confdefs.h <<\_ACEOF
14096#define HAVE_MMAP_ANONYMOUS 1
14097_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014098
14099fi
14100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014101{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14102echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14103if test "${ac_cv_header_stat_broken+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014106 cat >conftest.$ac_ext <<_ACEOF
14107/* confdefs.h. */
14108_ACEOF
14109cat confdefs.h >>conftest.$ac_ext
14110cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014111/* end confdefs.h. */
14112#include <sys/types.h>
14113#include <sys/stat.h>
14114
Reid Spencera773bd52006-08-04 18:18:08 +000014115#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014116# if S_ISBLK (S_IFDIR)
14117You lose.
14118# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014119#endif
14120
Reid Spencera773bd52006-08-04 18:18:08 +000014121#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014122# if S_ISBLK (S_IFCHR)
14123You lose.
14124# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014125#endif
14126
Reid Spencera773bd52006-08-04 18:18:08 +000014127#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014128# if S_ISLNK (S_IFREG)
14129You lose.
14130# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014131#endif
14132
Reid Spencera773bd52006-08-04 18:18:08 +000014133#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014134# if S_ISSOCK (S_IFREG)
14135You lose.
14136# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014137#endif
14138
14139_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14141 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014142 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014143else
14144 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146rm -f conftest*
14147
Reid Spencer59473af2004-12-25 07:31:29 +000014148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014149{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14150echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014151if test $ac_cv_header_stat_broken = yes; then
14152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014153cat >>confdefs.h <<\_ACEOF
14154#define STAT_MACROS_BROKEN 1
14155_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014156
14157fi
14158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14160echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14161if test "${ac_cv_header_sys_wait_h+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014163else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014164 cat >conftest.$ac_ext <<_ACEOF
14165/* confdefs.h. */
14166_ACEOF
14167cat confdefs.h >>conftest.$ac_ext
14168cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014170#include <sys/types.h>
14171#include <sys/wait.h>
14172#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014173# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014174#endif
14175#ifndef WIFEXITED
14176# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14177#endif
14178
John Criswell7a73b802003-06-30 21:59:07 +000014179int
14180main ()
14181{
14182 int s;
14183 wait (&s);
14184 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14185 ;
14186 return 0;
14187}
14188_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014189rm -f conftest.$ac_objext
14190if { (ac_try="$ac_compile"
14191case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194esac
14195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_compile") 2>conftest.er1
14197 ac_status=$?
14198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } &&
14203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207esac
14208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; } &&
14213 { ac_try='test -s conftest.$ac_objext'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217esac
14218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014223 ac_cv_header_sys_wait_h=yes
14224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225 echo "$as_me: failed program was:" >&5
14226sed 's/^/| /' conftest.$ac_ext >&5
14227
14228 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014230
Reid Spencera773bd52006-08-04 18:18:08 +000014231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014233{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14234echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014235if test $ac_cv_header_sys_wait_h = yes; then
14236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237cat >>confdefs.h <<\_ACEOF
14238#define HAVE_SYS_WAIT_H 1
14239_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014240
14241fi
14242
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014243{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14244echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14245if test "${ac_cv_header_time+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248 cat >conftest.$ac_ext <<_ACEOF
14249/* confdefs.h. */
14250_ACEOF
14251cat confdefs.h >>conftest.$ac_ext
14252cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014253/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014254#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014255#include <sys/time.h>
14256#include <time.h>
14257
14258int
14259main ()
14260{
14261if ((struct tm *) 0)
14262return 0;
14263 ;
14264 return 0;
14265}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014266_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014267rm -f conftest.$ac_objext
14268if { (ac_try="$ac_compile"
14269case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14272esac
14273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_compile") 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14282 { (case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14285esac
14286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_try") 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } &&
14291 { ac_try='test -s conftest.$ac_objext'
14292 { (case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295esac
14296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_try") 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014301 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303 echo "$as_me: failed program was:" >&5
14304sed 's/^/| /' conftest.$ac_ext >&5
14305
14306 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014307fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014308
Reid Spencera773bd52006-08-04 18:18:08 +000014309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014310fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014311{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14312echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014313if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014314
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014315cat >>confdefs.h <<\_ACEOF
14316#define TIME_WITH_SYS_TIME 1
14317_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014318
14319fi
14320
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014322
14323
14324
14325
14326
14327
Reid Spencer59473af2004-12-25 07:31:29 +000014328for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014329do
14330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336fi
14337ac_res=`eval echo '${'$as_ac_Header'}'`
14338 { echo "$as_me:$LINENO: result: $ac_res" >&5
14339echo "${ECHO_T}$ac_res" >&6; }
14340else
14341 # Is the header compilable?
14342{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14344cat >conftest.$ac_ext <<_ACEOF
14345/* confdefs.h. */
14346_ACEOF
14347cat confdefs.h >>conftest.$ac_ext
14348cat >>conftest.$ac_ext <<_ACEOF
14349/* end confdefs.h. */
14350$ac_includes_default
14351#include <$ac_header>
14352_ACEOF
14353rm -f conftest.$ac_objext
14354if { (ac_try="$ac_compile"
14355case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14358esac
14359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_compile") 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368 { (case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371esac
14372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_try") 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (case "(($ac_try" in
14379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14381esac
14382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_try") 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 ac_header_compiler=yes
14388else
14389 echo "$as_me: failed program was:" >&5
14390sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 ac_header_compiler=no
14393fi
14394
14395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14397echo "${ECHO_T}$ac_header_compiler" >&6; }
14398
14399# Is the header present?
14400{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14402cat >conftest.$ac_ext <<_ACEOF
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408#include <$ac_header>
14409_ACEOF
14410if { (ac_try="$ac_cpp conftest.$ac_ext"
14411case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14414esac
14415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14417 ac_status=$?
14418 grep -v '^ *+' conftest.er1 >conftest.err
14419 rm -f conftest.er1
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } >/dev/null; then
14423 if test -s conftest.err; then
14424 ac_cpp_err=$ac_c_preproc_warn_flag
14425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14426 else
14427 ac_cpp_err=
14428 fi
14429else
14430 ac_cpp_err=yes
14431fi
14432if test -z "$ac_cpp_err"; then
14433 ac_header_preproc=yes
14434else
14435 echo "$as_me: failed program was:" >&5
14436sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 ac_header_preproc=no
14439fi
14440
14441rm -f conftest.err conftest.$ac_ext
14442{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14443echo "${ECHO_T}$ac_header_preproc" >&6; }
14444
14445# So? What about this header?
14446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14447 yes:no: )
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14452 ac_header_preproc=yes
14453 ;;
14454 no:yes:* )
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14462echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14467 ( cat <<\_ASBOX
14468## ----------------------------------- ##
14469## Report this to llvmbugs@cs.uiuc.edu ##
14470## ----------------------------------- ##
14471_ASBOX
14472 ) | sed "s/^/$as_me: WARNING: /" >&2
14473 ;;
14474esac
14475{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14479else
14480 eval "$as_ac_Header=\$ac_header_preproc"
14481fi
14482ac_res=`eval echo '${'$as_ac_Header'}'`
14483 { echo "$as_me:$LINENO: result: $ac_res" >&5
14484echo "${ECHO_T}$ac_res" >&6; }
14485
14486fi
14487if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014488 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014490_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014491
14492fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014493
Reid Spencer59473af2004-12-25 07:31:29 +000014494done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014496
14497
14498
14499
14500
14501
Douglas Gregor071d73d2009-05-18 17:21:34 +000014502for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014503do
14504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510fi
14511ac_res=`eval echo '${'$as_ac_Header'}'`
14512 { echo "$as_me:$LINENO: result: $ac_res" >&5
14513echo "${ECHO_T}$ac_res" >&6; }
14514else
14515 # Is the header compilable?
14516{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14518cat >conftest.$ac_ext <<_ACEOF
14519/* confdefs.h. */
14520_ACEOF
14521cat confdefs.h >>conftest.$ac_ext
14522cat >>conftest.$ac_ext <<_ACEOF
14523/* end confdefs.h. */
14524$ac_includes_default
14525#include <$ac_header>
14526_ACEOF
14527rm -f conftest.$ac_objext
14528if { (ac_try="$ac_compile"
14529case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532esac
14533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_compile") 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14545esac
14546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555esac
14556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_try") 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 ac_header_compiler=yes
14562else
14563 echo "$as_me: failed program was:" >&5
14564sed 's/^/| /' conftest.$ac_ext >&5
14565
14566 ac_header_compiler=no
14567fi
14568
14569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14571echo "${ECHO_T}$ac_header_compiler" >&6; }
14572
14573# Is the header present?
14574{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14576cat >conftest.$ac_ext <<_ACEOF
14577/* confdefs.h. */
14578_ACEOF
14579cat confdefs.h >>conftest.$ac_ext
14580cat >>conftest.$ac_ext <<_ACEOF
14581/* end confdefs.h. */
14582#include <$ac_header>
14583_ACEOF
14584if { (ac_try="$ac_cpp conftest.$ac_ext"
14585case "(($ac_try" in
14586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 *) ac_try_echo=$ac_try;;
14588esac
14589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } >/dev/null; then
14597 if test -s conftest.err; then
14598 ac_cpp_err=$ac_c_preproc_warn_flag
14599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14600 else
14601 ac_cpp_err=
14602 fi
14603else
14604 ac_cpp_err=yes
14605fi
14606if test -z "$ac_cpp_err"; then
14607 ac_header_preproc=yes
14608else
14609 echo "$as_me: failed program was:" >&5
14610sed 's/^/| /' conftest.$ac_ext >&5
14611
14612 ac_header_preproc=no
14613fi
14614
14615rm -f conftest.err conftest.$ac_ext
14616{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14617echo "${ECHO_T}$ac_header_preproc" >&6; }
14618
14619# So? What about this header?
14620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14621 yes:no: )
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14626 ac_header_preproc=yes
14627 ;;
14628 no:yes:* )
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14632echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14636echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14641 ( cat <<\_ASBOX
14642## ----------------------------------- ##
14643## Report this to llvmbugs@cs.uiuc.edu ##
14644## ----------------------------------- ##
14645_ASBOX
14646 ) | sed "s/^/$as_me: WARNING: /" >&2
14647 ;;
14648esac
14649{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653else
14654 eval "$as_ac_Header=\$ac_header_preproc"
14655fi
14656ac_res=`eval echo '${'$as_ac_Header'}'`
14657 { echo "$as_me:$LINENO: result: $ac_res" >&5
14658echo "${ECHO_T}$ac_res" >&6; }
14659
14660fi
14661if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014662 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014664_ACEOF
14665
14666fi
14667
14668done
14669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014670
14671
Douglas Gregor071d73d2009-05-18 17:21:34 +000014672for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014673do
14674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14680fi
14681ac_res=`eval echo '${'$as_ac_Header'}'`
14682 { echo "$as_me:$LINENO: result: $ac_res" >&5
14683echo "${ECHO_T}$ac_res" >&6; }
14684else
14685 # Is the header compilable?
14686{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14688cat >conftest.$ac_ext <<_ACEOF
14689/* confdefs.h. */
14690_ACEOF
14691cat confdefs.h >>conftest.$ac_ext
14692cat >>conftest.$ac_ext <<_ACEOF
14693/* end confdefs.h. */
14694$ac_includes_default
14695#include <$ac_header>
14696_ACEOF
14697rm -f conftest.$ac_objext
14698if { (ac_try="$ac_compile"
14699case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702esac
14703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_compile") 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712 { (case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14715esac
14716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_try") 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725esac
14726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_try") 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 ac_header_compiler=yes
14732else
14733 echo "$as_me: failed program was:" >&5
14734sed 's/^/| /' conftest.$ac_ext >&5
14735
14736 ac_header_compiler=no
14737fi
14738
14739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14741echo "${ECHO_T}$ac_header_compiler" >&6; }
14742
14743# Is the header present?
14744{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14746cat >conftest.$ac_ext <<_ACEOF
14747/* confdefs.h. */
14748_ACEOF
14749cat confdefs.h >>conftest.$ac_ext
14750cat >>conftest.$ac_ext <<_ACEOF
14751/* end confdefs.h. */
14752#include <$ac_header>
14753_ACEOF
14754if { (ac_try="$ac_cpp conftest.$ac_ext"
14755case "(($ac_try" in
14756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14758esac
14759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14761 ac_status=$?
14762 grep -v '^ *+' conftest.er1 >conftest.err
14763 rm -f conftest.er1
14764 cat conftest.err >&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } >/dev/null; then
14767 if test -s conftest.err; then
14768 ac_cpp_err=$ac_c_preproc_warn_flag
14769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14770 else
14771 ac_cpp_err=
14772 fi
14773else
14774 ac_cpp_err=yes
14775fi
14776if test -z "$ac_cpp_err"; then
14777 ac_header_preproc=yes
14778else
14779 echo "$as_me: failed program was:" >&5
14780sed 's/^/| /' conftest.$ac_ext >&5
14781
14782 ac_header_preproc=no
14783fi
14784
14785rm -f conftest.err conftest.$ac_ext
14786{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14787echo "${ECHO_T}$ac_header_preproc" >&6; }
14788
14789# So? What about this header?
14790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14791 yes:no: )
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14796 ac_header_preproc=yes
14797 ;;
14798 no:yes:* )
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14806echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14811 ( cat <<\_ASBOX
14812## ----------------------------------- ##
14813## Report this to llvmbugs@cs.uiuc.edu ##
14814## ----------------------------------- ##
14815_ASBOX
14816 ) | sed "s/^/$as_me: WARNING: /" >&2
14817 ;;
14818esac
14819{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823else
14824 eval "$as_ac_Header=\$ac_header_preproc"
14825fi
14826ac_res=`eval echo '${'$as_ac_Header'}'`
14827 { echo "$as_me:$LINENO: result: $ac_res" >&5
14828echo "${ECHO_T}$ac_res" >&6; }
14829
14830fi
14831if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014832 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014834_ACEOF
14835
14836fi
14837
14838done
Reid Spencer59473af2004-12-25 07:31:29 +000014839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014840
14841
14842
14843
Daniel Dunbar3e462932011-02-03 02:40:02 +000014844
14845for 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 +000014846do
14847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853fi
14854ac_res=`eval echo '${'$as_ac_Header'}'`
14855 { echo "$as_me:$LINENO: result: $ac_res" >&5
14856echo "${ECHO_T}$ac_res" >&6; }
14857else
14858 # Is the header compilable?
14859{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14861cat >conftest.$ac_ext <<_ACEOF
14862/* confdefs.h. */
14863_ACEOF
14864cat confdefs.h >>conftest.$ac_ext
14865cat >>conftest.$ac_ext <<_ACEOF
14866/* end confdefs.h. */
14867$ac_includes_default
14868#include <$ac_header>
14869_ACEOF
14870rm -f conftest.$ac_objext
14871if { (ac_try="$ac_compile"
14872case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875esac
14876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_compile") 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14888esac
14889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898esac
14899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_try") 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 ac_header_compiler=yes
14905else
14906 echo "$as_me: failed program was:" >&5
14907sed 's/^/| /' conftest.$ac_ext >&5
14908
14909 ac_header_compiler=no
14910fi
14911
14912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14914echo "${ECHO_T}$ac_header_compiler" >&6; }
14915
14916# Is the header present?
14917{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14919cat >conftest.$ac_ext <<_ACEOF
14920/* confdefs.h. */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h. */
14925#include <$ac_header>
14926_ACEOF
14927if { (ac_try="$ac_cpp conftest.$ac_ext"
14928case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14931esac
14932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14934 ac_status=$?
14935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } >/dev/null; then
14940 if test -s conftest.err; then
14941 ac_cpp_err=$ac_c_preproc_warn_flag
14942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14943 else
14944 ac_cpp_err=
14945 fi
14946else
14947 ac_cpp_err=yes
14948fi
14949if test -z "$ac_cpp_err"; then
14950 ac_header_preproc=yes
14951else
14952 echo "$as_me: failed program was:" >&5
14953sed 's/^/| /' conftest.$ac_ext >&5
14954
14955 ac_header_preproc=no
14956fi
14957
14958rm -f conftest.err conftest.$ac_ext
14959{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14960echo "${ECHO_T}$ac_header_preproc" >&6; }
14961
14962# So? What about this header?
14963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14964 yes:no: )
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14969 ac_header_preproc=yes
14970 ;;
14971 no:yes:* )
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14984 ( cat <<\_ASBOX
14985## ----------------------------------- ##
14986## Report this to llvmbugs@cs.uiuc.edu ##
14987## ----------------------------------- ##
14988_ASBOX
14989 ) | sed "s/^/$as_me: WARNING: /" >&2
14990 ;;
14991esac
14992{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996else
14997 eval "$as_ac_Header=\$ac_header_preproc"
14998fi
14999ac_res=`eval echo '${'$as_ac_Header'}'`
15000 { echo "$as_me:$LINENO: result: $ac_res" >&5
15001echo "${ECHO_T}$ac_res" >&6; }
15002
15003fi
15004if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015005 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015007_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015008
15009fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015010
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015011done
15012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015013
15014
15015
15016
Douglas Gregor01746742009-05-11 18:05:52 +000015017for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015018do
15019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025fi
15026ac_res=`eval echo '${'$as_ac_Header'}'`
15027 { echo "$as_me:$LINENO: result: $ac_res" >&5
15028echo "${ECHO_T}$ac_res" >&6; }
15029else
15030 # Is the header compilable?
15031{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15032echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15033cat >conftest.$ac_ext <<_ACEOF
15034/* confdefs.h. */
15035_ACEOF
15036cat confdefs.h >>conftest.$ac_ext
15037cat >>conftest.$ac_ext <<_ACEOF
15038/* end confdefs.h. */
15039$ac_includes_default
15040#include <$ac_header>
15041_ACEOF
15042rm -f conftest.$ac_objext
15043if { (ac_try="$ac_compile"
15044case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15047esac
15048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_compile") 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15057 { (case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060esac
15061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_try") 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; } &&
15066 { ac_try='test -s conftest.$ac_objext'
15067 { (case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070esac
15071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_try") 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 ac_header_compiler=yes
15077else
15078 echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 ac_header_compiler=no
15082fi
15083
15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15086echo "${ECHO_T}$ac_header_compiler" >&6; }
15087
15088# Is the header present?
15089{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15091cat >conftest.$ac_ext <<_ACEOF
15092/* confdefs.h. */
15093_ACEOF
15094cat confdefs.h >>conftest.$ac_ext
15095cat >>conftest.$ac_ext <<_ACEOF
15096/* end confdefs.h. */
15097#include <$ac_header>
15098_ACEOF
15099if { (ac_try="$ac_cpp conftest.$ac_ext"
15100case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15103esac
15104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } >/dev/null; then
15112 if test -s conftest.err; then
15113 ac_cpp_err=$ac_c_preproc_warn_flag
15114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15115 else
15116 ac_cpp_err=
15117 fi
15118else
15119 ac_cpp_err=yes
15120fi
15121if test -z "$ac_cpp_err"; then
15122 ac_header_preproc=yes
15123else
15124 echo "$as_me: failed program was:" >&5
15125sed 's/^/| /' conftest.$ac_ext >&5
15126
15127 ac_header_preproc=no
15128fi
15129
15130rm -f conftest.err conftest.$ac_ext
15131{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15132echo "${ECHO_T}$ac_header_preproc" >&6; }
15133
15134# So? What about this header?
15135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15136 yes:no: )
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15141 ac_header_preproc=yes
15142 ;;
15143 no:yes:* )
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15147echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15151echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15156 ( cat <<\_ASBOX
15157## ----------------------------------- ##
15158## Report this to llvmbugs@cs.uiuc.edu ##
15159## ----------------------------------- ##
15160_ASBOX
15161 ) | sed "s/^/$as_me: WARNING: /" >&2
15162 ;;
15163esac
15164{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168else
15169 eval "$as_ac_Header=\$ac_header_preproc"
15170fi
15171ac_res=`eval echo '${'$as_ac_Header'}'`
15172 { echo "$as_me:$LINENO: result: $ac_res" >&5
15173echo "${ECHO_T}$ac_res" >&6; }
15174
15175fi
15176if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015177 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015179_ACEOF
15180
15181fi
15182
15183done
15184
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015185
15186for ac_header in valgrind/valgrind.h
15187do
15188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15194fi
15195ac_res=`eval echo '${'$as_ac_Header'}'`
15196 { echo "$as_me:$LINENO: result: $ac_res" >&5
15197echo "${ECHO_T}$ac_res" >&6; }
15198else
15199 # Is the header compilable?
15200{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15202cat >conftest.$ac_ext <<_ACEOF
15203/* confdefs.h. */
15204_ACEOF
15205cat confdefs.h >>conftest.$ac_ext
15206cat >>conftest.$ac_ext <<_ACEOF
15207/* end confdefs.h. */
15208$ac_includes_default
15209#include <$ac_header>
15210_ACEOF
15211rm -f conftest.$ac_objext
15212if { (ac_try="$ac_compile"
15213case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216esac
15217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_compile") 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
15225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15226 { (case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229esac
15230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_try") 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest.$ac_objext'
15236 { (case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15239esac
15240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_try") 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_header_compiler=yes
15246else
15247 echo "$as_me: failed program was:" >&5
15248sed 's/^/| /' conftest.$ac_ext >&5
15249
15250 ac_header_compiler=no
15251fi
15252
15253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15255echo "${ECHO_T}$ac_header_compiler" >&6; }
15256
15257# Is the header present?
15258{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15260cat >conftest.$ac_ext <<_ACEOF
15261/* confdefs.h. */
15262_ACEOF
15263cat confdefs.h >>conftest.$ac_ext
15264cat >>conftest.$ac_ext <<_ACEOF
15265/* end confdefs.h. */
15266#include <$ac_header>
15267_ACEOF
15268if { (ac_try="$ac_cpp conftest.$ac_ext"
15269case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272esac
15273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } >/dev/null; then
15281 if test -s conftest.err; then
15282 ac_cpp_err=$ac_c_preproc_warn_flag
15283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15284 else
15285 ac_cpp_err=
15286 fi
15287else
15288 ac_cpp_err=yes
15289fi
15290if test -z "$ac_cpp_err"; then
15291 ac_header_preproc=yes
15292else
15293 echo "$as_me: failed program was:" >&5
15294sed 's/^/| /' conftest.$ac_ext >&5
15295
15296 ac_header_preproc=no
15297fi
15298
15299rm -f conftest.err conftest.$ac_ext
15300{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15301echo "${ECHO_T}$ac_header_preproc" >&6; }
15302
15303# So? What about this header?
15304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15305 yes:no: )
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15310 ac_header_preproc=yes
15311 ;;
15312 no:yes:* )
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15325 ( cat <<\_ASBOX
15326## ----------------------------------- ##
15327## Report this to llvmbugs@cs.uiuc.edu ##
15328## ----------------------------------- ##
15329_ASBOX
15330 ) | sed "s/^/$as_me: WARNING: /" >&2
15331 ;;
15332esac
15333{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337else
15338 eval "$as_ac_Header=\$ac_header_preproc"
15339fi
15340ac_res=`eval echo '${'$as_ac_Header'}'`
15341 { echo "$as_me:$LINENO: result: $ac_res" >&5
15342echo "${ECHO_T}$ac_res" >&6; }
15343
15344fi
15345if test `eval echo '${'$as_ac_Header'}'` = yes; then
15346 cat >>confdefs.h <<_ACEOF
15347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15348_ACEOF
15349
15350fi
15351
15352done
15353
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015354
15355for ac_header in fenv.h
15356do
15357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15363fi
15364ac_res=`eval echo '${'$as_ac_Header'}'`
15365 { echo "$as_me:$LINENO: result: $ac_res" >&5
15366echo "${ECHO_T}$ac_res" >&6; }
15367else
15368 # Is the header compilable?
15369{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15370echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15371cat >conftest.$ac_ext <<_ACEOF
15372/* confdefs.h. */
15373_ACEOF
15374cat confdefs.h >>conftest.$ac_ext
15375cat >>conftest.$ac_ext <<_ACEOF
15376/* end confdefs.h. */
15377$ac_includes_default
15378#include <$ac_header>
15379_ACEOF
15380rm -f conftest.$ac_objext
15381if { (ac_try="$ac_compile"
15382case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15385esac
15386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_compile") 2>conftest.er1
15388 ac_status=$?
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15398esac
15399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest.$ac_objext'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408esac
15409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_header_compiler=yes
15415else
15416 echo "$as_me: failed program was:" >&5
15417sed 's/^/| /' conftest.$ac_ext >&5
15418
15419 ac_header_compiler=no
15420fi
15421
15422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15424echo "${ECHO_T}$ac_header_compiler" >&6; }
15425
15426# Is the header present?
15427{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15429cat >conftest.$ac_ext <<_ACEOF
15430/* confdefs.h. */
15431_ACEOF
15432cat confdefs.h >>conftest.$ac_ext
15433cat >>conftest.$ac_ext <<_ACEOF
15434/* end confdefs.h. */
15435#include <$ac_header>
15436_ACEOF
15437if { (ac_try="$ac_cpp conftest.$ac_ext"
15438case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441esac
15442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } >/dev/null; then
15450 if test -s conftest.err; then
15451 ac_cpp_err=$ac_c_preproc_warn_flag
15452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15453 else
15454 ac_cpp_err=
15455 fi
15456else
15457 ac_cpp_err=yes
15458fi
15459if test -z "$ac_cpp_err"; then
15460 ac_header_preproc=yes
15461else
15462 echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 ac_header_preproc=no
15466fi
15467
15468rm -f conftest.err conftest.$ac_ext
15469{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15470echo "${ECHO_T}$ac_header_preproc" >&6; }
15471
15472# So? What about this header?
15473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15474 yes:no: )
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15478echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15479 ac_header_preproc=yes
15480 ;;
15481 no:yes:* )
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15485echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15487echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15489echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15493echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15494 ( cat <<\_ASBOX
15495## ----------------------------------- ##
15496## Report this to llvmbugs@cs.uiuc.edu ##
15497## ----------------------------------- ##
15498_ASBOX
15499 ) | sed "s/^/$as_me: WARNING: /" >&2
15500 ;;
15501esac
15502{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506else
15507 eval "$as_ac_Header=\$ac_header_preproc"
15508fi
15509ac_res=`eval echo '${'$as_ac_Header'}'`
15510 { echo "$as_me:$LINENO: result: $ac_res" >&5
15511echo "${ECHO_T}$ac_res" >&6; }
15512
15513fi
15514if test `eval echo '${'$as_ac_Header'}'` = yes; then
15515 cat >>confdefs.h <<_ACEOF
15516#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15517_ACEOF
15518
15519fi
15520
15521done
15522
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015523if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015524
15525for ac_header in pthread.h
15526do
15527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15533fi
15534ac_res=`eval echo '${'$as_ac_Header'}'`
15535 { echo "$as_me:$LINENO: result: $ac_res" >&5
15536echo "${ECHO_T}$ac_res" >&6; }
15537else
15538 # Is the header compilable?
15539{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15540echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15541cat >conftest.$ac_ext <<_ACEOF
15542/* confdefs.h. */
15543_ACEOF
15544cat confdefs.h >>conftest.$ac_ext
15545cat >>conftest.$ac_ext <<_ACEOF
15546/* end confdefs.h. */
15547$ac_includes_default
15548#include <$ac_header>
15549_ACEOF
15550rm -f conftest.$ac_objext
15551if { (ac_try="$ac_compile"
15552case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555esac
15556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15568esac
15569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest.$ac_objext'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578esac
15579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_header_compiler=yes
15585else
15586 echo "$as_me: failed program was:" >&5
15587sed 's/^/| /' conftest.$ac_ext >&5
15588
15589 ac_header_compiler=no
15590fi
15591
15592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15594echo "${ECHO_T}$ac_header_compiler" >&6; }
15595
15596# Is the header present?
15597{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15599cat >conftest.$ac_ext <<_ACEOF
15600/* confdefs.h. */
15601_ACEOF
15602cat confdefs.h >>conftest.$ac_ext
15603cat >>conftest.$ac_ext <<_ACEOF
15604/* end confdefs.h. */
15605#include <$ac_header>
15606_ACEOF
15607if { (ac_try="$ac_cpp conftest.$ac_ext"
15608case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611esac
15612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } >/dev/null; then
15620 if test -s conftest.err; then
15621 ac_cpp_err=$ac_c_preproc_warn_flag
15622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15623 else
15624 ac_cpp_err=
15625 fi
15626else
15627 ac_cpp_err=yes
15628fi
15629if test -z "$ac_cpp_err"; then
15630 ac_header_preproc=yes
15631else
15632 echo "$as_me: failed program was:" >&5
15633sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 ac_header_preproc=no
15636fi
15637
15638rm -f conftest.err conftest.$ac_ext
15639{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15640echo "${ECHO_T}$ac_header_preproc" >&6; }
15641
15642# So? What about this header?
15643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15644 yes:no: )
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15646echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15648echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15649 ac_header_preproc=yes
15650 ;;
15651 no:yes:* )
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15655echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15657echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15659echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15663echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15664 ( cat <<\_ASBOX
15665## ----------------------------------- ##
15666## Report this to llvmbugs@cs.uiuc.edu ##
15667## ----------------------------------- ##
15668_ASBOX
15669 ) | sed "s/^/$as_me: WARNING: /" >&2
15670 ;;
15671esac
15672{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676else
15677 eval "$as_ac_Header=\$ac_header_preproc"
15678fi
15679ac_res=`eval echo '${'$as_ac_Header'}'`
15680 { echo "$as_me:$LINENO: result: $ac_res" >&5
15681echo "${ECHO_T}$ac_res" >&6; }
15682
15683fi
15684if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015685 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015687_ACEOF
15688 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015689
15690else
15691 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015692
15693fi
15694
Reid Spencerbe3e4192007-08-17 05:45:26 +000015695done
Reid Spencer1000b732006-12-01 00:37:14 +000015696
15697else
15698 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015699
15700fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015701
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015702if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015703
15704
15705for ac_header in ffi.h ffi/ffi.h
15706do
15707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15713fi
15714ac_res=`eval echo '${'$as_ac_Header'}'`
15715 { echo "$as_me:$LINENO: result: $ac_res" >&5
15716echo "${ECHO_T}$ac_res" >&6; }
15717else
15718 # Is the header compilable?
15719{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15721cat >conftest.$ac_ext <<_ACEOF
15722/* confdefs.h. */
15723_ACEOF
15724cat confdefs.h >>conftest.$ac_ext
15725cat >>conftest.$ac_ext <<_ACEOF
15726/* end confdefs.h. */
15727$ac_includes_default
15728#include <$ac_header>
15729_ACEOF
15730rm -f conftest.$ac_objext
15731if { (ac_try="$ac_compile"
15732case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735esac
15736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_compile") 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } &&
15744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15745 { (case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748esac
15749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_try") 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; } &&
15754 { ac_try='test -s conftest.$ac_objext'
15755 { (case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15758esac
15759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_try") 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_header_compiler=yes
15765else
15766 echo "$as_me: failed program was:" >&5
15767sed 's/^/| /' conftest.$ac_ext >&5
15768
15769 ac_header_compiler=no
15770fi
15771
15772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15774echo "${ECHO_T}$ac_header_compiler" >&6; }
15775
15776# Is the header present?
15777{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15779cat >conftest.$ac_ext <<_ACEOF
15780/* confdefs.h. */
15781_ACEOF
15782cat confdefs.h >>conftest.$ac_ext
15783cat >>conftest.$ac_ext <<_ACEOF
15784/* end confdefs.h. */
15785#include <$ac_header>
15786_ACEOF
15787if { (ac_try="$ac_cpp conftest.$ac_ext"
15788case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791esac
15792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } >/dev/null; then
15800 if test -s conftest.err; then
15801 ac_cpp_err=$ac_c_preproc_warn_flag
15802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15803 else
15804 ac_cpp_err=
15805 fi
15806else
15807 ac_cpp_err=yes
15808fi
15809if test -z "$ac_cpp_err"; then
15810 ac_header_preproc=yes
15811else
15812 echo "$as_me: failed program was:" >&5
15813sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 ac_header_preproc=no
15816fi
15817
15818rm -f conftest.err conftest.$ac_ext
15819{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15820echo "${ECHO_T}$ac_header_preproc" >&6; }
15821
15822# So? What about this header?
15823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15824 yes:no: )
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15828echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15829 ac_header_preproc=yes
15830 ;;
15831 no:yes:* )
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15835echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15837echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15839echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15843echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15844 ( cat <<\_ASBOX
15845## ----------------------------------- ##
15846## Report this to llvmbugs@cs.uiuc.edu ##
15847## ----------------------------------- ##
15848_ASBOX
15849 ) | sed "s/^/$as_me: WARNING: /" >&2
15850 ;;
15851esac
15852{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15856else
15857 eval "$as_ac_Header=\$ac_header_preproc"
15858fi
15859ac_res=`eval echo '${'$as_ac_Header'}'`
15860 { echo "$as_me:$LINENO: result: $ac_res" >&5
15861echo "${ECHO_T}$ac_res" >&6; }
15862
15863fi
15864if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015865 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015867_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015868
15869fi
15870
15871done
15872
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015873fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015874
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015875
Eric Christopher654dee42010-06-22 21:01:04 +000015876for ac_header in CrashReporterClient.h
15877do
15878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15884fi
15885ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result: $ac_res" >&5
15887echo "${ECHO_T}$ac_res" >&6; }
15888else
15889 # Is the header compilable?
15890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15892cat >conftest.$ac_ext <<_ACEOF
15893/* confdefs.h. */
15894_ACEOF
15895cat confdefs.h >>conftest.$ac_ext
15896cat >>conftest.$ac_ext <<_ACEOF
15897/* end confdefs.h. */
15898$ac_includes_default
15899#include <$ac_header>
15900_ACEOF
15901rm -f conftest.$ac_objext
15902if { (ac_try="$ac_compile"
15903case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15906esac
15907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_compile") 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
15915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15916 { (case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15919esac
15920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_try") 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; } &&
15925 { ac_try='test -s conftest.$ac_objext'
15926 { (case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929esac
15930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_try") 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 ac_header_compiler=yes
15936else
15937 echo "$as_me: failed program was:" >&5
15938sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 ac_header_compiler=no
15941fi
15942
15943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15944{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15945echo "${ECHO_T}$ac_header_compiler" >&6; }
15946
15947# Is the header present?
15948{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15950cat >conftest.$ac_ext <<_ACEOF
15951/* confdefs.h. */
15952_ACEOF
15953cat confdefs.h >>conftest.$ac_ext
15954cat >>conftest.$ac_ext <<_ACEOF
15955/* end confdefs.h. */
15956#include <$ac_header>
15957_ACEOF
15958if { (ac_try="$ac_cpp conftest.$ac_ext"
15959case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962esac
15963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15965 ac_status=$?
15966 grep -v '^ *+' conftest.er1 >conftest.err
15967 rm -f conftest.er1
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } >/dev/null; then
15971 if test -s conftest.err; then
15972 ac_cpp_err=$ac_c_preproc_warn_flag
15973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15974 else
15975 ac_cpp_err=
15976 fi
15977else
15978 ac_cpp_err=yes
15979fi
15980if test -z "$ac_cpp_err"; then
15981 ac_header_preproc=yes
15982else
15983 echo "$as_me: failed program was:" >&5
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
15986 ac_header_preproc=no
15987fi
15988
15989rm -f conftest.err conftest.$ac_ext
15990{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15991echo "${ECHO_T}$ac_header_preproc" >&6; }
15992
15993# So? What about this header?
15994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15995 yes:no: )
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16000 ac_header_preproc=yes
16001 ;;
16002 no:yes:* )
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16015 ( cat <<\_ASBOX
16016## ----------------------------------- ##
16017## Report this to llvmbugs@cs.uiuc.edu ##
16018## ----------------------------------- ##
16019_ASBOX
16020 ) | sed "s/^/$as_me: WARNING: /" >&2
16021 ;;
16022esac
16023{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16027else
16028 eval "$as_ac_Header=\$ac_header_preproc"
16029fi
16030ac_res=`eval echo '${'$as_ac_Header'}'`
16031 { echo "$as_me:$LINENO: result: $ac_res" >&5
16032echo "${ECHO_T}$ac_res" >&6; }
16033
16034fi
16035if test `eval echo '${'$as_ac_Header'}'` = yes; then
16036 cat >>confdefs.h <<_ACEOF
16037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16038_ACEOF
16039
16040fi
16041
16042done
16043
16044
Eric Christopher51e57132010-12-07 02:05:42 +000016045{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16046echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016047cat >conftest.$ac_ext <<_ACEOF
16048/* confdefs.h. */
16049_ACEOF
16050cat confdefs.h >>conftest.$ac_ext
16051cat >>conftest.$ac_ext <<_ACEOF
16052/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016053extern const char *__crashreporter_info__;
16054 int main() {
16055 __crashreporter_info__ = "test";
16056 return 0;
16057 }
Eric Christopher481d4022010-12-03 07:45:22 +000016058
Eric Christopher481d4022010-12-03 07:45:22 +000016059_ACEOF
16060rm -f conftest.$ac_objext conftest$ac_exeext
16061if { (ac_try="$ac_link"
16062case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16065esac
16066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_link") 2>conftest.er1
16068 ac_status=$?
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
16074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16075 { (case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16078esac
16079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_try") 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; } &&
16084 { ac_try='test -s conftest$ac_exeext'
16085 { (case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16088esac
16089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090 (eval "$ac_try") 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016094 { echo "$as_me:$LINENO: result: yes" >&5
16095echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016096
16097cat >>confdefs.h <<\_ACEOF
16098#define HAVE_CRASHREPORTER_INFO 1
16099_ACEOF
16100
Eric Christopher51e57132010-12-07 02:05:42 +000016101else
16102 echo "$as_me: failed program was:" >&5
16103sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 { echo "$as_me:$LINENO: result: no" >&5
16106echo "${ECHO_T}no" >&6; }
16107
16108cat >>confdefs.h <<\_ACEOF
16109#define HAVE_CRASHREPORTER_INFO 0
16110_ACEOF
16111
Eric Christopher481d4022010-12-03 07:45:22 +000016112fi
Eric Christopher654dee42010-06-22 21:01:04 +000016113
Eric Christopher51e57132010-12-07 02:05:42 +000016114rm -f core conftest.err conftest.$ac_objext \
16115 conftest$ac_exeext conftest.$ac_ext
16116
16117
Reid Spencer8085cff2005-01-16 02:58:39 +000016118
Torok Edwin871384f2010-01-26 08:50:50 +000016119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016120 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16121echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16122if test "${ac_cv_huge_val_sanity+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016124else
16125
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016126 ac_ext=cpp
16127ac_cpp='$CXXCPP $CPPFLAGS'
16128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016131
Eric Christopherc7718502010-03-02 05:06:54 +000016132 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016133 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016134 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016135 ac_cv_huge_val_sanity=yes
16136else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016137 cat >conftest.$ac_ext <<_ACEOF
16138/* confdefs.h. */
16139_ACEOF
16140cat confdefs.h >>conftest.$ac_ext
16141cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016142/* end confdefs.h. */
16143#include <math.h>
16144int
16145main ()
16146{
16147double x = HUGE_VAL; return x != x;
16148 ;
16149 return 0;
16150}
16151_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016152rm -f conftest$ac_exeext
16153if { (ac_try="$ac_link"
16154case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16157esac
16158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_link") 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16163 { (case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16166esac
16167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_try") 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016172 ac_cv_huge_val_sanity=yes
16173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016174 echo "$as_me: program exited with status $ac_status" >&5
16175echo "$as_me: failed program was:" >&5
16176sed 's/^/| /' conftest.$ac_ext >&5
16177
16178( exit $ac_status )
16179ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016181rm -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 +000016182fi
16183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016184
Eric Christopherc7718502010-03-02 05:06:54 +000016185 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016186 ac_ext=c
16187ac_cpp='$CPP $CPPFLAGS'
16188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16190ac_compiler_gnu=$ac_cv_c_compiler_gnu
16191
16192
16193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016194{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16195echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016196 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16197
16198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016199{ echo "$as_me:$LINENO: checking for pid_t" >&5
16200echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16201if test "${ac_cv_type_pid_t+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203else
16204 cat >conftest.$ac_ext <<_ACEOF
16205/* confdefs.h. */
16206_ACEOF
16207cat confdefs.h >>conftest.$ac_ext
16208cat >>conftest.$ac_ext <<_ACEOF
16209/* end confdefs.h. */
16210$ac_includes_default
16211typedef pid_t ac__type_new_;
16212int
16213main ()
16214{
16215if ((ac__type_new_ *) 0)
16216 return 0;
16217if (sizeof (ac__type_new_))
16218 return 0;
16219 ;
16220 return 0;
16221}
16222_ACEOF
16223rm -f conftest.$ac_objext
16224if { (ac_try="$ac_compile"
16225case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16228esac
16229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_compile") 2>conftest.er1
16231 ac_status=$?
16232 grep -v '^ *+' conftest.er1 >conftest.err
16233 rm -f conftest.er1
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
16237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16238 { (case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241esac
16242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_try") 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; } &&
16247 { ac_try='test -s conftest.$ac_objext'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16251esac
16252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_cv_type_pid_t=yes
16258else
16259 echo "$as_me: failed program was:" >&5
16260sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016262 ac_cv_type_pid_t=no
16263fi
16264
16265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266fi
16267{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16268echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16269if test $ac_cv_type_pid_t = yes; then
16270 :
John Criswell7a73b802003-06-30 21:59:07 +000016271else
16272
16273cat >>confdefs.h <<_ACEOF
16274#define pid_t int
16275_ACEOF
16276
16277fi
16278
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016279{ echo "$as_me:$LINENO: checking for size_t" >&5
16280echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16281if test "${ac_cv_type_size_t+set}" = set; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16283else
16284 cat >conftest.$ac_ext <<_ACEOF
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290$ac_includes_default
16291typedef size_t ac__type_new_;
16292int
16293main ()
16294{
16295if ((ac__type_new_ *) 0)
16296 return 0;
16297if (sizeof (ac__type_new_))
16298 return 0;
16299 ;
16300 return 0;
16301}
16302_ACEOF
16303rm -f conftest.$ac_objext
16304if { (ac_try="$ac_compile"
16305case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321esac
16322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try='test -s conftest.$ac_objext'
16328 { (case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331esac
16332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_try") 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ac_cv_type_size_t=yes
16338else
16339 echo "$as_me: failed program was:" >&5
16340sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016342 ac_cv_type_size_t=no
16343fi
16344
16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346fi
16347{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16348echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16349if test $ac_cv_type_size_t = yes; then
16350 :
John Criswell7a73b802003-06-30 21:59:07 +000016351else
16352
16353cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016354#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016355_ACEOF
16356
16357fi
16358
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016359
16360cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016361#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016362_ACEOF
16363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016364{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16365echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16366if test "${ac_cv_struct_tm+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016369 cat >conftest.$ac_ext <<_ACEOF
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016374/* end confdefs.h. */
16375#include <sys/types.h>
16376#include <time.h>
16377
16378int
16379main ()
16380{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016381struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016382 ;
16383 return 0;
16384}
16385_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016386rm -f conftest.$ac_objext
16387if { (ac_try="$ac_compile"
16388case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16391esac
16392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_compile") 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
16400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404esac
16405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; } &&
16410 { ac_try='test -s conftest.$ac_objext'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16414esac
16415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016420 ac_cv_struct_tm=time.h
16421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016422 echo "$as_me: failed program was:" >&5
16423sed 's/^/| /' conftest.$ac_ext >&5
16424
16425 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016427
Reid Spencera773bd52006-08-04 18:18:08 +000016428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016430{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16431echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016432if test $ac_cv_struct_tm = sys/time.h; then
16433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016434cat >>confdefs.h <<\_ACEOF
16435#define TM_IN_SYS_TIME 1
16436_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016437
16438fi
16439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016440{ echo "$as_me:$LINENO: checking for int64_t" >&5
16441echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16442if test "${ac_cv_type_int64_t+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16444else
16445 cat >conftest.$ac_ext <<_ACEOF
16446/* confdefs.h. */
16447_ACEOF
16448cat confdefs.h >>conftest.$ac_ext
16449cat >>conftest.$ac_ext <<_ACEOF
16450/* end confdefs.h. */
16451$ac_includes_default
16452typedef int64_t ac__type_new_;
16453int
16454main ()
16455{
16456if ((ac__type_new_ *) 0)
16457 return 0;
16458if (sizeof (ac__type_new_))
16459 return 0;
16460 ;
16461 return 0;
16462}
16463_ACEOF
16464rm -f conftest.$ac_objext
16465if { (ac_try="$ac_compile"
16466case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469esac
16470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_compile") 2>conftest.er1
16472 ac_status=$?
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
16478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482esac
16483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try='test -s conftest.$ac_objext'
16489 { (case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16492esac
16493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_try") 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ac_cv_type_int64_t=yes
16499else
16500 echo "$as_me: failed program was:" >&5
16501sed 's/^/| /' conftest.$ac_ext >&5
16502
16503 ac_cv_type_int64_t=no
16504fi
16505
16506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507fi
16508{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16509echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16510if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016511
16512cat >>confdefs.h <<_ACEOF
16513#define HAVE_INT64_T 1
16514_ACEOF
16515
16516
16517else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016518 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16519echo "$as_me: error: Type int64_t required but not found" >&2;}
16520 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016521fi
16522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016523{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16524echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16525if test "${ac_cv_type_uint64_t+set}" = set; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16527else
16528 cat >conftest.$ac_ext <<_ACEOF
16529/* confdefs.h. */
16530_ACEOF
16531cat confdefs.h >>conftest.$ac_ext
16532cat >>conftest.$ac_ext <<_ACEOF
16533/* end confdefs.h. */
16534$ac_includes_default
16535typedef uint64_t ac__type_new_;
16536int
16537main ()
16538{
16539if ((ac__type_new_ *) 0)
16540 return 0;
16541if (sizeof (ac__type_new_))
16542 return 0;
16543 ;
16544 return 0;
16545}
16546_ACEOF
16547rm -f conftest.$ac_objext
16548if { (ac_try="$ac_compile"
16549case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552esac
16553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_compile") 2>conftest.er1
16555 ac_status=$?
16556 grep -v '^ *+' conftest.er1 >conftest.err
16557 rm -f conftest.er1
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16562 { (case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16565esac
16566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_try") 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; } &&
16571 { ac_try='test -s conftest.$ac_objext'
16572 { (case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575esac
16576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_try") 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
16581 ac_cv_type_uint64_t=yes
16582else
16583 echo "$as_me: failed program was:" >&5
16584sed 's/^/| /' conftest.$ac_ext >&5
16585
16586 ac_cv_type_uint64_t=no
16587fi
16588
16589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590fi
16591{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16592echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16593if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016594
16595cat >>confdefs.h <<_ACEOF
16596#define HAVE_UINT64_T 1
16597_ACEOF
16598
16599
16600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016601 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16602echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16603if test "${ac_cv_type_u_int64_t+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605else
16606 cat >conftest.$ac_ext <<_ACEOF
16607/* confdefs.h. */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h. */
16612$ac_includes_default
16613typedef u_int64_t ac__type_new_;
16614int
16615main ()
16616{
16617if ((ac__type_new_ *) 0)
16618 return 0;
16619if (sizeof (ac__type_new_))
16620 return 0;
16621 ;
16622 return 0;
16623}
16624_ACEOF
16625rm -f conftest.$ac_objext
16626if { (ac_try="$ac_compile"
16627case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16630esac
16631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_compile") 2>conftest.er1
16633 ac_status=$?
16634 grep -v '^ *+' conftest.er1 >conftest.err
16635 rm -f conftest.er1
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16640 { (case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16643esac
16644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_try") 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } &&
16649 { ac_try='test -s conftest.$ac_objext'
16650 { (case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653esac
16654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_try") 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_cv_type_u_int64_t=yes
16660else
16661 echo "$as_me: failed program was:" >&5
16662sed 's/^/| /' conftest.$ac_ext >&5
16663
16664 ac_cv_type_u_int64_t=no
16665fi
16666
16667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668fi
16669{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16670echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16671if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016672
16673cat >>confdefs.h <<_ACEOF
16674#define HAVE_U_INT64_T 1
16675_ACEOF
16676
16677
Misha Brukmanceca9042004-09-02 23:02:30 +000016678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016679 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16680echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16681 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016682fi
16683
John Criswell679ff312004-09-02 18:44:44 +000016684fi
16685
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016686
16687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016688
16689
16690
16691
16692
16693
16694
Reid Spencerdf3be822006-01-23 08:15:53 +000016695for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016696do
16697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16698{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16700if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16702else
16703 cat >conftest.$ac_ext <<_ACEOF
16704/* confdefs.h. */
16705_ACEOF
16706cat confdefs.h >>conftest.$ac_ext
16707cat >>conftest.$ac_ext <<_ACEOF
16708/* end confdefs.h. */
16709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16711#define $ac_func innocuous_$ac_func
16712
16713/* System header to define __stub macros and hopefully few prototypes,
16714 which can conflict with char $ac_func (); below.
16715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16716 <limits.h> exists even on freestanding compilers. */
16717
16718#ifdef __STDC__
16719# include <limits.h>
16720#else
16721# include <assert.h>
16722#endif
16723
16724#undef $ac_func
16725
16726/* Override any GCC internal prototype to avoid an error.
16727 Use char because int might match the return type of a GCC
16728 builtin and then its argument prototype would still apply. */
16729#ifdef __cplusplus
16730extern "C"
16731#endif
16732char $ac_func ();
16733/* The GNU C library defines this for functions which it implements
16734 to always fail with ENOSYS. Some functions are actually named
16735 something starting with __ and the normal name is an alias. */
16736#if defined __stub_$ac_func || defined __stub___$ac_func
16737choke me
16738#endif
16739
16740int
16741main ()
16742{
16743return $ac_func ();
16744 ;
16745 return 0;
16746}
16747_ACEOF
16748rm -f conftest.$ac_objext conftest$ac_exeext
16749if { (ac_try="$ac_link"
16750case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753esac
16754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_link") 2>conftest.er1
16756 ac_status=$?
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } &&
16762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16763 { (case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16766esac
16767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768 (eval "$ac_try") 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; } &&
16772 { ac_try='test -s conftest$ac_exeext'
16773 { (case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16776esac
16777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_try") 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16782 eval "$as_ac_var=yes"
16783else
16784 echo "$as_me: failed program was:" >&5
16785sed 's/^/| /' conftest.$ac_ext >&5
16786
16787 eval "$as_ac_var=no"
16788fi
16789
16790rm -f core conftest.err conftest.$ac_objext \
16791 conftest$ac_exeext conftest.$ac_ext
16792fi
16793ac_res=`eval echo '${'$as_ac_var'}'`
16794 { echo "$as_me:$LINENO: result: $ac_res" >&5
16795echo "${ECHO_T}$ac_res" >&6; }
16796if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016797 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016799_ACEOF
16800
16801fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016802done
John Criswell7a73b802003-06-30 21:59:07 +000016803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016804
16805
16806
16807
Reid Spencer96cf5872007-07-13 10:05:30 +000016808for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016809do
16810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16811{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16813if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816 cat >conftest.$ac_ext <<_ACEOF
16817/* confdefs.h. */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h. */
16822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16824#define $ac_func innocuous_$ac_func
16825
16826/* System header to define __stub macros and hopefully few prototypes,
16827 which can conflict with char $ac_func (); below.
16828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16829 <limits.h> exists even on freestanding compilers. */
16830
16831#ifdef __STDC__
16832# include <limits.h>
16833#else
16834# include <assert.h>
16835#endif
16836
16837#undef $ac_func
16838
16839/* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16842#ifdef __cplusplus
16843extern "C"
16844#endif
16845char $ac_func ();
16846/* The GNU C library defines this for functions which it implements
16847 to always fail with ENOSYS. Some functions are actually named
16848 something starting with __ and the normal name is an alias. */
16849#if defined __stub_$ac_func || defined __stub___$ac_func
16850choke me
16851#endif
16852
16853int
16854main ()
16855{
16856return $ac_func ();
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861rm -f conftest.$ac_objext conftest$ac_exeext
16862if { (ac_try="$ac_link"
16863case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866esac
16867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_link") 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; } &&
16885 { ac_try='test -s conftest$ac_exeext'
16886 { (case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889esac
16890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_try") 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 eval "$as_ac_var=yes"
16896else
16897 echo "$as_me: failed program was:" >&5
16898sed 's/^/| /' conftest.$ac_ext >&5
16899
16900 eval "$as_ac_var=no"
16901fi
16902
16903rm -f core conftest.err conftest.$ac_objext \
16904 conftest$ac_exeext conftest.$ac_ext
16905fi
16906ac_res=`eval echo '${'$as_ac_var'}'`
16907 { echo "$as_me:$LINENO: result: $ac_res" >&5
16908echo "${ECHO_T}$ac_res" >&6; }
16909if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016910 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016912_ACEOF
16913
16914fi
16915done
16916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016917
16918
16919
16920
16921
Reid Spencerb90645c2007-02-16 19:17:20 +000016922for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016923do
16924as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16925{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16926echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16927if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16929else
16930 cat >conftest.$ac_ext <<_ACEOF
16931/* confdefs.h. */
16932_ACEOF
16933cat confdefs.h >>conftest.$ac_ext
16934cat >>conftest.$ac_ext <<_ACEOF
16935/* end confdefs.h. */
16936/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16938#define $ac_func innocuous_$ac_func
16939
16940/* System header to define __stub macros and hopefully few prototypes,
16941 which can conflict with char $ac_func (); below.
16942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16943 <limits.h> exists even on freestanding compilers. */
16944
16945#ifdef __STDC__
16946# include <limits.h>
16947#else
16948# include <assert.h>
16949#endif
16950
16951#undef $ac_func
16952
16953/* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
16956#ifdef __cplusplus
16957extern "C"
16958#endif
16959char $ac_func ();
16960/* The GNU C library defines this for functions which it implements
16961 to always fail with ENOSYS. Some functions are actually named
16962 something starting with __ and the normal name is an alias. */
16963#if defined __stub_$ac_func || defined __stub___$ac_func
16964choke me
16965#endif
16966
16967int
16968main ()
16969{
16970return $ac_func ();
16971 ;
16972 return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext conftest$ac_exeext
16976if { (ac_try="$ac_link"
16977case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980esac
16981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_link") 2>conftest.er1
16983 ac_status=$?
16984 grep -v '^ *+' conftest.er1 >conftest.err
16985 rm -f conftest.er1
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } &&
16989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16990 { (case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993esac
16994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_try") 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003esac
17004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 eval "$as_ac_var=yes"
17010else
17011 echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014 eval "$as_ac_var=no"
17015fi
17016
17017rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17019fi
17020ac_res=`eval echo '${'$as_ac_var'}'`
17021 { echo "$as_me:$LINENO: result: $ac_res" >&5
17022echo "${ECHO_T}$ac_res" >&6; }
17023if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017024 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017025#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017026_ACEOF
17027
17028fi
17029done
17030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017031
17032
17033
Reid Spencerb90645c2007-02-16 19:17:20 +000017034for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017035do
17036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17037{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17039if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041else
17042 cat >conftest.$ac_ext <<_ACEOF
17043/* confdefs.h. */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h. */
17048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17050#define $ac_func innocuous_$ac_func
17051
17052/* System header to define __stub macros and hopefully few prototypes,
17053 which can conflict with char $ac_func (); below.
17054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17055 <limits.h> exists even on freestanding compilers. */
17056
17057#ifdef __STDC__
17058# include <limits.h>
17059#else
17060# include <assert.h>
17061#endif
17062
17063#undef $ac_func
17064
17065/* Override any GCC internal prototype to avoid an error.
17066 Use char because int might match the return type of a GCC
17067 builtin and then its argument prototype would still apply. */
17068#ifdef __cplusplus
17069extern "C"
17070#endif
17071char $ac_func ();
17072/* The GNU C library defines this for functions which it implements
17073 to always fail with ENOSYS. Some functions are actually named
17074 something starting with __ and the normal name is an alias. */
17075#if defined __stub_$ac_func || defined __stub___$ac_func
17076choke me
17077#endif
17078
17079int
17080main ()
17081{
17082return $ac_func ();
17083 ;
17084 return 0;
17085}
17086_ACEOF
17087rm -f conftest.$ac_objext conftest$ac_exeext
17088if { (ac_try="$ac_link"
17089case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092esac
17093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_link") 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } &&
17101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17105esac
17106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest$ac_exeext'
17112 { (case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115esac
17116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_try") 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; }; then
17121 eval "$as_ac_var=yes"
17122else
17123 echo "$as_me: failed program was:" >&5
17124sed 's/^/| /' conftest.$ac_ext >&5
17125
17126 eval "$as_ac_var=no"
17127fi
17128
17129rm -f core conftest.err conftest.$ac_objext \
17130 conftest$ac_exeext conftest.$ac_ext
17131fi
17132ac_res=`eval echo '${'$as_ac_var'}'`
17133 { echo "$as_me:$LINENO: result: $ac_res" >&5
17134echo "${ECHO_T}$ac_res" >&6; }
17135if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017136 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017138_ACEOF
17139
17140fi
17141done
17142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017143
17144
17145
17146
17147
Eric Christophere4291822010-04-16 05:14:21 +000017148
17149for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017150do
17151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17152{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17154if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156else
17157 cat >conftest.$ac_ext <<_ACEOF
17158/* confdefs.h. */
17159_ACEOF
17160cat confdefs.h >>conftest.$ac_ext
17161cat >>conftest.$ac_ext <<_ACEOF
17162/* end confdefs.h. */
17163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17165#define $ac_func innocuous_$ac_func
17166
17167/* System header to define __stub macros and hopefully few prototypes,
17168 which can conflict with char $ac_func (); below.
17169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17170 <limits.h> exists even on freestanding compilers. */
17171
17172#ifdef __STDC__
17173# include <limits.h>
17174#else
17175# include <assert.h>
17176#endif
17177
17178#undef $ac_func
17179
17180/* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17183#ifdef __cplusplus
17184extern "C"
17185#endif
17186char $ac_func ();
17187/* The GNU C library defines this for functions which it implements
17188 to always fail with ENOSYS. Some functions are actually named
17189 something starting with __ and the normal name is an alias. */
17190#if defined __stub_$ac_func || defined __stub___$ac_func
17191choke me
17192#endif
17193
17194int
17195main ()
17196{
17197return $ac_func ();
17198 ;
17199 return 0;
17200}
17201_ACEOF
17202rm -f conftest.$ac_objext conftest$ac_exeext
17203if { (ac_try="$ac_link"
17204case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207esac
17208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_link") 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17220esac
17221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; } &&
17226 { ac_try='test -s conftest$ac_exeext'
17227 { (case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230esac
17231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_try") 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 eval "$as_ac_var=yes"
17237else
17238 echo "$as_me: failed program was:" >&5
17239sed 's/^/| /' conftest.$ac_ext >&5
17240
17241 eval "$as_ac_var=no"
17242fi
17243
17244rm -f core conftest.err conftest.$ac_objext \
17245 conftest$ac_exeext conftest.$ac_ext
17246fi
17247ac_res=`eval echo '${'$as_ac_var'}'`
17248 { echo "$as_me:$LINENO: result: $ac_res" >&5
17249echo "${ECHO_T}$ac_res" >&6; }
17250if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017251 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017253_ACEOF
17254
17255fi
17256done
Reid Spencerdf3be822006-01-23 08:15:53 +000017257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017258
17259
17260
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017261for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017262do
17263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17264{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17266if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268else
17269 cat >conftest.$ac_ext <<_ACEOF
17270/* confdefs.h. */
17271_ACEOF
17272cat confdefs.h >>conftest.$ac_ext
17273cat >>conftest.$ac_ext <<_ACEOF
17274/* end confdefs.h. */
17275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17277#define $ac_func innocuous_$ac_func
17278
17279/* System header to define __stub macros and hopefully few prototypes,
17280 which can conflict with char $ac_func (); below.
17281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17282 <limits.h> exists even on freestanding compilers. */
17283
17284#ifdef __STDC__
17285# include <limits.h>
17286#else
17287# include <assert.h>
17288#endif
17289
17290#undef $ac_func
17291
17292/* Override any GCC internal prototype to avoid an error.
17293 Use char because int might match the return type of a GCC
17294 builtin and then its argument prototype would still apply. */
17295#ifdef __cplusplus
17296extern "C"
17297#endif
17298char $ac_func ();
17299/* The GNU C library defines this for functions which it implements
17300 to always fail with ENOSYS. Some functions are actually named
17301 something starting with __ and the normal name is an alias. */
17302#if defined __stub_$ac_func || defined __stub___$ac_func
17303choke me
17304#endif
17305
17306int
17307main ()
17308{
17309return $ac_func ();
17310 ;
17311 return 0;
17312}
17313_ACEOF
17314rm -f conftest.$ac_objext conftest$ac_exeext
17315if { (ac_try="$ac_link"
17316case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319esac
17320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_link") 2>conftest.er1
17322 ac_status=$?
17323 grep -v '^ *+' conftest.er1 >conftest.err
17324 rm -f conftest.er1
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17329 { (case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17332esac
17333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_try") 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest$ac_exeext'
17339 { (case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17342esac
17343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_try") 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348 eval "$as_ac_var=yes"
17349else
17350 echo "$as_me: failed program was:" >&5
17351sed 's/^/| /' conftest.$ac_ext >&5
17352
17353 eval "$as_ac_var=no"
17354fi
17355
17356rm -f core conftest.err conftest.$ac_objext \
17357 conftest$ac_exeext conftest.$ac_ext
17358fi
17359ac_res=`eval echo '${'$as_ac_var'}'`
17360 { echo "$as_me:$LINENO: result: $ac_res" >&5
17361echo "${ECHO_T}$ac_res" >&6; }
17362if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017363 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017365_ACEOF
17366
17367fi
17368done
17369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017370
17371
17372
17373
Chris Lattner511f11d2005-11-14 07:25:50 +000017374for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017375do
17376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17377{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17379if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17381else
17382 cat >conftest.$ac_ext <<_ACEOF
17383/* confdefs.h. */
17384_ACEOF
17385cat confdefs.h >>conftest.$ac_ext
17386cat >>conftest.$ac_ext <<_ACEOF
17387/* end confdefs.h. */
17388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17390#define $ac_func innocuous_$ac_func
17391
17392/* System header to define __stub macros and hopefully few prototypes,
17393 which can conflict with char $ac_func (); below.
17394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17395 <limits.h> exists even on freestanding compilers. */
17396
17397#ifdef __STDC__
17398# include <limits.h>
17399#else
17400# include <assert.h>
17401#endif
17402
17403#undef $ac_func
17404
17405/* Override any GCC internal prototype to avoid an error.
17406 Use char because int might match the return type of a GCC
17407 builtin and then its argument prototype would still apply. */
17408#ifdef __cplusplus
17409extern "C"
17410#endif
17411char $ac_func ();
17412/* The GNU C library defines this for functions which it implements
17413 to always fail with ENOSYS. Some functions are actually named
17414 something starting with __ and the normal name is an alias. */
17415#if defined __stub_$ac_func || defined __stub___$ac_func
17416choke me
17417#endif
17418
17419int
17420main ()
17421{
17422return $ac_func ();
17423 ;
17424 return 0;
17425}
17426_ACEOF
17427rm -f conftest.$ac_objext conftest$ac_exeext
17428if { (ac_try="$ac_link"
17429case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17432esac
17433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_link") 2>conftest.er1
17435 ac_status=$?
17436 grep -v '^ *+' conftest.er1 >conftest.err
17437 rm -f conftest.er1
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
17441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17442 { (case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445esac
17446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_try") 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; } &&
17451 { ac_try='test -s conftest$ac_exeext'
17452 { (case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17455esac
17456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457 (eval "$ac_try") 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 eval "$as_ac_var=yes"
17462else
17463 echo "$as_me: failed program was:" >&5
17464sed 's/^/| /' conftest.$ac_ext >&5
17465
17466 eval "$as_ac_var=no"
17467fi
17468
17469rm -f core conftest.err conftest.$ac_objext \
17470 conftest$ac_exeext conftest.$ac_ext
17471fi
17472ac_res=`eval echo '${'$as_ac_var'}'`
17473 { echo "$as_me:$LINENO: result: $ac_res" >&5
17474echo "${ECHO_T}$ac_res" >&6; }
17475if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017476 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017478_ACEOF
17479
17480fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017481done
John Criswell7a73b802003-06-30 21:59:07 +000017482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017483
17484
17485
17486
Daniel Dunbar3e462932011-02-03 02:40:02 +000017487
17488for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017489do
17490as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17491{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17493if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17495else
17496 cat >conftest.$ac_ext <<_ACEOF
17497/* confdefs.h. */
17498_ACEOF
17499cat confdefs.h >>conftest.$ac_ext
17500cat >>conftest.$ac_ext <<_ACEOF
17501/* end confdefs.h. */
17502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17504#define $ac_func innocuous_$ac_func
17505
17506/* System header to define __stub macros and hopefully few prototypes,
17507 which can conflict with char $ac_func (); below.
17508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17509 <limits.h> exists even on freestanding compilers. */
17510
17511#ifdef __STDC__
17512# include <limits.h>
17513#else
17514# include <assert.h>
17515#endif
17516
17517#undef $ac_func
17518
17519/* Override any GCC internal prototype to avoid an error.
17520 Use char because int might match the return type of a GCC
17521 builtin and then its argument prototype would still apply. */
17522#ifdef __cplusplus
17523extern "C"
17524#endif
17525char $ac_func ();
17526/* The GNU C library defines this for functions which it implements
17527 to always fail with ENOSYS. Some functions are actually named
17528 something starting with __ and the normal name is an alias. */
17529#if defined __stub_$ac_func || defined __stub___$ac_func
17530choke me
17531#endif
17532
17533int
17534main ()
17535{
17536return $ac_func ();
17537 ;
17538 return 0;
17539}
17540_ACEOF
17541rm -f conftest.$ac_objext conftest$ac_exeext
17542if { (ac_try="$ac_link"
17543case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546esac
17547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_link") 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17556 { (case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559esac
17560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_try") 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest$ac_exeext'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17569esac
17570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17575 eval "$as_ac_var=yes"
17576else
17577 echo "$as_me: failed program was:" >&5
17578sed 's/^/| /' conftest.$ac_ext >&5
17579
17580 eval "$as_ac_var=no"
17581fi
17582
17583rm -f core conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17585fi
17586ac_res=`eval echo '${'$as_ac_var'}'`
17587 { echo "$as_me:$LINENO: result: $ac_res" >&5
17588echo "${ECHO_T}$ac_res" >&6; }
17589if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017590 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017591#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017592_ACEOF
17593
17594fi
17595done
17596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017597{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17598echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17599if test "${llvm_cv_c_printf_a+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017601else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017602 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017603ac_cpp='$CPP $CPPFLAGS'
17604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17606ac_compiler_gnu=$ac_cv_c_compiler_gnu
17607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017608 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017609 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017610else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017611 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017613 /* confdefs.h. */
17614_ACEOF
17615cat confdefs.h >>conftest.$ac_ext
17616cat >>conftest.$ac_ext <<_ACEOF
17617/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017618
John Criswella0137d32003-10-13 16:22:01 +000017619#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017620#include <stdlib.h>
17621
John Criswella0137d32003-10-13 16:22:01 +000017622int
17623main ()
17624{
17625
Reid Spencer2706f8c2004-09-19 23:53:36 +000017626volatile double A, B;
17627char Buffer[100];
17628A = 1;
17629A /= 10.0;
17630sprintf(Buffer, "%a", A);
17631B = atof(Buffer);
17632if (A != B)
17633 return (1);
17634if (A != 0x1.999999999999ap-4)
17635 return (1);
17636return (0);
John Criswella0137d32003-10-13 16:22:01 +000017637 ;
17638 return 0;
17639}
17640_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017641rm -f conftest$ac_exeext
17642if { (ac_try="$ac_link"
17643case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17646esac
17647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_link") 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17652 { (case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17655esac
17656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_try") 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017661 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017663 echo "$as_me: program exited with status $ac_status" >&5
17664echo "$as_me: failed program was:" >&5
17665sed 's/^/| /' conftest.$ac_ext >&5
17666
17667( exit $ac_status )
17668llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017670rm -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 +000017671fi
Reid Spencera773bd52006-08-04 18:18:08 +000017672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017673
Reid Spencer2706f8c2004-09-19 23:53:36 +000017674 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017675ac_cpp='$CPP $CPPFLAGS'
17676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17678ac_compiler_gnu=$ac_cv_c_compiler_gnu
17679
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017681{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17682echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017683 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017685cat >>confdefs.h <<\_ACEOF
17686#define HAVE_PRINTF_A 1
17687_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017688
Reid Spencer2706f8c2004-09-19 23:53:36 +000017689 fi
John Criswella0137d32003-10-13 16:22:01 +000017690
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017692{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17693echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17694if test "${ac_cv_func_rand48+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017696else
Reid Spencera773bd52006-08-04 18:18:08 +000017697 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017698ac_cpp='$CXXCPP $CPPFLAGS'
17699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017703 cat >conftest.$ac_ext <<_ACEOF
17704/* confdefs.h. */
17705_ACEOF
17706cat confdefs.h >>conftest.$ac_ext
17707cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017708/* end confdefs.h. */
17709#include <stdlib.h>
17710int
17711main ()
17712{
17713srand48(0);lrand48();drand48();
17714 ;
17715 return 0;
17716}
17717_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017718rm -f conftest.$ac_objext
17719if { (ac_try="$ac_compile"
17720case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723esac
17724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_compile") 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest.$ac_objext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746esac
17747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017752 ac_cv_func_rand48=yes
17753else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017754 echo "$as_me: failed program was:" >&5
17755sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017759
Reid Spencera773bd52006-08-04 18:18:08 +000017760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017761 ac_ext=c
17762ac_cpp='$CPP $CPPFLAGS'
17763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17765ac_compiler_gnu=$ac_cv_c_compiler_gnu
17766
17767fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017768{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17769echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017770
17771if test "$ac_cv_func_rand48" = "yes" ; then
17772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017773cat >>confdefs.h <<\_ACEOF
17774#define HAVE_RAND48 1
17775_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017776
17777fi
John Criswell0021c312004-02-13 21:57:29 +000017778
17779
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017780{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17781echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17782if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17784else
17785 cat >conftest.$ac_ext <<_ACEOF
17786/* confdefs.h. */
17787_ACEOF
17788cat confdefs.h >>conftest.$ac_ext
17789cat >>conftest.$ac_ext <<_ACEOF
17790/* end confdefs.h. */
17791$ac_includes_default
17792int
17793main ()
17794{
17795#ifndef strerror_s
17796 char *p = (char *) strerror_s;
17797 return !p;
17798#endif
17799
17800 ;
17801 return 0;
17802}
17803_ACEOF
17804rm -f conftest.$ac_objext
17805if { (ac_try="$ac_compile"
17806case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809esac
17810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_compile") 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17819 { (case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17822esac
17823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_try") 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832esac
17833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_have_decl_strerror_s=yes
17839else
17840 echo "$as_me: failed program was:" >&5
17841sed 's/^/| /' conftest.$ac_ext >&5
17842
17843 ac_cv_have_decl_strerror_s=no
17844fi
17845
17846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17847fi
17848{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17849echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17850if test $ac_cv_have_decl_strerror_s = yes; then
17851
17852cat >>confdefs.h <<_ACEOF
17853#define HAVE_DECL_STRERROR_S 1
17854_ACEOF
17855
17856
17857else
17858 cat >>confdefs.h <<_ACEOF
17859#define HAVE_DECL_STRERROR_S 0
17860_ACEOF
17861
17862
17863fi
17864
17865
17866
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017867if test "$llvm_cv_os_type" = "MingW" ; then
17868 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17869echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17870if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872else
17873 ac_check_lib_save_LIBS=$LIBS
17874LIBS="-lgcc $LIBS"
17875cat >conftest.$ac_ext <<_ACEOF
17876/* confdefs.h. */
17877_ACEOF
17878cat confdefs.h >>conftest.$ac_ext
17879cat >>conftest.$ac_ext <<_ACEOF
17880/* end confdefs.h. */
17881
17882/* Override any GCC internal prototype to avoid an error.
17883 Use char because int might match the return type of a GCC
17884 builtin and then its argument prototype would still apply. */
17885#ifdef __cplusplus
17886extern "C"
17887#endif
17888char _alloca ();
17889int
17890main ()
17891{
17892return _alloca ();
17893 ;
17894 return 0;
17895}
17896_ACEOF
17897rm -f conftest.$ac_objext conftest$ac_exeext
17898if { (ac_try="$ac_link"
17899case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17902esac
17903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_link") 2>conftest.er1
17905 ac_status=$?
17906 grep -v '^ *+' conftest.er1 >conftest.err
17907 rm -f conftest.er1
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17912 { (case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17915esac
17916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_try") 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; } &&
17921 { ac_try='test -s conftest$ac_exeext'
17922 { (case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17925esac
17926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_try") 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 ac_cv_lib_gcc__alloca=yes
17932else
17933 echo "$as_me: failed program was:" >&5
17934sed 's/^/| /' conftest.$ac_ext >&5
17935
17936 ac_cv_lib_gcc__alloca=no
17937fi
17938
17939rm -f core conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17941LIBS=$ac_check_lib_save_LIBS
17942fi
17943{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17944echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17945if test $ac_cv_lib_gcc__alloca = yes; then
17946
17947cat >>confdefs.h <<\_ACEOF
17948#define HAVE__ALLOCA 1
17949_ACEOF
17950
17951fi
17952
17953 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17954echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17955if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957else
17958 ac_check_lib_save_LIBS=$LIBS
17959LIBS="-lgcc $LIBS"
17960cat >conftest.$ac_ext <<_ACEOF
17961/* confdefs.h. */
17962_ACEOF
17963cat confdefs.h >>conftest.$ac_ext
17964cat >>conftest.$ac_ext <<_ACEOF
17965/* end confdefs.h. */
17966
17967/* Override any GCC internal prototype to avoid an error.
17968 Use char because int might match the return type of a GCC
17969 builtin and then its argument prototype would still apply. */
17970#ifdef __cplusplus
17971extern "C"
17972#endif
17973char __alloca ();
17974int
17975main ()
17976{
17977return __alloca ();
17978 ;
17979 return 0;
17980}
17981_ACEOF
17982rm -f conftest.$ac_objext conftest$ac_exeext
17983if { (ac_try="$ac_link"
17984case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17987esac
17988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_link") 2>conftest.er1
17990 ac_status=$?
17991 grep -v '^ *+' conftest.er1 >conftest.err
17992 rm -f conftest.er1
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17997 { (case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000esac
18001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_try") 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try='test -s conftest$ac_exeext'
18007 { (case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18010esac
18011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_try") 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 ac_cv_lib_gcc___alloca=yes
18017else
18018 echo "$as_me: failed program was:" >&5
18019sed 's/^/| /' conftest.$ac_ext >&5
18020
18021 ac_cv_lib_gcc___alloca=no
18022fi
18023
18024rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18026LIBS=$ac_check_lib_save_LIBS
18027fi
18028{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18029echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18030if test $ac_cv_lib_gcc___alloca = yes; then
18031
18032cat >>confdefs.h <<\_ACEOF
18033#define HAVE___ALLOCA 1
18034_ACEOF
18035
18036fi
18037
18038 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18039echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18040if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18042else
18043 ac_check_lib_save_LIBS=$LIBS
18044LIBS="-lgcc $LIBS"
18045cat >conftest.$ac_ext <<_ACEOF
18046/* confdefs.h. */
18047_ACEOF
18048cat confdefs.h >>conftest.$ac_ext
18049cat >>conftest.$ac_ext <<_ACEOF
18050/* end confdefs.h. */
18051
18052/* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
18055#ifdef __cplusplus
18056extern "C"
18057#endif
18058char __chkstk ();
18059int
18060main ()
18061{
18062return __chkstk ();
18063 ;
18064 return 0;
18065}
18066_ACEOF
18067rm -f conftest.$ac_objext conftest$ac_exeext
18068if { (ac_try="$ac_link"
18069case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18072esac
18073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_link") 2>conftest.er1
18075 ac_status=$?
18076 grep -v '^ *+' conftest.er1 >conftest.err
18077 rm -f conftest.er1
18078 cat conftest.err >&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } &&
18081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18082 { (case "(($ac_try" in
18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084 *) ac_try_echo=$ac_try;;
18085esac
18086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087 (eval "$ac_try") 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } &&
18091 { ac_try='test -s conftest$ac_exeext'
18092 { (case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18095esac
18096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_try") 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101 ac_cv_lib_gcc___chkstk=yes
18102else
18103 echo "$as_me: failed program was:" >&5
18104sed 's/^/| /' conftest.$ac_ext >&5
18105
18106 ac_cv_lib_gcc___chkstk=no
18107fi
18108
18109rm -f core conftest.err conftest.$ac_objext \
18110 conftest$ac_exeext conftest.$ac_ext
18111LIBS=$ac_check_lib_save_LIBS
18112fi
18113{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18114echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18115if test $ac_cv_lib_gcc___chkstk = yes; then
18116
18117cat >>confdefs.h <<\_ACEOF
18118#define HAVE___CHKSTK 1
18119_ACEOF
18120
18121fi
18122
18123 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18124echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18125if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18127else
18128 ac_check_lib_save_LIBS=$LIBS
18129LIBS="-lgcc $LIBS"
18130cat >conftest.$ac_ext <<_ACEOF
18131/* confdefs.h. */
18132_ACEOF
18133cat confdefs.h >>conftest.$ac_ext
18134cat >>conftest.$ac_ext <<_ACEOF
18135/* end confdefs.h. */
18136
18137/* Override any GCC internal prototype to avoid an error.
18138 Use char because int might match the return type of a GCC
18139 builtin and then its argument prototype would still apply. */
18140#ifdef __cplusplus
18141extern "C"
18142#endif
18143char ___chkstk ();
18144int
18145main ()
18146{
18147return ___chkstk ();
18148 ;
18149 return 0;
18150}
18151_ACEOF
18152rm -f conftest.$ac_objext conftest$ac_exeext
18153if { (ac_try="$ac_link"
18154case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157esac
18158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_link") 2>conftest.er1
18160 ac_status=$?
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18167 { (case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170esac
18171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_try") 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; } &&
18176 { ac_try='test -s conftest$ac_exeext'
18177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180esac
18181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; }; then
18186 ac_cv_lib_gcc____chkstk=yes
18187else
18188 echo "$as_me: failed program was:" >&5
18189sed 's/^/| /' conftest.$ac_ext >&5
18190
18191 ac_cv_lib_gcc____chkstk=no
18192fi
18193
18194rm -f core conftest.err conftest.$ac_objext \
18195 conftest$ac_exeext conftest.$ac_ext
18196LIBS=$ac_check_lib_save_LIBS
18197fi
18198{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18199echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18200if test $ac_cv_lib_gcc____chkstk = yes; then
18201
18202cat >>confdefs.h <<\_ACEOF
18203#define HAVE____CHKSTK 1
18204_ACEOF
18205
18206fi
18207
18208
18209 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18210echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18211if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18213else
18214 ac_check_lib_save_LIBS=$LIBS
18215LIBS="-lgcc $LIBS"
18216cat >conftest.$ac_ext <<_ACEOF
18217/* confdefs.h. */
18218_ACEOF
18219cat confdefs.h >>conftest.$ac_ext
18220cat >>conftest.$ac_ext <<_ACEOF
18221/* end confdefs.h. */
18222
18223/* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18226#ifdef __cplusplus
18227extern "C"
18228#endif
18229char __ashldi3 ();
18230int
18231main ()
18232{
18233return __ashldi3 ();
18234 ;
18235 return 0;
18236}
18237_ACEOF
18238rm -f conftest.$ac_objext conftest$ac_exeext
18239if { (ac_try="$ac_link"
18240case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243esac
18244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256esac
18257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
18263 { (case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18266esac
18267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_try") 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272 ac_cv_lib_gcc___ashldi3=yes
18273else
18274 echo "$as_me: failed program was:" >&5
18275sed 's/^/| /' conftest.$ac_ext >&5
18276
18277 ac_cv_lib_gcc___ashldi3=no
18278fi
18279
18280rm -f core conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18282LIBS=$ac_check_lib_save_LIBS
18283fi
18284{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18285echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18286if test $ac_cv_lib_gcc___ashldi3 = yes; then
18287
18288cat >>confdefs.h <<\_ACEOF
18289#define HAVE___ASHLDI3 1
18290_ACEOF
18291
18292fi
18293
18294 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18295echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18296if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298else
18299 ac_check_lib_save_LIBS=$LIBS
18300LIBS="-lgcc $LIBS"
18301cat >conftest.$ac_ext <<_ACEOF
18302/* confdefs.h. */
18303_ACEOF
18304cat confdefs.h >>conftest.$ac_ext
18305cat >>conftest.$ac_ext <<_ACEOF
18306/* end confdefs.h. */
18307
18308/* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18311#ifdef __cplusplus
18312extern "C"
18313#endif
18314char __ashrdi3 ();
18315int
18316main ()
18317{
18318return __ashrdi3 ();
18319 ;
18320 return 0;
18321}
18322_ACEOF
18323rm -f conftest.$ac_objext conftest$ac_exeext
18324if { (ac_try="$ac_link"
18325case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328esac
18329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_link") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18341esac
18342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest$ac_exeext'
18348 { (case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351esac
18352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_try") 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_cv_lib_gcc___ashrdi3=yes
18358else
18359 echo "$as_me: failed program was:" >&5
18360sed 's/^/| /' conftest.$ac_ext >&5
18361
18362 ac_cv_lib_gcc___ashrdi3=no
18363fi
18364
18365rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18367LIBS=$ac_check_lib_save_LIBS
18368fi
18369{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18370echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18371if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18372
18373cat >>confdefs.h <<\_ACEOF
18374#define HAVE___ASHRDI3 1
18375_ACEOF
18376
18377fi
18378
18379 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18380echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18381if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18383else
18384 ac_check_lib_save_LIBS=$LIBS
18385LIBS="-lgcc $LIBS"
18386cat >conftest.$ac_ext <<_ACEOF
18387/* confdefs.h. */
18388_ACEOF
18389cat confdefs.h >>conftest.$ac_ext
18390cat >>conftest.$ac_ext <<_ACEOF
18391/* end confdefs.h. */
18392
18393/* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18396#ifdef __cplusplus
18397extern "C"
18398#endif
18399char __divdi3 ();
18400int
18401main ()
18402{
18403return __divdi3 ();
18404 ;
18405 return 0;
18406}
18407_ACEOF
18408rm -f conftest.$ac_objext conftest$ac_exeext
18409if { (ac_try="$ac_link"
18410case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413esac
18414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_link") 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18426esac
18427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436esac
18437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_try") 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_cv_lib_gcc___divdi3=yes
18443else
18444 echo "$as_me: failed program was:" >&5
18445sed 's/^/| /' conftest.$ac_ext >&5
18446
18447 ac_cv_lib_gcc___divdi3=no
18448fi
18449
18450rm -f core conftest.err conftest.$ac_objext \
18451 conftest$ac_exeext conftest.$ac_ext
18452LIBS=$ac_check_lib_save_LIBS
18453fi
18454{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18455echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18456if test $ac_cv_lib_gcc___divdi3 = yes; then
18457
18458cat >>confdefs.h <<\_ACEOF
18459#define HAVE___DIVDI3 1
18460_ACEOF
18461
18462fi
18463
18464 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18465echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18466if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468else
18469 ac_check_lib_save_LIBS=$LIBS
18470LIBS="-lgcc $LIBS"
18471cat >conftest.$ac_ext <<_ACEOF
18472/* confdefs.h. */
18473_ACEOF
18474cat confdefs.h >>conftest.$ac_ext
18475cat >>conftest.$ac_ext <<_ACEOF
18476/* end confdefs.h. */
18477
18478/* Override any GCC internal prototype to avoid an error.
18479 Use char because int might match the return type of a GCC
18480 builtin and then its argument prototype would still apply. */
18481#ifdef __cplusplus
18482extern "C"
18483#endif
18484char __fixdfdi ();
18485int
18486main ()
18487{
18488return __fixdfdi ();
18489 ;
18490 return 0;
18491}
18492_ACEOF
18493rm -f conftest.$ac_objext conftest$ac_exeext
18494if { (ac_try="$ac_link"
18495case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498esac
18499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_link") 2>conftest.er1
18501 ac_status=$?
18502 grep -v '^ *+' conftest.er1 >conftest.err
18503 rm -f conftest.er1
18504 cat conftest.err >&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511esac
18512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest$ac_exeext'
18518 { (case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521esac
18522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_try") 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; }; then
18527 ac_cv_lib_gcc___fixdfdi=yes
18528else
18529 echo "$as_me: failed program was:" >&5
18530sed 's/^/| /' conftest.$ac_ext >&5
18531
18532 ac_cv_lib_gcc___fixdfdi=no
18533fi
18534
18535rm -f core conftest.err conftest.$ac_objext \
18536 conftest$ac_exeext conftest.$ac_ext
18537LIBS=$ac_check_lib_save_LIBS
18538fi
18539{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18540echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18541if test $ac_cv_lib_gcc___fixdfdi = yes; then
18542
18543cat >>confdefs.h <<\_ACEOF
18544#define HAVE___FIXDFDI 1
18545_ACEOF
18546
18547fi
18548
18549 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18550echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18551if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553else
18554 ac_check_lib_save_LIBS=$LIBS
18555LIBS="-lgcc $LIBS"
18556cat >conftest.$ac_ext <<_ACEOF
18557/* confdefs.h. */
18558_ACEOF
18559cat confdefs.h >>conftest.$ac_ext
18560cat >>conftest.$ac_ext <<_ACEOF
18561/* end confdefs.h. */
18562
18563/* Override any GCC internal prototype to avoid an error.
18564 Use char because int might match the return type of a GCC
18565 builtin and then its argument prototype would still apply. */
18566#ifdef __cplusplus
18567extern "C"
18568#endif
18569char __fixsfdi ();
18570int
18571main ()
18572{
18573return __fixsfdi ();
18574 ;
18575 return 0;
18576}
18577_ACEOF
18578rm -f conftest.$ac_objext conftest$ac_exeext
18579if { (ac_try="$ac_link"
18580case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18583esac
18584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_link") 2>conftest.er1
18586 ac_status=$?
18587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18593 { (case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18596esac
18597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_try") 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest$ac_exeext'
18603 { (case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18606esac
18607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_try") 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; }; then
18612 ac_cv_lib_gcc___fixsfdi=yes
18613else
18614 echo "$as_me: failed program was:" >&5
18615sed 's/^/| /' conftest.$ac_ext >&5
18616
18617 ac_cv_lib_gcc___fixsfdi=no
18618fi
18619
18620rm -f core conftest.err conftest.$ac_objext \
18621 conftest$ac_exeext conftest.$ac_ext
18622LIBS=$ac_check_lib_save_LIBS
18623fi
18624{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18625echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18626if test $ac_cv_lib_gcc___fixsfdi = yes; then
18627
18628cat >>confdefs.h <<\_ACEOF
18629#define HAVE___FIXSFDI 1
18630_ACEOF
18631
18632fi
18633
18634 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18635echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18636if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18638else
18639 ac_check_lib_save_LIBS=$LIBS
18640LIBS="-lgcc $LIBS"
18641cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647
18648/* Override any GCC internal prototype to avoid an error.
18649 Use char because int might match the return type of a GCC
18650 builtin and then its argument prototype would still apply. */
18651#ifdef __cplusplus
18652extern "C"
18653#endif
18654char __floatdidf ();
18655int
18656main ()
18657{
18658return __floatdidf ();
18659 ;
18660 return 0;
18661}
18662_ACEOF
18663rm -f conftest.$ac_objext conftest$ac_exeext
18664if { (ac_try="$ac_link"
18665case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668esac
18669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_link") 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
18677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18678 { (case "(($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_try") 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest$ac_exeext'
18688 { (case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691esac
18692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_try") 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_cv_lib_gcc___floatdidf=yes
18698else
18699 echo "$as_me: failed program was:" >&5
18700sed 's/^/| /' conftest.$ac_ext >&5
18701
18702 ac_cv_lib_gcc___floatdidf=no
18703fi
18704
18705rm -f core conftest.err conftest.$ac_objext \
18706 conftest$ac_exeext conftest.$ac_ext
18707LIBS=$ac_check_lib_save_LIBS
18708fi
18709{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18710echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18711if test $ac_cv_lib_gcc___floatdidf = yes; then
18712
18713cat >>confdefs.h <<\_ACEOF
18714#define HAVE___FLOATDIDF 1
18715_ACEOF
18716
18717fi
18718
18719 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18720echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18721if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18723else
18724 ac_check_lib_save_LIBS=$LIBS
18725LIBS="-lgcc $LIBS"
18726cat >conftest.$ac_ext <<_ACEOF
18727/* confdefs.h. */
18728_ACEOF
18729cat confdefs.h >>conftest.$ac_ext
18730cat >>conftest.$ac_ext <<_ACEOF
18731/* end confdefs.h. */
18732
18733/* Override any GCC internal prototype to avoid an error.
18734 Use char because int might match the return type of a GCC
18735 builtin and then its argument prototype would still apply. */
18736#ifdef __cplusplus
18737extern "C"
18738#endif
18739char __lshrdi3 ();
18740int
18741main ()
18742{
18743return __lshrdi3 ();
18744 ;
18745 return 0;
18746}
18747_ACEOF
18748rm -f conftest.$ac_objext conftest$ac_exeext
18749if { (ac_try="$ac_link"
18750case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753esac
18754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_link") 2>conftest.er1
18756 ac_status=$?
18757 grep -v '^ *+' conftest.er1 >conftest.err
18758 rm -f conftest.er1
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } &&
18762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18763 { (case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18766esac
18767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_try") 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; } &&
18772 { ac_try='test -s conftest$ac_exeext'
18773 { (case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776esac
18777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_try") 2>&5
18779 ac_status=$?
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; }; then
18782 ac_cv_lib_gcc___lshrdi3=yes
18783else
18784 echo "$as_me: failed program was:" >&5
18785sed 's/^/| /' conftest.$ac_ext >&5
18786
18787 ac_cv_lib_gcc___lshrdi3=no
18788fi
18789
18790rm -f core conftest.err conftest.$ac_objext \
18791 conftest$ac_exeext conftest.$ac_ext
18792LIBS=$ac_check_lib_save_LIBS
18793fi
18794{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18795echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18796if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18797
18798cat >>confdefs.h <<\_ACEOF
18799#define HAVE___LSHRDI3 1
18800_ACEOF
18801
18802fi
18803
18804 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18805echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18806if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18808else
18809 ac_check_lib_save_LIBS=$LIBS
18810LIBS="-lgcc $LIBS"
18811cat >conftest.$ac_ext <<_ACEOF
18812/* confdefs.h. */
18813_ACEOF
18814cat confdefs.h >>conftest.$ac_ext
18815cat >>conftest.$ac_ext <<_ACEOF
18816/* end confdefs.h. */
18817
18818/* Override any GCC internal prototype to avoid an error.
18819 Use char because int might match the return type of a GCC
18820 builtin and then its argument prototype would still apply. */
18821#ifdef __cplusplus
18822extern "C"
18823#endif
18824char __moddi3 ();
18825int
18826main ()
18827{
18828return __moddi3 ();
18829 ;
18830 return 0;
18831}
18832_ACEOF
18833rm -f conftest.$ac_objext conftest$ac_exeext
18834if { (ac_try="$ac_link"
18835case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838esac
18839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_link") 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18848 { (case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851esac
18852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_try") 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; } &&
18857 { ac_try='test -s conftest$ac_exeext'
18858 { (case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18861esac
18862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_try") 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18867 ac_cv_lib_gcc___moddi3=yes
18868else
18869 echo "$as_me: failed program was:" >&5
18870sed 's/^/| /' conftest.$ac_ext >&5
18871
18872 ac_cv_lib_gcc___moddi3=no
18873fi
18874
18875rm -f core conftest.err conftest.$ac_objext \
18876 conftest$ac_exeext conftest.$ac_ext
18877LIBS=$ac_check_lib_save_LIBS
18878fi
18879{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18880echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18881if test $ac_cv_lib_gcc___moddi3 = yes; then
18882
18883cat >>confdefs.h <<\_ACEOF
18884#define HAVE___MODDI3 1
18885_ACEOF
18886
18887fi
18888
18889 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18890echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18891if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18893else
18894 ac_check_lib_save_LIBS=$LIBS
18895LIBS="-lgcc $LIBS"
18896cat >conftest.$ac_ext <<_ACEOF
18897/* confdefs.h. */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h. */
18902
18903/* Override any GCC internal prototype to avoid an error.
18904 Use char because int might match the return type of a GCC
18905 builtin and then its argument prototype would still apply. */
18906#ifdef __cplusplus
18907extern "C"
18908#endif
18909char __udivdi3 ();
18910int
18911main ()
18912{
18913return __udivdi3 ();
18914 ;
18915 return 0;
18916}
18917_ACEOF
18918rm -f conftest.$ac_objext conftest$ac_exeext
18919if { (ac_try="$ac_link"
18920case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923esac
18924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_link") 2>conftest.er1
18926 ac_status=$?
18927 grep -v '^ *+' conftest.er1 >conftest.err
18928 rm -f conftest.er1
18929 cat conftest.err >&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18933 { (case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936esac
18937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_try") 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; } &&
18942 { ac_try='test -s conftest$ac_exeext'
18943 { (case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18946esac
18947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_try") 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18952 ac_cv_lib_gcc___udivdi3=yes
18953else
18954 echo "$as_me: failed program was:" >&5
18955sed 's/^/| /' conftest.$ac_ext >&5
18956
18957 ac_cv_lib_gcc___udivdi3=no
18958fi
18959
18960rm -f core conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18962LIBS=$ac_check_lib_save_LIBS
18963fi
18964{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18965echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18966if test $ac_cv_lib_gcc___udivdi3 = yes; then
18967
18968cat >>confdefs.h <<\_ACEOF
18969#define HAVE___UDIVDI3 1
18970_ACEOF
18971
18972fi
18973
18974 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18975echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18976if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18978else
18979 ac_check_lib_save_LIBS=$LIBS
18980LIBS="-lgcc $LIBS"
18981cat >conftest.$ac_ext <<_ACEOF
18982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
18987
18988/* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18991#ifdef __cplusplus
18992extern "C"
18993#endif
18994char __umoddi3 ();
18995int
18996main ()
18997{
18998return __umoddi3 ();
18999 ;
19000 return 0;
19001}
19002_ACEOF
19003rm -f conftest.$ac_objext conftest$ac_exeext
19004if { (ac_try="$ac_link"
19005case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_link") 2>conftest.er1
19011 ac_status=$?
19012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
19017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19021esac
19022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest$ac_exeext'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031esac
19032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 ac_cv_lib_gcc___umoddi3=yes
19038else
19039 echo "$as_me: failed program was:" >&5
19040sed 's/^/| /' conftest.$ac_ext >&5
19041
19042 ac_cv_lib_gcc___umoddi3=no
19043fi
19044
19045rm -f core conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
19047LIBS=$ac_check_lib_save_LIBS
19048fi
19049{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19050echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19051if test $ac_cv_lib_gcc___umoddi3 = yes; then
19052
19053cat >>confdefs.h <<\_ACEOF
19054#define HAVE___UMODDI3 1
19055_ACEOF
19056
19057fi
19058
19059
19060 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19061echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19062if test "${ac_cv_lib_gcc___main+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064else
19065 ac_check_lib_save_LIBS=$LIBS
19066LIBS="-lgcc $LIBS"
19067cat >conftest.$ac_ext <<_ACEOF
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h. */
19073
19074/* Override any GCC internal prototype to avoid an error.
19075 Use char because int might match the return type of a GCC
19076 builtin and then its argument prototype would still apply. */
19077#ifdef __cplusplus
19078extern "C"
19079#endif
19080char __main ();
19081int
19082main ()
19083{
19084return __main ();
19085 ;
19086 return 0;
19087}
19088_ACEOF
19089rm -f conftest.$ac_objext conftest$ac_exeext
19090if { (ac_try="$ac_link"
19091case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094esac
19095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19107esac
19108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest$ac_exeext'
19114 { (case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19117esac
19118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_try") 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_cv_lib_gcc___main=yes
19124else
19125 echo "$as_me: failed program was:" >&5
19126sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_cv_lib_gcc___main=no
19129fi
19130
19131rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133LIBS=$ac_check_lib_save_LIBS
19134fi
19135{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19136echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19137if test $ac_cv_lib_gcc___main = yes; then
19138
19139cat >>confdefs.h <<\_ACEOF
19140#define HAVE___MAIN 1
19141_ACEOF
19142
19143fi
19144
19145 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19146echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19147if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149else
19150 ac_check_lib_save_LIBS=$LIBS
19151LIBS="-lgcc $LIBS"
19152cat >conftest.$ac_ext <<_ACEOF
19153/* confdefs.h. */
19154_ACEOF
19155cat confdefs.h >>conftest.$ac_ext
19156cat >>conftest.$ac_ext <<_ACEOF
19157/* end confdefs.h. */
19158
19159/* Override any GCC internal prototype to avoid an error.
19160 Use char because int might match the return type of a GCC
19161 builtin and then its argument prototype would still apply. */
19162#ifdef __cplusplus
19163extern "C"
19164#endif
19165char __cmpdi2 ();
19166int
19167main ()
19168{
19169return __cmpdi2 ();
19170 ;
19171 return 0;
19172}
19173_ACEOF
19174rm -f conftest.$ac_objext conftest$ac_exeext
19175if { (ac_try="$ac_link"
19176case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179esac
19180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_link") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192esac
19193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest$ac_exeext'
19199 { (case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19202esac
19203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_try") 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_lib_gcc___cmpdi2=yes
19209else
19210 echo "$as_me: failed program was:" >&5
19211sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 ac_cv_lib_gcc___cmpdi2=no
19214fi
19215
19216rm -f core conftest.err conftest.$ac_objext \
19217 conftest$ac_exeext conftest.$ac_ext
19218LIBS=$ac_check_lib_save_LIBS
19219fi
19220{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19221echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19222if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19223
19224cat >>confdefs.h <<\_ACEOF
19225#define HAVE___CMPDI2 1
19226_ACEOF
19227
19228fi
19229
19230fi
19231
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019232if test "$llvm_cv_os_type" = "MingW" ; then
19233 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19234echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19235 cat >conftest.$ac_ext <<_ACEOF
19236#include <windows.h>
19237#include <imagehlp.h>
19238extern void foo(PENUMLOADED_MODULES_CALLBACK);
19239extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19240_ACEOF
19241rm -f conftest.$ac_objext
19242if { (ac_try="$ac_compile"
19243case "(($ac_try" in
19244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19245 *) ac_try_echo=$ac_try;;
19246esac
19247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19248 (eval "$ac_compile") 2>conftest.er1
19249 ac_status=$?
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
19255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19256 { (case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259esac
19260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_try") 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try='test -s conftest.$ac_objext'
19266 { (case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269esac
19270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_try") 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; }; then
19275
19276 { echo "$as_me:$LINENO: result: yes" >&5
19277echo "${ECHO_T}yes" >&6; }
19278 llvm_cv_win32_elmcb_pcstr="PCSTR"
19279
19280else
19281 echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284
19285 { echo "$as_me:$LINENO: result: no" >&5
19286echo "${ECHO_T}no" >&6; }
19287 llvm_cv_win32_elmcb_pcstr="PSTR"
19288
19289fi
19290
19291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292
19293cat >>confdefs.h <<_ACEOF
19294#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19295_ACEOF
19296
19297fi
19298
Torok Edwin871384f2010-01-26 08:50:50 +000019299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019300{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19301echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19302if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019304else
Reid Spencera773bd52006-08-04 18:18:08 +000019305 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019306ac_cpp='$CXXCPP $CPPFLAGS'
19307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019311 cat >conftest.$ac_ext <<_ACEOF
19312/* confdefs.h. */
19313_ACEOF
19314cat confdefs.h >>conftest.$ac_ext
19315cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019316/* end confdefs.h. */
19317#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019318int
19319main ()
19320{
19321float f; isnan(f);
19322 ;
19323 return 0;
19324}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019325_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019326rm -f conftest.$ac_objext
19327if { (ac_try="$ac_compile"
19328case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331esac
19332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_compile") 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } &&
19340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19341 { (case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344esac
19345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_try") 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; } &&
19350 { ac_try='test -s conftest.$ac_objext'
19351 { (case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354esac
19355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_try") 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019360 ac_cv_func_isnan_in_math_h=yes
19361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019362 echo "$as_me: failed program was:" >&5
19363sed 's/^/| /' conftest.$ac_ext >&5
19364
19365 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019367
Reid Spencera773bd52006-08-04 18:18:08 +000019368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019369 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019370ac_cpp='$CPP $CPPFLAGS'
19371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373ac_compiler_gnu=$ac_cv_c_compiler_gnu
19374
19375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019376{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19377echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019378
19379
19380if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019382cat >>confdefs.h <<\_ACEOF
19383#define HAVE_ISNAN_IN_MATH_H 1
19384_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019385
Reid Spencerabec8f92004-10-27 23:03:44 +000019386fi
19387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019388{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19389echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19390if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019392else
Reid Spencera773bd52006-08-04 18:18:08 +000019393 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019394ac_cpp='$CXXCPP $CPPFLAGS'
19395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019399 cat >conftest.$ac_ext <<_ACEOF
19400/* confdefs.h. */
19401_ACEOF
19402cat confdefs.h >>conftest.$ac_ext
19403cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019404/* end confdefs.h. */
19405#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019406int
19407main ()
19408{
19409float f; isnan(f);
19410 ;
19411 return 0;
19412}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019413_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019414rm -f conftest.$ac_objext
19415if { (ac_try="$ac_compile"
19416case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419esac
19420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_compile") 2>conftest.er1
19422 ac_status=$?
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
19428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19429 { (case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432esac
19433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_try") 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest.$ac_objext'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19442esac
19443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019448 ac_cv_func_isnan_in_cmath=yes
19449else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019450 echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
19452
19453 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019455
Reid Spencera773bd52006-08-04 18:18:08 +000019456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019457 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019458ac_cpp='$CPP $CPPFLAGS'
19459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19461ac_compiler_gnu=$ac_cv_c_compiler_gnu
19462
19463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019464{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19465echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019466
19467if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019469cat >>confdefs.h <<\_ACEOF
19470#define HAVE_ISNAN_IN_CMATH 1
19471_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019472
Reid Spencerabec8f92004-10-27 23:03:44 +000019473fi
19474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019475{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19476echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19477if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019479else
Reid Spencera773bd52006-08-04 18:18:08 +000019480 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019481ac_cpp='$CXXCPP $CPPFLAGS'
19482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019486 cat >conftest.$ac_ext <<_ACEOF
19487/* confdefs.h. */
19488_ACEOF
19489cat confdefs.h >>conftest.$ac_ext
19490cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019491/* end confdefs.h. */
19492#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019493int
19494main ()
19495{
19496float f; std::isnan(f);
19497 ;
19498 return 0;
19499}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019501rm -f conftest.$ac_objext
19502if { (ac_try="$ac_compile"
19503case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19506esac
19507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_compile") 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19516 { (case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519esac
19520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_try") 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; } &&
19525 { ac_try='test -s conftest.$ac_objext'
19526 { (case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529esac
19530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_try") 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019535 ac_cv_func_std_isnan_in_cmath=yes
19536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019537 echo "$as_me: failed program was:" >&5
19538sed 's/^/| /' conftest.$ac_ext >&5
19539
19540 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019542
Reid Spencera773bd52006-08-04 18:18:08 +000019543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019544 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019545ac_cpp='$CPP $CPPFLAGS'
19546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19548ac_compiler_gnu=$ac_cv_c_compiler_gnu
19549
19550fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019551{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19552echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019553
19554if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019556cat >>confdefs.h <<\_ACEOF
19557#define HAVE_STD_ISNAN_IN_CMATH 1
19558_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019559
Reid Spencerabec8f92004-10-27 23:03:44 +000019560fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019561
19562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019563{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19564echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19565if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019567else
Reid Spencera773bd52006-08-04 18:18:08 +000019568 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019569ac_cpp='$CXXCPP $CPPFLAGS'
19570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019574 cat >conftest.$ac_ext <<_ACEOF
19575/* confdefs.h. */
19576_ACEOF
19577cat confdefs.h >>conftest.$ac_ext
19578cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019579/* end confdefs.h. */
19580#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019581int
19582main ()
19583{
19584float f; isinf(f);
19585 ;
19586 return 0;
19587}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019588_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019589rm -f conftest.$ac_objext
19590if { (ac_try="$ac_compile"
19591case "(($ac_try" in
19592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19593 *) ac_try_echo=$ac_try;;
19594esac
19595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19596 (eval "$ac_compile") 2>conftest.er1
19597 ac_status=$?
19598 grep -v '^ *+' conftest.er1 >conftest.err
19599 rm -f conftest.er1
19600 cat conftest.err >&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
19603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19604 { (case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19607esac
19608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_try") 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; } &&
19613 { ac_try='test -s conftest.$ac_objext'
19614 { (case "(($ac_try" in
19615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616 *) ac_try_echo=$ac_try;;
19617esac
19618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619 (eval "$ac_try") 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019623 ac_cv_func_isinf_in_math_h=yes
19624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019625 echo "$as_me: failed program was:" >&5
19626sed 's/^/| /' conftest.$ac_ext >&5
19627
19628 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019630
Reid Spencera773bd52006-08-04 18:18:08 +000019631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019632 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019633ac_cpp='$CPP $CPPFLAGS'
19634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19636ac_compiler_gnu=$ac_cv_c_compiler_gnu
19637
19638fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019639{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19640echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019641
19642if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019644cat >>confdefs.h <<\_ACEOF
19645#define HAVE_ISINF_IN_MATH_H 1
19646_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019647
Reid Spencerabec8f92004-10-27 23:03:44 +000019648fi
19649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019650{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19651echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19652if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019654else
Reid Spencera773bd52006-08-04 18:18:08 +000019655 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019656ac_cpp='$CXXCPP $CPPFLAGS'
19657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019661 cat >conftest.$ac_ext <<_ACEOF
19662/* confdefs.h. */
19663_ACEOF
19664cat confdefs.h >>conftest.$ac_ext
19665cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019666/* end confdefs.h. */
19667#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019668int
19669main ()
19670{
19671float f; isinf(f);
19672 ;
19673 return 0;
19674}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019675_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019676rm -f conftest.$ac_objext
19677if { (ac_try="$ac_compile"
19678case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19681esac
19682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_compile") 2>conftest.er1
19684 ac_status=$?
19685 grep -v '^ *+' conftest.er1 >conftest.err
19686 rm -f conftest.er1
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } &&
19690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19691 { (case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19694esac
19695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_try") 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; } &&
19700 { ac_try='test -s conftest.$ac_objext'
19701 { (case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704esac
19705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_try") 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019710 ac_cv_func_isinf_in_cmath=yes
19711else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019712 echo "$as_me: failed program was:" >&5
19713sed 's/^/| /' conftest.$ac_ext >&5
19714
19715 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019716fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019717
Reid Spencera773bd52006-08-04 18:18:08 +000019718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019719 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019720ac_cpp='$CPP $CPPFLAGS'
19721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19723ac_compiler_gnu=$ac_cv_c_compiler_gnu
19724
19725fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019726{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19727echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019728
19729if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019731cat >>confdefs.h <<\_ACEOF
19732#define HAVE_ISINF_IN_CMATH 1
19733_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019734
Reid Spencerabec8f92004-10-27 23:03:44 +000019735fi
19736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019737{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19738echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19739if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019741else
Reid Spencera773bd52006-08-04 18:18:08 +000019742 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019743ac_cpp='$CXXCPP $CPPFLAGS'
19744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019748 cat >conftest.$ac_ext <<_ACEOF
19749/* confdefs.h. */
19750_ACEOF
19751cat confdefs.h >>conftest.$ac_ext
19752cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019753/* end confdefs.h. */
19754#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019755int
19756main ()
19757{
19758float f; std::isinf(f)}
19759 ;
19760 return 0;
19761}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019762_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019763rm -f conftest.$ac_objext
19764if { (ac_try="$ac_compile"
19765case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19768esac
19769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_compile") 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19778 { (case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19781esac
19782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_try") 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest.$ac_objext'
19788 { (case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791esac
19792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_try") 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019797 ac_cv_func_std_isinf_in_cmath=yes
19798else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019799 echo "$as_me: failed program was:" >&5
19800sed 's/^/| /' conftest.$ac_ext >&5
19801
19802 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019804
Reid Spencera773bd52006-08-04 18:18:08 +000019805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019806 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019807ac_cpp='$CPP $CPPFLAGS'
19808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19810ac_compiler_gnu=$ac_cv_c_compiler_gnu
19811
19812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019813{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19814echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019815
19816if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019818cat >>confdefs.h <<\_ACEOF
19819#define HAVE_STD_ISINF_IN_CMATH 1
19820_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019821
Reid Spencerabec8f92004-10-27 23:03:44 +000019822fi
19823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019824{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19825echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19826if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019828else
Reid Spencera773bd52006-08-04 18:18:08 +000019829 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019830ac_cpp='$CXXCPP $CPPFLAGS'
19831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019835 cat >conftest.$ac_ext <<_ACEOF
19836/* confdefs.h. */
19837_ACEOF
19838cat confdefs.h >>conftest.$ac_ext
19839cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019840/* end confdefs.h. */
19841#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019842int
19843main ()
19844{
19845float f; finite(f);
19846 ;
19847 return 0;
19848}
Brian Gaeked59a6472004-07-21 03:33:58 +000019849_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019850rm -f conftest.$ac_objext
19851if { (ac_try="$ac_compile"
19852case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19855esac
19856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_compile") 2>conftest.er1
19858 ac_status=$?
19859 grep -v '^ *+' conftest.er1 >conftest.err
19860 rm -f conftest.er1
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } &&
19864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19865 { (case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19868esac
19869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_try") 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878esac
19879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_try") 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019884 ac_cv_func_finite_in_ieeefp_h=yes
19885else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019886 echo "$as_me: failed program was:" >&5
19887sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019891
Reid Spencera773bd52006-08-04 18:18:08 +000019892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019893 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019894ac_cpp='$CPP $CPPFLAGS'
19895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19897ac_compiler_gnu=$ac_cv_c_compiler_gnu
19898
19899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019900{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19901echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019902
Brian Gaeke6802b552004-10-28 05:06:45 +000019903if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019905cat >>confdefs.h <<\_ACEOF
19906#define HAVE_FINITE_IN_IEEEFP_H 1
19907_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019908
Reid Spencerabec8f92004-10-27 23:03:44 +000019909fi
19910
19911
19912
Reid Spencer30fe5262007-01-20 07:48:49 +000019913if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019914
19915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019916for ac_header in stdlib.h unistd.h
19917do
19918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19924fi
19925ac_res=`eval echo '${'$as_ac_Header'}'`
19926 { echo "$as_me:$LINENO: result: $ac_res" >&5
19927echo "${ECHO_T}$ac_res" >&6; }
19928else
19929 # Is the header compilable?
19930{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19931echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19932cat >conftest.$ac_ext <<_ACEOF
19933/* confdefs.h. */
19934_ACEOF
19935cat confdefs.h >>conftest.$ac_ext
19936cat >>conftest.$ac_ext <<_ACEOF
19937/* end confdefs.h. */
19938$ac_includes_default
19939#include <$ac_header>
19940_ACEOF
19941rm -f conftest.$ac_objext
19942if { (ac_try="$ac_compile"
19943case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946esac
19947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_compile") 2>conftest.er1
19949 ac_status=$?
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19956 { (case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19959esac
19960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_try") 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest.$ac_objext'
19966 { (case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19969esac
19970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_try") 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_header_compiler=yes
19976else
19977 echo "$as_me: failed program was:" >&5
19978sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019980 ac_header_compiler=no
19981fi
19982
19983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19984{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19985echo "${ECHO_T}$ac_header_compiler" >&6; }
19986
19987# Is the header present?
19988{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19990cat >conftest.$ac_ext <<_ACEOF
19991/* confdefs.h. */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
19995/* end confdefs.h. */
19996#include <$ac_header>
19997_ACEOF
19998if { (ac_try="$ac_cpp conftest.$ac_ext"
19999case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20002esac
20003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20005 ac_status=$?
20006 grep -v '^ *+' conftest.er1 >conftest.err
20007 rm -f conftest.er1
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } >/dev/null; then
20011 if test -s conftest.err; then
20012 ac_cpp_err=$ac_c_preproc_warn_flag
20013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20014 else
20015 ac_cpp_err=
20016 fi
20017else
20018 ac_cpp_err=yes
20019fi
20020if test -z "$ac_cpp_err"; then
20021 ac_header_preproc=yes
20022else
20023 echo "$as_me: failed program was:" >&5
20024sed 's/^/| /' conftest.$ac_ext >&5
20025
20026 ac_header_preproc=no
20027fi
20028
20029rm -f conftest.err conftest.$ac_ext
20030{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20031echo "${ECHO_T}$ac_header_preproc" >&6; }
20032
20033# So? What about this header?
20034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20035 yes:no: )
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20040 ac_header_preproc=yes
20041 ;;
20042 no:yes:* )
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20055 ( cat <<\_ASBOX
20056## ----------------------------------- ##
20057## Report this to llvmbugs@cs.uiuc.edu ##
20058## ----------------------------------- ##
20059_ASBOX
20060 ) | sed "s/^/$as_me: WARNING: /" >&2
20061 ;;
20062esac
20063{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20067else
20068 eval "$as_ac_Header=\$ac_header_preproc"
20069fi
20070ac_res=`eval echo '${'$as_ac_Header'}'`
20071 { echo "$as_me:$LINENO: result: $ac_res" >&5
20072echo "${ECHO_T}$ac_res" >&6; }
20073
20074fi
20075if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020076 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020078_ACEOF
20079
20080fi
20081
20082done
20083
20084
20085for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020086do
20087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20088{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20090if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092else
20093 cat >conftest.$ac_ext <<_ACEOF
20094/* confdefs.h. */
20095_ACEOF
20096cat confdefs.h >>conftest.$ac_ext
20097cat >>conftest.$ac_ext <<_ACEOF
20098/* end confdefs.h. */
20099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20101#define $ac_func innocuous_$ac_func
20102
20103/* System header to define __stub macros and hopefully few prototypes,
20104 which can conflict with char $ac_func (); below.
20105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20106 <limits.h> exists even on freestanding compilers. */
20107
20108#ifdef __STDC__
20109# include <limits.h>
20110#else
20111# include <assert.h>
20112#endif
20113
20114#undef $ac_func
20115
20116/* Override any GCC internal prototype to avoid an error.
20117 Use char because int might match the return type of a GCC
20118 builtin and then its argument prototype would still apply. */
20119#ifdef __cplusplus
20120extern "C"
20121#endif
20122char $ac_func ();
20123/* The GNU C library defines this for functions which it implements
20124 to always fail with ENOSYS. Some functions are actually named
20125 something starting with __ and the normal name is an alias. */
20126#if defined __stub_$ac_func || defined __stub___$ac_func
20127choke me
20128#endif
20129
20130int
20131main ()
20132{
20133return $ac_func ();
20134 ;
20135 return 0;
20136}
20137_ACEOF
20138rm -f conftest.$ac_objext conftest$ac_exeext
20139if { (ac_try="$ac_link"
20140case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143esac
20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>conftest.er1
20146 ac_status=$?
20147 grep -v '^ *+' conftest.er1 >conftest.err
20148 rm -f conftest.er1
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } &&
20152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20153 { (case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20156esac
20157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_try") 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; } &&
20162 { ac_try='test -s conftest$ac_exeext'
20163 { (case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166esac
20167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_try") 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 eval "$as_ac_var=yes"
20173else
20174 echo "$as_me: failed program was:" >&5
20175sed 's/^/| /' conftest.$ac_ext >&5
20176
20177 eval "$as_ac_var=no"
20178fi
20179
20180rm -f core conftest.err conftest.$ac_objext \
20181 conftest$ac_exeext conftest.$ac_ext
20182fi
20183ac_res=`eval echo '${'$as_ac_var'}'`
20184 { echo "$as_me:$LINENO: result: $ac_res" >&5
20185echo "${ECHO_T}$ac_res" >&6; }
20186if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020187 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020189_ACEOF
20190
20191fi
20192done
20193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020194{ echo "$as_me:$LINENO: checking for working mmap" >&5
20195echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20196if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020199 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020200 ac_cv_func_mmap_fixed_mapped=no
20201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020202 cat >conftest.$ac_ext <<_ACEOF
20203/* confdefs.h. */
20204_ACEOF
20205cat confdefs.h >>conftest.$ac_ext
20206cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020208$ac_includes_default
20209/* malloc might have been renamed as rpl_malloc. */
20210#undef malloc
20211
20212/* Thanks to Mike Haertel and Jim Avera for this test.
20213 Here is a matrix of mmap possibilities:
20214 mmap private not fixed
20215 mmap private fixed at somewhere currently unmapped
20216 mmap private fixed at somewhere already mapped
20217 mmap shared not fixed
20218 mmap shared fixed at somewhere currently unmapped
20219 mmap shared fixed at somewhere already mapped
20220 For private mappings, we should verify that changes cannot be read()
20221 back from the file, nor mmap's back from the file at a different
20222 address. (There have been systems where private was not correctly
20223 implemented like the infamous i386 svr4.0, and systems where the
20224 VM page cache was not coherent with the file system buffer cache
20225 like early versions of FreeBSD and possibly contemporary NetBSD.)
20226 For shared mappings, we should conversely verify that changes get
20227 propagated back to all the places they're supposed to be.
20228
20229 Grep wants private fixed already mapped.
20230 The main things grep needs to know about mmap are:
20231 * does it exist and is it safe to write into the mmap'd area
20232 * how to use it (BSD variants) */
20233
20234#include <fcntl.h>
20235#include <sys/mman.h>
20236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020237#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020238char *malloc ();
20239#endif
20240
20241/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020242#if !HAVE_GETPAGESIZE
20243/* Assume that all systems that can run configure have sys/param.h. */
20244# if !HAVE_SYS_PARAM_H
20245# define HAVE_SYS_PARAM_H 1
20246# endif
20247
John Criswell7a73b802003-06-30 21:59:07 +000020248# ifdef _SC_PAGESIZE
20249# define getpagesize() sysconf(_SC_PAGESIZE)
20250# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020251# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020252# include <sys/param.h>
20253# ifdef EXEC_PAGESIZE
20254# define getpagesize() EXEC_PAGESIZE
20255# else /* no EXEC_PAGESIZE */
20256# ifdef NBPG
20257# define getpagesize() NBPG * CLSIZE
20258# ifndef CLSIZE
20259# define CLSIZE 1
20260# endif /* no CLSIZE */
20261# else /* no NBPG */
20262# ifdef NBPC
20263# define getpagesize() NBPC
20264# else /* no NBPC */
20265# ifdef PAGESIZE
20266# define getpagesize() PAGESIZE
20267# endif /* PAGESIZE */
20268# endif /* no NBPC */
20269# endif /* no NBPG */
20270# endif /* no EXEC_PAGESIZE */
20271# else /* no HAVE_SYS_PARAM_H */
20272# define getpagesize() 8192 /* punt totally */
20273# endif /* no HAVE_SYS_PARAM_H */
20274# endif /* no _SC_PAGESIZE */
20275
20276#endif /* no HAVE_GETPAGESIZE */
20277
20278int
20279main ()
20280{
20281 char *data, *data2, *data3;
20282 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020283 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020284
20285 pagesize = getpagesize ();
20286
20287 /* First, make a file with some known garbage in it. */
20288 data = (char *) malloc (pagesize);
20289 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020290 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020291 for (i = 0; i < pagesize; ++i)
20292 *(data + i) = rand ();
20293 umask (0);
20294 fd = creat ("conftest.mmap", 0600);
20295 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020296 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020297 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020298 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020299 close (fd);
20300
20301 /* Next, try to mmap the file at a fixed address which already has
20302 something else allocated at it. If we can, also make sure that
20303 we see the same garbage. */
20304 fd = open ("conftest.mmap", O_RDWR);
20305 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306 return 1;
20307 data2 = (char *) malloc (2 * pagesize);
20308 if (!data2)
20309 return 1;
20310 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020311 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020312 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020313 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020314 for (i = 0; i < pagesize; ++i)
20315 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020316 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020317
20318 /* Finally, make sure that changes to the mapped area do not
20319 percolate back to the file as seen by read(). (This is a bug on
20320 some variants of i386 svr4.0.) */
20321 for (i = 0; i < pagesize; ++i)
20322 *(data2 + i) = *(data2 + i) + 1;
20323 data3 = (char *) malloc (pagesize);
20324 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020325 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020326 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020327 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020328 for (i = 0; i < pagesize; ++i)
20329 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020330 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020331 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020332 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020333}
20334_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020335rm -f conftest$ac_exeext
20336if { (ac_try="$ac_link"
20337case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20340esac
20341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_link") 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349esac
20350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020355 ac_cv_func_mmap_fixed_mapped=yes
20356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357 echo "$as_me: program exited with status $ac_status" >&5
20358echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
20361( exit $ac_status )
20362ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020364rm -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 +000020365fi
Reid Spencera773bd52006-08-04 18:18:08 +000020366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020367
John Criswell7a73b802003-06-30 21:59:07 +000020368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020369{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20370echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020371if test $ac_cv_func_mmap_fixed_mapped = yes; then
20372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020373cat >>confdefs.h <<\_ACEOF
20374#define HAVE_MMAP 1
20375_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020376
20377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020378rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020380 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20381echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20382if test "${ac_cv_func_mmap_file+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020384else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020385 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020386ac_cpp='$CPP $CPPFLAGS'
20387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389ac_compiler_gnu=$ac_cv_c_compiler_gnu
20390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020391 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020392 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020396 /* confdefs.h. */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020401
John Criswell7a73b802003-06-30 21:59:07 +000020402#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020403#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020404#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020405
20406int
20407main ()
20408{
John Criswell7a73b802003-06-30 21:59:07 +000020409
20410 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020411 fd = creat ("foo",0777);
20412 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20413 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020414 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020415 ;
20416 return 0;
20417}
John Criswell7a73b802003-06-30 21:59:07 +000020418_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020419rm -f conftest$ac_exeext
20420if { (ac_try="$ac_link"
20421case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424esac
20425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_link") 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20430 { (case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20433esac
20434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_try") 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020439 ac_cv_func_mmap_file=yes
20440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020441 echo "$as_me: program exited with status $ac_status" >&5
20442echo "$as_me: failed program was:" >&5
20443sed 's/^/| /' conftest.$ac_ext >&5
20444
20445( exit $ac_status )
20446ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020448rm -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 +000020449fi
Reid Spencera773bd52006-08-04 18:18:08 +000020450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020451
John Criswell7a73b802003-06-30 21:59:07 +000020452 ac_ext=c
20453ac_cpp='$CPP $CPPFLAGS'
20454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20456ac_compiler_gnu=$ac_cv_c_compiler_gnu
20457
20458
20459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020460{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20461echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020462if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020464cat >>confdefs.h <<\_ACEOF
20465#define HAVE_MMAP_FILE
20466_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020467
20468 MMAP_FILE=yes
20469
20470fi
20471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020472 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20473echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20474if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020476else
Reid Spencer582a23c2004-12-29 07:07:57 +000020477 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020478 ac_cv_need_dev_zero_for_mmap=yes
20479 else
20480 ac_cv_need_dev_zero_for_mmap=no
20481 fi
20482
20483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020484{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20485echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020486if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020488cat >>confdefs.h <<\_ACEOF
20489#define NEED_DEV_ZERO_FOR_MMAP 1
20490_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020491
20492fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020493
Reid Spencer30fe5262007-01-20 07:48:49 +000020494 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20495 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020496 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20497echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020498 fi
20499 if test "$ac_cv_func_mmap_file" = "no"
20500 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020501 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20502echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020503 fi
John Criswellb13092b2003-07-22 21:00:24 +000020504fi
John Criswell7a73b802003-06-30 21:59:07 +000020505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020506{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20507echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020508ac_ext=cpp
20509ac_cpp='$CXXCPP $CPPFLAGS'
20510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020514cat >conftest.$ac_ext <<_ACEOF
20515/* confdefs.h. */
20516_ACEOF
20517cat confdefs.h >>conftest.$ac_ext
20518cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020519/* end confdefs.h. */
20520int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020521 volatile unsigned long val = 1;
20522 __sync_synchronize();
20523 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020524 __sync_add_and_fetch(&val, 1);
20525 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020526 return 0;
20527 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020528
20529_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020530rm -f conftest.$ac_objext conftest$ac_exeext
20531if { (ac_try="$ac_link"
20532case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20535esac
20536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_link") 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548esac
20549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest$ac_exeext'
20555 { (case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20558esac
20559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_try") 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020564 ac_ext=c
20565ac_cpp='$CPP $CPPFLAGS'
20566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20568ac_compiler_gnu=$ac_cv_c_compiler_gnu
20569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020570 { echo "$as_me:$LINENO: result: yes" >&5
20571echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020573cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020574#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020575_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020576
Owen Andersond4b272b2009-05-18 23:58:51 +000020577else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020578 echo "$as_me: failed program was:" >&5
20579sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020581 { echo "$as_me:$LINENO: result: no" >&5
20582echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020584cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020585#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586_ACEOF
20587
20588 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20589echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020591
Owen Andersond4b272b2009-05-18 23:58:51 +000020592rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020593 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020594
John Criswell7a73b802003-06-30 21:59:07 +000020595
Nick Lewycky4372e692009-09-29 06:18:23 +000020596if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020597 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20598echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20599if test "${llvm_cv_linux_mixed+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020601else
20602 ac_ext=c
20603ac_cpp='$CPP $CPPFLAGS'
20604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20606ac_compiler_gnu=$ac_cv_c_compiler_gnu
20607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020608 cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020613/* end confdefs.h. */
20614#ifndef __x86_64__
20615 error: Not x86-64 even if uname says so!
20616 #endif
20617
20618int
20619main ()
20620{
20621
20622 ;
20623 return 0;
20624}
20625_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020626rm -f conftest.$ac_objext
20627if { (ac_try="$ac_compile"
20628case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20631esac
20632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_compile") 2>conftest.er1
20634 ac_status=$?
20635 grep -v '^ *+' conftest.er1 >conftest.err
20636 rm -f conftest.er1
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } &&
20640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20641 { (case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20644esac
20645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_try") 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; } &&
20650 { ac_try='test -s conftest.$ac_objext'
20651 { (case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20654esac
20655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_try") 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020660 llvm_cv_linux_mixed=no
20661else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020662 echo "$as_me: failed program was:" >&5
20663sed 's/^/| /' conftest.$ac_ext >&5
20664
20665 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020667
Nick Lewycky4372e692009-09-29 06:18:23 +000020668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669 ac_ext=c
20670ac_cpp='$CPP $CPPFLAGS'
20671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673ac_compiler_gnu=$ac_cv_c_compiler_gnu
20674
20675
20676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020677{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20678echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020679
20680 if test "$llvm_cv_linux_mixed" = "yes"; then
20681 llvm_cv_target_arch="x86"
20682 ARCH="x86"
20683 fi
20684fi
20685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020686
Reid Spencer9372f152007-07-30 20:13:24 +000020687for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020688do
20689as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20690{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20691echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20692if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694else
20695 cat >conftest.$ac_ext <<_ACEOF
20696/* confdefs.h. */
20697_ACEOF
20698cat confdefs.h >>conftest.$ac_ext
20699cat >>conftest.$ac_ext <<_ACEOF
20700/* end confdefs.h. */
20701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20703#define $ac_func innocuous_$ac_func
20704
20705/* System header to define __stub macros and hopefully few prototypes,
20706 which can conflict with char $ac_func (); below.
20707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20708 <limits.h> exists even on freestanding compilers. */
20709
20710#ifdef __STDC__
20711# include <limits.h>
20712#else
20713# include <assert.h>
20714#endif
20715
20716#undef $ac_func
20717
20718/* Override any GCC internal prototype to avoid an error.
20719 Use char because int might match the return type of a GCC
20720 builtin and then its argument prototype would still apply. */
20721#ifdef __cplusplus
20722extern "C"
20723#endif
20724char $ac_func ();
20725/* The GNU C library defines this for functions which it implements
20726 to always fail with ENOSYS. Some functions are actually named
20727 something starting with __ and the normal name is an alias. */
20728#if defined __stub_$ac_func || defined __stub___$ac_func
20729choke me
20730#endif
20731
20732int
20733main ()
20734{
20735return $ac_func ();
20736 ;
20737 return 0;
20738}
20739_ACEOF
20740rm -f conftest.$ac_objext conftest$ac_exeext
20741if { (ac_try="$ac_link"
20742case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20745esac
20746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_link") 2>conftest.er1
20748 ac_status=$?
20749 grep -v '^ *+' conftest.er1 >conftest.err
20750 rm -f conftest.er1
20751 cat conftest.err >&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } &&
20754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20755 { (case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758esac
20759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_try") 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; } &&
20764 { ac_try='test -s conftest$ac_exeext'
20765 { (case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20768esac
20769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_try") 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20774 eval "$as_ac_var=yes"
20775else
20776 echo "$as_me: failed program was:" >&5
20777sed 's/^/| /' conftest.$ac_ext >&5
20778
20779 eval "$as_ac_var=no"
20780fi
20781
20782rm -f core conftest.err conftest.$ac_objext \
20783 conftest$ac_exeext conftest.$ac_ext
20784fi
20785ac_res=`eval echo '${'$as_ac_var'}'`
20786 { echo "$as_me:$LINENO: result: $ac_res" >&5
20787echo "${ECHO_T}$ac_res" >&6; }
20788if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020789 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020791_ACEOF
20792
20793fi
20794done
20795
20796
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020797SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020798
20799
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020800SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20801
20802
Reid Spencere9de0912004-08-20 09:03:57 +000020803# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020804# information into substitutions that will end up in Makefile.config.in
20805# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020806if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020807 prefix="/usr/local"
20808fi
Reid Spencere9de0912004-08-20 09:03:57 +000020809eval LLVM_PREFIX="${prefix}";
20810eval LLVM_BINDIR="${prefix}/bin";
20811eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020812eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020813eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020814eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020815eval LLVM_INCLUDEDIR="${prefix}/include";
20816eval LLVM_INFODIR="${prefix}/info";
20817eval LLVM_MANDIR="${prefix}/man";
20818LLVM_CONFIGTIME=`date`
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020830# Place the various directores into the config.h file as #defines so that we
20831# can know about the installation paths within LLVM.
20832
Reid Spencere9de0912004-08-20 09:03:57 +000020833cat >>confdefs.h <<_ACEOF
20834#define LLVM_PREFIX "$LLVM_PREFIX"
20835_ACEOF
20836
20837
20838cat >>confdefs.h <<_ACEOF
20839#define LLVM_BINDIR "$LLVM_BINDIR"
20840_ACEOF
20841
20842
20843cat >>confdefs.h <<_ACEOF
20844#define LLVM_LIBDIR "$LLVM_LIBDIR"
20845_ACEOF
20846
20847
20848cat >>confdefs.h <<_ACEOF
20849#define LLVM_DATADIR "$LLVM_DATADIR"
20850_ACEOF
20851
20852
20853cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020854#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020855_ACEOF
20856
20857
20858cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020859#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020860_ACEOF
20861
20862
20863cat >>confdefs.h <<_ACEOF
20864#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20865_ACEOF
20866
20867
20868cat >>confdefs.h <<_ACEOF
20869#define LLVM_INFODIR "$LLVM_INFODIR"
20870_ACEOF
20871
20872
20873cat >>confdefs.h <<_ACEOF
20874#define LLVM_MANDIR "$LLVM_MANDIR"
20875_ACEOF
20876
20877
20878cat >>confdefs.h <<_ACEOF
20879#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20880_ACEOF
20881
20882
Eric Christopher790e11c2007-12-01 00:34:39 +000020883cat >>confdefs.h <<_ACEOF
20884#define LLVM_HOSTTRIPLE "$host"
20885_ACEOF
20886
20887
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020888# Determine which bindings to build.
20889if test "$BINDINGS_TO_BUILD" = auto ; then
20890 BINDINGS_TO_BUILD=""
20891 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20892 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20893 fi
20894fi
20895BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20896
20897
20898# This isn't really configurey, but it avoids having to repeat the list in
20899# other files.
20900ALL_BINDINGS=ocaml
20901
20902
Gordon Henriksenf0915682007-10-02 16:42:22 +000020903# Do any work necessary to ensure that bindings have what they need.
20904binding_prereqs_failed=0
20905for a_binding in $BINDINGS_TO_BUILD ; do
20906 case "$a_binding" in
20907 ocaml)
20908 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020909 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20910echo "$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 +000020911 binding_prereqs_failed=1
20912 fi
20913 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020914 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20915echo "$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 +000020916 binding_prereqs_failed=1
20917 fi
20918 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020919 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20920echo "$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 +000020921 fi
20922 if test "x$with_ocaml_libdir" != xauto ; then
20923 OCAML_LIBDIR=$with_ocaml_libdir
20924
20925 else
20926 ocaml_stdlib="`"$OCAMLC" -where`"
20927 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20928 then
20929 # ocaml stdlib is beneath our prefix; use stdlib
20930 OCAML_LIBDIR=$ocaml_stdlib
20931
20932 else
20933 # ocaml stdlib is outside our prefix; use libdir/ocaml
20934 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20935
20936 fi
20937 fi
20938 ;;
20939 esac
20940done
20941if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020942 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20943echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20944 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020945fi
20946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020947{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20948echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20949if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020951else
20952 ac_ext=cpp
20953ac_cpp='$CXXCPP $CPPFLAGS'
20954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20957
20958 oldcxxflags="$CXXFLAGS"
20959 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
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
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020965/* end confdefs.h. */
20966
20967int
20968main ()
20969{
20970
20971 ;
20972 return 0;
20973}
20974_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
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021009 llvm_cv_cxx_visibility_inlines_hidden=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 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021016
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 CXXFLAGS="$oldcxxflags"
21019 ac_ext=c
21020ac_cpp='$CPP $CPPFLAGS'
21021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21023ac_compiler_gnu=$ac_cv_c_compiler_gnu
21024
21025
21026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021027{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21028echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021029if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21030 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21031
21032else
21033 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21034
21035fi
21036
Gordon Henriksenf0915682007-10-02 16:42:22 +000021037
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021038if test "$llvm_cv_link_use_r" = "yes" ; then
21039 RPATH="-Wl,-R"
21040else
21041 RPATH="-Wl,-rpath"
21042fi
21043
21044
21045if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21046 RDYNAMIC="-Wl,-export-dynamic"
21047else
21048 RDYNAMIC=""
21049fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021050
21051
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021052
Eric Christophera1cba682010-08-08 02:44:25 +000021053ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021054
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021055
21056
21057
21058
21059
Douglas Gregor1555a232009-06-16 20:12:29 +000021060ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21061
21062ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21063
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021064ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21065
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021066ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21067
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021068ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021069
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021070
Reid Spencera773bd52006-08-04 18:18:08 +000021071ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021072
Reid Spencerea949cf2006-08-16 00:45:38 +000021073ac_config_files="$ac_config_files llvm.spec"
21074
21075
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021076ac_config_files="$ac_config_files docs/doxygen.cfg"
21077
21078if test -f ${srcdir}/tools/clang/README.txt; then
21079 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21080
21081fi
21082
Reid Spencera773bd52006-08-04 18:18:08 +000021083ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021084
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021085ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021086
Reid Spencera773bd52006-08-04 18:18:08 +000021087ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021088
Reid Spencera773bd52006-08-04 18:18:08 +000021089ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021090
21091
Reid Spencera773bd52006-08-04 18:18:08 +000021092ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021093
21094
Reid Spencera773bd52006-08-04 18:18:08 +000021095ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021096
21097
Reid Spencera773bd52006-08-04 18:18:08 +000021098ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021099
21100
Reid Spencer8b2e1412006-11-17 03:32:33 +000021101ac_config_commands="$ac_config_commands runtime/Makefile"
21102
21103
Reid Spencera773bd52006-08-04 18:18:08 +000021104ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021105
21106
Reid Spencera773bd52006-08-04 18:18:08 +000021107ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021108
21109
Bill Wendlingf24eb392009-01-04 23:12:30 +000021110ac_config_commands="$ac_config_commands unittests/Makefile"
21111
21112
Reid Spencera773bd52006-08-04 18:18:08 +000021113ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021114
21115
Reid Spencera773bd52006-08-04 18:18:08 +000021116ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021117
21118
Reid Spencera773bd52006-08-04 18:18:08 +000021119ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021120
21121
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021122ac_config_commands="$ac_config_commands bindings/Makefile"
21123
21124
21125ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21126
21127
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021128
John Criswell7a73b802003-06-30 21:59:07 +000021129cat >confcache <<\_ACEOF
21130# This file is a shell script that caches the results of configure
21131# tests run on this system so they can be shared between configure
21132# scripts and configure runs, see configure's option --config-cache.
21133# It is not useful on other systems. If it contains results you don't
21134# want to keep, you may remove or edit it.
21135#
21136# config.status only pays attention to the cache file if you give it
21137# the --recheck option to rerun configure.
21138#
John Criswell0c38eaf2003-09-10 15:17:25 +000021139# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021140# loading this file, other *unset* `ac_cv_foo' will be assigned the
21141# following values.
21142
21143_ACEOF
21144
21145# The following way of writing the cache mishandles newlines in values,
21146# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021147# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021148# Ultrix sh set writes to stderr and can't be redirected directly,
21149# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021150(
21151 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21152 eval ac_val=\$$ac_var
21153 case $ac_val in #(
21154 *${as_nl}*)
21155 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021156 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21157echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021158 esac
21159 case $ac_var in #(
21160 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021161 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021162 esac ;;
21163 esac
21164 done
21165
John Criswell7a73b802003-06-30 21:59:07 +000021166 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021167 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21168 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021169 # `set' does not quote correctly, so add quotes (double-quote
21170 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021171 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021172 "s/'/'\\\\''/g;
21173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021174 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021175 *)
21176 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021178 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021179 esac |
21180 sort
21181) |
John Criswell7a73b802003-06-30 21:59:07 +000021182 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021183 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021184 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021185 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021186 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21187 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021188 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21189 :end' >>confcache
21190if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21191 if test -w "$cache_file"; then
21192 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021193 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21194echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021195 cat confcache >$cache_file
21196 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021197 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21198echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021199 fi
21200fi
21201rm -f confcache
21202
21203test "x$prefix" = xNONE && prefix=$ac_default_prefix
21204# Let make expand exec_prefix.
21205test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21206
John Criswell7a73b802003-06-30 21:59:07 +000021207DEFS=-DHAVE_CONFIG_H
21208
John Criswell0c38eaf2003-09-10 15:17:25 +000021209ac_libobjs=
21210ac_ltlibobjs=
21211for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21212 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021213 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021214 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21216 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021217 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21218 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021219done
21220LIBOBJS=$ac_libobjs
21221
21222LTLIBOBJS=$ac_ltlibobjs
21223
21224
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021225if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021226 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21227Usually this means the macro was only invoked conditionally." >&5
21228echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21229Usually this means the macro was only invoked conditionally." >&2;}
21230 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021231fi
21232if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021233 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21234Usually this means the macro was only invoked conditionally." >&5
21235echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21236Usually this means the macro was only invoked conditionally." >&2;}
21237 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021238fi
John Criswell7a73b802003-06-30 21:59:07 +000021239
21240: ${CONFIG_STATUS=./config.status}
21241ac_clean_files_save=$ac_clean_files
21242ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021243{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21244echo "$as_me: creating $CONFIG_STATUS" >&6;}
21245cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021246#! $SHELL
21247# Generated by $as_me.
21248# Run this file to recreate the current configuration.
21249# Compiler output produced by configure, useful for debugging
21250# configure, is in config.log if it exists.
21251
21252debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021253ac_cs_recheck=false
21254ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021255SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021256_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021258cat >>$CONFIG_STATUS <<\_ACEOF
21259## --------------------- ##
21260## M4sh Initialization. ##
21261## --------------------- ##
21262
21263# Be Bourne compatible
21264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021265 emulate sh
21266 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021268 # is contrary to our usage. Disable this feature.
21269 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021270 setopt NO_GLOB_SUBST
21271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021272 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021274BIN_SH=xpg4; export BIN_SH # for Tru64
21275DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021276
John Criswell7a73b802003-06-30 21:59:07 +000021277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021278# PATH needs CR
21279# Avoid depending upon Character Ranges.
21280as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21281as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21282as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21283as_cr_digits='0123456789'
21284as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021285
21286# The user is always right.
21287if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021288 echo "#! /bin/sh" >conf$$.sh
21289 echo "exit 0" >>conf$$.sh
21290 chmod +x conf$$.sh
21291 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21292 PATH_SEPARATOR=';'
21293 else
21294 PATH_SEPARATOR=:
21295 fi
21296 rm -f conf$$.sh
21297fi
21298
21299# Support unset when possible.
21300if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21301 as_unset=unset
21302else
21303 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021304fi
John Criswell7a73b802003-06-30 21:59:07 +000021305
Reid Spencera773bd52006-08-04 18:18:08 +000021306
21307# IFS
21308# We need space, tab and new line, in precisely that order. Quoting is
21309# there to prevent editors from complaining about space-tab.
21310# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21311# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021312as_nl='
21313'
Reid Spencera773bd52006-08-04 18:18:08 +000021314IFS=" "" $as_nl"
21315
21316# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021318 *[\\/]* ) as_myself=$0 ;;
21319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021320for as_dir in $PATH
21321do
21322 IFS=$as_save_IFS
21323 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21325done
Reid Spencera773bd52006-08-04 18:18:08 +000021326IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021327
Reid Spencera773bd52006-08-04 18:18:08 +000021328 ;;
21329esac
21330# We did not find ourselves, most probably we were run as `sh COMMAND'
21331# in which case we are not to be found in the path.
21332if test "x$as_myself" = x; then
21333 as_myself=$0
21334fi
21335if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021336 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21337 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021338fi
21339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021340# Work around bugs in pre-3.0 UWIN ksh.
21341for as_var in ENV MAIL MAILPATH
21342do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021343done
21344PS1='$ '
21345PS2='> '
21346PS4='+ '
21347
21348# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021349for as_var in \
21350 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21351 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21352 LC_TELEPHONE LC_TIME
21353do
21354 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21355 eval $as_var=C; export $as_var
21356 else
21357 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021358 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021359done
Torok Edwin871384f2010-01-26 08:50:50 +000021360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021361# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021362if expr a : '\(a\)' >/dev/null 2>&1 &&
21363 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21364 as_expr=expr
21365else
21366 as_expr=false
21367fi
21368
21369if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21370 as_basename=basename
21371else
21372 as_basename=false
21373fi
21374
21375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021376# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021377as_me=`$as_basename -- "$0" ||
21378$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21379 X"$0" : 'X\(//\)$' \| \
21380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021381echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021382 sed '/^.*\/\([^/][^/]*\)\/*$/{
21383 s//\1/
21384 q
21385 }
21386 /^X\/\(\/\/\)$/{
21387 s//\1/
21388 q
21389 }
21390 /^X\/\(\/\).*/{
21391 s//\1/
21392 q
21393 }
21394 s/.*/./; q'`
21395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021396# CDPATH.
21397$as_unset CDPATH
21398
21399
21400
21401 as_lineno_1=$LINENO
21402 as_lineno_2=$LINENO
21403 test "x$as_lineno_1" != "x$as_lineno_2" &&
21404 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21405
21406 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21407 # uniformly replaced by the line number. The first 'sed' inserts a
21408 # line-number line after each line using $LINENO; the second 'sed'
21409 # does the real work. The second script uses 'N' to pair each
21410 # line-number line with the line containing $LINENO, and appends
21411 # trailing '-' during substitution so that $LINENO is not a special
21412 # case at line end.
21413 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21414 # scripts with optimization help from Paolo Bonzini. Blame Lee
21415 # E. McMahon (1931-1989) for sed's syntax. :-)
21416 sed -n '
21417 p
21418 /[$]LINENO/=
21419 ' <$as_myself |
21420 sed '
21421 s/[$]LINENO.*/&-/
21422 t lineno
21423 b
21424 :lineno
21425 N
21426 :loop
21427 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21428 t loop
21429 s/-\n.*//
21430 ' >$as_me.lineno &&
21431 chmod +x "$as_me.lineno" ||
21432 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21433 { (exit 1); exit 1; }; }
21434
21435 # Don't try to exec as it changes $[0], causing all sort of problems
21436 # (the dirname of $[0] is not the place where we might find the
21437 # original and so on. Autoconf is especially sensitive to this).
21438 . "./$as_me.lineno"
21439 # Exit status is that of the last command.
21440 exit
21441}
21442
21443
21444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21445 as_dirname=dirname
21446else
21447 as_dirname=false
21448fi
Reid Spencera773bd52006-08-04 18:18:08 +000021449
21450ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021451case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021452-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021453 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021455 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021456 esac;;
21457*)
21458 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021459esac
21460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021461if expr a : '\(a\)' >/dev/null 2>&1 &&
21462 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21463 as_expr=expr
21464else
21465 as_expr=false
21466fi
21467
John Criswell7a73b802003-06-30 21:59:07 +000021468rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021469if test -d conf$$.dir; then
21470 rm -f conf$$.dir/conf$$.file
21471else
21472 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021473 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021474fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021475echo >conf$$.file
21476if ln -s conf$$.file conf$$ 2>/dev/null; then
21477 as_ln_s='ln -s'
21478 # ... but there are two gotchas:
21479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21481 # In both cases, we have to default to `cp -p'.
21482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021483 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021484elif ln conf$$.file conf$$ 2>/dev/null; then
21485 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021486else
21487 as_ln_s='cp -p'
21488fi
Reid Spencera773bd52006-08-04 18:18:08 +000021489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21490rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021491
John Criswell0c38eaf2003-09-10 15:17:25 +000021492if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021493 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021494else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021495 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021496 as_mkdir_p=false
21497fi
21498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21500# systems may use methods other than mode bits to determine executability.
21501cat >conf$$.file <<_ASEOF
21502#! /bin/sh
21503exit 0
21504_ASEOF
21505chmod +x conf$$.file
21506if test -x conf$$.file >/dev/null 2>&1; then
21507 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021509 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021511rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021512
21513# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021514as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021515
21516# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021517as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021518
21519
John Criswell7a73b802003-06-30 21:59:07 +000021520exec 6>&1
21521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021523# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021524# values after options handling.
21525ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021526This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021528
21529 CONFIG_FILES = $CONFIG_FILES
21530 CONFIG_HEADERS = $CONFIG_HEADERS
21531 CONFIG_LINKS = $CONFIG_LINKS
21532 CONFIG_COMMANDS = $CONFIG_COMMANDS
21533 $ $0 $@
21534
Reid Spencera773bd52006-08-04 18:18:08 +000021535on `(hostname || uname -n) 2>/dev/null | sed 1q`
21536"
21537
John Criswell7a73b802003-06-30 21:59:07 +000021538_ACEOF
21539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021540cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021541# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021542config_files="$ac_config_files"
21543config_headers="$ac_config_headers"
21544config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021545
Reid Spencera773bd52006-08-04 18:18:08 +000021546_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021548cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021549ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021550\`$as_me' instantiates files from templates according to the
21551current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021553Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021554
21555 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021556 -V, --version print version number, then exit
21557 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021558 -d, --debug don't remove temporary files
21559 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021560 --file=FILE[:TEMPLATE]
21561 instantiate the configuration file FILE
21562 --header=FILE[:TEMPLATE]
21563 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021564
21565Configuration files:
21566$config_files
21567
21568Configuration headers:
21569$config_headers
21570
John Criswellc764fbc2003-09-06 15:17:13 +000021571Configuration commands:
21572$config_commands
21573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021574Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021575
Reid Spencera773bd52006-08-04 18:18:08 +000021576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021577cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021578ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021579llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021580configured by $0, generated by GNU Autoconf 2.60,
21581 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021584This config.status script is free software; the Free Software Foundation
21585gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021586
21587ac_pwd='$ac_pwd'
21588srcdir='$srcdir'
21589INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021590_ACEOF
21591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592cat >>$CONFIG_STATUS <<\_ACEOF
21593# If no file are specified by the user, then we need to provide default
21594# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021595ac_need_defaults=:
21596while test $# != 0
21597do
21598 case $1 in
21599 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021602 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021603 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021604 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021605 ac_option=$1
21606 ac_optarg=$2
21607 ac_shift=shift
21608 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021609 esac
21610
John Criswell0c38eaf2003-09-10 15:17:25 +000021611 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021612 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21614 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021615 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021617 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021618 debug=: ;;
21619 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021620 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021621 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021622 ac_need_defaults=false;;
21623 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021624 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021626 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021627 --he | --h)
21628 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021629 { echo "$as_me: error: ambiguous option: $1
21630Try \`$0 --help' for more information." >&2
21631 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021632 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021633 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21636 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021637
21638 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021639 -*) { echo "$as_me: error: unrecognized option: $1
21640Try \`$0 --help' for more information." >&2
21641 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021643 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021644 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021645
21646 esac
21647 shift
21648done
21649
John Criswell0c38eaf2003-09-10 15:17:25 +000021650ac_configure_extra_args=
21651
21652if $ac_cs_silent; then
21653 exec 6>/dev/null
21654 ac_configure_extra_args="$ac_configure_extra_args --silent"
21655fi
21656
21657_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021658cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021659if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021660 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21661 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021662 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021663 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021664fi
21665
John Criswell7a73b802003-06-30 21:59:07 +000021666_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021667cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021668exec 5>>config.log
21669{
21670 echo
21671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21672## Running $as_me. ##
21673_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021674 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021675} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021676
Reid Spencera773bd52006-08-04 18:18:08 +000021677_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021678cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021679#
Reid Spencera773bd52006-08-04 18:18:08 +000021680# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021681#
Reid Spencerc0682832005-02-24 19:05:19 +000021682llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021683
21684_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021686cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021687
21688# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021689for ac_config_target in $ac_config_targets
21690do
Reid Spencera773bd52006-08-04 18:18:08 +000021691 case $ac_config_target in
21692 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021693 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021694 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21695 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021696 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021697 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021698 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021699 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021700 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021701 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21702 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021703 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21704 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21705 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21706 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21707 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21708 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021709 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021710 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21711 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021712 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021713 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21714 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21715 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021716 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21717 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021719 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21720echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21721 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021722 esac
21723done
21724
Reid Spencera773bd52006-08-04 18:18:08 +000021725
John Criswell7a73b802003-06-30 21:59:07 +000021726# If the user did not use the arguments to specify the items to instantiate,
21727# then the envvar interface is used. Set only those that are not.
21728# We use the long form for the default assignment because of an extremely
21729# bizarre bug on SunOS 4.1.3.
21730if $ac_need_defaults; then
21731 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21732 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021733 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021734fi
21735
John Criswell0c38eaf2003-09-10 15:17:25 +000021736# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021737# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021738# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021739# Hook for its removal unless debugging.
21740# Note that there is a small window in which the directory will not be cleaned:
21741# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021742$debug ||
21743{
Reid Spencera773bd52006-08-04 18:18:08 +000021744 tmp=
21745 trap 'exit_status=$?
21746 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21747' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021748 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021749}
John Criswell7a73b802003-06-30 21:59:07 +000021750# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021751
John Criswell7a73b802003-06-30 21:59:07 +000021752{
Reid Spencera773bd52006-08-04 18:18:08 +000021753 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021754 test -n "$tmp" && test -d "$tmp"
21755} ||
21756{
Reid Spencera773bd52006-08-04 18:18:08 +000021757 tmp=./conf$$-$RANDOM
21758 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021759} ||
21760{
21761 echo "$me: cannot create a temporary directory in ." >&2
21762 { (exit 1); exit 1; }
21763}
John Criswell7a73b802003-06-30 21:59:07 +000021764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021765#
21766# Set up the sed scripts for CONFIG_FILES section.
21767#
21768
21769# No need to generate the scripts if there are no CONFIG_FILES.
21770# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021771if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021772
21773_ACEOF
21774
Reid Spencera773bd52006-08-04 18:18:08 +000021775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021776
Reid Spencera773bd52006-08-04 18:18:08 +000021777ac_delim='%!_!# '
21778for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021779 cat >conf$$subs.sed <<_ACEOF
21780SHELL!$SHELL$ac_delim
21781PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21782PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21783PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21784PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21785PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21786PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21787exec_prefix!$exec_prefix$ac_delim
21788prefix!$prefix$ac_delim
21789program_transform_name!$program_transform_name$ac_delim
21790bindir!$bindir$ac_delim
21791sbindir!$sbindir$ac_delim
21792libexecdir!$libexecdir$ac_delim
21793datarootdir!$datarootdir$ac_delim
21794datadir!$datadir$ac_delim
21795sysconfdir!$sysconfdir$ac_delim
21796sharedstatedir!$sharedstatedir$ac_delim
21797localstatedir!$localstatedir$ac_delim
21798includedir!$includedir$ac_delim
21799oldincludedir!$oldincludedir$ac_delim
21800docdir!$docdir$ac_delim
21801infodir!$infodir$ac_delim
21802htmldir!$htmldir$ac_delim
21803dvidir!$dvidir$ac_delim
21804pdfdir!$pdfdir$ac_delim
21805psdir!$psdir$ac_delim
21806libdir!$libdir$ac_delim
21807localedir!$localedir$ac_delim
21808mandir!$mandir$ac_delim
21809DEFS!$DEFS$ac_delim
21810ECHO_C!$ECHO_C$ac_delim
21811ECHO_N!$ECHO_N$ac_delim
21812ECHO_T!$ECHO_T$ac_delim
21813LIBS!$LIBS$ac_delim
21814build_alias!$build_alias$ac_delim
21815host_alias!$host_alias$ac_delim
21816target_alias!$target_alias$ac_delim
21817LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021818CC!$CC$ac_delim
21819CFLAGS!$CFLAGS$ac_delim
21820LDFLAGS!$LDFLAGS$ac_delim
21821CPPFLAGS!$CPPFLAGS$ac_delim
21822ac_ct_CC!$ac_ct_CC$ac_delim
21823EXEEXT!$EXEEXT$ac_delim
21824OBJEXT!$OBJEXT$ac_delim
21825CXX!$CXX$ac_delim
21826CXXFLAGS!$CXXFLAGS$ac_delim
21827ac_ct_CXX!$ac_ct_CXX$ac_delim
21828CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021830ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21831LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021832build!$build$ac_delim
21833build_cpu!$build_cpu$ac_delim
21834build_vendor!$build_vendor$ac_delim
21835build_os!$build_os$ac_delim
21836host!$host$ac_delim
21837host_cpu!$host_cpu$ac_delim
21838host_vendor!$host_vendor$ac_delim
21839host_os!$host_os$ac_delim
21840target!$target$ac_delim
21841target_cpu!$target_cpu$ac_delim
21842target_vendor!$target_vendor$ac_delim
21843target_os!$target_os$ac_delim
21844OS!$OS$ac_delim
21845HOST_OS!$HOST_OS$ac_delim
21846TARGET_OS!$TARGET_OS$ac_delim
21847LINKALL!$LINKALL$ac_delim
21848NOLINKALL!$NOLINKALL$ac_delim
21849LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21850LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21851ARCH!$ARCH$ac_delim
21852ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021853GREP!$GREP$ac_delim
21854EGREP!$EGREP$ac_delim
21855LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21856BUILD_CC!$BUILD_CC$ac_delim
21857BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21858BUILD_CXX!$BUILD_CXX$ac_delim
21859CVSBUILD!$CVSBUILD$ac_delim
21860ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21861ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21862DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21863ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21864EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21865DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21866DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21867JIT!$JIT$ac_delim
21868TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021869ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21871ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021872ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021873ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021874ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021875ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021876ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021877_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021878
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021879 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021880 break
21881 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021882 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21883echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21884 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021885 else
21886 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021887 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021888done
21889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021890ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21891if test -n "$ac_eof"; then
21892 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21893 ac_eof=`expr $ac_eof + 1`
21894fi
21895
21896cat >>$CONFIG_STATUS <<_ACEOF
21897cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21898/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021899_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021900sed '
21901s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21902s/^/s,@/; s/!/@,|#_!!_#|/
21903:n
21904t n
21905s/'"$ac_delim"'$/,g/; t
21906s/$/\\/; p
21907N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21908' >>$CONFIG_STATUS <conf$$subs.sed
21909rm -f conf$$subs.sed
21910cat >>$CONFIG_STATUS <<_ACEOF
21911CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021912_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021913
21914
21915ac_delim='%!_!# '
21916for ac_last_try in false false false false false :; do
21917 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000021918TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21919LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21920LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021921LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021922LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021923ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021924OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021925EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021926EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021927CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021928BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021929NM!$NM$ac_delim
21930ifGNUmake!$ifGNUmake$ac_delim
21931LN_S!$LN_S$ac_delim
21932CMP!$CMP$ac_delim
21933CP!$CP$ac_delim
21934DATE!$DATE$ac_delim
21935FIND!$FIND$ac_delim
21936MKDIR!$MKDIR$ac_delim
21937MV!$MV$ac_delim
21938RANLIB!$RANLIB$ac_delim
21939AR!$AR$ac_delim
21940RM!$RM$ac_delim
21941SED!$SED$ac_delim
21942TAR!$TAR$ac_delim
21943BINPWD!$BINPWD$ac_delim
21944GRAPHVIZ!$GRAPHVIZ$ac_delim
21945DOT!$DOT$ac_delim
21946FDP!$FDP$ac_delim
21947NEATO!$NEATO$ac_delim
21948TWOPI!$TWOPI$ac_delim
21949CIRCO!$CIRCO$ac_delim
21950GV!$GV$ac_delim
21951DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021952XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021953PERL!$PERL$ac_delim
21954HAVE_PERL!$HAVE_PERL$ac_delim
21955INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21956INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21957INSTALL_DATA!$INSTALL_DATA$ac_delim
21958BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021959CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021960DOXYGEN!$DOXYGEN$ac_delim
21961GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021962GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963POD2HTML!$POD2HTML$ac_delim
21964POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021965PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021966RUNTEST!$RUNTEST$ac_delim
21967TCLSH!$TCLSH$ac_delim
21968ZIP!$ZIP$ac_delim
21969OCAMLC!$OCAMLC$ac_delim
21970OCAMLOPT!$OCAMLOPT$ac_delim
21971OCAMLDEP!$OCAMLDEP$ac_delim
21972OCAMLDOC!$OCAMLDOC$ac_delim
21973GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021974HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021975INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21976INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21977CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21978CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21979LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21981NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21982USE_UDIS86!$USE_UDIS86$ac_delim
21983USE_OPROFILE!$USE_OPROFILE$ac_delim
21984HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21985HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21986MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021987SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021988SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021989LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21990LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21991LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21992LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21993LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21994LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21995LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21996LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21997LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21998LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21999BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22000ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022001OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22002ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22003RPATH!$RPATH$ac_delim
22004RDYNAMIC!$RDYNAMIC$ac_delim
22005LIBOBJS!$LIBOBJS$ac_delim
22006LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022007_ACEOF
22008
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022009 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022010 break
22011 elif $ac_last_try; then
22012 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22013echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22014 { (exit 1); exit 1; }; }
22015 else
22016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22017 fi
22018done
22019
22020ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22021if test -n "$ac_eof"; then
22022 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22023 ac_eof=`expr $ac_eof + 1`
22024fi
22025
22026cat >>$CONFIG_STATUS <<_ACEOF
22027cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022028/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22029_ACEOF
22030sed '
22031s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22032s/^/s,@/; s/!/@,|#_!!_#|/
22033:n
22034t n
22035s/'"$ac_delim"'$/,g/; t
22036s/$/\\/; p
22037N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22038' >>$CONFIG_STATUS <conf$$subs.sed
22039rm -f conf$$subs.sed
22040cat >>$CONFIG_STATUS <<_ACEOF
22041:end
22042s/|#_!!_#|//g
22043CEOF$ac_eof
22044_ACEOF
22045
22046
Reid Spencera773bd52006-08-04 18:18:08 +000022047# VPATH may cause trouble with some makes, so we remove $(srcdir),
22048# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22049# trailing colons and then remove the whole line if VPATH becomes empty
22050# (actually we leave an empty line to preserve line numbers).
22051if test "x$srcdir" = x.; then
22052 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22053s/:*\$(srcdir):*/:/
22054s/:*\${srcdir}:*/:/
22055s/:*@srcdir@:*/:/
22056s/^\([^=]*=[ ]*\):*/\1/
22057s/:*$//
22058s/^[^=]*=[ ]*$//
22059}'
22060fi
22061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022062cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022063fi # test -n "$CONFIG_FILES"
22064
Reid Spencera773bd52006-08-04 18:18:08 +000022065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022067do
22068 case $ac_tag in
22069 :[FHLC]) ac_mode=$ac_tag; continue;;
22070 esac
22071 case $ac_mode$ac_tag in
22072 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022073 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22074echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22075 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022076 :[FH]-) ac_tag=-:-;;
22077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22078 esac
22079 ac_save_IFS=$IFS
22080 IFS=:
22081 set x $ac_tag
22082 IFS=$ac_save_IFS
22083 shift
22084 ac_file=$1
22085 shift
22086
22087 case $ac_mode in
22088 :L) ac_source=$1;;
22089 :[FH])
22090 ac_file_inputs=
22091 for ac_f
22092 do
22093 case $ac_f in
22094 -) ac_f="$tmp/stdin";;
22095 *) # Look for the file first in the build tree, then in the source tree
22096 # (if the path is not absolute). The absolute path cannot be DOS-style,
22097 # because $ac_f cannot contain `:'.
22098 test -f "$ac_f" ||
22099 case $ac_f in
22100 [\\/$]*) false;;
22101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22102 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022103 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22104echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22105 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022106 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022107 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022108 done
22109
22110 # Let's still pretend it is `configure' which instantiates (i.e., don't
22111 # use $as_me), people would be surprised to read:
22112 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022113 configure_input="Generated from "`IFS=:
22114 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022115 if test x"$ac_file" != x-; then
22116 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022117 { echo "$as_me:$LINENO: creating $ac_file" >&5
22118echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022119 fi
22120
22121 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022122 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022123 esac
22124 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022125 esac
22126
Reid Spencera773bd52006-08-04 18:18:08 +000022127 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022128$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022129 X"$ac_file" : 'X\(//\)[^/]' \| \
22130 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022131 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022132echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22134 s//\1/
22135 q
22136 }
22137 /^X\(\/\/\)[^/].*/{
22138 s//\1/
22139 q
22140 }
22141 /^X\(\/\/\)$/{
22142 s//\1/
22143 q
22144 }
22145 /^X\(\/\).*/{
22146 s//\1/
22147 q
22148 }
22149 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022150 { as_dir="$ac_dir"
22151 case $as_dir in #(
22152 -*) as_dir=./$as_dir;;
22153 esac
22154 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22155 as_dirs=
22156 while :; do
22157 case $as_dir in #(
22158 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22159 *) as_qdir=$as_dir;;
22160 esac
22161 as_dirs="'$as_qdir' $as_dirs"
22162 as_dir=`$as_dirname -- "$as_dir" ||
22163$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22164 X"$as_dir" : 'X\(//\)[^/]' \| \
22165 X"$as_dir" : 'X\(//\)$' \| \
22166 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22167echo X"$as_dir" |
22168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22169 s//\1/
22170 q
22171 }
22172 /^X\(\/\/\)[^/].*/{
22173 s//\1/
22174 q
22175 }
22176 /^X\(\/\/\)$/{
22177 s//\1/
22178 q
22179 }
22180 /^X\(\/\).*/{
22181 s//\1/
22182 q
22183 }
22184 s/.*/./; q'`
22185 test -d "$as_dir" && break
22186 done
22187 test -z "$as_dirs" || eval "mkdir $as_dirs"
22188 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22189echo "$as_me: error: cannot create directory $as_dir" >&2;}
22190 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022191 ac_builddir=.
22192
Reid Spencera773bd52006-08-04 18:18:08 +000022193case "$ac_dir" in
22194.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22195*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022196 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022197 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022198 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022199 case $ac_top_builddir_sub in
22200 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22201 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22202 esac ;;
22203esac
22204ac_abs_top_builddir=$ac_pwd
22205ac_abs_builddir=$ac_pwd$ac_dir_suffix
22206# for backward compatibility:
22207ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022208
22209case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022210 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022211 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022212 ac_top_srcdir=$ac_top_builddir_sub
22213 ac_abs_top_srcdir=$ac_pwd ;;
22214 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022215 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022216 ac_top_srcdir=$srcdir
22217 ac_abs_top_srcdir=$srcdir ;;
22218 *) # Relative name.
22219 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22220 ac_top_srcdir=$ac_top_build_prefix$srcdir
22221 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022222esac
Reid Spencera773bd52006-08-04 18:18:08 +000022223ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022224
John Criswell7a73b802003-06-30 21:59:07 +000022225
Reid Spencera773bd52006-08-04 18:18:08 +000022226 case $ac_mode in
22227 :F)
22228 #
22229 # CONFIG_FILE
22230 #
John Criswell7a73b802003-06-30 21:59:07 +000022231
22232 case $INSTALL in
22233 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022234 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022235 esac
John Criswell7a73b802003-06-30 21:59:07 +000022236_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022238cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022239# If the template does not know about datarootdir, expand it.
22240# FIXME: This hack should be removed a few years after 2.60.
22241ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022242
22243case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022244 p
22245 q
22246}
22247/@datadir@/p
22248/@docdir@/p
22249/@infodir@/p
22250/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022251/@mandir@/p
22252' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022253*datarootdir*) ac_datarootdir_seen=yes;;
22254*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022255 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22256echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022257_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022258cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022259 ac_datarootdir_hack='
22260 s&@datadir@&$datadir&g
22261 s&@docdir@&$docdir&g
22262 s&@infodir@&$infodir&g
22263 s&@localedir@&$localedir&g
22264 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022265 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022266esac
22267_ACEOF
22268
22269# Neutralize VPATH when `$srcdir' = `.'.
22270# Shell code in configure.ac might set extrasub.
22271# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022272cat >>$CONFIG_STATUS <<_ACEOF
22273 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022274$extrasub
22275_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022276cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022277:t
22278/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022279s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022280s&@top_builddir@&$ac_top_builddir_sub&;t t
22281s&@srcdir@&$ac_srcdir&;t t
22282s&@abs_srcdir@&$ac_abs_srcdir&;t t
22283s&@top_srcdir@&$ac_top_srcdir&;t t
22284s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22285s&@builddir@&$ac_builddir&;t t
22286s&@abs_builddir@&$ac_abs_builddir&;t t
22287s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22288s&@INSTALL@&$ac_INSTALL&;t t
22289$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022290" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022291
Reid Spencera773bd52006-08-04 18:18:08 +000022292test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22293 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022295 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022296which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022297echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022298which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022299
Reid Spencera773bd52006-08-04 18:18:08 +000022300 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022301 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022302 -) cat "$tmp/out"; rm -f "$tmp/out";;
22303 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22304 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022305 ;;
22306 :H)
22307 #
22308 # CONFIG_HEADER
22309 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022310_ACEOF
22311
22312# Transform confdefs.h into a sed script `conftest.defines', that
22313# substitutes the proper values into config.h.in to produce config.h.
22314rm -f conftest.defines conftest.tail
22315# First, append a space to every undef/define line, to ease matching.
22316echo 's/$/ /' >conftest.defines
22317# Then, protect against being on the right side of a sed subst, or in
22318# an unquoted here document, in config.status. If some macros were
22319# called several times there might be several #defines for the same
22320# symbol, which is useless. But do not sort them, since the last
22321# AC_DEFINE must be honored.
22322ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22323# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22324# NAME is the cpp macro being defined, VALUE is the value it is being given.
22325# PARAMS is the parameter list in the macro definition--in most cases, it's
22326# just an empty string.
22327ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22328ac_dB='\\)[ (].*,\\1define\\2'
22329ac_dC=' '
22330ac_dD=' ,'
22331
22332uniq confdefs.h |
22333 sed -n '
22334 t rset
22335 :rset
22336 s/^[ ]*#[ ]*define[ ][ ]*//
22337 t ok
22338 d
22339 :ok
22340 s/[\\&,]/\\&/g
22341 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22342 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22343 ' >>conftest.defines
22344
22345# Remove the space that was appended to ease matching.
22346# Then replace #undef with comments. This is necessary, for
22347# example, in the case of _POSIX_SOURCE, which is predefined and required
22348# on some systems where configure will not decide to define it.
22349# (The regexp can be short, since the line contains either #define or #undef.)
22350echo 's/ $//
22351s,^[ #]*u.*,/* & */,' >>conftest.defines
22352
22353# Break up conftest.defines:
22354ac_max_sed_lines=50
22355
22356# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22357# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22358# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22359# et cetera.
22360ac_in='$ac_file_inputs'
22361ac_out='"$tmp/out1"'
22362ac_nxt='"$tmp/out2"'
22363
22364while :
22365do
22366 # Write a here document:
22367 cat >>$CONFIG_STATUS <<_ACEOF
22368 # First, check the format of the line:
22369 cat >"\$tmp/defines.sed" <<\\CEOF
22370/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22371/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22372b
22373:def
22374_ACEOF
22375 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22376 echo 'CEOF
22377 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22378 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22379 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22380 grep . conftest.tail >/dev/null || break
22381 rm -f conftest.defines
22382 mv conftest.tail conftest.defines
22383done
22384rm -f conftest.defines conftest.tail
22385
22386echo "ac_result=$ac_in" >>$CONFIG_STATUS
22387cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022388 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022389 echo "/* $configure_input */" >"$tmp/config.h"
22390 cat "$ac_result" >>"$tmp/config.h"
22391 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22392 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22393echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022394 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022395 rm -f $ac_file
22396 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022397 fi
22398 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022399 echo "/* $configure_input */"
22400 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022401 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022402 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022403 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022405 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22406echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022407 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022408 esac
John Criswell7a73b802003-06-30 21:59:07 +000022409
Reid Spencera773bd52006-08-04 18:18:08 +000022410
22411 case $ac_file$ac_mode in
22412 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022414 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022416 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022418 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022420 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022422 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022424 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022426 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022427 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022428 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022429 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022430 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022431 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022432 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022433 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022434 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022435 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022436 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022437 ${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 +000022438
22439 esac
22440done # for ac_tag
22441
John Criswell7a73b802003-06-30 21:59:07 +000022442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022443{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022444_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022445chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022446ac_clean_files=$ac_clean_files_save
22447
22448
22449# configure is writing to config.log, and then calls config.status.
22450# config.status does its own redirection, appending to config.log.
22451# Unfortunately, on DOS this fails, as config.log is still kept open
22452# by configure, so config.status won't be able to write to it; its
22453# output is simply discarded. So we exec the FD to /dev/null,
22454# effectively closing config.log, so it can be properly (re)opened and
22455# appended to by config.status. When coming back to configure, we
22456# need to make the FD available again.
22457if test "$no_create" != yes; then
22458 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022459 ac_config_status_args=
22460 test "$silent" = yes &&
22461 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022462 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022464 exec 5>>config.log
22465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22466 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022467 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022468fi
22469
John Criswell12399a12003-09-30 15:55:44 +000022470#
22471# CONFIG_SUBDIRS section.
22472#
22473if test "$no_recursion" != yes; then
22474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022475 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022476 ac_sub_configure_args=
22477 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022478 eval "set x $ac_configure_args"
22479 shift
22480 for ac_arg
22481 do
John Criswell12399a12003-09-30 15:55:44 +000022482 if test -n "$ac_prev"; then
22483 ac_prev=
22484 continue
22485 fi
22486 case $ac_arg in
22487 -cache-file | --cache-file | --cache-fil | --cache-fi \
22488 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22489 ac_prev=cache_file ;;
22490 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22491 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22492 | --c=*)
22493 ;;
22494 --config-cache | -C)
22495 ;;
22496 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22497 ac_prev=srcdir ;;
22498 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22499 ;;
22500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22501 ac_prev=prefix ;;
22502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22503 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022504 *)
22505 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022506 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022507 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022508 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022509 esac
22510 done
22511
22512 # Always prepend --prefix to ensure using the same prefix
22513 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022514 ac_arg="--prefix=$prefix"
22515 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022516 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022517 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022518 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022519
22520 ac_popdir=`pwd`
22521 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22522
22523 # Do not complain, so a configure script can configure whichever
22524 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022525 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022526
Reid Spencera773bd52006-08-04 18:18:08 +000022527 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022528 echo "$as_me:$LINENO: $ac_msg" >&5
22529 echo "$ac_msg" >&6
22530 { as_dir="$ac_dir"
22531 case $as_dir in #(
22532 -*) as_dir=./$as_dir;;
22533 esac
22534 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22535 as_dirs=
22536 while :; do
22537 case $as_dir in #(
22538 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22539 *) as_qdir=$as_dir;;
22540 esac
22541 as_dirs="'$as_qdir' $as_dirs"
22542 as_dir=`$as_dirname -- "$as_dir" ||
22543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22544 X"$as_dir" : 'X\(//\)[^/]' \| \
22545 X"$as_dir" : 'X\(//\)$' \| \
22546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22547echo X"$as_dir" |
22548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22549 s//\1/
22550 q
22551 }
22552 /^X\(\/\/\)[^/].*/{
22553 s//\1/
22554 q
22555 }
22556 /^X\(\/\/\)$/{
22557 s//\1/
22558 q
22559 }
22560 /^X\(\/\).*/{
22561 s//\1/
22562 q
22563 }
22564 s/.*/./; q'`
22565 test -d "$as_dir" && break
22566 done
22567 test -z "$as_dirs" || eval "mkdir $as_dirs"
22568 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22569echo "$as_me: error: cannot create directory $as_dir" >&2;}
22570 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022571 ac_builddir=.
22572
Reid Spencera773bd52006-08-04 18:18:08 +000022573case "$ac_dir" in
22574.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22575*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022577 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022578 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022579 case $ac_top_builddir_sub in
22580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22582 esac ;;
22583esac
22584ac_abs_top_builddir=$ac_pwd
22585ac_abs_builddir=$ac_pwd$ac_dir_suffix
22586# for backward compatibility:
22587ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022588
22589case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022590 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022591 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022592 ac_top_srcdir=$ac_top_builddir_sub
22593 ac_abs_top_srcdir=$ac_pwd ;;
22594 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022595 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022596 ac_top_srcdir=$srcdir
22597 ac_abs_top_srcdir=$srcdir ;;
22598 *) # Relative name.
22599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22600 ac_top_srcdir=$ac_top_build_prefix$srcdir
22601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022602esac
Reid Spencera773bd52006-08-04 18:18:08 +000022603ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022604
22605
Reid Spencera773bd52006-08-04 18:18:08 +000022606 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022607
22608 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022609 if test -f "$ac_srcdir/configure.gnu"; then
22610 ac_sub_configure=$ac_srcdir/configure.gnu
22611 elif test -f "$ac_srcdir/configure"; then
22612 ac_sub_configure=$ac_srcdir/configure
22613 elif test -f "$ac_srcdir/configure.in"; then
22614 # This should be Cygnus configure.
22615 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022616 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022617 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22618echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022619 ac_sub_configure=
22620 fi
22621
22622 # The recursion is here.
22623 if test -n "$ac_sub_configure"; then
22624 # Make the cache file name correct relative to the subdirectory.
22625 case $cache_file in
22626 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022627 *) # Relative name.
22628 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022629 esac
22630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022631 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22632echo "$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 +000022633 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022634 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22635 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022636 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22637echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22638 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022639 fi
22640
Reid Spencera773bd52006-08-04 18:18:08 +000022641 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022642 done
22643fi
22644