blob: c76e6c007a6c516499fb89de5856371dbc59fa58 [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,
Dan Gohman3e6157d2011-10-25 00:05:42 +00001419 xcore, msp430, ptx, cbe, and cpp
Eric Christopher14074e82010-10-12 02:42:05 +00001420 (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" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003883 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3884 ptx-*) llvm_cv_target_arch="PTX" ;;
3885 *) llvm_cv_target_arch="Unknown" ;;
3886esac
3887fi
3888{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3890
3891if test "$llvm_cv_target_arch" = "Unknown" ; then
3892 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3894fi
3895
3896# Determine the LLVM native architecture for the target
3897case "$llvm_cv_target_arch" in
3898 x86) LLVM_NATIVE_ARCH="X86" ;;
3899 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3900 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3901esac
3902
3903ARCH=$llvm_cv_target_arch
3904
3905
3906
3907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003908{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003913 # Extract the first word of "grep ggrep" to use in msg output
3914if test -z "$GREP"; then
3915set dummy grep ggrep; ac_prog_name=$2
3916if test "${ac_cv_path_GREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
Reid Spencera773bd52006-08-04 18:18:08 +00003919 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003920# Loop through the user's path and test for each of PROGNAME-LIST
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 for ac_prog in grep ggrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003931 # Check for GNU $ac_path_GREP
3932case `"$ac_path_GREP" --version 2>&1` in
3933*GNU*)
3934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935*)
3936 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003938 while :
3939 do
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003943 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP="$ac_path_GREP"
3950 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003951 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3954 done
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956esac
3957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003958
3959 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003960 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961done
3962
3963done
Reid Spencera773bd52006-08-04 18:18:08 +00003964IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003965
3966
3967fi
3968
3969GREP="$ac_cv_path_GREP"
3970if test -z "$GREP"; then
3971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3974fi
3975
Reid Spencera773bd52006-08-04 18:18:08 +00003976else
3977 ac_cv_path_GREP=$GREP
3978fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980
Reid Spencera773bd52006-08-04 18:18:08 +00003981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003984 GREP="$ac_cv_path_GREP"
3985
3986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987{ echo "$as_me:$LINENO: checking for egrep" >&5
3988echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003991else
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3994 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995 # Extract the first word of "egrep" to use in msg output
3996if test -z "$EGREP"; then
3997set dummy egrep; ac_prog_name=$2
3998if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
Reid Spencera773bd52006-08-04 18:18:08 +00004001 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002# Loop through the user's path and test for each of PROGNAME-LIST
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004013 # Check for GNU $ac_path_EGREP
4014case `"$ac_path_EGREP" --version 2>&1` in
4015*GNU*)
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017*)
4018 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004020 while :
4021 do
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004025 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4033 fi
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4036 done
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038esac
4039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004040
4041 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004042 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043done
4044
4045done
Reid Spencera773bd52006-08-04 18:18:08 +00004046IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004047
4048
4049fi
4050
4051EGREP="$ac_cv_path_EGREP"
4052if test -z "$EGREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4056fi
4057
Reid Spencera773bd52006-08-04 18:18:08 +00004058else
4059 ac_cv_path_EGREP=$EGREP
4060fi
4061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004062
Reid Spencera773bd52006-08-04 18:18:08 +00004063 fi
4064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004065{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004067 EGREP="$ac_cv_path_EGREP"
4068
4069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072if test "${ac_cv_header_stdc+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004075 cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004081#include <stdlib.h>
4082#include <stdarg.h>
4083#include <string.h>
4084#include <float.h>
4085
John Criswell0c38eaf2003-09-10 15:17:25 +00004086int
4087main ()
4088{
4089
4090 ;
4091 return 0;
4092}
John Criswell7a73b802003-06-30 21:59:07 +00004093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094rm -f conftest.$ac_objext
4095if { (ac_try="$ac_compile"
4096case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004128 ac_cv_header_stdc=yes
4129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004130 echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135
Reid Spencera773bd52006-08-04 18:18:08 +00004136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004137
4138if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004145/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004146#include <string.h>
4147
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150 $EGREP "memchr" >/dev/null 2>&1; then
4151 :
John Criswell7a73b802003-06-30 21:59:07 +00004152else
4153 ac_cv_header_stdc=no
4154fi
4155rm -f conftest*
4156
4157fi
4158
4159if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004161 cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h. */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004167#include <stdlib.h>
4168
4169_ACEOF
4170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 $EGREP "free" >/dev/null 2>&1; then
4172 :
John Criswell7a73b802003-06-30 21:59:07 +00004173else
4174 ac_cv_header_stdc=no
4175fi
4176rm -f conftest*
4177
4178fi
4179
4180if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004182 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004183 :
4184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004191#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004192#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004193#if ((' ' & 0x0FF) == 0x020)
4194# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004197# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004201# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202#endif
4203
4204#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205int
4206main ()
4207{
4208 int i;
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004211 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004212 return 2;
4213 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004214}
4215_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004216rm -f conftest$ac_exeext
4217if { (ac_try="$ac_link"
4218case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 :
John Criswell7a73b802003-06-30 21:59:07 +00004237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238 echo "$as_me: program exited with status $ac_status" >&5
4239echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242( exit $ac_status )
4243ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004245rm -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 +00004246fi
4247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004248
John Criswell7a73b802003-06-30 21:59:07 +00004249fi
4250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004251{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004253if test $ac_cv_header_stdc = yes; then
4254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255cat >>confdefs.h <<\_ACEOF
4256#define STDC_HEADERS 1
4257_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004258
4259fi
4260
Reid Spencera773bd52006-08-04 18:18:08 +00004261# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004262
4263
4264
4265
4266
4267
4268
4269
4270
Reid Spencera773bd52006-08-04 18:18:08 +00004271for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004273do
4274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280 cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h. */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h. */
4286$ac_includes_default
4287
4288#include <$ac_header>
4289_ACEOF
4290rm -f conftest.$ac_objext
4291if { (ac_try="$ac_compile"
4292case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4298 ac_status=$?
4299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_Header=yes"
4325else
4326 echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 eval "$as_ac_Header=no"
4330fi
4331
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333fi
4334ac_res=`eval echo '${'$as_ac_Header'}'`
4335 { echo "$as_me:$LINENO: result: $ac_res" >&5
4336echo "${ECHO_T}$ac_res" >&6; }
4337if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004338 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004340_ACEOF
4341
4342fi
4343
4344done
4345
4346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349if test "${ac_cv_c_bigendian+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352 # See if sys/param.h defines the BYTE_ORDER macro.
4353cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004358/* end confdefs.h. */
4359#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004360#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004361
4362int
4363main ()
4364{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4366 bogus endian macros
4367#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004368
4369 ;
4370 return 0;
4371}
4372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373rm -f conftest.$ac_objext
4374if { (ac_try="$ac_compile"
4375case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378esac
4379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004407 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004408cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004413/* end confdefs.h. */
4414#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004416
4417int
4418main ()
4419{
4420#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004421 not big endian
4422#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004423
4424 ;
4425 return 0;
4426}
4427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004428rm -f conftest.$ac_objext
4429if { (ac_try="$ac_compile"
4430case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
4434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004462 ac_cv_c_bigendian=yes
4463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467 ac_cv_c_bigendian=no
4468fi
4469
4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 # It does not; compile a test program.
4476if test "$cross_compiling" = yes; then
4477 # try to guess the endianness by grepping values into an object file
4478 ac_cv_c_bigendian=unknown
4479 cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h. */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
4485short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004491int
4492main ()
4493{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004494 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004495 ;
4496 return 0;
4497}
4498_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499rm -f conftest.$ac_objext
4500if { (ac_try="$ac_compile"
4501case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504esac
4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_compile") 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
4518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527esac
4528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004534 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535fi
4536if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537 if test "$ac_cv_c_bigendian" = unknown; then
4538 ac_cv_c_bigendian=no
4539 else
4540 # finding both strings is unlikely to happen, but who knows?
4541 ac_cv_c_bigendian=unknown
4542 fi
4543fi
Reid Spencera773bd52006-08-04 18:18:08 +00004544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545 echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548
Torok Edwin871384f2010-01-26 08:50:50 +00004549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550
Reid Spencera773bd52006-08-04 18:18:08 +00004551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 cat >conftest.$ac_ext <<_ACEOF
4554/* confdefs.h. */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004558/* end confdefs.h. */
4559$ac_includes_default
4560int
4561main ()
4562{
4563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 /* Are we little or big endian? From Harbison&Steele. */
4565 union
4566 {
4567 long int l;
4568 char c[sizeof (long int)];
4569 } u;
4570 u.l = 1;
4571 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004572
4573 ;
4574 return 0;
4575}
4576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577rm -f conftest$ac_exeext
4578if { (ac_try="$ac_link"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004597 ac_cv_c_bigendian=no
4598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599 echo "$as_me: program exited with status $ac_status" >&5
4600echo "$as_me: failed program was:" >&5
4601sed 's/^/| /' conftest.$ac_ext >&5
4602
4603( exit $ac_status )
4604ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606rm -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 +00004607fi
4608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609
Reid Spencera773bd52006-08-04 18:18:08 +00004610fi
4611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613fi
4614{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616case $ac_cv_c_bigendian in
4617 yes)
4618 ENDIAN=big
4619 ;;
4620 no)
4621 ENDIAN=little
4622 ;;
4623 *)
4624 { { echo "$as_me:$LINENO: error: unknown endianness
4625presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626echo "$as_me: error: unknown endianness
4627presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4629esac
Reid Spencera773bd52006-08-04 18:18:08 +00004630
4631
4632if test "$cross_compiling" = yes; then
4633 LLVM_CROSS_COMPILING=1
4634
4635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004636{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638if test "${ac_cv_build_exeext+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004640else
4641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642 ac_cv_build_exeext=.exe
4643else
4644 ac_build_prefix=${build_alias}-
4645
4646 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004652else
4653 if test -n "$BUILD_CC"; then
4654 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 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 +00004663 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004665 break 2
4666 fi
4667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668done
Reid Spencera773bd52006-08-04 18:18:08 +00004669IFS=$as_save_IFS
4670
4671fi
4672fi
4673BUILD_CC=$ac_cv_prog_BUILD_CC
4674if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678 { echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004680fi
4681
4682
4683 if test -z "$BUILD_CC"; then
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004690else
4691 if test -n "$BUILD_CC"; then
4692 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 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 +00004701 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004703 break 2
4704 fi
4705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706done
Reid Spencera773bd52006-08-04 18:18:08 +00004707IFS=$as_save_IFS
4708
4709fi
4710fi
4711BUILD_CC=$ac_cv_prog_BUILD_CC
4712if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716 { echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004718fi
4719
4720
4721 if test -z "$BUILD_CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004728else
4729 if test -n "$BUILD_CC"; then
4730 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4731else
4732 ac_prog_rejected=no
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 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 +00004740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4742 continue
4743 fi
4744 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004746 break 2
4747 fi
4748done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004749done
Reid Spencera773bd52006-08-04 18:18:08 +00004750IFS=$as_save_IFS
4751
4752if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_BUILD_CC
4755 shift
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set BUILD_CC to just the basename; use the full file name.
4760 shift
4761 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4762 fi
4763fi
4764fi
4765fi
4766BUILD_CC=$ac_cv_prog_BUILD_CC
4767if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004771 { echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004773fi
4774
4775
4776 fi
4777 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004781 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782 rm -f conftest*
4783 echo 'int main () { return 0; }' > conftest.$ac_ext
4784 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004785 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004786 (eval $ac_build_link) 2>&5
4787 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004790 for file in conftest.*; do
4791 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004792 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004793 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4794 esac
4795 done
4796 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004800 fi
4801 rm -f conftest*
4802 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4803fi
4804fi
4805
4806BUILD_EXEEXT=""
4807test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004810ac_build_exeext=$BUILD_EXEEXT
4811
Jim Grosbach673612e2008-10-02 22:56:44 +00004812 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004819else
4820 if test -n "$BUILD_CXX"; then
4821 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4822else
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 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 +00004830 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004832 break 2
4833 fi
4834done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835done
Jim Grosbach673612e2008-10-02 22:56:44 +00004836IFS=$as_save_IFS
4837
4838fi
4839fi
4840BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845 { echo "$as_me:$LINENO: result: no" >&5
4846echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004847fi
4848
4849
4850 if test -z "$BUILD_CXX"; then
4851 # Extract the first word of "g++", so it can be a program name with args.
4852set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004857else
4858 if test -n "$BUILD_CXX"; then
4859 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 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 +00004868 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004870 break 2
4871 fi
4872done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873done
Jim Grosbach673612e2008-10-02 22:56:44 +00004874IFS=$as_save_IFS
4875
4876fi
4877fi
4878BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883 { echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004885fi
4886
4887
4888 if test -z "$BUILD_CXX"; then
4889 # Extract the first word of "c++", so it can be a program name with args.
4890set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004895else
4896 if test -n "$BUILD_CXX"; then
4897 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4898else
4899 ac_prog_rejected=no
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 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 +00004907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908 ac_prog_rejected=yes
4909 continue
4910 fi
4911 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004913 break 2
4914 fi
4915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004916done
Jim Grosbach673612e2008-10-02 22:56:44 +00004917IFS=$as_save_IFS
4918
4919if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CXX
4922 shift
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CXX to just the basename; use the full file name.
4927 shift
4928 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4929 fi
4930fi
4931fi
4932fi
4933BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004935 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004938 { echo "$as_me:$LINENO: result: no" >&5
4939echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004940fi
4941
4942
4943 fi
4944 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004945else
4946 LLVM_CROSS_COMPILING=0
4947
4948fi
4949
Dan Gohman56fb5f92010-08-04 16:25:01 +00004950if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004951 cvsbuild="yes"
4952 optimize="no"
4953 CVSBUILD=CVSBUILD=1
4954
4955else
4956 cvsbuild="no"
4957 optimize="yes"
4958fi
4959
4960
4961# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004962if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004963 enableval=$enable_optimized;
4964else
4965 enableval=$optimize
4966fi
4967
4968if test ${enableval} = "no" ; then
4969 ENABLE_OPTIMIZED=
4970
4971else
4972 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4973
4974fi
4975
David Greene2a5a12c2009-04-17 14:50:39 +00004976# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004977if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004978 enableval=$enable_profiling;
4979else
4980 enableval="no"
4981fi
4982
4983if test ${enableval} = "no" ; then
4984 ENABLE_PROFILING=
4985
4986else
4987 ENABLE_PROFILING=ENABLE_PROFILING=1
4988
4989fi
4990
Reid Spencera773bd52006-08-04 18:18:08 +00004991# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004992if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004993 enableval=$enable_assertions;
4994else
4995 enableval="yes"
4996fi
4997
4998if test ${enableval} = "yes" ; then
4999 DISABLE_ASSERTIONS=
5000
5001else
5002 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5003
5004fi
5005
David Greenea696d242007-06-28 19:36:08 +00005006# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005007if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005008 enableval=$enable_expensive_checks;
5009else
5010 enableval="no"
5011fi
5012
5013if test ${enableval} = "yes" ; then
5014 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5015
5016 EXPENSIVE_CHECKS=yes
5017
5018else
5019 ENABLE_EXPENSIVE_CHECKS=
5020
5021 EXPENSIVE_CHECKS=no
5022
5023fi
5024
Reid Spencer8b2e1412006-11-17 03:32:33 +00005025# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005026if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005027 enableval=$enable_debug_runtime;
5028else
5029 enableval=no
5030fi
5031
5032if test ${enableval} = "no" ; then
5033 DEBUG_RUNTIME=
5034
5035else
5036 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5037
5038fi
5039
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005040# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005041if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005042 enableval=$enable_debug_symbols;
5043else
5044 enableval=no
5045fi
5046
5047if test ${enableval} = "no" ; then
5048 DEBUG_SYMBOLS=
5049
5050else
5051 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5052
5053fi
5054
Reid Spencera773bd52006-08-04 18:18:08 +00005055# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005056if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005057 enableval=$enable_jit;
5058else
5059 enableval=default
5060fi
5061
5062if test ${enableval} = "no"
5063then
5064 JIT=
5065
5066else
5067 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005068 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005069 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005070 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005071 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005072 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005073 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005074 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005075 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00005076 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005077 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005078 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005079 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005080 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005081 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005082 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005083 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005084 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005085 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005086 Blackfin) TARGET_HAS_JIT=0
5087 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005088 MBlaze) TARGET_HAS_JIT=0
5089 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005090 PTX) TARGET_HAS_JIT=0
5091 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005092 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005093 ;;
5094 esac
5095fi
5096
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005097# Check whether --enable-docs was given.
5098if test "${enable_docs+set}" = set; then
5099 enableval=$enable_docs;
5100else
5101 enableval=default
5102fi
5103
5104case "$enableval" in
5105 yes) ENABLE_DOCS=1
5106 ;;
5107 no) ENABLE_DOCS=0
5108 ;;
5109 default) ENABLE_DOCS=1
5110 ;;
5111 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5112echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5113 { (exit 1); exit 1; }; } ;;
5114esac
5115
Reid Spencera773bd52006-08-04 18:18:08 +00005116# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005117if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005118 enableval=$enable_doxygen;
5119else
5120 enableval=default
5121fi
5122
5123case "$enableval" in
5124 yes) ENABLE_DOXYGEN=1
5125 ;;
5126 no) ENABLE_DOXYGEN=0
5127 ;;
5128 default) ENABLE_DOXYGEN=0
5129 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005130 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5131echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5132 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005133esac
5134
5135# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005136if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005137 enableval=$enable_threads;
5138else
Reid Spencer65c5d752006-11-05 17:08:18 +00005139 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005140fi
5141
5142case "$enableval" in
5143 yes) ENABLE_THREADS=1
5144 ;;
5145 no) ENABLE_THREADS=0
5146 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005147 default) ENABLE_THREADS=1
5148 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5150echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005152esac
5153
Owen Andersona8603702009-05-19 22:18:56 +00005154cat >>confdefs.h <<_ACEOF
5155#define ENABLE_THREADS $ENABLE_THREADS
5156_ACEOF
5157
5158
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005159# Check whether --enable-pthreads was given.
5160if test "${enable_pthreads+set}" = set; then
5161 enableval=$enable_pthreads;
5162else
5163 enableval=default
5164fi
5165
5166case "$enableval" in
5167 yes) ENABLE_PTHREADS=1
5168 ;;
5169 no) ENABLE_PTHREADS=0
5170 ;;
5171 default) ENABLE_PTHREADS=1
5172 ;;
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5174echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5176esac
5177
Reid Spencer89b0d992006-12-16 22:07:52 +00005178# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005179if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005180 enableval=$enable_pic;
5181else
5182 enableval=default
5183fi
5184
5185case "$enableval" in
5186 yes) ENABLE_PIC=1
5187 ;;
5188 no) ENABLE_PIC=0
5189 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005190 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005191 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5193echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005195esac
5196
5197cat >>confdefs.h <<_ACEOF
5198#define ENABLE_PIC $ENABLE_PIC
5199_ACEOF
5200
5201
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005202# Check whether --enable-shared was given.
5203if test "${enable_shared+set}" = set; then
5204 enableval=$enable_shared;
5205else
5206 enableval=default
5207fi
5208
5209case "$enableval" in
5210 yes) ENABLE_SHARED=1
5211 ;;
5212 no) ENABLE_SHARED=0
5213 ;;
5214 default) ENABLE_SHARED=0
5215 ;;
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5217echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5219esac
5220
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005221# Check whether --enable-embed-stdcxx was given.
5222if test "${enable_embed_stdcxx+set}" = set; then
5223 enableval=$enable_embed_stdcxx;
5224else
5225 enableval=default
5226fi
5227
5228case "$enableval" in
5229 yes) ENABLE_EMBED_STDCXX=1
5230 ;;
5231 no) ENABLE_EMBED_STDCXX=0
5232 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005233 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005234 ;;
5235 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5236echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5237 { (exit 1); exit 1; }; } ;;
5238esac
5239
Daniel Dunbardd464df2010-05-10 20:11:56 +00005240# Check whether --enable-timestamps was given.
5241if test "${enable_timestamps+set}" = set; then
5242 enableval=$enable_timestamps;
5243else
5244 enableval=default
5245fi
5246
5247case "$enableval" in
5248 yes) ENABLE_TIMESTAMPS=1
5249 ;;
5250 no) ENABLE_TIMESTAMPS=0
5251 ;;
5252 default) ENABLE_TIMESTAMPS=1
5253 ;;
5254 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5255echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5256 { (exit 1); exit 1; }; } ;;
5257esac
5258
5259cat >>confdefs.h <<_ACEOF
5260#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5261_ACEOF
5262
5263
Reid Spencera773bd52006-08-04 18:18:08 +00005264TARGETS_TO_BUILD=""
5265# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005266if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005267 enableval=$enable_targets;
5268else
5269 enableval=all
5270fi
5271
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005272if test "$enableval" = host-only ; then
5273 enableval=host
5274fi
Reid Spencera773bd52006-08-04 18:18:08 +00005275case "$enableval" in
Dan Gohman29074cc2011-10-24 23:48:32 +00005276 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005277 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5278 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005279 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5280 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5281 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5282 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5283 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5284 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5285 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5286 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005287 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5288 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005289 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005290 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005291 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005292 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005293 host) case "$llvm_cv_target_arch" in
5294 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5295 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5296 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5297 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5298 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5299 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5300 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005301 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005302 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005303 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5304 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005305 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005306 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005307 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5308echo "$as_me: error: Can not set target to build" >&2;}
5309 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005310 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005311 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5312echo "$as_me: error: Unrecognized target $a_target" >&2;}
5313 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005314 esac
5315 done
5316 ;;
5317esac
Reid Spencera773bd52006-08-04 18:18:08 +00005318TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5319
5320
Douglas Gregor0711c302009-06-17 00:43:20 +00005321# Determine whether we are building LLVM support for the native architecture.
5322# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5323for a_target in $TARGETS_TO_BUILD; do
5324 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5325
5326cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005327#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5328_ACEOF
5329
5330 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5331 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005332 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005333 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005334 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5335 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5336 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005337
5338cat >>confdefs.h <<_ACEOF
5339#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005340_ACEOF
5341
5342
5343cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005344#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5345_ACEOF
5346
5347
5348cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005349#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005350_ACEOF
5351
5352
5353cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005354#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005355_ACEOF
5356
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005357 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005358
5359cat >>confdefs.h <<_ACEOF
5360#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5361_ACEOF
5362
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005363 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005364 fi
5365done
5366
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005367# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5368# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005369LLVM_ENUM_TARGETS=""
5370LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005371LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005372LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005373for target_to_build in $TARGETS_TO_BUILD; do
5374 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005375 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005376 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5377 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005378 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5379 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5380 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005381 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5382 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5383 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005384done
5385
5386
5387
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005388
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005389
Reid Spencer65c5d752006-11-05 17:08:18 +00005390# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005391if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005392 enableval=$enable_cbe_printf_a;
5393else
5394 enableval=default
5395fi
5396
5397case "$enableval" in
5398 yes) ENABLE_CBE_PRINTF_A=1
5399 ;;
5400 no) ENABLE_CBE_PRINTF_A=0
5401 ;;
5402 default) ENABLE_CBE_PRINTF_A=1
5403 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005404 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5405echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5406 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005407esac
5408
5409cat >>confdefs.h <<_ACEOF
5410#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5411_ACEOF
5412
5413
Reid Spencera773bd52006-08-04 18:18:08 +00005414
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005415# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005416if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005417 withval=$with_optimize_option;
5418else
5419 withval=default
5420fi
5421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005422{ echo "$as_me:$LINENO: checking optimization flags" >&5
5423echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005424case "$withval" in
5425 default)
5426 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005427 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005428 MingW) optimize_option=-O2 ;;
5429 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005430 esac ;;
5431 *) optimize_option="$withval" ;;
5432esac
5433OPTIMIZE_OPTION=$optimize_option
5434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005435{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5436echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005437
5438
Reid Spencera773bd52006-08-04 18:18:08 +00005439# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005440if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005441 withval=$with_extra_options;
5442else
5443 withval=default
5444fi
5445
5446case "$withval" in
5447 default) EXTRA_OPTIONS= ;;
5448 *) EXTRA_OPTIONS=$withval ;;
5449esac
5450EXTRA_OPTIONS=$EXTRA_OPTIONS
5451
5452
Daniel Dunbared344d22011-06-16 22:30:41 +00005453
5454# Check whether --with-extra-ld-options was given.
5455if test "${with_extra_ld_options+set}" = set; then
5456 withval=$with_extra_ld_options;
5457else
5458 withval=default
5459fi
5460
5461case "$withval" in
5462 default) EXTRA_LD_OPTIONS= ;;
5463 *) EXTRA_LD_OPTIONS=$withval ;;
5464esac
5465EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5466
5467
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005468# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005469if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005470 enableval=$enable_bindings;
5471else
5472 enableval=default
5473fi
5474
5475BINDINGS_TO_BUILD=""
5476case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005477 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005478 all ) BINDINGS_TO_BUILD="ocaml" ;;
5479 none | no) BINDINGS_TO_BUILD="" ;;
5480 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5481 case "$a_binding" in
5482 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005483 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5484echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5485 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005486 esac
5487 done
5488 ;;
5489esac
5490
Reid Spencera773bd52006-08-04 18:18:08 +00005491
Gordon Henriksenf0915682007-10-02 16:42:22 +00005492# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005494 withval=$with_ocaml_libdir;
5495else
5496 withval=auto
5497fi
5498
5499case "$withval" in
5500 auto) with_ocaml_libdir="$withval" ;;
5501 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005502 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5503echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5504 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005505esac
5506
5507
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005508# Check whether --with-clang-srcdir was given.
5509if test "${with_clang_srcdir+set}" = set; then
5510 withval=$with_clang_srcdir;
5511else
5512 withval="-"
5513fi
5514
5515case "$withval" in
5516 -) clang_src_root="" ;;
5517 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5518 *) clang_src_root="$ac_pwd/$withval" ;;
5519esac
5520CLANG_SRC_ROOT=$clang_src_root
5521
5522
5523
Chandler Carruth6b241162010-10-19 08:21:25 +00005524# Check whether --with-clang-resource-dir was given.
5525if test "${with_clang_resource_dir+set}" = set; then
5526 withval=$with_clang_resource_dir;
5527else
5528 withval=""
5529fi
5530
5531
5532cat >>confdefs.h <<_ACEOF
5533#define CLANG_RESOURCE_DIR "$withval"
5534_ACEOF
5535
5536
5537
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005538# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005539if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005540 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005541else
5542 withval=""
5543fi
5544
5545
5546cat >>confdefs.h <<_ACEOF
5547#define C_INCLUDE_DIRS "$withval"
5548_ACEOF
5549
5550
5551
Rafael Espindola420d23c2009-11-16 19:46:55 +00005552# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005553if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005554 withval=$with_cxx_include_root;
5555else
5556 withval=""
5557fi
5558
5559
5560cat >>confdefs.h <<_ACEOF
5561#define CXX_INCLUDE_ROOT "$withval"
5562_ACEOF
5563
5564
5565
5566# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005567if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005568 withval=$with_cxx_include_arch;
5569else
5570 withval=""
5571fi
5572
5573
5574cat >>confdefs.h <<_ACEOF
5575#define CXX_INCLUDE_ARCH "$withval"
5576_ACEOF
5577
5578
5579
5580# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005581if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005582 withval=$with_cxx_include_32bit_dir;
5583else
5584 withval=""
5585fi
5586
5587
5588cat >>confdefs.h <<_ACEOF
5589#define CXX_INCLUDE_32BIT_DIR "$withval"
5590_ACEOF
5591
5592
5593
5594# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005595if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005596 withval=$with_cxx_include_64bit_dir;
5597else
5598 withval=""
5599fi
5600
5601
5602cat >>confdefs.h <<_ACEOF
5603#define CXX_INCLUDE_64BIT_DIR "$withval"
5604_ACEOF
5605
5606
5607
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005608# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005609if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005610 withval=$with_binutils_include;
5611else
5612 withval=default
5613fi
5614
5615case "$withval" in
5616 default) WITH_BINUTILS_INCDIR=default ;;
5617 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005618 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5619echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5620 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005621esac
5622if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5623 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5624
5625 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5626 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005627 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5628echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5629 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005630 fi
5631fi
5632
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005633
5634# Check whether --with-bug-report-url was given.
5635if test "${with_bug_report_url+set}" = set; then
5636 withval=$with_bug_report_url;
5637else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005638 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005639fi
5640
5641
5642cat >>confdefs.h <<_ACEOF
5643#define BUG_REPORT_URL "$withval"
5644_ACEOF
5645
5646
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005647# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005648if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005649 enableval=$enable_libffi; case "$enableval" in
5650 yes) llvm_cv_enable_libffi="yes" ;;
5651 no) llvm_cv_enable_libffi="no" ;;
5652 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005653echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5654 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005655 esac
5656else
5657 llvm_cv_enable_libffi=no
5658fi
5659
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005660
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005662{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5663echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5664if test "${lt_cv_path_NM+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005666else
5667 if test -n "$NM"; then
5668 # Let the user override the test.
5669 lt_cv_path_NM="$NM"
5670else
5671 lt_nm_to_check="${ac_tool_prefix}nm"
5672 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5673 lt_nm_to_check="$lt_nm_to_check nm"
5674 fi
5675 for lt_tmp_nm in $lt_nm_to_check; do
5676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5677 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5678 IFS="$lt_save_ifs"
5679 test -z "$ac_dir" && ac_dir=.
5680 tmp_nm="$ac_dir/$lt_tmp_nm"
5681 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5682 # Check to see if the nm accepts a BSD-compat flag.
5683 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5684 # nm: unknown option "B" ignored
5685 # Tru64's nm complains that /dev/null is an invalid object file
5686 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5687 */dev/null* | *'Invalid file or object type'*)
5688 lt_cv_path_NM="$tmp_nm -B"
5689 break
5690 ;;
5691 *)
5692 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5693 */dev/null*)
5694 lt_cv_path_NM="$tmp_nm -p"
5695 break
5696 ;;
5697 *)
5698 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5699 continue # so that we can try to find one that supports BSD flags
5700 ;;
5701 esac
5702 ;;
5703 esac
5704 fi
5705 done
5706 IFS="$lt_save_ifs"
5707 done
5708 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5709fi
5710fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005711{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5712echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005713NM="$lt_cv_path_NM"
5714
5715
5716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005717{ echo "$as_me:$LINENO: checking for GNU make" >&5
5718echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5719if test "${llvm_cv_gnu_make_command+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005721else
5722 llvm_cv_gnu_make_command=''
5723 for a in "$MAKE" make gmake gnumake ; do
5724 if test -z "$a" ; then continue ; fi ;
5725 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5726 then
5727 llvm_cv_gnu_make_command=$a ;
5728 break;
5729 fi
5730 done
5731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005732{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5733echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005734 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5735 ifGNUmake='' ;
5736 else
5737 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005738 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5739echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005740 fi
5741
5742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5744echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005745LN_S=$as_ln_s
5746if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747 { echo "$as_me:$LINENO: result: yes" >&5
5748echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005750 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5751echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005752fi
5753
5754# Extract the first word of "cmp", so it can be a program name with args.
5755set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5758if test "${ac_cv_path_CMP+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005760else
5761 case $CMP in
5762 [\\/]* | ?:[\\/]*)
5763 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5764 ;;
5765 *)
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767for as_dir in $PATH
5768do
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 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 +00005773 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005775 break 2
5776 fi
5777done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005778done
Reid Spencera773bd52006-08-04 18:18:08 +00005779IFS=$as_save_IFS
5780
5781 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5782 ;;
5783esac
5784fi
5785CMP=$ac_cv_path_CMP
5786if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787 { echo "$as_me:$LINENO: result: $CMP" >&5
5788echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005790 { echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005792fi
5793
5794
5795# Extract the first word of "cp", so it can be a program name with args.
5796set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799if test "${ac_cv_path_CP+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005801else
5802 case $CP in
5803 [\\/]* | ?:[\\/]*)
5804 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5805 ;;
5806 *)
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 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 +00005814 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005816 break 2
5817 fi
5818done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005819done
Reid Spencera773bd52006-08-04 18:18:08 +00005820IFS=$as_save_IFS
5821
5822 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5823 ;;
5824esac
5825fi
5826CP=$ac_cv_path_CP
5827if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828 { echo "$as_me:$LINENO: result: $CP" >&5
5829echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005831 { echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005833fi
5834
5835
5836# Extract the first word of "date", so it can be a program name with args.
5837set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840if test "${ac_cv_path_DATE+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005842else
5843 case $DATE in
5844 [\\/]* | ?:[\\/]*)
5845 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5846 ;;
5847 *)
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 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 +00005855 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005857 break 2
5858 fi
5859done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005860done
Reid Spencera773bd52006-08-04 18:18:08 +00005861IFS=$as_save_IFS
5862
5863 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5864 ;;
5865esac
5866fi
5867DATE=$ac_cv_path_DATE
5868if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869 { echo "$as_me:$LINENO: result: $DATE" >&5
5870echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872 { echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005874fi
5875
5876
5877# Extract the first word of "find", so it can be a program name with args.
5878set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881if test "${ac_cv_path_FIND+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005883else
5884 case $FIND in
5885 [\\/]* | ?:[\\/]*)
5886 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5887 ;;
5888 *)
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 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 +00005896 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005898 break 2
5899 fi
5900done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005901done
Reid Spencera773bd52006-08-04 18:18:08 +00005902IFS=$as_save_IFS
5903
5904 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5905 ;;
5906esac
5907fi
5908FIND=$ac_cv_path_FIND
5909if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005910 { echo "$as_me:$LINENO: result: $FIND" >&5
5911echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005913 { echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005915fi
5916
5917
5918# Extract the first word of "grep", so it can be a program name with args.
5919set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922if test "${ac_cv_path_GREP+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005924else
5925 case $GREP in
5926 [\\/]* | ?:[\\/]*)
5927 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5928 ;;
5929 *)
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 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 +00005937 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005939 break 2
5940 fi
5941done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942done
Reid Spencera773bd52006-08-04 18:18:08 +00005943IFS=$as_save_IFS
5944
5945 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5946 ;;
5947esac
5948fi
5949GREP=$ac_cv_path_GREP
5950if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951 { echo "$as_me:$LINENO: result: $GREP" >&5
5952echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005954 { echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005956fi
5957
5958
5959# Extract the first word of "mkdir", so it can be a program name with args.
5960set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963if test "${ac_cv_path_MKDIR+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005965else
5966 case $MKDIR in
5967 [\\/]* | ?:[\\/]*)
5968 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5969 ;;
5970 *)
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 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 +00005978 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005980 break 2
5981 fi
5982done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005983done
Reid Spencera773bd52006-08-04 18:18:08 +00005984IFS=$as_save_IFS
5985
5986 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5987 ;;
5988esac
5989fi
5990MKDIR=$ac_cv_path_MKDIR
5991if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005992 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5993echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005994else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005995 { echo "$as_me:$LINENO: result: no" >&5
5996echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005997fi
5998
5999
6000# Extract the first word of "mv", so it can be a program name with args.
6001set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004if test "${ac_cv_path_MV+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006006else
6007 case $MV in
6008 [\\/]* | ?:[\\/]*)
6009 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6010 ;;
6011 *)
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013for as_dir in $PATH
6014do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 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 +00006019 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006021 break 2
6022 fi
6023done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006024done
Reid Spencera773bd52006-08-04 18:18:08 +00006025IFS=$as_save_IFS
6026
6027 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6028 ;;
6029esac
6030fi
6031MV=$ac_cv_path_MV
6032if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033 { echo "$as_me:$LINENO: result: $MV" >&5
6034echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006036 { echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006038fi
6039
6040
6041if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6043set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046if test "${ac_cv_prog_RANLIB+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006048else
6049 if test -n "$RANLIB"; then
6050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 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 +00006059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006061 break 2
6062 fi
6063done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064done
Reid Spencera773bd52006-08-04 18:18:08 +00006065IFS=$as_save_IFS
6066
6067fi
6068fi
6069RANLIB=$ac_cv_prog_RANLIB
6070if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6072echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006074 { echo "$as_me:$LINENO: result: no" >&5
6075echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006076fi
6077
6078
6079fi
6080if test -z "$ac_cv_prog_RANLIB"; then
6081 ac_ct_RANLIB=$RANLIB
6082 # Extract the first word of "ranlib", so it can be a program name with args.
6083set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6086if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006088else
6089 if test -n "$ac_ct_RANLIB"; then
6090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6091else
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 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 +00006099 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006101 break 2
6102 fi
6103done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104done
Reid Spencera773bd52006-08-04 18:18:08 +00006105IFS=$as_save_IFS
6106
6107fi
6108fi
6109ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6110if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006111 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6112echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006113else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006114 { echo "$as_me:$LINENO: result: no" >&5
6115echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006116fi
6117
6118 if test "x$ac_ct_RANLIB" = x; then
6119 RANLIB=":"
6120 else
6121 case $cross_compiling:$ac_tool_warned in
6122yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006123{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6124whose name does not start with the host triplet. If you think this
6125configuration is useful to you, please write to autoconf@gnu.org." >&5
6126echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6127whose name does not start with the host triplet. If you think this
6128configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006129ac_tool_warned=yes ;;
6130esac
6131 RANLIB=$ac_ct_RANLIB
6132 fi
6133else
6134 RANLIB="$ac_cv_prog_RANLIB"
6135fi
6136
Torok Edwin871384f2010-01-26 08:50:50 +00006137if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6139set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142if test "${ac_cv_prog_AR+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006144else
6145 if test -n "$AR"; then
6146 ac_cv_prog_AR="$AR" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 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 +00006155 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006157 break 2
6158 fi
6159done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006160done
Torok Edwin871384f2010-01-26 08:50:50 +00006161IFS=$as_save_IFS
6162
6163fi
6164fi
6165AR=$ac_cv_prog_AR
6166if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167 { echo "$as_me:$LINENO: result: $AR" >&5
6168echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006170 { echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006172fi
6173
6174
6175fi
6176if test -z "$ac_cv_prog_AR"; then
6177 ac_ct_AR=$AR
6178 # Extract the first word of "ar", so it can be a program name with args.
6179set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006184else
6185 if test -n "$ac_ct_AR"; then
6186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 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 +00006195 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006197 break 2
6198 fi
6199done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200done
Torok Edwin871384f2010-01-26 08:50:50 +00006201IFS=$as_save_IFS
6202
6203fi
6204fi
6205ac_ct_AR=$ac_cv_prog_ac_ct_AR
6206if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006207 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6208echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006210 { echo "$as_me:$LINENO: result: no" >&5
6211echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006212fi
6213
6214 if test "x$ac_ct_AR" = x; then
6215 AR="false"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006219{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6220whose name does not start with the host triplet. If you think this
6221configuration is useful to you, please write to autoconf@gnu.org." >&5
6222echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6223whose name does not start with the host triplet. If you think this
6224configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006225ac_tool_warned=yes ;;
6226esac
6227 AR=$ac_ct_AR
6228 fi
6229else
6230 AR="$ac_cv_prog_AR"
6231fi
6232
Reid Spencera773bd52006-08-04 18:18:08 +00006233# Extract the first word of "rm", so it can be a program name with args.
6234set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237if test "${ac_cv_path_RM+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006239else
6240 case $RM in
6241 [\\/]* | ?:[\\/]*)
6242 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6243 ;;
6244 *)
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 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 +00006252 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006254 break 2
6255 fi
6256done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257done
Reid Spencera773bd52006-08-04 18:18:08 +00006258IFS=$as_save_IFS
6259
6260 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6261 ;;
6262esac
6263fi
6264RM=$ac_cv_path_RM
6265if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266 { echo "$as_me:$LINENO: result: $RM" >&5
6267echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006269 { echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006271fi
6272
6273
6274# Extract the first word of "sed", so it can be a program name with args.
6275set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6278if test "${ac_cv_path_SED+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006280else
6281 case $SED in
6282 [\\/]* | ?:[\\/]*)
6283 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6284 ;;
6285 *)
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287for as_dir in $PATH
6288do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 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 +00006293 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006295 break 2
6296 fi
6297done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298done
Reid Spencera773bd52006-08-04 18:18:08 +00006299IFS=$as_save_IFS
6300
6301 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6302 ;;
6303esac
6304fi
6305SED=$ac_cv_path_SED
6306if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307 { echo "$as_me:$LINENO: result: $SED" >&5
6308echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006309else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310 { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006312fi
6313
6314
6315# Extract the first word of "tar", so it can be a program name with args.
6316set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6319if test "${ac_cv_path_TAR+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006321else
6322 case $TAR in
6323 [\\/]* | ?:[\\/]*)
6324 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6325 ;;
6326 *)
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 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 +00006334 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006336 break 2
6337 fi
6338done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006339done
Reid Spencera773bd52006-08-04 18:18:08 +00006340IFS=$as_save_IFS
6341
6342 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6343 ;;
6344esac
6345fi
6346TAR=$ac_cv_path_TAR
6347if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348 { echo "$as_me:$LINENO: result: $TAR" >&5
6349echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006350else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006351 { echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006353fi
6354
6355
6356# Extract the first word of "pwd", so it can be a program name with args.
6357set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6360if test "${ac_cv_path_BINPWD+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006362else
6363 case $BINPWD in
6364 [\\/]* | ?:[\\/]*)
6365 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6366 ;;
6367 *)
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 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 +00006375 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006377 break 2
6378 fi
6379done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380done
Reid Spencera773bd52006-08-04 18:18:08 +00006381IFS=$as_save_IFS
6382
6383 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6384 ;;
6385esac
6386fi
6387BINPWD=$ac_cv_path_BINPWD
6388if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6390echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006392 { echo "$as_me:$LINENO: result: no" >&5
6393echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006394fi
6395
6396
6397
6398# Extract the first word of "Graphviz", so it can be a program name with args.
6399set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6402if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006404else
6405 case $GRAPHVIZ in
6406 [\\/]* | ?:[\\/]*)
6407 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6408 ;;
6409 *)
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 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 +00006417 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006419 break 2
6420 fi
6421done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422done
Reid Spencera773bd52006-08-04 18:18:08 +00006423IFS=$as_save_IFS
6424
6425 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6426 ;;
6427esac
6428fi
6429GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6430if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006431 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6432echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006434 { echo "$as_me:$LINENO: result: no" >&5
6435echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006436fi
6437
6438
6439if test "$GRAPHVIZ" != "echo Graphviz" ; then
6440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441cat >>confdefs.h <<\_ACEOF
6442#define HAVE_GRAPHVIZ 1
6443_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006444
Jeff Cohen28783c32007-01-12 18:22:38 +00006445 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006446 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6447 fi
6448
6449cat >>confdefs.h <<_ACEOF
6450#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6451_ACEOF
6452
6453fi
6454# Extract the first word of "dot", so it can be a program name with args.
6455set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458if test "${ac_cv_path_DOT+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006460else
6461 case $DOT in
6462 [\\/]* | ?:[\\/]*)
6463 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6464 ;;
6465 *)
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 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 +00006473 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006475 break 2
6476 fi
6477done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478done
Reid Spencera773bd52006-08-04 18:18:08 +00006479IFS=$as_save_IFS
6480
6481 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6482 ;;
6483esac
6484fi
6485DOT=$ac_cv_path_DOT
6486if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006487 { echo "$as_me:$LINENO: result: $DOT" >&5
6488echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006490 { echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006492fi
6493
6494
6495if test "$DOT" != "echo dot" ; then
6496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006497cat >>confdefs.h <<\_ACEOF
6498#define HAVE_DOT 1
6499_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006500
Jeff Cohen28783c32007-01-12 18:22:38 +00006501 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006502 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6503 fi
6504
6505cat >>confdefs.h <<_ACEOF
6506#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6507_ACEOF
6508
6509fi
David Greenef0b9eff2009-07-09 17:16:26 +00006510# Extract the first word of "fdp", so it can be a program name with args.
6511set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514if test "${ac_cv_path_FDP+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006516else
6517 case $FDP in
6518 [\\/]* | ?:[\\/]*)
6519 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6520 ;;
6521 *)
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 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 +00006529 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006531 break 2
6532 fi
6533done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534done
David Greenef0b9eff2009-07-09 17:16:26 +00006535IFS=$as_save_IFS
6536
6537 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6538 ;;
6539esac
6540fi
6541FDP=$ac_cv_path_FDP
6542if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006543 { echo "$as_me:$LINENO: result: $FDP" >&5
6544echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546 { echo "$as_me:$LINENO: result: no" >&5
6547echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006548fi
6549
6550
6551if test "$FDP" != "echo fdp" ; then
6552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553cat >>confdefs.h <<\_ACEOF
6554#define HAVE_FDP 1
6555_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006556
6557 if test "$llvm_cv_os_type" = "MingW" ; then
6558 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6559 fi
6560
6561cat >>confdefs.h <<_ACEOF
6562#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6563_ACEOF
6564
6565fi
6566# Extract the first word of "neato", so it can be a program name with args.
6567set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570if test "${ac_cv_path_NEATO+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006572else
6573 case $NEATO in
6574 [\\/]* | ?:[\\/]*)
6575 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6576 ;;
6577 *)
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 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 +00006585 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006587 break 2
6588 fi
6589done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590done
David Greenef0b9eff2009-07-09 17:16:26 +00006591IFS=$as_save_IFS
6592
6593 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6594 ;;
6595esac
6596fi
6597NEATO=$ac_cv_path_NEATO
6598if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599 { echo "$as_me:$LINENO: result: $NEATO" >&5
6600echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602 { echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006604fi
6605
6606
6607if test "$NEATO" != "echo neato" ; then
6608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609cat >>confdefs.h <<\_ACEOF
6610#define HAVE_NEATO 1
6611_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006612
6613 if test "$llvm_cv_os_type" = "MingW" ; then
6614 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6615 fi
6616
6617cat >>confdefs.h <<_ACEOF
6618#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6619_ACEOF
6620
6621fi
6622# Extract the first word of "twopi", so it can be a program name with args.
6623set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626if test "${ac_cv_path_TWOPI+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006628else
6629 case $TWOPI in
6630 [\\/]* | ?:[\\/]*)
6631 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6632 ;;
6633 *)
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 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 +00006641 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006643 break 2
6644 fi
6645done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646done
David Greenef0b9eff2009-07-09 17:16:26 +00006647IFS=$as_save_IFS
6648
6649 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6650 ;;
6651esac
6652fi
6653TWOPI=$ac_cv_path_TWOPI
6654if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006655 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6656echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658 { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006660fi
6661
6662
6663if test "$TWOPI" != "echo twopi" ; then
6664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665cat >>confdefs.h <<\_ACEOF
6666#define HAVE_TWOPI 1
6667_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006668
6669 if test "$llvm_cv_os_type" = "MingW" ; then
6670 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6671 fi
6672
6673cat >>confdefs.h <<_ACEOF
6674#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6675_ACEOF
6676
6677fi
6678# Extract the first word of "circo", so it can be a program name with args.
6679set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682if test "${ac_cv_path_CIRCO+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006684else
6685 case $CIRCO in
6686 [\\/]* | ?:[\\/]*)
6687 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6688 ;;
6689 *)
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 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 +00006697 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006699 break 2
6700 fi
6701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702done
David Greenef0b9eff2009-07-09 17:16:26 +00006703IFS=$as_save_IFS
6704
6705 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6706 ;;
6707esac
6708fi
6709CIRCO=$ac_cv_path_CIRCO
6710if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6712echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006714 { echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006716fi
6717
6718
6719if test "$CIRCO" != "echo circo" ; then
6720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721cat >>confdefs.h <<\_ACEOF
6722#define HAVE_CIRCO 1
6723_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006724
6725 if test "$llvm_cv_os_type" = "MingW" ; then
6726 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6727 fi
6728
6729cat >>confdefs.h <<_ACEOF
6730#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6731_ACEOF
6732
6733fi
Reid Spencera773bd52006-08-04 18:18:08 +00006734for ac_prog in gv gsview32
6735do
6736 # Extract the first word of "$ac_prog", so it can be a program name with args.
6737set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740if test "${ac_cv_path_GV+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006742else
6743 case $GV in
6744 [\\/]* | ?:[\\/]*)
6745 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6746 ;;
6747 *)
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 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 +00006755 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006757 break 2
6758 fi
6759done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760done
Reid Spencera773bd52006-08-04 18:18:08 +00006761IFS=$as_save_IFS
6762
6763 ;;
6764esac
6765fi
6766GV=$ac_cv_path_GV
6767if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768 { echo "$as_me:$LINENO: result: $GV" >&5
6769echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771 { echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006773fi
6774
6775
6776 test -n "$GV" && break
6777done
6778test -n "$GV" || GV="echo gv"
6779
6780if test "$GV" != "echo gv" ; then
6781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782cat >>confdefs.h <<\_ACEOF
6783#define HAVE_GV 1
6784_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006785
Jeff Cohen28783c32007-01-12 18:22:38 +00006786 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006787 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6788 fi
6789
6790cat >>confdefs.h <<_ACEOF
6791#define LLVM_PATH_GV "$GV${EXEEXT}"
6792_ACEOF
6793
6794fi
6795# Extract the first word of "dotty", so it can be a program name with args.
6796set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799if test "${ac_cv_path_DOTTY+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006801else
6802 case $DOTTY in
6803 [\\/]* | ?:[\\/]*)
6804 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6805 ;;
6806 *)
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 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 +00006814 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006816 break 2
6817 fi
6818done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006819done
Reid Spencera773bd52006-08-04 18:18:08 +00006820IFS=$as_save_IFS
6821
6822 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6823 ;;
6824esac
6825fi
6826DOTTY=$ac_cv_path_DOTTY
6827if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006828 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6829echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006831 { echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006833fi
6834
6835
6836if test "$DOTTY" != "echo dotty" ; then
6837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838cat >>confdefs.h <<\_ACEOF
6839#define HAVE_DOTTY 1
6840_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006841
Jeff Cohen28783c32007-01-12 18:22:38 +00006842 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006843 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6844 fi
6845
6846cat >>confdefs.h <<_ACEOF
6847#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6848_ACEOF
6849
6850fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006851# Extract the first word of "xdot.py", so it can be a program name with args.
6852set dummy xdot.py; ac_word=$2
6853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855if test "${ac_cv_path_XDOT_PY+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858 case $XDOT_PY in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6861 ;;
6862 *)
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874done
6875done
6876IFS=$as_save_IFS
6877
6878 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6879 ;;
6880esac
6881fi
6882XDOT_PY=$ac_cv_path_XDOT_PY
6883if test -n "$XDOT_PY"; then
6884 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6885echo "${ECHO_T}$XDOT_PY" >&6; }
6886else
6887 { echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6; }
6889fi
6890
6891
6892if test "$XDOT_PY" != "echo xdot.py" ; then
6893
6894cat >>confdefs.h <<\_ACEOF
6895#define HAVE_XDOT_PY 1
6896_ACEOF
6897
6898 if test "$llvm_cv_os_type" = "MingW" ; then
6899 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6900 fi
6901
6902cat >>confdefs.h <<_ACEOF
6903#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6904_ACEOF
6905
6906fi
Reid Spencera773bd52006-08-04 18:18:08 +00006907
6908
6909# Extract the first word of "perl", so it can be a program name with args.
6910set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913if test "${ac_cv_path_PERL+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006915else
6916 case $PERL in
6917 [\\/]* | ?:[\\/]*)
6918 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6919 ;;
6920 *)
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 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 +00006928 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006930 break 2
6931 fi
6932done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933done
Reid Spencera773bd52006-08-04 18:18:08 +00006934IFS=$as_save_IFS
6935
6936 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6937 ;;
6938esac
6939fi
6940PERL=$ac_cv_path_PERL
6941if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 { echo "$as_me:$LINENO: result: $PERL" >&5
6943echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945 { echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006947fi
6948
6949
6950if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006951 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6952echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006953 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954 { echo "$as_me:$LINENO: result: yes" >&5
6955echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006956 else
6957 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006958 { echo "$as_me:$LINENO: result: not found" >&5
6959echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006960 fi
6961fi
6962
6963
6964if test x"$PERL" = xnone; then
6965 HAVE_PERL=0
6966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6968echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6969 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006970else
6971 HAVE_PERL=1
6972
6973fi
6974
6975# Find a good install program. We prefer a C program (faster),
6976# so one script is as good as another. But avoid the broken or
6977# incompatible versions:
6978# SysV /etc/install, /usr/sbin/install
6979# SunOS /usr/etc/install
6980# IRIX /sbin/install
6981# AIX /bin/install
6982# AmigaOS /C/install, which installs bootblocks on floppy discs
6983# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6984# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6985# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6986# OS/2's system install, which has a completely different semantic
6987# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6989echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006990if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991if test "${ac_cv_path_install+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006993else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006999 # Account for people who put trailing slashes in PATH elements.
7000case $as_dir/ in
7001 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007002 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007004 /usr/ucb/* ) ;;
7005 *)
7006 # OSF1 and SCO ODT 3.0 have their own names for install.
7007 # Don't use installbsd from OSF since it installs stuff as root
7008 # by default.
7009 for ac_prog in ginstall scoinst install; do
7010 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007011 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 +00007012 if test $ac_prog = install &&
7013 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014 # AIX install. It has an incompatible calling convention.
7015 :
7016 elif test $ac_prog = install &&
7017 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7018 # program-specific install script used by HP pwplus--don't use.
7019 :
7020 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7022 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007023 fi
7024 fi
7025 done
7026 done
7027 ;;
7028esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029done
Reid Spencera773bd52006-08-04 18:18:08 +00007030IFS=$as_save_IFS
7031
7032
7033fi
7034 if test "${ac_cv_path_install+set}" = set; then
7035 INSTALL=$ac_cv_path_install
7036 else
7037 # As a last resort, use the slow shell script. Don't cache a
7038 # value for INSTALL within a source directory, because that will
7039 # break other packages using the cache if that directory is
7040 # removed, or if the value is a relative name.
7041 INSTALL=$ac_install_sh
7042 fi
7043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7045echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007046
7047# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7048# It thinks the first close brace ends the variable substitution.
7049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7050
7051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7052
7053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7054
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007055case "$INSTALL" in
7056 [\\/$]* | ?:[\\/]* ) ;;
7057 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7058esac
Reid Spencera773bd52006-08-04 18:18:08 +00007059
7060# Extract the first word of "bzip2", so it can be a program name with args.
7061set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064if test "${ac_cv_path_BZIP2+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007066else
7067 case $BZIP2 in
7068 [\\/]* | ?:[\\/]*)
7069 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7070 ;;
7071 *)
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 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 +00007079 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007081 break 2
7082 fi
7083done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084done
Reid Spencera773bd52006-08-04 18:18:08 +00007085IFS=$as_save_IFS
7086
Reid Spencera773bd52006-08-04 18:18:08 +00007087 ;;
7088esac
7089fi
7090BZIP2=$ac_cv_path_BZIP2
7091if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7093echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007095 { echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007097fi
7098
7099
mike-m68cb3192010-05-06 23:45:43 +00007100# Extract the first word of "cat", so it can be a program name with args.
7101set dummy cat; ac_word=$2
7102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104if test "${ac_cv_path_CAT+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106else
7107 case $CAT in
7108 [\\/]* | ?:[\\/]*)
7109 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7110 ;;
7111 *)
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7122 fi
7123done
7124done
7125IFS=$as_save_IFS
7126
7127 ;;
7128esac
7129fi
7130CAT=$ac_cv_path_CAT
7131if test -n "$CAT"; then
7132 { echo "$as_me:$LINENO: result: $CAT" >&5
7133echo "${ECHO_T}$CAT" >&6; }
7134else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6; }
7137fi
7138
7139
Reid Spencera773bd52006-08-04 18:18:08 +00007140# Extract the first word of "doxygen", so it can be a program name with args.
7141set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144if test "${ac_cv_path_DOXYGEN+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007146else
7147 case $DOXYGEN in
7148 [\\/]* | ?:[\\/]*)
7149 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7150 ;;
7151 *)
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 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 +00007159 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007161 break 2
7162 fi
7163done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007164done
Reid Spencera773bd52006-08-04 18:18:08 +00007165IFS=$as_save_IFS
7166
Reid Spencera773bd52006-08-04 18:18:08 +00007167 ;;
7168esac
7169fi
7170DOXYGEN=$ac_cv_path_DOXYGEN
7171if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7173echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007174else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175 { echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007177fi
7178
7179
Reid Spencera773bd52006-08-04 18:18:08 +00007180# Extract the first word of "groff", so it can be a program name with args.
7181set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184if test "${ac_cv_path_GROFF+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007186else
7187 case $GROFF in
7188 [\\/]* | ?:[\\/]*)
7189 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7190 ;;
7191 *)
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 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 +00007199 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007201 break 2
7202 fi
7203done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204done
Reid Spencera773bd52006-08-04 18:18:08 +00007205IFS=$as_save_IFS
7206
Reid Spencera773bd52006-08-04 18:18:08 +00007207 ;;
7208esac
7209fi
7210GROFF=$ac_cv_path_GROFF
7211if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212 { echo "$as_me:$LINENO: result: $GROFF" >&5
7213echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007214else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215 { echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007217fi
7218
7219
7220# Extract the first word of "gzip", so it can be a program name with args.
7221set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007224if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007226else
Eric Christopher031d3072010-12-10 01:31:51 +00007227 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007228 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007229 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007230 ;;
7231 *)
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 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 +00007239 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007241 break 2
7242 fi
7243done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244done
Reid Spencera773bd52006-08-04 18:18:08 +00007245IFS=$as_save_IFS
7246
Reid Spencera773bd52006-08-04 18:18:08 +00007247 ;;
7248esac
7249fi
Eric Christopher031d3072010-12-10 01:31:51 +00007250GZIPBIN=$ac_cv_path_GZIPBIN
7251if test -n "$GZIPBIN"; then
7252 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7253echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255 { echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007257fi
7258
7259
7260# Extract the first word of "pod2html", so it can be a program name with args.
7261set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_POD2HTML+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007266else
7267 case $POD2HTML in
7268 [\\/]* | ?:[\\/]*)
7269 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7270 ;;
7271 *)
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 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 +00007279 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007281 break 2
7282 fi
7283done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284done
Reid Spencera773bd52006-08-04 18:18:08 +00007285IFS=$as_save_IFS
7286
Reid Spencera773bd52006-08-04 18:18:08 +00007287 ;;
7288esac
7289fi
7290POD2HTML=$ac_cv_path_POD2HTML
7291if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007292 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7293echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007295 { echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007297fi
7298
7299
7300# Extract the first word of "pod2man", so it can be a program name with args.
7301set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304if test "${ac_cv_path_POD2MAN+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007306else
7307 case $POD2MAN in
7308 [\\/]* | ?:[\\/]*)
7309 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7310 ;;
7311 *)
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 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 +00007319 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007321 break 2
7322 fi
7323done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324done
Reid Spencera773bd52006-08-04 18:18:08 +00007325IFS=$as_save_IFS
7326
Reid Spencera773bd52006-08-04 18:18:08 +00007327 ;;
7328esac
7329fi
7330POD2MAN=$ac_cv_path_POD2MAN
7331if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7333echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335 { echo "$as_me:$LINENO: result: no" >&5
7336echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007337fi
7338
7339
mike-m68cb3192010-05-06 23:45:43 +00007340# Extract the first word of "pdfroff", so it can be a program name with args.
7341set dummy pdfroff; ac_word=$2
7342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344if test "${ac_cv_path_PDFROFF+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347 case $PDFROFF in
7348 [\\/]* | ?:[\\/]*)
7349 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7350 ;;
7351 *)
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363done
7364done
7365IFS=$as_save_IFS
7366
7367 ;;
7368esac
7369fi
7370PDFROFF=$ac_cv_path_PDFROFF
7371if test -n "$PDFROFF"; then
7372 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7373echo "${ECHO_T}$PDFROFF" >&6; }
7374else
7375 { echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6; }
7377fi
7378
7379
Reid Spencera773bd52006-08-04 18:18:08 +00007380# Extract the first word of "runtest", so it can be a program name with args.
7381set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384if test "${ac_cv_path_RUNTEST+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007386else
7387 case $RUNTEST in
7388 [\\/]* | ?:[\\/]*)
7389 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7390 ;;
7391 *)
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 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 +00007399 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007401 break 2
7402 fi
7403done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404done
Reid Spencera773bd52006-08-04 18:18:08 +00007405IFS=$as_save_IFS
7406
Reid Spencera773bd52006-08-04 18:18:08 +00007407 ;;
7408esac
7409fi
7410RUNTEST=$ac_cv_path_RUNTEST
7411if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7413echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007415 { echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007417fi
7418
7419
7420
7421no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7423echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007424
7425# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007427 withval=$with_tclinclude; with_tclinclude=${withval}
7428else
7429 with_tclinclude=''
7430fi
7431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432if test "${ac_cv_path_tclsh+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007434else
7435
7436if test x"${with_tclinclude}" != x ; then
7437 if test -f ${with_tclinclude}/tclsh ; then
7438 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7439 elif test -f ${with_tclinclude}/src/tclsh ; then
7440 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7441 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7443echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7444 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007445 fi
7446fi
Torok Edwin871384f2010-01-26 08:50:50 +00007447fi
7448
Reid Spencera773bd52006-08-04 18:18:08 +00007449
7450if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 { echo "$as_me:$LINENO: result: none" >&5
7452echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007453 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
7454do
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459if test "${ac_cv_path_TCLSH+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007461else
7462 case $TCLSH in
7463 [\\/]* | ?:[\\/]*)
7464 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7465 ;;
7466 *)
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 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 +00007474 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007476 break 2
7477 fi
7478done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007479done
Reid Spencera773bd52006-08-04 18:18:08 +00007480IFS=$as_save_IFS
7481
7482 ;;
7483esac
7484fi
7485TCLSH=$ac_cv_path_TCLSH
7486if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007487 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7488echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490 { echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007492fi
7493
7494
7495 test -n "$TCLSH" && break
7496done
7497
7498 if test x"${TCLSH}" = x ; then
7499 ac_cv_path_tclsh='';
7500 else
7501 ac_cv_path_tclsh="${TCLSH}";
7502 fi
7503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7505echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007506 TCLSH="${ac_cv_path_tclsh}"
7507
7508fi
7509
Reid Spencera773bd52006-08-04 18:18:08 +00007510# Extract the first word of "zip", so it can be a program name with args.
7511set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514if test "${ac_cv_path_ZIP+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007516else
7517 case $ZIP in
7518 [\\/]* | ?:[\\/]*)
7519 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7520 ;;
7521 *)
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007529 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007531 break 2
7532 fi
7533done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007534done
Reid Spencera773bd52006-08-04 18:18:08 +00007535IFS=$as_save_IFS
7536
Reid Spencera773bd52006-08-04 18:18:08 +00007537 ;;
7538esac
7539fi
7540ZIP=$ac_cv_path_ZIP
7541if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542 { echo "$as_me:$LINENO: result: $ZIP" >&5
7543echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007545 { echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007547fi
7548
7549
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007550for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007551do
7552 # Extract the first word of "$ac_prog", so it can be a program name with args.
7553set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556if test "${ac_cv_path_OCAMLC+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007558else
7559 case $OCAMLC in
7560 [\\/]* | ?:[\\/]*)
7561 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7562 ;;
7563 *)
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007571 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007573 break 2
7574 fi
7575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007577IFS=$as_save_IFS
7578
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007579 ;;
7580esac
7581fi
7582OCAMLC=$ac_cv_path_OCAMLC
7583if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7585echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007587 { echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007589fi
7590
7591
Gordon Henriksene7072162008-03-07 18:20:01 +00007592 test -n "$OCAMLC" && break
7593done
7594
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007595for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007596do
7597 # Extract the first word of "$ac_prog", so it can be a program name with args.
7598set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007603else
7604 case $OCAMLOPT in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 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 +00007616 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007618 break 2
7619 fi
7620done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007622IFS=$as_save_IFS
7623
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007624 ;;
7625esac
7626fi
7627OCAMLOPT=$ac_cv_path_OCAMLOPT
7628if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007629 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7630echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632 { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007634fi
7635
7636
Gordon Henriksene7072162008-03-07 18:20:01 +00007637 test -n "$OCAMLOPT" && break
7638done
7639
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007640for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007641do
7642 # Extract the first word of "$ac_prog", so it can be a program name with args.
7643set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007648else
7649 case $OCAMLDEP in
7650 [\\/]* | ?:[\\/]*)
7651 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7652 ;;
7653 *)
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007661 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007663 break 2
7664 fi
7665done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007667IFS=$as_save_IFS
7668
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007669 ;;
7670esac
7671fi
7672OCAMLDEP=$ac_cv_path_OCAMLDEP
7673if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7675echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 { echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007679fi
7680
7681
Gordon Henriksene7072162008-03-07 18:20:01 +00007682 test -n "$OCAMLDEP" && break
7683done
7684
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007685for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007686do
7687 # Extract the first word of "$ac_prog", so it can be a program name with args.
7688set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007693else
7694 case $OCAMLDOC in
7695 [\\/]* | ?:[\\/]*)
7696 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7697 ;;
7698 *)
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 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 +00007706 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007708 break 2
7709 fi
7710done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007711done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007712IFS=$as_save_IFS
7713
7714 ;;
7715esac
7716fi
7717OCAMLDOC=$ac_cv_path_OCAMLDOC
7718if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007719 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7720echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722 { echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007724fi
7725
7726
7727 test -n "$OCAMLDOC" && break
7728done
7729
Torok Edwincc499a42008-10-22 09:56:27 +00007730for ac_prog in gas as
7731do
7732 # Extract the first word of "$ac_prog", so it can be a program name with args.
7733set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736if test "${ac_cv_path_GAS+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007738else
7739 case $GAS in
7740 [\\/]* | ?:[\\/]*)
7741 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7742 ;;
7743 *)
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 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 +00007751 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007753 break 2
7754 fi
7755done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756done
Torok Edwincc499a42008-10-22 09:56:27 +00007757IFS=$as_save_IFS
7758
7759 ;;
7760esac
7761fi
7762GAS=$ac_cv_path_GAS
7763if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007764 { echo "$as_me:$LINENO: result: $GAS" >&5
7765echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007767 { echo "$as_me:$LINENO: result: no" >&5
7768echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007769fi
7770
7771
7772 test -n "$GAS" && break
7773done
7774
Reid Spencera773bd52006-08-04 18:18:08 +00007775
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007776{ echo "$as_me:$LINENO: checking for linker version" >&5
7777echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7778if test "${llvm_cv_link_version+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781
7782 version_string="$(ld -v 2>&1 | head -1)"
7783
7784 # Check for ld64.
7785 if (echo "$version_string" | grep -q "ld64"); then
7786 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7787 else
7788 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7789 fi
7790
7791fi
7792{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7793echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7794
7795cat >>confdefs.h <<_ACEOF
7796#define HOST_LINK_VERSION "$llvm_cv_link_version"
7797_ACEOF
7798
7799
7800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7802echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7803if test "${llvm_cv_link_use_r+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007805else
7806 ac_ext=c
7807ac_cpp='$CPP $CPPFLAGS'
7808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811
7812 oldcflags="$CFLAGS"
7813 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 cat >conftest.$ac_ext <<_ACEOF
7815/* confdefs.h. */
7816_ACEOF
7817cat confdefs.h >>conftest.$ac_ext
7818cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007819/* end confdefs.h. */
7820
7821int
7822main ()
7823{
Dan Gohman39ed6782010-04-25 00:12:20 +00007824
Reid Spencera773bd52006-08-04 18:18:08 +00007825 ;
7826 return 0;
7827}
7828_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007829rm -f conftest.$ac_objext conftest$ac_exeext
7830if { (ac_try="$ac_link"
7831case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834esac
7835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_link") 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
7848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007863 llvm_cv_link_use_r=yes
7864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 echo "$as_me: failed program was:" >&5
7866sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007870
Bill Wendlingebcceee2009-04-18 11:20:33 +00007871rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007873 CFLAGS="$oldcflags"
7874 ac_ext=c
7875ac_cpp='$CPP $CPPFLAGS'
7876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880
7881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007882{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7883echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007884if test "$llvm_cv_link_use_r" = yes ; then
7885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007886cat >>confdefs.h <<\_ACEOF
7887#define HAVE_LINK_R 1
7888_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007889
7890 fi
7891
7892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007893{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7894echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7895if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007897else
7898 ac_ext=c
7899ac_cpp='$CPP $CPPFLAGS'
7900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904 oldcflags="$CFLAGS"
7905 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h. */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007911/* end confdefs.h. */
7912
7913int
7914main ()
7915{
Dan Gohman39ed6782010-04-25 00:12:20 +00007916
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007917 ;
7918 return 0;
7919}
7920_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007921rm -f conftest.$ac_objext conftest$ac_exeext
7922if { (ac_try="$ac_link"
7923case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_link") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7936 { (case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939esac
7940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_try") 2>&5
7942 ac_status=$?
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; } &&
7945 { ac_try='test -s conftest$ac_exeext'
7946 { (case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_try") 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007955 llvm_cv_link_use_export_dynamic=yes
7956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007957 echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007961fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007962
Bill Wendlingebcceee2009-04-18 11:20:33 +00007963rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007964 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007965 CFLAGS="$oldcflags"
7966 ac_ext=c
7967ac_cpp='$CPP $CPPFLAGS'
7968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971
7972
7973fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007974{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7975echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007976if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007978cat >>confdefs.h <<\_ACEOF
7979#define HAVE_LINK_EXPORT_DYNAMIC 1
7980_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007981
7982 fi
7983
7984
Dan Gohmanda612d62010-06-01 14:56:56 +00007985{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7986echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7987if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990 ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996 oldcflags="$CFLAGS"
7997
7998 # The following code is from the autoconf manual,
7999 # "11.13: Limitations of Usual Tools".
8000 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8001 # Use mktemp if possible; otherwise fall back on mkdir,
8002 # with $RANDOM to make collisions less likely.
8003 : ${TMPDIR=/tmp}
8004 {
8005 tmp=`
8006 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8007 ` &&
8008 test -n "$tmp" && test -d "$tmp"
8009 } || {
8010 tmp=$TMPDIR/foo$$-$RANDOM
8011 (umask 077 && mkdir "$tmp")
8012 } || exit $?
8013
Dan Gohmanda612d62010-06-01 14:56:56 +00008014 echo "{" > "$tmp/export.map"
8015 echo " global: main;" >> "$tmp/export.map"
8016 echo " local: *;" >> "$tmp/export.map"
8017 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008018
Dan Gohmanda612d62010-06-01 14:56:56 +00008019 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008020 cat >conftest.$ac_ext <<_ACEOF
8021/* confdefs.h. */
8022_ACEOF
8023cat confdefs.h >>conftest.$ac_ext
8024cat >>conftest.$ac_ext <<_ACEOF
8025/* end confdefs.h. */
8026
8027int
8028main ()
8029{
Dan Gohman39ed6782010-04-25 00:12:20 +00008030
Dan Gohman391569c2010-04-16 22:59:06 +00008031 ;
8032 return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext conftest$ac_exeext
8036if { (ac_try="$ac_link"
8037case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040esac
8041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8050 { (case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_try") 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063esac
8064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_try") 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008069 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008070else
8071 echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
Dan Gohman943005e2010-06-01 16:22:27 +00008074 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008075fi
8076
8077rm -f core conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008079 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008080 rmdir "$tmp"
8081 CFLAGS="$oldcflags"
8082 ac_ext=c
8083ac_cpp='$CPP $CPPFLAGS'
8084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8086ac_compiler_gnu=$ac_cv_c_compiler_gnu
8087
8088
8089fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008090{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8091echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8092if test "$llvm_cv_link_use_version_script" = yes ; then
8093 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008094
8095 fi
8096
8097
Reid Spencera773bd52006-08-04 18:18:08 +00008098
8099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008100{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8101echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8102if test "${ac_cv_c_const+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008105 cat >conftest.$ac_ext <<_ACEOF
8106/* confdefs.h. */
8107_ACEOF
8108cat confdefs.h >>conftest.$ac_ext
8109cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008110/* end confdefs.h. */
8111
8112int
8113main ()
8114{
8115/* FIXME: Include the comments suggested by Paul. */
8116#ifndef __cplusplus
8117 /* Ultrix mips cc rejects this. */
8118 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008119 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008120 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121 char const *const *ccp;
8122 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008123 /* NEC SVR4.0.2 mips cc rejects this. */
8124 struct point {int x, y;};
8125 static struct point const zero = {0,0};
8126 /* AIX XL C 1.02.0.0 rejects this.
8127 It does not let you subtract one const X* pointer from another in
8128 an arm of an if-expression whose if-part is not a constant
8129 expression */
8130 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008132 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008133 ++ccp;
8134 p = (char**) ccp;
8135 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008136 { /* SCO 3.2v4 cc rejects this. */
8137 char *t;
8138 char const *s = 0 ? (char *) 0 : (char const *) 0;
8139
8140 *t++ = 0;
8141 if (s) return 0;
8142 }
8143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8144 int x[] = {25, 17};
8145 const int *foo = &x[0];
8146 ++foo;
8147 }
8148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8149 typedef const int *iptr;
8150 iptr p = 0;
8151 ++p;
8152 }
8153 { /* AIX XL C 1.02.0.0 rejects this saying
8154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8155 struct s { int j; const int *ap[3]; };
8156 struct s *b; b->j = 5;
8157 }
8158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8159 const int foo = 10;
8160 if (!foo) return 0;
8161 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008162 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008163#endif
8164
8165 ;
8166 return 0;
8167}
8168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169rm -f conftest.$ac_objext
8170if { (ac_try="$ac_compile"
8171case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174esac
8175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_compile") 2>conftest.er1
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8184 { (case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187esac
8188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_try") 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_try") 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008203 ac_cv_c_const=yes
8204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008205 echo "$as_me: failed program was:" >&5
8206sed 's/^/| /' conftest.$ac_ext >&5
8207
8208 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210
Reid Spencera773bd52006-08-04 18:18:08 +00008211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008213{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8214echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008215if test $ac_cv_c_const = no; then
8216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008217cat >>confdefs.h <<\_ACEOF
8218#define const
8219_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008220
8221fi
8222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008223
8224
8225
8226
8227
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008228ac_header_dirent=no
8229for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8231{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8232echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236 cat >conftest.$ac_ext <<_ACEOF
8237/* confdefs.h. */
8238_ACEOF
8239cat confdefs.h >>conftest.$ac_ext
8240cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008241/* end confdefs.h. */
8242#include <sys/types.h>
8243#include <$ac_hdr>
8244
8245int
8246main ()
8247{
8248if ((DIR *) 0)
8249return 0;
8250 ;
8251 return 0;
8252}
8253_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254rm -f conftest.$ac_objext
8255if { (ac_try="$ac_compile"
8256case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_compile") 2>conftest.er1
8262 ac_status=$?
8263 grep -v '^ *+' conftest.er1 >conftest.err
8264 rm -f conftest.er1
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8269 { (case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8272esac
8273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_try") 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest.$ac_objext'
8279 { (case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8282esac
8283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_try") 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008288 eval "$as_ac_Header=yes"
8289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008290 echo "$as_me: failed program was:" >&5
8291sed 's/^/| /' conftest.$ac_ext >&5
8292
8293 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008295
Reid Spencera773bd52006-08-04 18:18:08 +00008296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298ac_res=`eval echo '${'$as_ac_Header'}'`
8299 { echo "$as_me:$LINENO: result: $ac_res" >&5
8300echo "${ECHO_T}$ac_res" >&6; }
8301if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008302 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008303#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008304_ACEOF
8305
8306ac_header_dirent=$ac_hdr; break
8307fi
8308
8309done
8310# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8311if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8313echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8314if test "${ac_cv_search_opendir+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008316else
8317 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h. */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008323/* end confdefs.h. */
8324
Reid Spencera773bd52006-08-04 18:18:08 +00008325/* Override any GCC internal prototype to avoid an error.
8326 Use char because int might match the return type of a GCC
8327 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008328#ifdef __cplusplus
8329extern "C"
8330#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008331char opendir ();
8332int
8333main ()
8334{
Reid Spencera773bd52006-08-04 18:18:08 +00008335return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008336 ;
8337 return 0;
8338}
8339_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008340for ac_lib in '' dir; do
8341 if test -z "$ac_lib"; then
8342 ac_res="none required"
8343 else
8344 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008346 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347 rm -f conftest.$ac_objext conftest$ac_exeext
8348if { (ac_try="$ac_link"
8349case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352esac
8353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_link") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362 { (case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_try") 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008381 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008382else
8383 echo "$as_me: failed program was:" >&5
8384sed 's/^/| /' conftest.$ac_ext >&5
8385
8386
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008388
Bill Wendlingebcceee2009-04-18 11:20:33 +00008389rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008390 conftest$ac_exeext
8391 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008392 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008393fi
John Criswell7a73b802003-06-30 21:59:07 +00008394done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008395if test "${ac_cv_search_opendir+set}" = set; then
8396 :
Reid Spencera773bd52006-08-04 18:18:08 +00008397else
8398 ac_cv_search_opendir=no
8399fi
8400rm conftest.$ac_ext
8401LIBS=$ac_func_search_save_LIBS
8402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8404echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008405ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008406if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008408
Reid Spencera773bd52006-08-04 18:18:08 +00008409fi
8410
8411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008412 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8413echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8414if test "${ac_cv_search_opendir+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008416else
8417 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h. */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008423/* end confdefs.h. */
8424
8425/* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
8428#ifdef __cplusplus
8429extern "C"
8430#endif
8431char opendir ();
8432int
8433main ()
8434{
8435return opendir ();
8436 ;
8437 return 0;
8438}
8439_ACEOF
8440for ac_lib in '' x; do
8441 if test -z "$ac_lib"; then
8442 ac_res="none required"
8443 else
8444 ac_res=-l$ac_lib
8445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8446 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008447 rm -f conftest.$ac_objext conftest$ac_exeext
8448if { (ac_try="$ac_link"
8449case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452esac
8453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_link") 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462 { (case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8465esac
8466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_try") 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest$ac_exeext'
8472 { (case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475esac
8476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_try") 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008481 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482else
8483 echo "$as_me: failed program was:" >&5
8484sed 's/^/| /' conftest.$ac_ext >&5
8485
8486
Reid Spencera773bd52006-08-04 18:18:08 +00008487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008488
Bill Wendlingebcceee2009-04-18 11:20:33 +00008489rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490 conftest$ac_exeext
8491 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008492 break
8493fi
8494done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008495if test "${ac_cv_search_opendir+set}" = set; then
8496 :
Reid Spencera773bd52006-08-04 18:18:08 +00008497else
8498 ac_cv_search_opendir=no
8499fi
8500rm conftest.$ac_ext
8501LIBS=$ac_func_search_save_LIBS
8502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008503{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8504echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008505ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008506if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8508
8509fi
8510
8511fi
John Criswell7a73b802003-06-30 21:59:07 +00008512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513
John Criswell7a73b802003-06-30 21:59:07 +00008514for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008515do
8516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522fi
8523ac_res=`eval echo '${'$as_ac_Header'}'`
8524 { echo "$as_me:$LINENO: result: $ac_res" >&5
8525echo "${ECHO_T}$ac_res" >&6; }
8526else
8527 # Is the header compilable?
8528{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8530cat >conftest.$ac_ext <<_ACEOF
8531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
8536$ac_includes_default
8537#include <$ac_header>
8538_ACEOF
8539rm -f conftest.$ac_objext
8540if { (ac_try="$ac_compile"
8541case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544esac
8545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554 { (case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8557esac
8558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_try") 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest.$ac_objext'
8564 { (case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567esac
8568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_try") 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_header_compiler=yes
8574else
8575 echo "$as_me: failed program was:" >&5
8576sed 's/^/| /' conftest.$ac_ext >&5
8577
8578 ac_header_compiler=no
8579fi
8580
8581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8583echo "${ECHO_T}$ac_header_compiler" >&6; }
8584
8585# Is the header present?
8586{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8587echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8588cat >conftest.$ac_ext <<_ACEOF
8589/* confdefs.h. */
8590_ACEOF
8591cat confdefs.h >>conftest.$ac_ext
8592cat >>conftest.$ac_ext <<_ACEOF
8593/* end confdefs.h. */
8594#include <$ac_header>
8595_ACEOF
8596if { (ac_try="$ac_cpp conftest.$ac_ext"
8597case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600esac
8601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } >/dev/null; then
8609 if test -s conftest.err; then
8610 ac_cpp_err=$ac_c_preproc_warn_flag
8611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8612 else
8613 ac_cpp_err=
8614 fi
8615else
8616 ac_cpp_err=yes
8617fi
8618if test -z "$ac_cpp_err"; then
8619 ac_header_preproc=yes
8620else
8621 echo "$as_me: failed program was:" >&5
8622sed 's/^/| /' conftest.$ac_ext >&5
8623
8624 ac_header_preproc=no
8625fi
8626
8627rm -f conftest.err conftest.$ac_ext
8628{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8629echo "${ECHO_T}$ac_header_preproc" >&6; }
8630
8631# So? What about this header?
8632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8633 yes:no: )
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8638 ac_header_preproc=yes
8639 ;;
8640 no:yes:* )
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8644echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8648echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8653 ( cat <<\_ASBOX
8654## ----------------------------------- ##
8655## Report this to llvmbugs@cs.uiuc.edu ##
8656## ----------------------------------- ##
8657_ASBOX
8658 ) | sed "s/^/$as_me: WARNING: /" >&2
8659 ;;
8660esac
8661{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8665else
8666 eval "$as_ac_Header=\$ac_header_preproc"
8667fi
8668ac_res=`eval echo '${'$as_ac_Header'}'`
8669 { echo "$as_me:$LINENO: result: $ac_res" >&5
8670echo "${ECHO_T}$ac_res" >&6; }
8671
8672fi
8673if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008674 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008676_ACEOF
8677
8678fi
8679
8680done
8681
Reid Spencera773bd52006-08-04 18:18:08 +00008682# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008683if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008684 enableval=$enable_ltdl_install;
8685fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008686
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008688
8689
8690if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008691 INSTALL_LTDL_TRUE=
8692 INSTALL_LTDL_FALSE='#'
8693else
8694 INSTALL_LTDL_TRUE='#'
8695 INSTALL_LTDL_FALSE=
8696fi
8697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008698
8699
8700if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008701 CONVENIENCE_LTDL_TRUE=
8702 CONVENIENCE_LTDL_FALSE='#'
8703else
8704 CONVENIENCE_LTDL_TRUE='#'
8705 CONVENIENCE_LTDL_FALSE=
8706fi
8707
8708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008709{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8710echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008711library_names_spec=
8712libname_spec='lib$name'
8713soname_spec=
8714shrext_cmds=".so"
8715postinstall_cmds=
8716postuninstall_cmds=
8717finish_cmds=
8718finish_eval=
8719shlibpath_var=
8720shlibpath_overrides_runpath=unknown
8721version_type=none
8722dynamic_linker="$host_os ld.so"
8723sys_lib_dlsearch_path_spec="/lib /usr/lib"
8724if test "$GCC" = yes; then
8725 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8726 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8727 # if the path contains ";" then we assume it to be the separator
8728 # otherwise default to the standard path separator (i.e. ":") - it is
8729 # assumed that no part of a normal pathname contains ";" but that should
8730 # okay in the real world where ";" in dirpaths is itself problematic.
8731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8732 else
8733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8734 fi
8735else
8736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8737fi
8738need_lib_prefix=unknown
8739hardcode_into_libs=no
8740
8741# when you set need_version to no, make sure it does not cause -set_version
8742# flags to be left without arguments
8743need_version=unknown
8744
8745case $host_os in
8746aix3*)
8747 version_type=linux
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8749 shlibpath_var=LIBPATH
8750
8751 # AIX 3 has no versioning support, so we append a major version to the name.
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 ;;
8754
8755aix4* | aix5*)
8756 version_type=linux
8757 need_lib_prefix=no
8758 need_version=no
8759 hardcode_into_libs=yes
8760 if test "$host_cpu" = ia64; then
8761 # AIX 5 supports IA64
8762 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8763 shlibpath_var=LD_LIBRARY_PATH
8764 else
8765 # With GCC up to 2.95.x, collect2 would create an import file
8766 # for dependence libraries. The import file would start with
8767 # the line `#! .'. This would cause the generated library to
8768 # depend on `.', always an invalid library. This was fixed in
8769 # development snapshots of GCC prior to 3.0.
8770 case $host_os in
8771 aix4 | aix4.[01] | aix4.[01].*)
8772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8773 echo ' yes '
8774 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8775 :
8776 else
8777 can_build_shared=no
8778 fi
8779 ;;
8780 esac
8781 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8782 # soname into executable. Probably we can add versioning support to
8783 # collect2, so additional links can be useful in future.
8784 if test "$aix_use_runtimelinking" = yes; then
8785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8786 # instead of lib<name>.a to let people know that these are not
8787 # typical AIX shared libraries.
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8789 else
8790 # We preserve .a as extension for shared libraries through AIX4.2
8791 # and later when we are not doing run time linking.
8792 library_names_spec='${libname}${release}.a $libname.a'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8794 fi
8795 shlibpath_var=LIBPATH
8796 fi
8797 ;;
8798
8799amigaos*)
8800 library_names_spec='$libname.ixlibrary $libname.a'
8801 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8802 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'
8803 ;;
8804
8805beos*)
8806 library_names_spec='${libname}${shared_ext}'
8807 dynamic_linker="$host_os ld.so"
8808 shlibpath_var=LIBRARY_PATH
8809 ;;
8810
8811bsdi[45]*)
8812 version_type=linux
8813 need_version=no
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8817 shlibpath_var=LD_LIBRARY_PATH
8818 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8819 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8820 # the default ld.so.conf also contains /usr/contrib/lib and
8821 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8822 # libtool to hard-code these into programs
8823 ;;
8824
8825cygwin* | mingw* | pw32*)
8826 version_type=windows
8827 shrext_cmds=".dll"
8828 need_version=no
8829 need_lib_prefix=no
8830
8831 case $GCC,$host_os in
8832 yes,cygwin* | yes,mingw* | yes,pw32*)
8833 library_names_spec='$libname.dll.a'
8834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8835 postinstall_cmds='base_file=`basename \${file}`~
8836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8837 dldir=$destdir/`dirname \$dlpath`~
8838 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008839 $install_prog $dir/$dlname \$dldir/$dlname~
8840 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8842 dlpath=$dir/\$dldll~
8843 $rm \$dlpath'
8844 shlibpath_overrides_runpath=yes
8845
8846 case $host_os in
8847 cygwin*)
8848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8849 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8850 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8851 ;;
8852 mingw*)
8853 # MinGW DLLs use traditional 'lib' prefix
8854 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8856 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8857 # It is most probably a Windows format PATH printed by
8858 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8859 # path with ; separators, and with drive letters. We can handle the
8860 # drive letters (cygwin fileutils understands them), so leave them,
8861 # especially as we might pass files found there to a mingw objdump,
8862 # which wouldn't understand a cygwinified path. Ahh.
8863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8864 else
8865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8866 fi
8867 ;;
8868 pw32*)
8869 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008870 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 +00008871 ;;
8872 esac
8873 ;;
8874
8875 *)
8876 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8877 ;;
8878 esac
8879 dynamic_linker='Win32 ld.exe'
8880 # FIXME: first we should search . and the directory the executable is in
8881 shlibpath_var=PATH
8882 ;;
8883
8884darwin* | rhapsody*)
8885 dynamic_linker="$host_os dyld"
8886 version_type=darwin
8887 need_lib_prefix=no
8888 need_version=no
8889 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8890 soname_spec='${libname}${release}${major}$shared_ext'
8891 shlibpath_overrides_runpath=yes
8892 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008893 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008894 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8895 if test "$GCC" = yes; then
8896 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"`
8897 else
8898 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8899 fi
8900 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8901 ;;
8902
8903dgux*)
8904 version_type=linux
8905 need_lib_prefix=no
8906 need_version=no
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 ;;
8911
8912freebsd1*)
8913 dynamic_linker=no
8914 ;;
8915
8916kfreebsd*-gnu)
8917 version_type=linux
8918 need_lib_prefix=no
8919 need_version=no
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 hardcode_into_libs=yes
8925 dynamic_linker='GNU ld.so'
8926 ;;
8927
Reid Spencera773bd52006-08-04 18:18:08 +00008928freebsd* | dragonfly*)
8929 # DragonFly does not have aout. When/if they implement a new
8930 # versioning mechanism, adjust this.
8931 if test -x /usr/bin/objformat; then
8932 objformat=`/usr/bin/objformat`
8933 else
8934 case $host_os in
8935 freebsd[123]*) objformat=aout ;;
8936 *) objformat=elf ;;
8937 esac
8938 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008939 version_type=freebsd-$objformat
8940 case $version_type in
8941 freebsd-elf*)
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8943 need_version=no
8944 need_lib_prefix=no
8945 ;;
8946 freebsd-*)
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8948 need_version=yes
8949 ;;
8950 esac
8951 shlibpath_var=LD_LIBRARY_PATH
8952 case $host_os in
8953 freebsd2*)
8954 shlibpath_overrides_runpath=yes
8955 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008956 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008957 shlibpath_overrides_runpath=yes
8958 hardcode_into_libs=yes
8959 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008962 shlibpath_overrides_runpath=no
8963 hardcode_into_libs=yes
8964 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008965 freebsd*) # from 4.6 on
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8968 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008969 esac
8970 ;;
8971
8972gnu*)
8973 version_type=linux
8974 need_lib_prefix=no
8975 need_version=no
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 hardcode_into_libs=yes
8980 ;;
8981
8982hpux9* | hpux10* | hpux11*)
8983 # Give a soname corresponding to the major version so that dld.sl refuses to
8984 # link against other versions.
8985 version_type=sunos
8986 need_lib_prefix=no
8987 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008988 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008989 ia64*)
8990 shrext_cmds='.so'
8991 hardcode_into_libs=yes
8992 dynamic_linker="$host_os dld.so"
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 if test "X$HPUX_IA64_MODE" = X32; then
8998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8999 else
9000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9001 fi
9002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9003 ;;
9004 hppa*64*)
9005 shrext_cmds='.sl'
9006 hardcode_into_libs=yes
9007 dynamic_linker="$host_os dld.sl"
9008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9014 ;;
9015 *)
9016 shrext_cmds='.sl'
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=SHLIB_PATH
9019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 ;;
9023 esac
9024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9025 postinstall_cmds='chmod 555 $lib'
9026 ;;
9027
Reid Spencera773bd52006-08-04 18:18:08 +00009028interix3*)
9029 version_type=linux
9030 need_lib_prefix=no
9031 need_version=no
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 hardcode_into_libs=yes
9038 ;;
9039
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009040irix5* | irix6* | nonstopux*)
9041 case $host_os in
9042 nonstopux*) version_type=nonstopux ;;
9043 *)
9044 if test "$lt_cv_prog_gnu_ld" = yes; then
9045 version_type=linux
9046 else
9047 version_type=irix
9048 fi ;;
9049 esac
9050 need_lib_prefix=no
9051 need_version=no
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9054 case $host_os in
9055 irix5* | nonstopux*)
9056 libsuff= shlibsuff=
9057 ;;
9058 *)
9059 case $LD in # libtool.m4 will add one of these switches to LD
9060 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9061 libsuff= shlibsuff= libmagic=32-bit;;
9062 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9063 libsuff=32 shlibsuff=N32 libmagic=N32;;
9064 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9065 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9066 *) libsuff= shlibsuff= libmagic=never-match;;
9067 esac
9068 ;;
9069 esac
9070 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9071 shlibpath_overrides_runpath=no
9072 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9073 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9074 hardcode_into_libs=yes
9075 ;;
9076
9077# No shared lib support for Linux oldld, aout, or coff.
9078linux*oldld* | linux*aout* | linux*coff*)
9079 dynamic_linker=no
9080 ;;
9081
9082# This must be Linux ELF.
9083linux*)
9084 version_type=linux
9085 need_lib_prefix=no
9086 need_version=no
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=no
9092 # This implies no fast_install, which is unacceptable.
9093 # Some rework will be needed to allow for fast_install
9094 # before this can be enabled.
9095 hardcode_into_libs=yes
9096
9097 # Append ld.so.conf contents to the search path
9098 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009099 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 +00009100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9101 fi
9102
9103 # We used to test for /lib/ld.so.1 and disable shared libraries on
9104 # powerpc, because MkLinux only supported shared libraries with the
9105 # GNU dynamic linker. Since this was broken with cross compilers,
9106 # most powerpc-linux boxes support dynamic linking these days and
9107 # people can always --disable-shared, the test was removed, and we
9108 # assume the GNU/Linux dynamic linker is in use.
9109 dynamic_linker='GNU/Linux ld.so'
9110 ;;
9111
9112knetbsd*-gnu)
9113 version_type=linux
9114 need_lib_prefix=no
9115 need_version=no
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=no
9120 hardcode_into_libs=yes
9121 dynamic_linker='GNU ld.so'
9122 ;;
9123
9124netbsd*)
9125 version_type=sunos
9126 need_lib_prefix=no
9127 need_version=no
9128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9131 dynamic_linker='NetBSD (a.out) ld.so'
9132 else
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 dynamic_linker='NetBSD ld.elf_so'
9136 fi
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9140 ;;
9141
9142newsos6)
9143 version_type=linux
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 shlibpath_overrides_runpath=yes
9147 ;;
9148
9149nto-qnx*)
9150 version_type=linux
9151 need_lib_prefix=no
9152 need_version=no
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=yes
9157 ;;
9158
9159openbsd*)
9160 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009161 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009162 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009163 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9164 case $host_os in
9165 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9166 *) need_version=no ;;
9167 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9172 case $host_os in
9173 openbsd2.[89] | openbsd2.[89].*)
9174 shlibpath_overrides_runpath=no
9175 ;;
9176 *)
9177 shlibpath_overrides_runpath=yes
9178 ;;
9179 esac
9180 else
9181 shlibpath_overrides_runpath=yes
9182 fi
9183 ;;
9184
9185os2*)
9186 libname_spec='$name'
9187 shrext_cmds=".dll"
9188 need_lib_prefix=no
9189 library_names_spec='$libname${shared_ext} $libname.a'
9190 dynamic_linker='OS/2 ld.exe'
9191 shlibpath_var=LIBPATH
9192 ;;
9193
9194osf3* | osf4* | osf5*)
9195 version_type=osf
9196 need_lib_prefix=no
9197 need_version=no
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9202 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9203 ;;
9204
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009205solaris*)
9206 version_type=linux
9207 need_lib_prefix=no
9208 need_version=no
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=yes
9213 hardcode_into_libs=yes
9214 # ldd complains unless libraries are executable
9215 postinstall_cmds='chmod +x $lib'
9216 ;;
9217
9218sunos4*)
9219 version_type=sunos
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 shlibpath_overrides_runpath=yes
9224 if test "$with_gnu_ld" = yes; then
9225 need_lib_prefix=no
9226 fi
9227 need_version=yes
9228 ;;
9229
Reid Spencera773bd52006-08-04 18:18:08 +00009230sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009231 version_type=linux
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 case $host_vendor in
9236 sni)
9237 shlibpath_overrides_runpath=no
9238 need_lib_prefix=no
9239 export_dynamic_flag_spec='${wl}-Blargedynsym'
9240 runpath_var=LD_RUN_PATH
9241 ;;
9242 siemens)
9243 need_lib_prefix=no
9244 ;;
9245 motorola)
9246 need_lib_prefix=no
9247 need_version=no
9248 shlibpath_overrides_runpath=no
9249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9250 ;;
9251 esac
9252 ;;
9253
9254sysv4*MP*)
9255 if test -d /usr/nec ;then
9256 version_type=linux
9257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9258 soname_spec='$libname${shared_ext}.$major'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 fi
9261 ;;
9262
Reid Spencera773bd52006-08-04 18:18:08 +00009263sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9264 version_type=freebsd-elf
9265 need_lib_prefix=no
9266 need_version=no
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 hardcode_into_libs=yes
9271 if test "$with_gnu_ld" = yes; then
9272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9273 shlibpath_overrides_runpath=no
9274 else
9275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9276 shlibpath_overrides_runpath=yes
9277 case $host_os in
9278 sco3.2v5*)
9279 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9280 ;;
9281 esac
9282 fi
9283 sys_lib_dlsearch_path_spec='/usr/lib'
9284 ;;
9285
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009286uts4*)
9287 version_type=linux
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 ;;
9292
9293*)
9294 dynamic_linker=no
9295 ;;
9296esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009297{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9298echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009299test "$dynamic_linker" = no && can_build_shared=no
9300
Reid Spencera773bd52006-08-04 18:18:08 +00009301variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9302if test "$GCC" = yes; then
9303 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9304fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009305
Reid Spencera773bd52006-08-04 18:18:08 +00009306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009307{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9308echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9309if test "${libltdl_cv_shlibext+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009311else
9312
9313module=yes
9314eval libltdl_cv_shlibext=$shrext_cmds
9315
9316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009317{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9318echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319if test -n "$libltdl_cv_shlibext"; then
9320
9321cat >>confdefs.h <<_ACEOF
9322#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9323_ACEOF
9324
9325fi
9326
9327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009328{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9329echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9330if test "${libltdl_cv_shlibpath_var+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332else
9333 libltdl_cv_shlibpath_var="$shlibpath_var"
9334fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009335{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9336echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337if test -n "$libltdl_cv_shlibpath_var"; then
9338
9339cat >>confdefs.h <<_ACEOF
9340#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9341_ACEOF
9342
9343fi
9344
9345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009346{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9347echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9348if test "${libltdl_cv_sys_search_path+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009350else
9351 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009353{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9354echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009355if test -n "$libltdl_cv_sys_search_path"; then
9356 sys_search_path=
9357 for dir in $libltdl_cv_sys_search_path; do
9358 if test -z "$sys_search_path"; then
9359 sys_search_path="$dir"
9360 else
9361 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9362 fi
9363 done
9364
9365cat >>confdefs.h <<_ACEOF
9366#define LTDL_SYSSEARCHPATH "$sys_search_path"
9367_ACEOF
9368
9369fi
9370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009371{ echo "$as_me:$LINENO: checking for objdir" >&5
9372echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9373if test "${libltdl_cv_objdir+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009375else
9376 libltdl_cv_objdir="$objdir"
9377 if test -n "$objdir"; then
9378 :
9379 else
9380 rm -f .libs 2>/dev/null
9381 mkdir .libs 2>/dev/null
9382 if test -d .libs; then
9383 libltdl_cv_objdir=.libs
9384 else
9385 # MS-DOS does not allow filenames that begin with a dot.
9386 libltdl_cv_objdir=_libs
9387 fi
9388 rmdir .libs 2>/dev/null
9389 fi
9390
9391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009392{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9393echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009394
9395cat >>confdefs.h <<_ACEOF
9396#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9397_ACEOF
9398
9399
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400
9401
9402
9403
9404# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009405{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9406echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9407if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009409else
9410
9411# These are sane defaults that work on at least a few old systems.
9412# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9413
9414# Character class describing NM global symbol codes.
9415symcode='[BCDEGRST]'
9416
9417# Regexp to match symbols that can be accessed directly from C.
9418sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9419
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420# Transform an extracted symbol line into a proper C declaration
9421lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9422
9423# Transform an extracted symbol line into symbol name and symbol address
9424lt_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'"
9425
9426# Define system-specific variables.
9427case $host_os in
9428aix*)
9429 symcode='[BCDT]'
9430 ;;
9431cygwin* | mingw* | pw32*)
9432 symcode='[ABCDGISTW]'
9433 ;;
9434hpux*) # Its linker distinguishes data from code symbols
9435 if test "$host_cpu" = ia64; then
9436 symcode='[ABCDEGRST]'
9437 fi
9438 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9439 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'"
9440 ;;
9441linux*)
9442 if test "$host_cpu" = ia64; then
9443 symcode='[ABCDGIRSTW]'
9444 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9445 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'"
9446 fi
9447 ;;
9448irix* | nonstopux*)
9449 symcode='[BCDEGRST]'
9450 ;;
9451osf*)
9452 symcode='[BCDEGQRST]'
9453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009454solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009455 symcode='[BDRT]'
9456 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009457sco3.2v5*)
9458 symcode='[DT]'
9459 ;;
9460sysv4.2uw2*)
9461 symcode='[DT]'
9462 ;;
9463sysv5* | sco5v6* | unixware* | OpenUNIX*)
9464 symcode='[ABDT]'
9465 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009466sysv4)
9467 symcode='[DFNSTU]'
9468 ;;
9469esac
9470
9471# Handle CRLF in mingw tool chain
9472opt_cr=
9473case $build_os in
9474mingw*)
9475 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9476 ;;
9477esac
9478
9479# If we're using GNU nm, then use its standard symbol codes.
9480case `$NM -V 2>&1` in
9481*GNU* | *'with BFD'*)
9482 symcode='[ABCDGIRSTW]' ;;
9483esac
9484
9485# Try without a prefix undercore, then with it.
9486for ac_symprfx in "" "_"; do
9487
Reid Spencera773bd52006-08-04 18:18:08 +00009488 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9489 symxfrm="\\1 $ac_symprfx\\2 \\2"
9490
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009492 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 +00009493
9494 # Check to see that the pipe works correctly.
9495 pipe_works=no
9496
9497 rm -f conftest*
9498 cat > conftest.$ac_ext <<EOF
9499#ifdef __cplusplus
9500extern "C" {
9501#endif
9502char nm_test_var;
9503void nm_test_func(){}
9504#ifdef __cplusplus
9505}
9506#endif
9507int main(){nm_test_var='a';nm_test_func();return(0);}
9508EOF
9509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511 (eval $ac_compile) 2>&5
9512 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009515 # Now try to grab the symbols.
9516 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009517 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 +00009518 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9519 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522 # Try sorting and uniquifying the output.
9523 if sort "$nlist" | uniq > "$nlist"T; then
9524 mv -f "$nlist"T "$nlist"
9525 else
9526 rm -f "$nlist"T
9527 fi
9528
9529 # Make sure that we snagged all the symbols we need.
9530 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9531 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9532 cat <<EOF > conftest.$ac_ext
9533#ifdef __cplusplus
9534extern "C" {
9535#endif
9536
9537EOF
9538 # Now generate the symbol file.
9539 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9540
9541 cat <<EOF >> conftest.$ac_ext
9542#if defined (__STDC__) && __STDC__
9543# define lt_ptr_t void *
9544#else
9545# define lt_ptr_t char *
9546# define const
9547#endif
9548
9549/* The mapping between symbol names and symbols. */
9550const struct {
9551 const char *name;
9552 lt_ptr_t address;
9553}
9554lt_preloaded_symbols[] =
9555{
9556EOF
9557 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9558 cat <<\EOF >> conftest.$ac_ext
9559 {0, (lt_ptr_t) 0}
9560};
9561
9562#ifdef __cplusplus
9563}
9564#endif
9565EOF
9566 # Now try linking the two files.
9567 mv conftest.$ac_objext conftstm.$ac_objext
9568 lt_save_LIBS="$LIBS"
9569 lt_save_CFLAGS="$CFLAGS"
9570 LIBS="conftstm.$ac_objext"
9571 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573 (eval $ac_link) 2>&5
9574 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577 pipe_works=yes
9578 fi
9579 LIBS="$lt_save_LIBS"
9580 CFLAGS="$lt_save_CFLAGS"
9581 else
9582 echo "cannot find nm_test_func in $nlist" >&5
9583 fi
9584 else
9585 echo "cannot find nm_test_var in $nlist" >&5
9586 fi
9587 else
9588 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9589 fi
9590 else
9591 echo "$progname: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9593 fi
9594 rm -f conftest* conftst*
9595
9596 # Do not use the global_symbol_pipe unless it works.
9597 if test "$pipe_works" = yes; then
9598 break
9599 else
9600 lt_cv_sys_global_symbol_pipe=
9601 fi
9602done
9603
9604fi
9605
9606if test -z "$lt_cv_sys_global_symbol_pipe"; then
9607 lt_cv_sys_global_symbol_to_cdecl=
9608fi
9609if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610 { echo "$as_me:$LINENO: result: failed" >&5
9611echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009613 { echo "$as_me:$LINENO: result: ok" >&5
9614echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009615fi
9616
9617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009618{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9619echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9620if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622else
9623 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9624 libltdl_cv_preloaded_symbols=yes
9625 else
9626 libltdl_cv_preloaded_symbols=no
9627 fi
9628
9629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009630{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9631echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009632if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009634cat >>confdefs.h <<\_ACEOF
9635#define HAVE_PRELOADED_SYMBOLS 1
9636_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009637
9638fi
9639
9640LIBADD_DL=
9641
9642ac_ext=c
9643ac_cpp='$CPP $CPPFLAGS'
9644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9646ac_compiler_gnu=$ac_cv_c_compiler_gnu
9647
9648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009649{ echo "$as_me:$LINENO: checking for shl_load" >&5
9650echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9651if test "${ac_cv_func_shl_load+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654 cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009664/* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char shl_load (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9668
9669#ifdef __STDC__
9670# include <limits.h>
9671#else
9672# include <assert.h>
9673#endif
9674
9675#undef shl_load
9676
9677/* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9680#ifdef __cplusplus
9681extern "C"
9682#endif
9683char shl_load ();
9684/* The GNU C library defines this for functions which it implements
9685 to always fail with ENOSYS. Some functions are actually named
9686 something starting with __ and the normal name is an alias. */
9687#if defined __stub_shl_load || defined __stub___shl_load
9688choke me
9689#endif
9690
9691int
9692main ()
9693{
9694return shl_load ();
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext conftest$ac_exeext
9700if { (ac_try="$ac_link"
9701case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704esac
9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_link") 2>conftest.er1
9707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9714 { (case "(($ac_try" in
9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9717esac
9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_try") 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727esac
9728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_try") 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_func_shl_load=yes
9734else
9735 echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_cv_func_shl_load=no
9739fi
9740
9741rm -f core conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9743fi
9744{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9745echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9746if test $ac_cv_func_shl_load = yes; then
9747
9748cat >>confdefs.h <<\_ACEOF
9749#define HAVE_SHL_LOAD 1
9750_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751
9752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009753 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9754echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9755if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757else
9758 ac_check_lib_save_LIBS=$LIBS
9759LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009760cat >conftest.$ac_ext <<_ACEOF
9761/* confdefs.h. */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009765/* end confdefs.h. */
9766
Reid Spencera773bd52006-08-04 18:18:08 +00009767/* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770#ifdef __cplusplus
9771extern "C"
9772#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773char shl_load ();
9774int
9775main ()
9776{
Reid Spencera773bd52006-08-04 18:18:08 +00009777return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009778 ;
9779 return 0;
9780}
9781_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009782rm -f conftest.$ac_objext conftest$ac_exeext
9783if { (ac_try="$ac_link"
9784case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009816 ac_cv_lib_dld_shl_load=yes
9817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009818 echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009823
Bill Wendlingebcceee2009-04-18 11:20:33 +00009824rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009825 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826LIBS=$ac_check_lib_save_LIBS
9827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009828{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9829echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9830if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009832cat >>confdefs.h <<\_ACEOF
9833#define HAVE_SHL_LOAD 1
9834_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835
9836 LIBADD_DL="$LIBADD_DL -ldld"
9837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009838 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9839echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9840if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842else
9843 ac_check_lib_save_LIBS=$LIBS
9844LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009845cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h. */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850/* end confdefs.h. */
9851
Reid Spencera773bd52006-08-04 18:18:08 +00009852/* Override any GCC internal prototype to avoid an error.
9853 Use char because int might match the return type of a GCC
9854 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855#ifdef __cplusplus
9856extern "C"
9857#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858char dlopen ();
9859int
9860main ()
9861{
Reid Spencera773bd52006-08-04 18:18:08 +00009862return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863 ;
9864 return 0;
9865}
9866_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009867rm -f conftest.$ac_objext conftest$ac_exeext
9868if { (ac_try="$ac_link"
9869case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_link") 2>conftest.er1
9875 ac_status=$?
9876 grep -v '^ *+' conftest.er1 >conftest.err
9877 rm -f conftest.er1
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9882 { (case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9885esac
9886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_try") 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest$ac_exeext'
9892 { (case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895esac
9896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_try") 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901 ac_cv_lib_dl_dlopen=yes
9902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009903 echo "$as_me: failed program was:" >&5
9904sed 's/^/| /' conftest.$ac_ext >&5
9905
9906 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009908
Bill Wendlingebcceee2009-04-18 11:20:33 +00009909rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009910 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911LIBS=$ac_check_lib_save_LIBS
9912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009913{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9915if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009917cat >>confdefs.h <<\_ACEOF
9918#define HAVE_LIBDL 1
9919_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920
9921 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009923 cat >conftest.$ac_ext <<_ACEOF
9924/* confdefs.h. */
9925_ACEOF
9926cat confdefs.h >>conftest.$ac_ext
9927cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928/* end confdefs.h. */
9929#if HAVE_DLFCN_H
9930# include <dlfcn.h>
9931#endif
9932
9933int
9934main ()
9935{
9936dlopen(0, 0);
9937 ;
9938 return 0;
9939}
9940_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009941rm -f conftest.$ac_objext conftest$ac_exeext
9942if { (ac_try="$ac_link"
9943case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9946esac
9947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_link") 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959esac
9960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009976cat >>confdefs.h <<\_ACEOF
9977#define HAVE_LIBDL 1
9978_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979 libltdl_cv_func_dlopen="yes"
9980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009981 echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9985echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9986if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988else
9989 ac_check_lib_save_LIBS=$LIBS
9990LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009991cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h. */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996/* end confdefs.h. */
9997
Reid Spencera773bd52006-08-04 18:18:08 +00009998/* Override any GCC internal prototype to avoid an error.
9999 Use char because int might match the return type of a GCC
10000 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001#ifdef __cplusplus
10002extern "C"
10003#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004char dlopen ();
10005int
10006main ()
10007{
Reid Spencera773bd52006-08-04 18:18:08 +000010008return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010009 ;
10010 return 0;
10011}
10012_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010013rm -f conftest.$ac_objext conftest$ac_exeext
10014if { (ac_try="$ac_link"
10015case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10018esac
10019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_link") 2>conftest.er1
10021 ac_status=$?
10022 grep -v '^ *+' conftest.er1 >conftest.err
10023 rm -f conftest.er1
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031esac
10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest$ac_exeext'
10038 { (case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041esac
10042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_try") 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047 ac_cv_lib_svld_dlopen=yes
10048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010049 echo "$as_me: failed program was:" >&5
10050sed 's/^/| /' conftest.$ac_ext >&5
10051
10052 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010054
Bill Wendlingebcceee2009-04-18 11:20:33 +000010055rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010056 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057LIBS=$ac_check_lib_save_LIBS
10058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010059{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10060echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10061if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010063cat >>confdefs.h <<\_ACEOF
10064#define HAVE_LIBDL 1
10065_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066
10067 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10068else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010069 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10070echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10071if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073else
10074 ac_check_lib_save_LIBS=$LIBS
10075LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010076cat >conftest.$ac_ext <<_ACEOF
10077/* confdefs.h. */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081/* end confdefs.h. */
10082
Reid Spencera773bd52006-08-04 18:18:08 +000010083/* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086#ifdef __cplusplus
10087extern "C"
10088#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089char dld_link ();
10090int
10091main ()
10092{
Reid Spencera773bd52006-08-04 18:18:08 +000010093return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010094 ;
10095 return 0;
10096}
10097_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010098rm -f conftest.$ac_objext conftest$ac_exeext
10099if { (ac_try="$ac_link"
10100case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103esac
10104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10116esac
10117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126esac
10127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132 ac_cv_lib_dld_dld_link=yes
10133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010134 echo "$as_me: failed program was:" >&5
10135sed 's/^/| /' conftest.$ac_ext >&5
10136
10137 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010139
Bill Wendlingebcceee2009-04-18 11:20:33 +000010140rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010141 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142LIBS=$ac_check_lib_save_LIBS
10143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010144{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10145echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10146if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010148cat >>confdefs.h <<\_ACEOF
10149#define HAVE_DLD 1
10150_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010151
10152 LIBADD_DL="$LIBADD_DL -ldld"
10153else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010154 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10155echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10156if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10158else
10159 cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h. */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h. */
10165/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10167#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010169/* System header to define __stub macros and hopefully few prototypes,
10170 which can conflict with char _dyld_func_lookup (); below.
10171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10172 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010174#ifdef __STDC__
10175# include <limits.h>
10176#else
10177# include <assert.h>
10178#endif
10179
10180#undef _dyld_func_lookup
10181
10182/* Override any GCC internal prototype to avoid an error.
10183 Use char because int might match the return type of a GCC
10184 builtin and then its argument prototype would still apply. */
10185#ifdef __cplusplus
10186extern "C"
10187#endif
10188char _dyld_func_lookup ();
10189/* The GNU C library defines this for functions which it implements
10190 to always fail with ENOSYS. Some functions are actually named
10191 something starting with __ and the normal name is an alias. */
10192#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10193choke me
10194#endif
10195
10196int
10197main ()
10198{
10199return _dyld_func_lookup ();
10200 ;
10201 return 0;
10202}
10203_ACEOF
10204rm -f conftest.$ac_objext conftest$ac_exeext
10205if { (ac_try="$ac_link"
10206case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209esac
10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_link") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222esac
10223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_func__dyld_func_lookup=yes
10239else
10240 echo "$as_me: failed program was:" >&5
10241sed 's/^/| /' conftest.$ac_ext >&5
10242
10243 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244fi
Reid Spencera773bd52006-08-04 18:18:08 +000010245
Bill Wendlingebcceee2009-04-18 11:20:33 +000010246rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010247 conftest$ac_exeext conftest.$ac_ext
10248fi
10249{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10250echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10251if test $ac_cv_func__dyld_func_lookup = yes; then
10252
10253cat >>confdefs.h <<\_ACEOF
10254#define HAVE_DYLD 1
10255_ACEOF
10256
10257fi
10258
10259
10260fi
10261
10262
10263fi
10264
10265
10266fi
10267
10268rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270
10271fi
10272
10273
10274fi
10275
10276
10277fi
10278
10279
10280if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10281then
10282 lt_save_LIBS="$LIBS"
10283 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010284
10285for ac_func in dlerror
10286do
10287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10288{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10290if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292else
10293 cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h. */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h. */
10299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10301#define $ac_func innocuous_$ac_func
10302
10303/* System header to define __stub macros and hopefully few prototypes,
10304 which can conflict with char $ac_func (); below.
10305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10306 <limits.h> exists even on freestanding compilers. */
10307
10308#ifdef __STDC__
10309# include <limits.h>
10310#else
10311# include <assert.h>
10312#endif
10313
10314#undef $ac_func
10315
10316/* Override any GCC internal prototype to avoid an error.
10317 Use char because int might match the return type of a GCC
10318 builtin and then its argument prototype would still apply. */
10319#ifdef __cplusplus
10320extern "C"
10321#endif
10322char $ac_func ();
10323/* The GNU C library defines this for functions which it implements
10324 to always fail with ENOSYS. Some functions are actually named
10325 something starting with __ and the normal name is an alias. */
10326#if defined __stub_$ac_func || defined __stub___$ac_func
10327choke me
10328#endif
10329
10330int
10331main ()
10332{
10333return $ac_func ();
10334 ;
10335 return 0;
10336}
10337_ACEOF
10338rm -f conftest.$ac_objext conftest$ac_exeext
10339if { (ac_try="$ac_link"
10340case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343esac
10344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_link") 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10353 { (case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356esac
10357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_try") 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; } &&
10362 { ac_try='test -s conftest$ac_exeext'
10363 { (case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10366esac
10367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_try") 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10372 eval "$as_ac_var=yes"
10373else
10374 echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 eval "$as_ac_var=no"
10378fi
10379
10380rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10382fi
10383ac_res=`eval echo '${'$as_ac_var'}'`
10384 { echo "$as_me:$LINENO: result: $ac_res" >&5
10385echo "${ECHO_T}$ac_res" >&6; }
10386if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389_ACEOF
10390
10391fi
10392done
10393
10394 LIBS="$lt_save_LIBS"
10395fi
10396ac_ext=c
10397ac_cpp='$CPP $CPPFLAGS'
10398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10400ac_compiler_gnu=$ac_cv_c_compiler_gnu
10401
10402
10403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010404{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10405echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10406if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408else
10409 ac_cv_sys_symbol_underscore=no
10410 cat > conftest.$ac_ext <<EOF
10411void nm_test_func(){}
10412int main(){nm_test_func;return 0;}
10413EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415 (eval $ac_compile) 2>&5
10416 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419 # Now try to grab the symbols.
10420 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421 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 +000010422 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10423 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426 # See whether the symbols have a leading underscore.
10427 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10428 ac_cv_sys_symbol_underscore=yes
10429 else
10430 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10431 :
10432 else
10433 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10434 fi
10435 fi
10436 else
10437 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10438 fi
10439 else
10440 echo "configure: failed program was:" >&5
10441 cat conftest.c >&5
10442 fi
10443 rm -rf conftest*
10444
10445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010446{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10447echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448
10449
10450if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10451 if test x"$libltdl_cv_func_dlopen" = xyes ||
10452 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010453 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10454echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10455if test "${libltdl_cv_need_uscore+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457else
10458 libltdl_cv_need_uscore=unknown
10459 save_LIBS="$LIBS"
10460 LIBS="$LIBS $LIBADD_DL"
10461 if test "$cross_compiling" = yes; then :
10462 libltdl_cv_need_uscore=cross
10463else
10464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10465 lt_status=$lt_dlunknown
10466 cat > conftest.$ac_ext <<EOF
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000010467#line 10474 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010468#include "confdefs.h"
10469
10470#if HAVE_DLFCN_H
10471#include <dlfcn.h>
10472#endif
10473
10474#include <stdio.h>
10475
10476#ifdef RTLD_GLOBAL
10477# define LT_DLGLOBAL RTLD_GLOBAL
10478#else
10479# ifdef DL_GLOBAL
10480# define LT_DLGLOBAL DL_GLOBAL
10481# else
10482# define LT_DLGLOBAL 0
10483# endif
10484#endif
10485
10486/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10487 find out it does not work in some platform. */
10488#ifndef LT_DLLAZY_OR_NOW
10489# ifdef RTLD_LAZY
10490# define LT_DLLAZY_OR_NOW RTLD_LAZY
10491# else
10492# ifdef DL_LAZY
10493# define LT_DLLAZY_OR_NOW DL_LAZY
10494# else
10495# ifdef RTLD_NOW
10496# define LT_DLLAZY_OR_NOW RTLD_NOW
10497# else
10498# ifdef DL_NOW
10499# define LT_DLLAZY_OR_NOW DL_NOW
10500# else
10501# define LT_DLLAZY_OR_NOW 0
10502# endif
10503# endif
10504# endif
10505# endif
10506#endif
10507
10508#ifdef __cplusplus
10509extern "C" void exit (int);
10510#endif
10511
10512void fnord() { int i=42;}
10513int main ()
10514{
10515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10516 int status = $lt_dlunknown;
10517
10518 if (self)
10519 {
10520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10521 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10522 /* dlclose (self); */
10523 }
Reid Spencera773bd52006-08-04 18:18:08 +000010524 else
10525 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526
10527 exit (status);
10528}
10529EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010531 (eval $ac_link) 2>&5
10532 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010535 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536 lt_status=$?
10537 case x$lt_status in
10538 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10539 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010540 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541 esac
10542 else :
10543 # compilation failed
10544
10545 fi
10546fi
10547rm -fr conftest*
10548
10549 LIBS="$save_LIBS"
10550
10551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010552{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10553echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554 fi
10555fi
10556
10557if test x"$libltdl_cv_need_uscore" = xyes; then
10558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010559cat >>confdefs.h <<\_ACEOF
10560#define NEED_USCORE 1
10561_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562
10563fi
10564
10565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010566{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10567echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10568if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010570else
10571 # PORTME does your system automatically load deplibs for dlopen?
10572 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10573 # For now, we just catch OSes we know something about -- in the
10574 # future, we'll try test this programmatically.
10575 libltdl_cv_sys_dlopen_deplibs=unknown
10576 case "$host_os" in
10577 aix3*|aix4.1.*|aix4.2.*)
10578 # Unknown whether this is true for these versions of AIX, but
10579 # we want this `case' here to explicitly catch those versions.
10580 libltdl_cv_sys_dlopen_deplibs=unknown
10581 ;;
10582 aix[45]*)
10583 libltdl_cv_sys_dlopen_deplibs=yes
10584 ;;
10585 darwin*)
10586 # Assuming the user has installed a libdl from somewhere, this is true
10587 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10588 libltdl_cv_sys_dlopen_deplibs=yes
10589 ;;
10590 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10591 # GNU and its variants, using gnu ld.so (Glibc)
10592 libltdl_cv_sys_dlopen_deplibs=yes
10593 ;;
10594 hpux10*|hpux11*)
10595 libltdl_cv_sys_dlopen_deplibs=yes
10596 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010597 interix*)
10598 libltdl_cv_sys_dlopen_deplibs=yes
10599 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600 irix[12345]*|irix6.[01]*)
10601 # Catch all versions of IRIX before 6.2, and indicate that we don't
10602 # know how it worked for any of those versions.
10603 libltdl_cv_sys_dlopen_deplibs=unknown
10604 ;;
10605 irix*)
10606 # The case above catches anything before 6.2, and it's known that
10607 # at 6.2 and later dlopen does load deplibs.
10608 libltdl_cv_sys_dlopen_deplibs=yes
10609 ;;
10610 netbsd*)
10611 libltdl_cv_sys_dlopen_deplibs=yes
10612 ;;
10613 openbsd*)
10614 libltdl_cv_sys_dlopen_deplibs=yes
10615 ;;
10616 osf[1234]*)
10617 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10618 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010619 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620 libltdl_cv_sys_dlopen_deplibs=no
10621 ;;
10622 osf5.0|osf5.0a|osf5.1)
10623 # dlopen *does* load deplibs and with the right loader patch applied
10624 # it even uses RPATH in a shared library to search for shared objects
10625 # that the library depends on, but there's no easy way to know if that
10626 # patch is installed. Since this is the case, all we can really
10627 # say is unknown -- it depends on the patch being installed. If
10628 # it is, this changes to `yes'. Without it, it would be `no'.
10629 libltdl_cv_sys_dlopen_deplibs=unknown
10630 ;;
10631 osf*)
10632 # the two cases above should catch all versions of osf <= 5.1. Read
10633 # the comments above for what we know about them.
10634 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10635 # is used to find them so we can finally say `yes'.
10636 libltdl_cv_sys_dlopen_deplibs=yes
10637 ;;
10638 solaris*)
10639 libltdl_cv_sys_dlopen_deplibs=yes
10640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10642 libltdl_cv_sys_dlopen_deplibs=yes
10643 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644 esac
10645
10646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010647{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10648echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010651cat >>confdefs.h <<\_ACEOF
10652#define LTDL_DLOPEN_DEPLIBS 1
10653_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010654
10655fi
10656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010657
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010658for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010659do
10660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666fi
10667ac_res=`eval echo '${'$as_ac_Header'}'`
10668 { echo "$as_me:$LINENO: result: $ac_res" >&5
10669echo "${ECHO_T}$ac_res" >&6; }
10670else
10671 # Is the header compilable?
10672{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680$ac_includes_default
10681#include <$ac_header>
10682_ACEOF
10683rm -f conftest.$ac_objext
10684if { (ac_try="$ac_compile"
10685case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688esac
10689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_compile") 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10698 { (case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701esac
10702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_try") 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711esac
10712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_try") 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_header_compiler=yes
10718else
10719 echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 ac_header_compiler=no
10723fi
10724
10725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10727echo "${ECHO_T}$ac_header_compiler" >&6; }
10728
10729# Is the header present?
10730{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10732cat >conftest.$ac_ext <<_ACEOF
10733/* confdefs.h. */
10734_ACEOF
10735cat confdefs.h >>conftest.$ac_ext
10736cat >>conftest.$ac_ext <<_ACEOF
10737/* end confdefs.h. */
10738#include <$ac_header>
10739_ACEOF
10740if { (ac_try="$ac_cpp conftest.$ac_ext"
10741case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } >/dev/null; then
10753 if test -s conftest.err; then
10754 ac_cpp_err=$ac_c_preproc_warn_flag
10755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10756 else
10757 ac_cpp_err=
10758 fi
10759else
10760 ac_cpp_err=yes
10761fi
10762if test -z "$ac_cpp_err"; then
10763 ac_header_preproc=yes
10764else
10765 echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768 ac_header_preproc=no
10769fi
10770
10771rm -f conftest.err conftest.$ac_ext
10772{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773echo "${ECHO_T}$ac_header_preproc" >&6; }
10774
10775# So? What about this header?
10776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777 yes:no: )
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782 ac_header_preproc=yes
10783 ;;
10784 no:yes:* )
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10788echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10792echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10797 ( cat <<\_ASBOX
10798## ----------------------------------- ##
10799## Report this to llvmbugs@cs.uiuc.edu ##
10800## ----------------------------------- ##
10801_ASBOX
10802 ) | sed "s/^/$as_me: WARNING: /" >&2
10803 ;;
10804esac
10805{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10809else
10810 eval "$as_ac_Header=\$ac_header_preproc"
10811fi
10812ac_res=`eval echo '${'$as_ac_Header'}'`
10813 { echo "$as_me:$LINENO: result: $ac_res" >&5
10814echo "${ECHO_T}$ac_res" >&6; }
10815
10816fi
10817if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010818 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010820_ACEOF
10821
10822fi
10823
10824done
10825
10826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010827{ echo "$as_me:$LINENO: checking for error_t" >&5
10828echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10829if test "${ac_cv_type_error_t+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831else
10832 cat >conftest.$ac_ext <<_ACEOF
10833/* confdefs.h. */
10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
10837/* end confdefs.h. */
10838#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839# include <argz.h>
10840#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010841
10842typedef error_t ac__type_new_;
10843int
10844main ()
10845{
10846if ((ac__type_new_ *) 0)
10847 return 0;
10848if (sizeof (ac__type_new_))
10849 return 0;
10850 ;
10851 return 0;
10852}
10853_ACEOF
10854rm -f conftest.$ac_objext
10855if { (ac_try="$ac_compile"
10856case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859esac
10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_compile") 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872esac
10873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882esac
10883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 ac_cv_type_error_t=yes
10889else
10890 echo "$as_me: failed program was:" >&5
10891sed 's/^/| /' conftest.$ac_ext >&5
10892
10893 ac_cv_type_error_t=no
10894fi
10895
10896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897fi
10898{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10899echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10900if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901
10902cat >>confdefs.h <<_ACEOF
10903#define HAVE_ERROR_T 1
10904_ACEOF
10905
10906
10907else
10908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010909cat >>confdefs.h <<\_ACEOF
10910#define error_t int
10911_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010912
10913fi
10914
10915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010916
10917
10918
10919
10920
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010922do
10923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10926if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928else
10929 cat >conftest.$ac_ext <<_ACEOF
10930/* confdefs.h. */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h. */
10935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10937#define $ac_func innocuous_$ac_func
10938
10939/* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10943
10944#ifdef __STDC__
10945# include <limits.h>
10946#else
10947# include <assert.h>
10948#endif
10949
10950#undef $ac_func
10951
10952/* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10955#ifdef __cplusplus
10956extern "C"
10957#endif
10958char $ac_func ();
10959/* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962#if defined __stub_$ac_func || defined __stub___$ac_func
10963choke me
10964#endif
10965
10966int
10967main ()
10968{
10969return $ac_func ();
10970 ;
10971 return 0;
10972}
10973_ACEOF
10974rm -f conftest.$ac_objext conftest$ac_exeext
10975if { (ac_try="$ac_link"
10976case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979esac
10980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992esac
10993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try='test -s conftest$ac_exeext'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 eval "$as_ac_var=yes"
11009else
11010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013 eval "$as_ac_var=no"
11014fi
11015
11016rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11018fi
11019ac_res=`eval echo '${'$as_ac_var'}'`
11020 { echo "$as_me:$LINENO: result: $ac_res" >&5
11021echo "${ECHO_T}$ac_res" >&6; }
11022if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011023 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025_ACEOF
11026
11027fi
11028done
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011049
11050
11051
11052
11053
11054
11055
11056
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011057for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11058 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011059do
11060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11066fi
11067ac_res=`eval echo '${'$as_ac_Header'}'`
11068 { echo "$as_me:$LINENO: result: $ac_res" >&5
11069echo "${ECHO_T}$ac_res" >&6; }
11070else
11071 # Is the header compilable?
11072{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11074cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080$ac_includes_default
11081#include <$ac_header>
11082_ACEOF
11083rm -f conftest.$ac_objext
11084if { (ac_try="$ac_compile"
11085case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088esac
11089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_compile") 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098 { (case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_try") 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest.$ac_objext'
11108 { (case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11111esac
11112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_try") 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_header_compiler=yes
11118else
11119 echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122 ac_header_compiler=no
11123fi
11124
11125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127echo "${ECHO_T}$ac_header_compiler" >&6; }
11128
11129# Is the header present?
11130{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11132cat >conftest.$ac_ext <<_ACEOF
11133/* confdefs.h. */
11134_ACEOF
11135cat confdefs.h >>conftest.$ac_ext
11136cat >>conftest.$ac_ext <<_ACEOF
11137/* end confdefs.h. */
11138#include <$ac_header>
11139_ACEOF
11140if { (ac_try="$ac_cpp conftest.$ac_ext"
11141case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } >/dev/null; then
11153 if test -s conftest.err; then
11154 ac_cpp_err=$ac_c_preproc_warn_flag
11155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11156 else
11157 ac_cpp_err=
11158 fi
11159else
11160 ac_cpp_err=yes
11161fi
11162if test -z "$ac_cpp_err"; then
11163 ac_header_preproc=yes
11164else
11165 echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168 ac_header_preproc=no
11169fi
11170
11171rm -f conftest.err conftest.$ac_ext
11172{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11173echo "${ECHO_T}$ac_header_preproc" >&6; }
11174
11175# So? What about this header?
11176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11177 yes:no: )
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11182 ac_header_preproc=yes
11183 ;;
11184 no:yes:* )
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11197 ( cat <<\_ASBOX
11198## ----------------------------------- ##
11199## Report this to llvmbugs@cs.uiuc.edu ##
11200## ----------------------------------- ##
11201_ASBOX
11202 ) | sed "s/^/$as_me: WARNING: /" >&2
11203 ;;
11204esac
11205{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210 eval "$as_ac_Header=\$ac_header_preproc"
11211fi
11212ac_res=`eval echo '${'$as_ac_Header'}'`
11213 { echo "$as_me:$LINENO: result: $ac_res" >&5
11214echo "${ECHO_T}$ac_res" >&6; }
11215
11216fi
11217if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220_ACEOF
11221
11222fi
11223
11224done
11225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011226
11227
11228
11229
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011230for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011231do
11232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238fi
11239ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241echo "${ECHO_T}$ac_res" >&6; }
11242else
11243 # Is the header compilable?
11244{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246cat >conftest.$ac_ext <<_ACEOF
11247/* confdefs.h. */
11248_ACEOF
11249cat confdefs.h >>conftest.$ac_ext
11250cat >>conftest.$ac_ext <<_ACEOF
11251/* end confdefs.h. */
11252$ac_includes_default
11253#include <$ac_header>
11254_ACEOF
11255rm -f conftest.$ac_objext
11256if { (ac_try="$ac_compile"
11257case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260esac
11261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270 { (case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273esac
11274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_try") 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283esac
11284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 ac_header_compiler=yes
11290else
11291 echo "$as_me: failed program was:" >&5
11292sed 's/^/| /' conftest.$ac_ext >&5
11293
11294 ac_header_compiler=no
11295fi
11296
11297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299echo "${ECHO_T}$ac_header_compiler" >&6; }
11300
11301# Is the header present?
11302{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
11310#include <$ac_header>
11311_ACEOF
11312if { (ac_try="$ac_cpp conftest.$ac_ext"
11313case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } >/dev/null; then
11325 if test -s conftest.err; then
11326 ac_cpp_err=$ac_c_preproc_warn_flag
11327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328 else
11329 ac_cpp_err=
11330 fi
11331else
11332 ac_cpp_err=yes
11333fi
11334if test -z "$ac_cpp_err"; then
11335 ac_header_preproc=yes
11336else
11337 echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
11340 ac_header_preproc=no
11341fi
11342
11343rm -f conftest.err conftest.$ac_ext
11344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345echo "${ECHO_T}$ac_header_preproc" >&6; }
11346
11347# So? What about this header?
11348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349 yes:no: )
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354 ac_header_preproc=yes
11355 ;;
11356 no:yes:* )
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369 ( cat <<\_ASBOX
11370## ----------------------------------- ##
11371## Report this to llvmbugs@cs.uiuc.edu ##
11372## ----------------------------------- ##
11373_ASBOX
11374 ) | sed "s/^/$as_me: WARNING: /" >&2
11375 ;;
11376esac
11377{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382 eval "$as_ac_Header=\$ac_header_preproc"
11383fi
11384ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386echo "${ECHO_T}$ac_res" >&6; }
11387
11388fi
11389if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011390 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392_ACEOF
11393
11394fi
11395
11396done
11397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011398
11399
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011400for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011401do
11402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11408fi
11409ac_res=`eval echo '${'$as_ac_Header'}'`
11410 { echo "$as_me:$LINENO: result: $ac_res" >&5
11411echo "${ECHO_T}$ac_res" >&6; }
11412else
11413 # Is the header compilable?
11414{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11416cat >conftest.$ac_ext <<_ACEOF
11417/* confdefs.h. */
11418_ACEOF
11419cat confdefs.h >>conftest.$ac_ext
11420cat >>conftest.$ac_ext <<_ACEOF
11421/* end confdefs.h. */
11422$ac_includes_default
11423#include <$ac_header>
11424_ACEOF
11425rm -f conftest.$ac_objext
11426if { (ac_try="$ac_compile"
11427case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430esac
11431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_compile") 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11440 { (case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443esac
11444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_try") 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453esac
11454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_header_compiler=yes
11460else
11461 echo "$as_me: failed program was:" >&5
11462sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 ac_header_compiler=no
11465fi
11466
11467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11469echo "${ECHO_T}$ac_header_compiler" >&6; }
11470
11471# Is the header present?
11472{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11473echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11474cat >conftest.$ac_ext <<_ACEOF
11475/* confdefs.h. */
11476_ACEOF
11477cat confdefs.h >>conftest.$ac_ext
11478cat >>conftest.$ac_ext <<_ACEOF
11479/* end confdefs.h. */
11480#include <$ac_header>
11481_ACEOF
11482if { (ac_try="$ac_cpp conftest.$ac_ext"
11483case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } >/dev/null; then
11495 if test -s conftest.err; then
11496 ac_cpp_err=$ac_c_preproc_warn_flag
11497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11498 else
11499 ac_cpp_err=
11500 fi
11501else
11502 ac_cpp_err=yes
11503fi
11504if test -z "$ac_cpp_err"; then
11505 ac_header_preproc=yes
11506else
11507 echo "$as_me: failed program was:" >&5
11508sed 's/^/| /' conftest.$ac_ext >&5
11509
11510 ac_header_preproc=no
11511fi
11512
11513rm -f conftest.err conftest.$ac_ext
11514{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11515echo "${ECHO_T}$ac_header_preproc" >&6; }
11516
11517# So? What about this header?
11518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11519 yes:no: )
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11523echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11524 ac_header_preproc=yes
11525 ;;
11526 no:yes:* )
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11530echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11532echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11534echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11536echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11538echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11539 ( cat <<\_ASBOX
11540## ----------------------------------- ##
11541## Report this to llvmbugs@cs.uiuc.edu ##
11542## ----------------------------------- ##
11543_ASBOX
11544 ) | sed "s/^/$as_me: WARNING: /" >&2
11545 ;;
11546esac
11547{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552 eval "$as_ac_Header=\$ac_header_preproc"
11553fi
11554ac_res=`eval echo '${'$as_ac_Header'}'`
11555 { echo "$as_me:$LINENO: result: $ac_res" >&5
11556echo "${ECHO_T}$ac_res" >&6; }
11557
11558fi
11559if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011561#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011562_ACEOF
11563 break
11564fi
11565
11566done
11567
11568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011569
11570
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011572do
11573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 cat >conftest.$ac_ext <<_ACEOF
11580/* confdefs.h. */
11581_ACEOF
11582cat confdefs.h >>conftest.$ac_ext
11583cat >>conftest.$ac_ext <<_ACEOF
11584/* end confdefs.h. */
11585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11587#define $ac_func innocuous_$ac_func
11588
11589/* System header to define __stub macros and hopefully few prototypes,
11590 which can conflict with char $ac_func (); below.
11591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592 <limits.h> exists even on freestanding compilers. */
11593
11594#ifdef __STDC__
11595# include <limits.h>
11596#else
11597# include <assert.h>
11598#endif
11599
11600#undef $ac_func
11601
11602/* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11605#ifdef __cplusplus
11606extern "C"
11607#endif
11608char $ac_func ();
11609/* The GNU C library defines this for functions which it implements
11610 to always fail with ENOSYS. Some functions are actually named
11611 something starting with __ and the normal name is an alias. */
11612#if defined __stub_$ac_func || defined __stub___$ac_func
11613choke me
11614#endif
11615
11616int
11617main ()
11618{
11619return $ac_func ();
11620 ;
11621 return 0;
11622}
11623_ACEOF
11624rm -f conftest.$ac_objext conftest$ac_exeext
11625if { (ac_try="$ac_link"
11626case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629esac
11630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_link") 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
11653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_try") 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11659else
11660 echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
11663 eval "$as_ac_var=no"
11664fi
11665
11666rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668fi
11669ac_res=`eval echo '${'$as_ac_var'}'`
11670 { echo "$as_me:$LINENO: result: $ac_res" >&5
11671echo "${ECHO_T}$ac_res" >&6; }
11672if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011673 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675_ACEOF
11676 break
11677fi
11678done
11679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011680
11681
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011682for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011683do
11684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11689else
11690 cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
11696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11698#define $ac_func innocuous_$ac_func
11699
11700/* System header to define __stub macros and hopefully few prototypes,
11701 which can conflict with char $ac_func (); below.
11702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703 <limits.h> exists even on freestanding compilers. */
11704
11705#ifdef __STDC__
11706# include <limits.h>
11707#else
11708# include <assert.h>
11709#endif
11710
11711#undef $ac_func
11712
11713/* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11716#ifdef __cplusplus
11717extern "C"
11718#endif
11719char $ac_func ();
11720/* The GNU C library defines this for functions which it implements
11721 to always fail with ENOSYS. Some functions are actually named
11722 something starting with __ and the normal name is an alias. */
11723#if defined __stub_$ac_func || defined __stub___$ac_func
11724choke me
11725#endif
11726
11727int
11728main ()
11729{
11730return $ac_func ();
11731 ;
11732 return 0;
11733}
11734_ACEOF
11735rm -f conftest.$ac_objext conftest$ac_exeext
11736if { (ac_try="$ac_link"
11737case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740esac
11741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753esac
11754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest$ac_exeext'
11760 { (case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763esac
11764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_try") 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 eval "$as_ac_var=yes"
11770else
11771 echo "$as_me: failed program was:" >&5
11772sed 's/^/| /' conftest.$ac_ext >&5
11773
11774 eval "$as_ac_var=no"
11775fi
11776
11777rm -f core conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
11779fi
11780ac_res=`eval echo '${'$as_ac_var'}'`
11781 { echo "$as_me:$LINENO: result: $ac_res" >&5
11782echo "${ECHO_T}$ac_res" >&6; }
11783if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786_ACEOF
11787 break
11788fi
11789done
11790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011791
11792
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011793for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011794do
11795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11809#define $ac_func innocuous_$ac_func
11810
11811/* System header to define __stub macros and hopefully few prototypes,
11812 which can conflict with char $ac_func (); below.
11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 <limits.h> exists even on freestanding compilers. */
11815
11816#ifdef __STDC__
11817# include <limits.h>
11818#else
11819# include <assert.h>
11820#endif
11821
11822#undef $ac_func
11823
11824/* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11827#ifdef __cplusplus
11828extern "C"
11829#endif
11830char $ac_func ();
11831/* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834#if defined __stub_$ac_func || defined __stub___$ac_func
11835choke me
11836#endif
11837
11838int
11839main ()
11840{
11841return $ac_func ();
11842 ;
11843 return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext conftest$ac_exeext
11847if { (ac_try="$ac_link"
11848case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_link") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874esac
11875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_try") 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 eval "$as_ac_var=yes"
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 eval "$as_ac_var=no"
11886fi
11887
11888rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890fi
11891ac_res=`eval echo '${'$as_ac_var'}'`
11892 { echo "$as_me:$LINENO: result: $ac_res" >&5
11893echo "${ECHO_T}$ac_res" >&6; }
11894if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897_ACEOF
11898 break
11899fi
11900done
11901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011902
11903
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011904for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011905do
11906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11909if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911else
11912 cat >conftest.$ac_ext <<_ACEOF
11913/* confdefs.h. */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */
11918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11920#define $ac_func innocuous_$ac_func
11921
11922/* System header to define __stub macros and hopefully few prototypes,
11923 which can conflict with char $ac_func (); below.
11924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925 <limits.h> exists even on freestanding compilers. */
11926
11927#ifdef __STDC__
11928# include <limits.h>
11929#else
11930# include <assert.h>
11931#endif
11932
11933#undef $ac_func
11934
11935/* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938#ifdef __cplusplus
11939extern "C"
11940#endif
11941char $ac_func ();
11942/* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945#if defined __stub_$ac_func || defined __stub___$ac_func
11946choke me
11947#endif
11948
11949int
11950main ()
11951{
11952return $ac_func ();
11953 ;
11954 return 0;
11955}
11956_ACEOF
11957rm -f conftest.$ac_objext conftest$ac_exeext
11958if { (ac_try="$ac_link"
11959case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11962esac
11963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_link") 2>conftest.er1
11965 ac_status=$?
11966 grep -v '^ *+' conftest.er1 >conftest.err
11967 rm -f conftest.er1
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest$ac_exeext'
11982 { (case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985esac
11986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_try") 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 eval "$as_ac_var=yes"
11992else
11993 echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 eval "$as_ac_var=no"
11997fi
11998
11999rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12001fi
12002ac_res=`eval echo '${'$as_ac_var'}'`
12003 { echo "$as_me:$LINENO: result: $ac_res" >&5
12004echo "${ECHO_T}$ac_res" >&6; }
12005if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012006 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012007#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012008_ACEOF
12009
12010fi
12011done
12012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012013
12014
12015
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012016for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012017do
12018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12019{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12021if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023else
12024 cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h. */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h. */
12030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12032#define $ac_func innocuous_$ac_func
12033
12034/* System header to define __stub macros and hopefully few prototypes,
12035 which can conflict with char $ac_func (); below.
12036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037 <limits.h> exists even on freestanding compilers. */
12038
12039#ifdef __STDC__
12040# include <limits.h>
12041#else
12042# include <assert.h>
12043#endif
12044
12045#undef $ac_func
12046
12047/* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050#ifdef __cplusplus
12051extern "C"
12052#endif
12053char $ac_func ();
12054/* The GNU C library defines this for functions which it implements
12055 to always fail with ENOSYS. Some functions are actually named
12056 something starting with __ and the normal name is an alias. */
12057#if defined __stub_$ac_func || defined __stub___$ac_func
12058choke me
12059#endif
12060
12061int
12062main ()
12063{
12064return $ac_func ();
12065 ;
12066 return 0;
12067}
12068_ACEOF
12069rm -f conftest.$ac_objext conftest$ac_exeext
12070if { (ac_try="$ac_link"
12071case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074esac
12075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_link") 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12087esac
12088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097esac
12098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_try") 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 eval "$as_ac_var=yes"
12104else
12105 echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
12108 eval "$as_ac_var=no"
12109fi
12110
12111rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113fi
12114ac_res=`eval echo '${'$as_ac_var'}'`
12115 { echo "$as_me:$LINENO: result: $ac_res" >&5
12116echo "${ECHO_T}$ac_res" >&6; }
12117if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012118 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012119#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120_ACEOF
12121
12122fi
12123done
12124
12125
Douglas Gregor01746742009-05-11 18:05:52 +000012126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012127{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12128echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012129
Reid Spencer86901802004-12-08 23:07:27 +000012130ICC=no
12131IXX=no
12132case $CC in
12133 icc*|icpc*)
12134 ICC=yes
12135 IXX=yes
12136 ;;
12137 *)
12138 ;;
12139esac
12140
Duraid Madina937c60a2006-02-15 07:57:42 +000012141if test "$GCC" != "yes" && test "$ICC" != "yes"
12142then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012143 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12144echo "$as_me: error: gcc|icc required but not found" >&2;}
12145 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012146fi
12147
12148if test "$GXX" != "yes" && test "$IXX" != "yes"
12149then
Eric Christopher73e36da2010-12-08 02:02:14 +000012150 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12151echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012152 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012153fi
12154
Reid Spencer86901802004-12-08 23:07:27 +000012155if test "$GCC" = "yes"
12156then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012157 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012158#if !defined(__GNUC__) || __GNUC__ < 3
12159#error Unsupported GCC version
12160#endif
12161
12162_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012163rm -f conftest.$ac_objext
12164if { (ac_try="$ac_compile"
12165case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168esac
12169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_compile") 2>conftest.er1
12171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178 { (case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12181esac
12182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_try") 2>&5
12184 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } &&
12187 { ac_try='test -s conftest.$ac_objext'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191esac
12192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012199 echo "$as_me: failed program was:" >&5
12200sed 's/^/| /' conftest.$ac_ext >&5
12201
12202 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12203echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12204 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012206
Chris Lattner399c7c72008-02-05 19:43:53 +000012207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012208fi
12209
12210if test -z "$llvm_cv_gnu_make_command"
12211then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012212 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12213echo "$as_me: error: GNU Make required but not found" >&2;}
12214 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012215fi
12216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012217{ echo "$as_me:$LINENO: result: ok" >&5
12218echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012220{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12221echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012222NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12223
12224NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012226{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12227echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012228
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012230
12231{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12232echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12233if test "${ac_cv_lib_m_sin+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012235else
12236 ac_check_lib_save_LIBS=$LIBS
12237LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012238cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012243/* end confdefs.h. */
12244
Reid Spencera773bd52006-08-04 18:18:08 +000012245/* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012248#ifdef __cplusplus
12249extern "C"
12250#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012251char sin ();
12252int
12253main ()
12254{
Reid Spencera773bd52006-08-04 18:18:08 +000012255return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012256 ;
12257 return 0;
12258}
12259_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012260rm -f conftest.$ac_objext conftest$ac_exeext
12261if { (ac_try="$ac_link"
12262case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12265esac
12266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_link") 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12275 { (case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278esac
12279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_try") 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest$ac_exeext'
12285 { (case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12288esac
12289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_try") 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012294 ac_cv_lib_m_sin=yes
12295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012296 echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012301
Bill Wendlingebcceee2009-04-18 11:20:33 +000012302rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012303 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012304LIBS=$ac_check_lib_save_LIBS
12305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012306{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12307echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12308if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012309 cat >>confdefs.h <<_ACEOF
12310#define HAVE_LIBM 1
12311_ACEOF
12312
12313 LIBS="-lm $LIBS"
12314
12315fi
12316
Jeff Cohen28783c32007-01-12 18:22:38 +000012317if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012318
12319{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12320echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12321if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012323else
12324 ac_check_lib_save_LIBS=$LIBS
12325LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012326cat >conftest.$ac_ext <<_ACEOF
12327/* confdefs.h. */
12328_ACEOF
12329cat confdefs.h >>conftest.$ac_ext
12330cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012331/* end confdefs.h. */
12332
Reid Spencer48fdf912006-06-01 19:03:21 +000012333
Reid Spencer484fc8e2006-06-01 16:55:59 +000012334int
12335main ()
12336{
Reid Spencera773bd52006-08-04 18:18:08 +000012337return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012338 ;
12339 return 0;
12340}
12341_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012342rm -f conftest.$ac_objext conftest$ac_exeext
12343if { (ac_try="$ac_link"
12344case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12347esac
12348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_link") 2>conftest.er1
12350 ac_status=$?
12351 grep -v '^ *+' conftest.er1 >conftest.err
12352 rm -f conftest.er1
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12357 { (case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360esac
12361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_try") 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; } &&
12366 { ac_try='test -s conftest$ac_exeext'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370esac
12371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012376 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012377else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012378 echo "$as_me: failed program was:" >&5
12379sed 's/^/| /' conftest.$ac_ext >&5
12380
12381 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012382fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012383
Bill Wendlingebcceee2009-04-18 11:20:33 +000012384rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012385 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012386LIBS=$ac_check_lib_save_LIBS
12387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012388{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12389echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12390if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012391 cat >>confdefs.h <<_ACEOF
12392#define HAVE_LIBIMAGEHLP 1
12393_ACEOF
12394
12395 LIBS="-limagehlp $LIBS"
12396
12397fi
12398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012399
12400{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12401echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12402if test "${ac_cv_lib_psapi_main+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012404else
12405 ac_check_lib_save_LIBS=$LIBS
12406LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012407cat >conftest.$ac_ext <<_ACEOF
12408/* confdefs.h. */
12409_ACEOF
12410cat confdefs.h >>conftest.$ac_ext
12411cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012412/* end confdefs.h. */
12413
Reid Spencer48fdf912006-06-01 19:03:21 +000012414
Reid Spencer484fc8e2006-06-01 16:55:59 +000012415int
12416main ()
12417{
Reid Spencera773bd52006-08-04 18:18:08 +000012418return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012419 ;
12420 return 0;
12421}
12422_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012423rm -f conftest.$ac_objext conftest$ac_exeext
12424if { (ac_try="$ac_link"
12425case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12428esac
12429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_link") 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12438 { (case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12441esac
12442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_try") 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; } &&
12447 { ac_try='test -s conftest$ac_exeext'
12448 { (case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12451esac
12452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_try") 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012457 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012459 echo "$as_me: failed program was:" >&5
12460sed 's/^/| /' conftest.$ac_ext >&5
12461
12462 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012464
Bill Wendlingebcceee2009-04-18 11:20:33 +000012465rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012466 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012467LIBS=$ac_check_lib_save_LIBS
12468fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012469{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12470echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12471if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012472 cat >>confdefs.h <<_ACEOF
12473#define HAVE_LIBPSAPI 1
12474_ACEOF
12475
12476 LIBS="-lpsapi $LIBS"
12477
12478fi
12479
12480fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012482{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12483echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12484if test "${ac_cv_search_dlopen+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012486else
12487 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012488cat >conftest.$ac_ext <<_ACEOF
12489/* confdefs.h. */
12490_ACEOF
12491cat confdefs.h >>conftest.$ac_ext
12492cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012494
Reid Spencera773bd52006-08-04 18:18:08 +000012495/* Override any GCC internal prototype to avoid an error.
12496 Use char because int might match the return type of a GCC
12497 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012498#ifdef __cplusplus
12499extern "C"
12500#endif
John Criswell7a73b802003-06-30 21:59:07 +000012501char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012502int
12503main ()
12504{
Reid Spencera773bd52006-08-04 18:18:08 +000012505return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012506 ;
12507 return 0;
12508}
12509_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012510for ac_lib in '' dl; do
12511 if test -z "$ac_lib"; then
12512 ac_res="none required"
12513 else
12514 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012516 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012517 rm -f conftest.$ac_objext conftest$ac_exeext
12518if { (ac_try="$ac_link"
12519case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12522esac
12523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_link") 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532 { (case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535esac
12536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_try") 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest$ac_exeext'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545esac
12546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012551 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012552else
12553 echo "$as_me: failed program was:" >&5
12554sed 's/^/| /' conftest.$ac_ext >&5
12555
12556
John Criswell7a73b802003-06-30 21:59:07 +000012557fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012558
Bill Wendlingebcceee2009-04-18 11:20:33 +000012559rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012560 conftest$ac_exeext
12561 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012562 break
John Criswell7a73b802003-06-30 21:59:07 +000012563fi
Reid Spencera773bd52006-08-04 18:18:08 +000012564done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012565if test "${ac_cv_search_dlopen+set}" = set; then
12566 :
Reid Spencera773bd52006-08-04 18:18:08 +000012567else
12568 ac_cv_search_dlopen=no
12569fi
12570rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012571LIBS=$ac_func_search_save_LIBS
12572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012573{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12574echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012575ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012576if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012579cat >>confdefs.h <<\_ACEOF
12580#define HAVE_DLOPEN 1
12581_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012582
12583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012584 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12585echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012586fi
12587
12588
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012589if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012590 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12591echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12592if test "${ac_cv_search_ffi_call+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012594else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012595 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596cat >conftest.$ac_ext <<_ACEOF
12597/* confdefs.h. */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012601/* end confdefs.h. */
12602
12603/* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12606#ifdef __cplusplus
12607extern "C"
12608#endif
12609char ffi_call ();
12610int
12611main ()
12612{
12613return ffi_call ();
12614 ;
12615 return 0;
12616}
12617_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012618for ac_lib in '' ffi; do
12619 if test -z "$ac_lib"; then
12620 ac_res="none required"
12621 else
12622 ac_res=-l$ac_lib
12623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12624 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012625 rm -f conftest.$ac_objext conftest$ac_exeext
12626if { (ac_try="$ac_link"
12627case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630esac
12631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_link") 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643esac
12644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest$ac_exeext'
12650 { (case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653esac
12654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_try") 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012659 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012666
Bill Wendlingebcceee2009-04-18 11:20:33 +000012667rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012668 conftest$ac_exeext
12669 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012670 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012671fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012672done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012673if test "${ac_cv_search_ffi_call+set}" = set; then
12674 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012675else
12676 ac_cv_search_ffi_call=no
12677fi
12678rm conftest.$ac_ext
12679LIBS=$ac_func_search_save_LIBS
12680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012681{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12682echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012683ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012684if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012687cat >>confdefs.h <<\_ACEOF
12688#define HAVE_FFI_CALL 1
12689_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012690
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012691else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012692 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12693echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12694 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012695fi
12696
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012697fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12700echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12701if test "${ac_cv_search_mallinfo+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012703else
12704 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012705cat >conftest.$ac_ext <<_ACEOF
12706/* confdefs.h. */
12707_ACEOF
12708cat confdefs.h >>conftest.$ac_ext
12709cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012710/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012711
Reid Spencera773bd52006-08-04 18:18:08 +000012712/* Override any GCC internal prototype to avoid an error.
12713 Use char because int might match the return type of a GCC
12714 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012715#ifdef __cplusplus
12716extern "C"
12717#endif
John Criswell7a73b802003-06-30 21:59:07 +000012718char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012719int
12720main ()
12721{
Reid Spencera773bd52006-08-04 18:18:08 +000012722return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012723 ;
12724 return 0;
12725}
12726_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012727for ac_lib in '' malloc; do
12728 if test -z "$ac_lib"; then
12729 ac_res="none required"
12730 else
12731 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012733 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012734 rm -f conftest.$ac_objext conftest$ac_exeext
12735if { (ac_try="$ac_link"
12736case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739esac
12740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_link") 2>conftest.er1
12742 ac_status=$?
12743 grep -v '^ *+' conftest.er1 >conftest.err
12744 rm -f conftest.er1
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
12748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12749 { (case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12752esac
12753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_try") 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest$ac_exeext'
12759 { (case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12762esac
12763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764 (eval "$ac_try") 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012768 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012769else
12770 echo "$as_me: failed program was:" >&5
12771sed 's/^/| /' conftest.$ac_ext >&5
12772
12773
John Criswell7a73b802003-06-30 21:59:07 +000012774fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012775
Bill Wendlingebcceee2009-04-18 11:20:33 +000012776rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012777 conftest$ac_exeext
12778 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012779 break
John Criswell7a73b802003-06-30 21:59:07 +000012780fi
Reid Spencera773bd52006-08-04 18:18:08 +000012781done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012782if test "${ac_cv_search_mallinfo+set}" = set; then
12783 :
Reid Spencera773bd52006-08-04 18:18:08 +000012784else
12785 ac_cv_search_mallinfo=no
12786fi
12787rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012788LIBS=$ac_func_search_save_LIBS
12789fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012790{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12791echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012792ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012793if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012796cat >>confdefs.h <<\_ACEOF
12797#define HAVE_MALLINFO 1
12798_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012799
12800fi
12801
12802
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000012803if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012804
12805{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12806echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12807if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012809else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012810 ac_check_lib_save_LIBS=$LIBS
12811LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012812cat >conftest.$ac_ext <<_ACEOF
12813/* confdefs.h. */
12814_ACEOF
12815cat confdefs.h >>conftest.$ac_ext
12816cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012817/* end confdefs.h. */
12818
Reid Spencera773bd52006-08-04 18:18:08 +000012819/* Override any GCC internal prototype to avoid an error.
12820 Use char because int might match the return type of a GCC
12821 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012822#ifdef __cplusplus
12823extern "C"
12824#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012825char pthread_mutex_init ();
12826int
12827main ()
12828{
Reid Spencera773bd52006-08-04 18:18:08 +000012829return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012830 ;
12831 return 0;
12832}
12833_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012834rm -f conftest.$ac_objext conftest$ac_exeext
12835if { (ac_try="$ac_link"
12836case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12839esac
12840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_link") 2>conftest.er1
12842 ac_status=$?
12843 grep -v '^ *+' conftest.er1 >conftest.err
12844 rm -f conftest.er1
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } &&
12848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12849 { (case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12852esac
12853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854 (eval "$ac_try") 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; } &&
12858 { ac_try='test -s conftest$ac_exeext'
12859 { (case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12862esac
12863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_try") 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012868 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012870 echo "$as_me: failed program was:" >&5
12871sed 's/^/| /' conftest.$ac_ext >&5
12872
12873 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012874fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012875
Bill Wendlingebcceee2009-04-18 11:20:33 +000012876rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012877 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012878LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012879fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012880{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12881echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12882if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012883 cat >>confdefs.h <<_ACEOF
12884#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012885_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012886
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012887 LIBS="-lpthread $LIBS"
12888
Reid Spencer22177fe2005-07-12 15:24:20 +000012889fi
12890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012891 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12892echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12893if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012895else
12896 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012897cat >conftest.$ac_ext <<_ACEOF
12898/* confdefs.h. */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012902/* end confdefs.h. */
12903
Reid Spencera773bd52006-08-04 18:18:08 +000012904/* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012907#ifdef __cplusplus
12908extern "C"
12909#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012910char pthread_mutex_lock ();
12911int
12912main ()
12913{
Reid Spencera773bd52006-08-04 18:18:08 +000012914return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012915 ;
12916 return 0;
12917}
12918_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012919for ac_lib in '' pthread; do
12920 if test -z "$ac_lib"; then
12921 ac_res="none required"
12922 else
12923 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012925 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012926 rm -f conftest.$ac_objext conftest$ac_exeext
12927if { (ac_try="$ac_link"
12928case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12931esac
12932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_link") 2>conftest.er1
12934 ac_status=$?
12935 grep -v '^ *+' conftest.er1 >conftest.err
12936 rm -f conftest.er1
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
12940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12941 { (case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12944esac
12945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_try") 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; } &&
12950 { ac_try='test -s conftest$ac_exeext'
12951 { (case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954esac
12955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_try") 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012960 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012961else
12962 echo "$as_me: failed program was:" >&5
12963sed 's/^/| /' conftest.$ac_ext >&5
12964
12965
Brian Gaeke5f268f72003-12-05 19:29:01 +000012966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012967
Bill Wendlingebcceee2009-04-18 11:20:33 +000012968rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012969 conftest$ac_exeext
12970 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012971 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012972fi
Reid Spencera773bd52006-08-04 18:18:08 +000012973done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012974if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12975 :
Reid Spencera773bd52006-08-04 18:18:08 +000012976else
12977 ac_cv_search_pthread_mutex_lock=no
12978fi
12979rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012980LIBS=$ac_func_search_save_LIBS
12981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012982{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12983echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012984ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012985if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012988cat >>confdefs.h <<\_ACEOF
12989#define HAVE_PTHREAD_MUTEX_LOCK 1
12990_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012991
12992fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012994 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12995echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12996if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012998else
12999 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013000cat >conftest.$ac_ext <<_ACEOF
13001/* confdefs.h. */
13002_ACEOF
13003cat confdefs.h >>conftest.$ac_ext
13004cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013005/* end confdefs.h. */
13006
13007/* Override any GCC internal prototype to avoid an error.
13008 Use char because int might match the return type of a GCC
13009 builtin and then its argument prototype would still apply. */
13010#ifdef __cplusplus
13011extern "C"
13012#endif
13013char pthread_rwlock_init ();
13014int
13015main ()
13016{
13017return pthread_rwlock_init ();
13018 ;
13019 return 0;
13020}
13021_ACEOF
13022for ac_lib in '' pthread; do
13023 if test -z "$ac_lib"; then
13024 ac_res="none required"
13025 else
13026 ac_res=-l$ac_lib
13027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13028 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013029 rm -f conftest.$ac_objext conftest$ac_exeext
13030if { (ac_try="$ac_link"
13031case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13034esac
13035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_link") 2>conftest.er1
13037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047esac
13048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try='test -s conftest$ac_exeext'
13054 { (case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057esac
13058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_try") 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013063 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013064else
13065 echo "$as_me: failed program was:" >&5
13066sed 's/^/| /' conftest.$ac_ext >&5
13067
13068
Owen Andersonde8aed22009-06-16 18:20:20 +000013069fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013070
Owen Andersonde8aed22009-06-16 18:20:20 +000013071rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013072 conftest$ac_exeext
13073 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013074 break
13075fi
13076done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013077if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13078 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013079else
13080 ac_cv_search_pthread_rwlock_init=no
13081fi
13082rm conftest.$ac_ext
13083LIBS=$ac_func_search_save_LIBS
13084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013085{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13086echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013087ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013088if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013091cat >>confdefs.h <<\_ACEOF
13092#define HAVE_PTHREAD_RWLOCK_INIT 1
13093_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013094
13095fi
13096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013097 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13098echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13099if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013101else
13102 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013103cat >conftest.$ac_ext <<_ACEOF
13104/* confdefs.h. */
13105_ACEOF
13106cat confdefs.h >>conftest.$ac_ext
13107cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013108/* end confdefs.h. */
13109
13110/* Override any GCC internal prototype to avoid an error.
13111 Use char because int might match the return type of a GCC
13112 builtin and then its argument prototype would still apply. */
13113#ifdef __cplusplus
13114extern "C"
13115#endif
13116char pthread_getspecific ();
13117int
13118main ()
13119{
13120return pthread_getspecific ();
13121 ;
13122 return 0;
13123}
13124_ACEOF
13125for ac_lib in '' pthread; do
13126 if test -z "$ac_lib"; then
13127 ac_res="none required"
13128 else
13129 ac_res=-l$ac_lib
13130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13131 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013132 rm -f conftest.$ac_objext conftest$ac_exeext
13133if { (ac_try="$ac_link"
13134case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137esac
13138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_link") 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
13146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150esac
13151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest$ac_exeext'
13157 { (case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13160esac
13161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_try") 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013166 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013167else
13168 echo "$as_me: failed program was:" >&5
13169sed 's/^/| /' conftest.$ac_ext >&5
13170
13171
Owen Anderson27fcfe12009-06-25 23:10:26 +000013172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013173
Owen Anderson27fcfe12009-06-25 23:10:26 +000013174rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013175 conftest$ac_exeext
13176 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013177 break
13178fi
13179done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013180if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13181 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013182else
13183 ac_cv_search_pthread_getspecific=no
13184fi
13185rm conftest.$ac_ext
13186LIBS=$ac_func_search_save_LIBS
13187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013188{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13189echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013190ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013191if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013194cat >>confdefs.h <<\_ACEOF
13195#define HAVE_PTHREAD_GETSPECIFIC 1
13196_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013197
13198fi
13199
Reid Spencer0a262ba2005-08-24 10:07:20 +000013200fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013201
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013202
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013203# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013204if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013205 withval=$with_udis86;
13206 USE_UDIS86=1
13207
13208 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013209 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013210 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13211 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013212
13213{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13214echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13215if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013217else
13218 ac_check_lib_save_LIBS=$LIBS
13219LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013220cat >conftest.$ac_ext <<_ACEOF
13221/* confdefs.h. */
13222_ACEOF
13223cat confdefs.h >>conftest.$ac_ext
13224cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013225/* end confdefs.h. */
13226
13227/* Override any GCC internal prototype to avoid an error.
13228 Use char because int might match the return type of a GCC
13229 builtin and then its argument prototype would still apply. */
13230#ifdef __cplusplus
13231extern "C"
13232#endif
13233char ud_init ();
13234int
13235main ()
13236{
13237return ud_init ();
13238 ;
13239 return 0;
13240}
13241_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013242rm -f conftest.$ac_objext conftest$ac_exeext
13243if { (ac_try="$ac_link"
13244case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13247esac
13248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_link") 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13257 { (case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13260esac
13261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_try") 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest$ac_exeext'
13267 { (case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270esac
13271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_try") 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013276 ac_cv_lib_udis86_ud_init=yes
13277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013278 echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
13281 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013283
Bill Wendlingebcceee2009-04-18 11:20:33 +000013284rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013286LIBS=$ac_check_lib_save_LIBS
13287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013288{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13289echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13290if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013291 cat >>confdefs.h <<_ACEOF
13292#define HAVE_LIBUDIS86 1
13293_ACEOF
13294
13295 LIBS="-ludis86 $LIBS"
13296
13297else
13298
13299 echo "Error! You need to have libudis86 around."
13300 exit -1
13301
13302fi
13303
13304
13305else
13306 USE_UDIS86=0
13307
13308fi
13309
13310
13311cat >>confdefs.h <<_ACEOF
13312#define USE_UDIS86 $USE_UDIS86
13313_ACEOF
13314
13315
13316
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013317# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013318if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013319 withval=$with_oprofile;
13320 USE_OPROFILE=1
13321
13322 case "$withval" in
13323 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013324 no) llvm_cv_oppath=
13325 USE_OPROFILE=0
13326 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013327 *) llvm_cv_oppath="${withval}/lib/oprofile"
13328 CPPFLAGS="-I${withval}/include";;
13329 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013330 if test -n "$llvm_cv_oppath" ; then
13331 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013332 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13333echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13334if test "${ac_cv_search_bfd_init+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013336else
13337 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013338cat >conftest.$ac_ext <<_ACEOF
13339/* confdefs.h. */
13340_ACEOF
13341cat confdefs.h >>conftest.$ac_ext
13342cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013343/* end confdefs.h. */
13344
13345/* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13348#ifdef __cplusplus
13349extern "C"
13350#endif
13351char bfd_init ();
13352int
13353main ()
13354{
13355return bfd_init ();
13356 ;
13357 return 0;
13358}
13359_ACEOF
13360for ac_lib in '' bfd; do
13361 if test -z "$ac_lib"; then
13362 ac_res="none required"
13363 else
13364 ac_res=-l$ac_lib
13365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13366 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013367 rm -f conftest.$ac_objext conftest$ac_exeext
13368if { (ac_try="$ac_link"
13369case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372esac
13373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_link") 2>conftest.er1
13375 ac_status=$?
13376 grep -v '^ *+' conftest.er1 >conftest.err
13377 rm -f conftest.er1
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } &&
13381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385esac
13386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest$ac_exeext'
13392 { (case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13395esac
13396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_try") 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013401 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013402else
13403 echo "$as_me: failed program was:" >&5
13404sed 's/^/| /' conftest.$ac_ext >&5
13405
13406
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013407fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013408
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013409rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013410 conftest$ac_exeext
13411 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013412 break
13413fi
13414done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415if test "${ac_cv_search_bfd_init+set}" = set; then
13416 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013417else
13418 ac_cv_search_bfd_init=no
13419fi
13420rm conftest.$ac_ext
13421LIBS=$ac_func_search_save_LIBS
13422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013423{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13424echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013425ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013426if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13428
13429fi
13430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013431 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13432echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13433if test "${ac_cv_search_op_open_agent+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013435else
13436 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013437cat >conftest.$ac_ext <<_ACEOF
13438/* confdefs.h. */
13439_ACEOF
13440cat confdefs.h >>conftest.$ac_ext
13441cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013442/* end confdefs.h. */
13443
13444/* Override any GCC internal prototype to avoid an error.
13445 Use char because int might match the return type of a GCC
13446 builtin and then its argument prototype would still apply. */
13447#ifdef __cplusplus
13448extern "C"
13449#endif
13450char op_open_agent ();
13451int
13452main ()
13453{
13454return op_open_agent ();
13455 ;
13456 return 0;
13457}
13458_ACEOF
13459for ac_lib in '' opagent; do
13460 if test -z "$ac_lib"; then
13461 ac_res="none required"
13462 else
13463 ac_res=-l$ac_lib
13464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13465 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013466 rm -f conftest.$ac_objext conftest$ac_exeext
13467if { (ac_try="$ac_link"
13468case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13471esac
13472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_link") 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13481 { (case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13484esac
13485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_try") 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest$ac_exeext'
13491 { (case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494esac
13495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_try") 2>&5
13497 ac_status=$?
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013500 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013501else
13502 echo "$as_me: failed program was:" >&5
13503sed 's/^/| /' conftest.$ac_ext >&5
13504
13505
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013506fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013507
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013508rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013509 conftest$ac_exeext
13510 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013511 break
13512fi
13513done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013514if test "${ac_cv_search_op_open_agent+set}" = set; then
13515 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013516else
13517 ac_cv_search_op_open_agent=no
13518fi
13519rm conftest.$ac_ext
13520LIBS=$ac_func_search_save_LIBS
13521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013522{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13523echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013524ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013525if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13527
13528else
13529
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013530 echo "Error! You need to have libopagent around."
13531 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013532
13533fi
13534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013535 if test "${ac_cv_header_opagent_h+set}" = set; then
13536 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13537echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13538if test "${ac_cv_header_opagent_h+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540fi
13541{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13542echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13543else
13544 # Is the header compilable?
13545{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13546echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13547cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
13553$ac_includes_default
13554#include <opagent.h>
13555_ACEOF
13556rm -f conftest.$ac_objext
13557if { (ac_try="$ac_compile"
13558case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13561esac
13562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_compile") 2>conftest.er1
13564 ac_status=$?
13565 grep -v '^ *+' conftest.er1 >conftest.err
13566 rm -f conftest.er1
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13571 { (case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574esac
13575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_try") 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; } &&
13580 { ac_try='test -s conftest.$ac_objext'
13581 { (case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584esac
13585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_try") 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_header_compiler=yes
13591else
13592 echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013595 ac_header_compiler=no
13596fi
13597
13598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13600echo "${ECHO_T}$ac_header_compiler" >&6; }
13601
13602# Is the header present?
13603{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13604echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13605cat >conftest.$ac_ext <<_ACEOF
13606/* confdefs.h. */
13607_ACEOF
13608cat confdefs.h >>conftest.$ac_ext
13609cat >>conftest.$ac_ext <<_ACEOF
13610/* end confdefs.h. */
13611#include <opagent.h>
13612_ACEOF
13613if { (ac_try="$ac_cpp conftest.$ac_ext"
13614case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617esac
13618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } >/dev/null; then
13626 if test -s conftest.err; then
13627 ac_cpp_err=$ac_c_preproc_warn_flag
13628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13629 else
13630 ac_cpp_err=
13631 fi
13632else
13633 ac_cpp_err=yes
13634fi
13635if test -z "$ac_cpp_err"; then
13636 ac_header_preproc=yes
13637else
13638 echo "$as_me: failed program was:" >&5
13639sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 ac_header_preproc=no
13642fi
13643
13644rm -f conftest.err conftest.$ac_ext
13645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13646echo "${ECHO_T}$ac_header_preproc" >&6; }
13647
13648# So? What about this header?
13649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13650 yes:no: )
13651 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13652echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13654echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13655 ac_header_preproc=yes
13656 ;;
13657 no:yes:* )
13658 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13659echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13661echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13663echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13665echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13667echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13668 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13669echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13670 ( cat <<\_ASBOX
13671## ----------------------------------- ##
13672## Report this to llvmbugs@cs.uiuc.edu ##
13673## ----------------------------------- ##
13674_ASBOX
13675 ) | sed "s/^/$as_me: WARNING: /" >&2
13676 ;;
13677esac
13678{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13679echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13680if test "${ac_cv_header_opagent_h+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682else
13683 ac_cv_header_opagent_h=$ac_header_preproc
13684fi
13685{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13686echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13687
13688fi
13689if test $ac_cv_header_opagent_h = yes; then
13690 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013691else
13692
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013693 echo "Error! You need to have opagent.h around."
13694 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013695
13696fi
13697
13698
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013699 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013700
13701else
13702
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013703 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013704
13705
13706fi
13707
13708
13709cat >>confdefs.h <<_ACEOF
13710#define USE_OPROFILE $USE_OPROFILE
13711_ACEOF
13712
13713
13714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013715
13716
13717
13718
13719
Reid Spencer59473af2004-12-25 07:31:29 +000013720ac_header_dirent=no
13721for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013722 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13723{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13724echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013727else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013728 cat >conftest.$ac_ext <<_ACEOF
13729/* confdefs.h. */
13730_ACEOF
13731cat confdefs.h >>conftest.$ac_ext
13732cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013733/* end confdefs.h. */
13734#include <sys/types.h>
13735#include <$ac_hdr>
13736
13737int
13738main ()
13739{
13740if ((DIR *) 0)
13741return 0;
13742 ;
13743 return 0;
13744}
13745_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013746rm -f conftest.$ac_objext
13747if { (ac_try="$ac_compile"
13748case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13751esac
13752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_compile") 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest.$ac_objext'
13771 { (case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774esac
13775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_try") 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013780 eval "$as_ac_Header=yes"
13781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013782 echo "$as_me: failed program was:" >&5
13783sed 's/^/| /' conftest.$ac_ext >&5
13784
13785 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013786fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013787
Reid Spencera773bd52006-08-04 18:18:08 +000013788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013789fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013790ac_res=`eval echo '${'$as_ac_Header'}'`
13791 { echo "$as_me:$LINENO: result: $ac_res" >&5
13792echo "${ECHO_T}$ac_res" >&6; }
13793if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013794 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013795#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013796_ACEOF
13797
13798ac_header_dirent=$ac_hdr; break
13799fi
13800
13801done
13802# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13803if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013804 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13805echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13806if test "${ac_cv_search_opendir+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013808else
13809 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013810cat >conftest.$ac_ext <<_ACEOF
13811/* confdefs.h. */
13812_ACEOF
13813cat confdefs.h >>conftest.$ac_ext
13814cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013815/* end confdefs.h. */
13816
Reid Spencera773bd52006-08-04 18:18:08 +000013817/* Override any GCC internal prototype to avoid an error.
13818 Use char because int might match the return type of a GCC
13819 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013820#ifdef __cplusplus
13821extern "C"
13822#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013823char opendir ();
13824int
13825main ()
13826{
Reid Spencera773bd52006-08-04 18:18:08 +000013827return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013828 ;
13829 return 0;
13830}
13831_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013832for ac_lib in '' dir; do
13833 if test -z "$ac_lib"; then
13834 ac_res="none required"
13835 else
13836 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013838 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013839 rm -f conftest.$ac_objext conftest$ac_exeext
13840if { (ac_try="$ac_link"
13841case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844esac
13845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_link") 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854 { (case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13857esac
13858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_try") 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; } &&
13863 { ac_try='test -s conftest$ac_exeext'
13864 { (case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867esac
13868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_try") 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013873 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013874else
13875 echo "$as_me: failed program was:" >&5
13876sed 's/^/| /' conftest.$ac_ext >&5
13877
13878
Reid Spencer59473af2004-12-25 07:31:29 +000013879fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013880
Bill Wendlingebcceee2009-04-18 11:20:33 +000013881rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013882 conftest$ac_exeext
13883 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013884 break
Reid Spencer59473af2004-12-25 07:31:29 +000013885fi
Reid Spencera773bd52006-08-04 18:18:08 +000013886done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013887if test "${ac_cv_search_opendir+set}" = set; then
13888 :
Reid Spencera773bd52006-08-04 18:18:08 +000013889else
13890 ac_cv_search_opendir=no
13891fi
13892rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013893LIBS=$ac_func_search_save_LIBS
13894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013895{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13896echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013897ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013898if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013900
13901fi
13902
13903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013904 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13905echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13906if test "${ac_cv_search_opendir+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013908else
13909 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013910cat >conftest.$ac_ext <<_ACEOF
13911/* confdefs.h. */
13912_ACEOF
13913cat confdefs.h >>conftest.$ac_ext
13914cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013915/* end confdefs.h. */
13916
Reid Spencera773bd52006-08-04 18:18:08 +000013917/* Override any GCC internal prototype to avoid an error.
13918 Use char because int might match the return type of a GCC
13919 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013920#ifdef __cplusplus
13921extern "C"
13922#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013923char opendir ();
13924int
13925main ()
13926{
Reid Spencera773bd52006-08-04 18:18:08 +000013927return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013928 ;
13929 return 0;
13930}
13931_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013932for ac_lib in '' x; do
13933 if test -z "$ac_lib"; then
13934 ac_res="none required"
13935 else
13936 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013938 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013939 rm -f conftest.$ac_objext conftest$ac_exeext
13940if { (ac_try="$ac_link"
13941case "(($ac_try" in
13942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13943 *) ac_try_echo=$ac_try;;
13944esac
13945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13946 (eval "$ac_link") 2>conftest.er1
13947 ac_status=$?
13948 grep -v '^ *+' conftest.er1 >conftest.err
13949 rm -f conftest.er1
13950 cat conftest.err >&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13954 { (case "(($ac_try" in
13955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956 *) ac_try_echo=$ac_try;;
13957esac
13958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_try") 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; } &&
13963 { ac_try='test -s conftest$ac_exeext'
13964 { (case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13967esac
13968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_try") 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013973 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013974else
13975 echo "$as_me: failed program was:" >&5
13976sed 's/^/| /' conftest.$ac_ext >&5
13977
13978
Reid Spencer59473af2004-12-25 07:31:29 +000013979fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013980
Bill Wendlingebcceee2009-04-18 11:20:33 +000013981rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013982 conftest$ac_exeext
13983 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013984 break
Reid Spencer59473af2004-12-25 07:31:29 +000013985fi
Reid Spencera773bd52006-08-04 18:18:08 +000013986done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013987if test "${ac_cv_search_opendir+set}" = set; then
13988 :
Reid Spencera773bd52006-08-04 18:18:08 +000013989else
13990 ac_cv_search_opendir=no
13991fi
13992rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013993LIBS=$ac_func_search_save_LIBS
13994fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013995{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13996echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013997ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013998if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014000
14001fi
14002
14003fi
14004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014005{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14006echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14007if test "${ac_cv_header_mmap_anon+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014009else
14010 ac_ext=c
14011ac_cpp='$CPP $CPPFLAGS'
14012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014ac_compiler_gnu=$ac_cv_c_compiler_gnu
14015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014016 cat >conftest.$ac_ext <<_ACEOF
14017/* confdefs.h. */
14018_ACEOF
14019cat confdefs.h >>conftest.$ac_ext
14020cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014021/* end confdefs.h. */
14022#include <sys/mman.h>
14023#include <unistd.h>
14024#include <fcntl.h>
14025int
14026main ()
14027{
14028mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14029 ;
14030 return 0;
14031}
14032_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014033rm -f conftest.$ac_objext
14034if { (ac_try="$ac_compile"
14035case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14038esac
14039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_compile") 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048 { (case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051esac
14052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_try") 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest.$ac_objext'
14058 { (case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14061esac
14062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_try") 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014067 ac_cv_header_mmap_anon=yes
14068else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069 echo "$as_me: failed program was:" >&5
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
14072 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014074
Reid Spencera773bd52006-08-04 18:18:08 +000014075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014076 ac_ext=c
14077ac_cpp='$CPP $CPPFLAGS'
14078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14080ac_compiler_gnu=$ac_cv_c_compiler_gnu
14081
14082
14083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014084{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14085echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014086if test "$ac_cv_header_mmap_anon" = yes; then
14087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014088cat >>confdefs.h <<\_ACEOF
14089#define HAVE_MMAP_ANONYMOUS 1
14090_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014091
14092fi
14093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014094{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14095echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14096if test "${ac_cv_header_stat_broken+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014098else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014099 cat >conftest.$ac_ext <<_ACEOF
14100/* confdefs.h. */
14101_ACEOF
14102cat confdefs.h >>conftest.$ac_ext
14103cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014104/* end confdefs.h. */
14105#include <sys/types.h>
14106#include <sys/stat.h>
14107
Reid Spencera773bd52006-08-04 18:18:08 +000014108#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014109# if S_ISBLK (S_IFDIR)
14110You lose.
14111# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014112#endif
14113
Reid Spencera773bd52006-08-04 18:18:08 +000014114#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014115# if S_ISBLK (S_IFCHR)
14116You lose.
14117# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014118#endif
14119
Reid Spencera773bd52006-08-04 18:18:08 +000014120#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014121# if S_ISLNK (S_IFREG)
14122You lose.
14123# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014124#endif
14125
Reid Spencera773bd52006-08-04 18:18:08 +000014126#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127# if S_ISSOCK (S_IFREG)
14128You lose.
14129# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014130#endif
14131
14132_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14134 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014135 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014136else
14137 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014139rm -f conftest*
14140
Reid Spencer59473af2004-12-25 07:31:29 +000014141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14143echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014144if test $ac_cv_header_stat_broken = yes; then
14145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146cat >>confdefs.h <<\_ACEOF
14147#define STAT_MACROS_BROKEN 1
14148_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014149
14150fi
14151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14153echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14154if test "${ac_cv_header_sys_wait_h+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014157 cat >conftest.$ac_ext <<_ACEOF
14158/* confdefs.h. */
14159_ACEOF
14160cat confdefs.h >>conftest.$ac_ext
14161cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014163#include <sys/types.h>
14164#include <sys/wait.h>
14165#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014166# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014167#endif
14168#ifndef WIFEXITED
14169# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14170#endif
14171
John Criswell7a73b802003-06-30 21:59:07 +000014172int
14173main ()
14174{
14175 int s;
14176 wait (&s);
14177 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14178 ;
14179 return 0;
14180}
14181_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182rm -f conftest.$ac_objext
14183if { (ac_try="$ac_compile"
14184case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14187esac
14188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14190 ac_status=$?
14191 grep -v '^ *+' conftest.er1 >conftest.err
14192 rm -f conftest.er1
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14197 { (case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200esac
14201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_try") 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest.$ac_objext'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210esac
14211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014216 ac_cv_header_sys_wait_h=yes
14217else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014218 echo "$as_me: failed program was:" >&5
14219sed 's/^/| /' conftest.$ac_ext >&5
14220
14221 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223
Reid Spencera773bd52006-08-04 18:18:08 +000014224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014226{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14227echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014228if test $ac_cv_header_sys_wait_h = yes; then
14229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014230cat >>confdefs.h <<\_ACEOF
14231#define HAVE_SYS_WAIT_H 1
14232_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014233
14234fi
14235
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014236{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14237echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14238if test "${ac_cv_header_time+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241 cat >conftest.$ac_ext <<_ACEOF
14242/* confdefs.h. */
14243_ACEOF
14244cat confdefs.h >>conftest.$ac_ext
14245cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014246/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014247#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014248#include <sys/time.h>
14249#include <time.h>
14250
14251int
14252main ()
14253{
14254if ((struct tm *) 0)
14255return 0;
14256 ;
14257 return 0;
14258}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014259_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014260rm -f conftest.$ac_objext
14261if { (ac_try="$ac_compile"
14262case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265esac
14266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_compile") 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14275 { (case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14278esac
14279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_try") 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; } &&
14284 { ac_try='test -s conftest.$ac_objext'
14285 { (case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14288esac
14289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_try") 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014294 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014296 echo "$as_me: failed program was:" >&5
14297sed 's/^/| /' conftest.$ac_ext >&5
14298
14299 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014301
Reid Spencera773bd52006-08-04 18:18:08 +000014302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014304{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14305echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014306if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014308cat >>confdefs.h <<\_ACEOF
14309#define TIME_WITH_SYS_TIME 1
14310_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014311
14312fi
14313
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014314
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014315
14316
14317
14318
14319
14320
Reid Spencer59473af2004-12-25 07:31:29 +000014321for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014322do
14323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14329fi
14330ac_res=`eval echo '${'$as_ac_Header'}'`
14331 { echo "$as_me:$LINENO: result: $ac_res" >&5
14332echo "${ECHO_T}$ac_res" >&6; }
14333else
14334 # Is the header compilable?
14335{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14337cat >conftest.$ac_ext <<_ACEOF
14338/* confdefs.h. */
14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
14342/* end confdefs.h. */
14343$ac_includes_default
14344#include <$ac_header>
14345_ACEOF
14346rm -f conftest.$ac_objext
14347if { (ac_try="$ac_compile"
14348case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14351esac
14352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_compile") 2>conftest.er1
14354 ac_status=$?
14355 grep -v '^ *+' conftest.er1 >conftest.err
14356 rm -f conftest.er1
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14361 { (case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364esac
14365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_try") 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374esac
14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_header_compiler=yes
14381else
14382 echo "$as_me: failed program was:" >&5
14383sed 's/^/| /' conftest.$ac_ext >&5
14384
14385 ac_header_compiler=no
14386fi
14387
14388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14390echo "${ECHO_T}$ac_header_compiler" >&6; }
14391
14392# Is the header present?
14393{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14395cat >conftest.$ac_ext <<_ACEOF
14396/* confdefs.h. */
14397_ACEOF
14398cat confdefs.h >>conftest.$ac_ext
14399cat >>conftest.$ac_ext <<_ACEOF
14400/* end confdefs.h. */
14401#include <$ac_header>
14402_ACEOF
14403if { (ac_try="$ac_cpp conftest.$ac_ext"
14404case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407esac
14408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14410 ac_status=$?
14411 grep -v '^ *+' conftest.er1 >conftest.err
14412 rm -f conftest.er1
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } >/dev/null; then
14416 if test -s conftest.err; then
14417 ac_cpp_err=$ac_c_preproc_warn_flag
14418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14419 else
14420 ac_cpp_err=
14421 fi
14422else
14423 ac_cpp_err=yes
14424fi
14425if test -z "$ac_cpp_err"; then
14426 ac_header_preproc=yes
14427else
14428 echo "$as_me: failed program was:" >&5
14429sed 's/^/| /' conftest.$ac_ext >&5
14430
14431 ac_header_preproc=no
14432fi
14433
14434rm -f conftest.err conftest.$ac_ext
14435{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14436echo "${ECHO_T}$ac_header_preproc" >&6; }
14437
14438# So? What about this header?
14439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14440 yes:no: )
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14445 ac_header_preproc=yes
14446 ;;
14447 no:yes:* )
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14460 ( cat <<\_ASBOX
14461## ----------------------------------- ##
14462## Report this to llvmbugs@cs.uiuc.edu ##
14463## ----------------------------------- ##
14464_ASBOX
14465 ) | sed "s/^/$as_me: WARNING: /" >&2
14466 ;;
14467esac
14468{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14472else
14473 eval "$as_ac_Header=\$ac_header_preproc"
14474fi
14475ac_res=`eval echo '${'$as_ac_Header'}'`
14476 { echo "$as_me:$LINENO: result: $ac_res" >&5
14477echo "${ECHO_T}$ac_res" >&6; }
14478
14479fi
14480if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014481 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014483_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014484
14485fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014486
Reid Spencer59473af2004-12-25 07:31:29 +000014487done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014489
14490
14491
14492
14493
14494
Douglas Gregor071d73d2009-05-18 17:21:34 +000014495for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014496do
14497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503fi
14504ac_res=`eval echo '${'$as_ac_Header'}'`
14505 { echo "$as_me:$LINENO: result: $ac_res" >&5
14506echo "${ECHO_T}$ac_res" >&6; }
14507else
14508 # Is the header compilable?
14509{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14511cat >conftest.$ac_ext <<_ACEOF
14512/* confdefs.h. */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
14516/* end confdefs.h. */
14517$ac_includes_default
14518#include <$ac_header>
14519_ACEOF
14520rm -f conftest.$ac_objext
14521if { (ac_try="$ac_compile"
14522case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525esac
14526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_compile") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538esac
14539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; } &&
14544 { ac_try='test -s conftest.$ac_objext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548esac
14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_header_compiler=yes
14555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 ac_header_compiler=no
14560fi
14561
14562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14564echo "${ECHO_T}$ac_header_compiler" >&6; }
14565
14566# Is the header present?
14567{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14569cat >conftest.$ac_ext <<_ACEOF
14570/* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
14574/* end confdefs.h. */
14575#include <$ac_header>
14576_ACEOF
14577if { (ac_try="$ac_cpp conftest.$ac_ext"
14578case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14581esac
14582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } >/dev/null; then
14590 if test -s conftest.err; then
14591 ac_cpp_err=$ac_c_preproc_warn_flag
14592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14593 else
14594 ac_cpp_err=
14595 fi
14596else
14597 ac_cpp_err=yes
14598fi
14599if test -z "$ac_cpp_err"; then
14600 ac_header_preproc=yes
14601else
14602 echo "$as_me: failed program was:" >&5
14603sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 ac_header_preproc=no
14606fi
14607
14608rm -f conftest.err conftest.$ac_ext
14609{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14610echo "${ECHO_T}$ac_header_preproc" >&6; }
14611
14612# So? What about this header?
14613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14614 yes:no: )
14615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14619 ac_header_preproc=yes
14620 ;;
14621 no:yes:* )
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14629echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14634 ( cat <<\_ASBOX
14635## ----------------------------------- ##
14636## Report this to llvmbugs@cs.uiuc.edu ##
14637## ----------------------------------- ##
14638_ASBOX
14639 ) | sed "s/^/$as_me: WARNING: /" >&2
14640 ;;
14641esac
14642{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14646else
14647 eval "$as_ac_Header=\$ac_header_preproc"
14648fi
14649ac_res=`eval echo '${'$as_ac_Header'}'`
14650 { echo "$as_me:$LINENO: result: $ac_res" >&5
14651echo "${ECHO_T}$ac_res" >&6; }
14652
14653fi
14654if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014655 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014657_ACEOF
14658
14659fi
14660
14661done
14662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014663
14664
Douglas Gregor071d73d2009-05-18 17:21:34 +000014665for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014666do
14667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673fi
14674ac_res=`eval echo '${'$as_ac_Header'}'`
14675 { echo "$as_me:$LINENO: result: $ac_res" >&5
14676echo "${ECHO_T}$ac_res" >&6; }
14677else
14678 # Is the header compilable?
14679{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14681cat >conftest.$ac_ext <<_ACEOF
14682/* confdefs.h. */
14683_ACEOF
14684cat confdefs.h >>conftest.$ac_ext
14685cat >>conftest.$ac_ext <<_ACEOF
14686/* end confdefs.h. */
14687$ac_includes_default
14688#include <$ac_header>
14689_ACEOF
14690rm -f conftest.$ac_objext
14691if { (ac_try="$ac_compile"
14692case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14695esac
14696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_compile") 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } &&
14704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14705 { (case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708esac
14709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_try") 2>&5
14711 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; } &&
14714 { ac_try='test -s conftest.$ac_objext'
14715 { (case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718esac
14719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_try") 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_header_compiler=yes
14725else
14726 echo "$as_me: failed program was:" >&5
14727sed 's/^/| /' conftest.$ac_ext >&5
14728
14729 ac_header_compiler=no
14730fi
14731
14732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14734echo "${ECHO_T}$ac_header_compiler" >&6; }
14735
14736# Is the header present?
14737{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14739cat >conftest.$ac_ext <<_ACEOF
14740/* confdefs.h. */
14741_ACEOF
14742cat confdefs.h >>conftest.$ac_ext
14743cat >>conftest.$ac_ext <<_ACEOF
14744/* end confdefs.h. */
14745#include <$ac_header>
14746_ACEOF
14747if { (ac_try="$ac_cpp conftest.$ac_ext"
14748case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14754 ac_status=$?
14755 grep -v '^ *+' conftest.er1 >conftest.err
14756 rm -f conftest.er1
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } >/dev/null; then
14760 if test -s conftest.err; then
14761 ac_cpp_err=$ac_c_preproc_warn_flag
14762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14763 else
14764 ac_cpp_err=
14765 fi
14766else
14767 ac_cpp_err=yes
14768fi
14769if test -z "$ac_cpp_err"; then
14770 ac_header_preproc=yes
14771else
14772 echo "$as_me: failed program was:" >&5
14773sed 's/^/| /' conftest.$ac_ext >&5
14774
14775 ac_header_preproc=no
14776fi
14777
14778rm -f conftest.err conftest.$ac_ext
14779{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14780echo "${ECHO_T}$ac_header_preproc" >&6; }
14781
14782# So? What about this header?
14783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14784 yes:no: )
14785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14789 ac_header_preproc=yes
14790 ;;
14791 no:yes:* )
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14795echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14799echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14804 ( cat <<\_ASBOX
14805## ----------------------------------- ##
14806## Report this to llvmbugs@cs.uiuc.edu ##
14807## ----------------------------------- ##
14808_ASBOX
14809 ) | sed "s/^/$as_me: WARNING: /" >&2
14810 ;;
14811esac
14812{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816else
14817 eval "$as_ac_Header=\$ac_header_preproc"
14818fi
14819ac_res=`eval echo '${'$as_ac_Header'}'`
14820 { echo "$as_me:$LINENO: result: $ac_res" >&5
14821echo "${ECHO_T}$ac_res" >&6; }
14822
14823fi
14824if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014825 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014827_ACEOF
14828
14829fi
14830
14831done
Reid Spencer59473af2004-12-25 07:31:29 +000014832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014833
14834
14835
14836
Daniel Dunbar3e462932011-02-03 02:40:02 +000014837
14838for 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 +000014839do
14840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846fi
14847ac_res=`eval echo '${'$as_ac_Header'}'`
14848 { echo "$as_me:$LINENO: result: $ac_res" >&5
14849echo "${ECHO_T}$ac_res" >&6; }
14850else
14851 # Is the header compilable?
14852{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14854cat >conftest.$ac_ext <<_ACEOF
14855/* confdefs.h. */
14856_ACEOF
14857cat confdefs.h >>conftest.$ac_ext
14858cat >>conftest.$ac_ext <<_ACEOF
14859/* end confdefs.h. */
14860$ac_includes_default
14861#include <$ac_header>
14862_ACEOF
14863rm -f conftest.$ac_objext
14864if { (ac_try="$ac_compile"
14865case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14868esac
14869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14878 { (case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881esac
14882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_try") 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891esac
14892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_header_compiler=yes
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 ac_header_compiler=no
14903fi
14904
14905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14907echo "${ECHO_T}$ac_header_compiler" >&6; }
14908
14909# Is the header present?
14910{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14912cat >conftest.$ac_ext <<_ACEOF
14913/* confdefs.h. */
14914_ACEOF
14915cat confdefs.h >>conftest.$ac_ext
14916cat >>conftest.$ac_ext <<_ACEOF
14917/* end confdefs.h. */
14918#include <$ac_header>
14919_ACEOF
14920if { (ac_try="$ac_cpp conftest.$ac_ext"
14921case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924esac
14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } >/dev/null; then
14933 if test -s conftest.err; then
14934 ac_cpp_err=$ac_c_preproc_warn_flag
14935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14936 else
14937 ac_cpp_err=
14938 fi
14939else
14940 ac_cpp_err=yes
14941fi
14942if test -z "$ac_cpp_err"; then
14943 ac_header_preproc=yes
14944else
14945 echo "$as_me: failed program was:" >&5
14946sed 's/^/| /' conftest.$ac_ext >&5
14947
14948 ac_header_preproc=no
14949fi
14950
14951rm -f conftest.err conftest.$ac_ext
14952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14953echo "${ECHO_T}$ac_header_preproc" >&6; }
14954
14955# So? What about this header?
14956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14957 yes:no: )
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14962 ac_header_preproc=yes
14963 ;;
14964 no:yes:* )
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14977 ( cat <<\_ASBOX
14978## ----------------------------------- ##
14979## Report this to llvmbugs@cs.uiuc.edu ##
14980## ----------------------------------- ##
14981_ASBOX
14982 ) | sed "s/^/$as_me: WARNING: /" >&2
14983 ;;
14984esac
14985{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989else
14990 eval "$as_ac_Header=\$ac_header_preproc"
14991fi
14992ac_res=`eval echo '${'$as_ac_Header'}'`
14993 { echo "$as_me:$LINENO: result: $ac_res" >&5
14994echo "${ECHO_T}$ac_res" >&6; }
14995
14996fi
14997if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014998 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015000_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015001
15002fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015003
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015004done
15005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015006
15007
15008
15009
Douglas Gregor01746742009-05-11 18:05:52 +000015010for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015011do
15012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15018fi
15019ac_res=`eval echo '${'$as_ac_Header'}'`
15020 { echo "$as_me:$LINENO: result: $ac_res" >&5
15021echo "${ECHO_T}$ac_res" >&6; }
15022else
15023 # Is the header compilable?
15024{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15025echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15026cat >conftest.$ac_ext <<_ACEOF
15027/* confdefs.h. */
15028_ACEOF
15029cat confdefs.h >>conftest.$ac_ext
15030cat >>conftest.$ac_ext <<_ACEOF
15031/* end confdefs.h. */
15032$ac_includes_default
15033#include <$ac_header>
15034_ACEOF
15035rm -f conftest.$ac_objext
15036if { (ac_try="$ac_compile"
15037case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15040esac
15041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_compile") 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15050 { (case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053esac
15054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_try") 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; } &&
15059 { ac_try='test -s conftest.$ac_objext'
15060 { (case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15063esac
15064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_try") 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; }; then
15069 ac_header_compiler=yes
15070else
15071 echo "$as_me: failed program was:" >&5
15072sed 's/^/| /' conftest.$ac_ext >&5
15073
15074 ac_header_compiler=no
15075fi
15076
15077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15079echo "${ECHO_T}$ac_header_compiler" >&6; }
15080
15081# Is the header present?
15082{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15083echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15084cat >conftest.$ac_ext <<_ACEOF
15085/* confdefs.h. */
15086_ACEOF
15087cat confdefs.h >>conftest.$ac_ext
15088cat >>conftest.$ac_ext <<_ACEOF
15089/* end confdefs.h. */
15090#include <$ac_header>
15091_ACEOF
15092if { (ac_try="$ac_cpp conftest.$ac_ext"
15093case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096esac
15097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15099 ac_status=$?
15100 grep -v '^ *+' conftest.er1 >conftest.err
15101 rm -f conftest.er1
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } >/dev/null; then
15105 if test -s conftest.err; then
15106 ac_cpp_err=$ac_c_preproc_warn_flag
15107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15108 else
15109 ac_cpp_err=
15110 fi
15111else
15112 ac_cpp_err=yes
15113fi
15114if test -z "$ac_cpp_err"; then
15115 ac_header_preproc=yes
15116else
15117 echo "$as_me: failed program was:" >&5
15118sed 's/^/| /' conftest.$ac_ext >&5
15119
15120 ac_header_preproc=no
15121fi
15122
15123rm -f conftest.err conftest.$ac_ext
15124{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15125echo "${ECHO_T}$ac_header_preproc" >&6; }
15126
15127# So? What about this header?
15128case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15129 yes:no: )
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15131echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15133echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15134 ac_header_preproc=yes
15135 ;;
15136 no:yes:* )
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15138echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15140echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15142echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15144echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15146echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15148echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15149 ( cat <<\_ASBOX
15150## ----------------------------------- ##
15151## Report this to llvmbugs@cs.uiuc.edu ##
15152## ----------------------------------- ##
15153_ASBOX
15154 ) | sed "s/^/$as_me: WARNING: /" >&2
15155 ;;
15156esac
15157{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161else
15162 eval "$as_ac_Header=\$ac_header_preproc"
15163fi
15164ac_res=`eval echo '${'$as_ac_Header'}'`
15165 { echo "$as_me:$LINENO: result: $ac_res" >&5
15166echo "${ECHO_T}$ac_res" >&6; }
15167
15168fi
15169if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015170 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015172_ACEOF
15173
15174fi
15175
15176done
15177
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015178
15179for ac_header in valgrind/valgrind.h
15180do
15181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187fi
15188ac_res=`eval echo '${'$as_ac_Header'}'`
15189 { echo "$as_me:$LINENO: result: $ac_res" >&5
15190echo "${ECHO_T}$ac_res" >&6; }
15191else
15192 # Is the header compilable?
15193{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15195cat >conftest.$ac_ext <<_ACEOF
15196/* confdefs.h. */
15197_ACEOF
15198cat confdefs.h >>conftest.$ac_ext
15199cat >>conftest.$ac_ext <<_ACEOF
15200/* end confdefs.h. */
15201$ac_includes_default
15202#include <$ac_header>
15203_ACEOF
15204rm -f conftest.$ac_objext
15205if { (ac_try="$ac_compile"
15206case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15209esac
15210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211 (eval "$ac_compile") 2>conftest.er1
15212 ac_status=$?
15213 grep -v '^ *+' conftest.er1 >conftest.err
15214 rm -f conftest.er1
15215 cat conftest.err >&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } &&
15218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15219 { (case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222esac
15223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_try") 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest.$ac_objext'
15229 { (case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15232esac
15233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_try") 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15238 ac_header_compiler=yes
15239else
15240 echo "$as_me: failed program was:" >&5
15241sed 's/^/| /' conftest.$ac_ext >&5
15242
15243 ac_header_compiler=no
15244fi
15245
15246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15248echo "${ECHO_T}$ac_header_compiler" >&6; }
15249
15250# Is the header present?
15251{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15253cat >conftest.$ac_ext <<_ACEOF
15254/* confdefs.h. */
15255_ACEOF
15256cat confdefs.h >>conftest.$ac_ext
15257cat >>conftest.$ac_ext <<_ACEOF
15258/* end confdefs.h. */
15259#include <$ac_header>
15260_ACEOF
15261if { (ac_try="$ac_cpp conftest.$ac_ext"
15262case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15268 ac_status=$?
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } >/dev/null; then
15274 if test -s conftest.err; then
15275 ac_cpp_err=$ac_c_preproc_warn_flag
15276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15277 else
15278 ac_cpp_err=
15279 fi
15280else
15281 ac_cpp_err=yes
15282fi
15283if test -z "$ac_cpp_err"; then
15284 ac_header_preproc=yes
15285else
15286 echo "$as_me: failed program was:" >&5
15287sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 ac_header_preproc=no
15290fi
15291
15292rm -f conftest.err conftest.$ac_ext
15293{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15294echo "${ECHO_T}$ac_header_preproc" >&6; }
15295
15296# So? What about this header?
15297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15298 yes:no: )
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15302echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15303 ac_header_preproc=yes
15304 ;;
15305 no:yes:* )
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15311echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15313echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15317echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15318 ( cat <<\_ASBOX
15319## ----------------------------------- ##
15320## Report this to llvmbugs@cs.uiuc.edu ##
15321## ----------------------------------- ##
15322_ASBOX
15323 ) | sed "s/^/$as_me: WARNING: /" >&2
15324 ;;
15325esac
15326{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15330else
15331 eval "$as_ac_Header=\$ac_header_preproc"
15332fi
15333ac_res=`eval echo '${'$as_ac_Header'}'`
15334 { echo "$as_me:$LINENO: result: $ac_res" >&5
15335echo "${ECHO_T}$ac_res" >&6; }
15336
15337fi
15338if test `eval echo '${'$as_ac_Header'}'` = yes; then
15339 cat >>confdefs.h <<_ACEOF
15340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15341_ACEOF
15342
15343fi
15344
15345done
15346
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015347
15348for ac_header in fenv.h
15349do
15350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356fi
15357ac_res=`eval echo '${'$as_ac_Header'}'`
15358 { echo "$as_me:$LINENO: result: $ac_res" >&5
15359echo "${ECHO_T}$ac_res" >&6; }
15360else
15361 # Is the header compilable?
15362{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15364cat >conftest.$ac_ext <<_ACEOF
15365/* confdefs.h. */
15366_ACEOF
15367cat confdefs.h >>conftest.$ac_ext
15368cat >>conftest.$ac_ext <<_ACEOF
15369/* end confdefs.h. */
15370$ac_includes_default
15371#include <$ac_header>
15372_ACEOF
15373rm -f conftest.$ac_objext
15374if { (ac_try="$ac_compile"
15375case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378esac
15379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_compile") 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388 { (case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15391esac
15392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_try") 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401esac
15402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_header_compiler=yes
15408else
15409 echo "$as_me: failed program was:" >&5
15410sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 ac_header_compiler=no
15413fi
15414
15415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417echo "${ECHO_T}$ac_header_compiler" >&6; }
15418
15419# Is the header present?
15420{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15422cat >conftest.$ac_ext <<_ACEOF
15423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
15428#include <$ac_header>
15429_ACEOF
15430if { (ac_try="$ac_cpp conftest.$ac_ext"
15431case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434esac
15435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15437 ac_status=$?
15438 grep -v '^ *+' conftest.er1 >conftest.err
15439 rm -f conftest.er1
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } >/dev/null; then
15443 if test -s conftest.err; then
15444 ac_cpp_err=$ac_c_preproc_warn_flag
15445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15446 else
15447 ac_cpp_err=
15448 fi
15449else
15450 ac_cpp_err=yes
15451fi
15452if test -z "$ac_cpp_err"; then
15453 ac_header_preproc=yes
15454else
15455 echo "$as_me: failed program was:" >&5
15456sed 's/^/| /' conftest.$ac_ext >&5
15457
15458 ac_header_preproc=no
15459fi
15460
15461rm -f conftest.err conftest.$ac_ext
15462{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463echo "${ECHO_T}$ac_header_preproc" >&6; }
15464
15465# So? What about this header?
15466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467 yes:no: )
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15472 ac_header_preproc=yes
15473 ;;
15474 no:yes:* )
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15487 ( cat <<\_ASBOX
15488## ----------------------------------- ##
15489## Report this to llvmbugs@cs.uiuc.edu ##
15490## ----------------------------------- ##
15491_ASBOX
15492 ) | sed "s/^/$as_me: WARNING: /" >&2
15493 ;;
15494esac
15495{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15499else
15500 eval "$as_ac_Header=\$ac_header_preproc"
15501fi
15502ac_res=`eval echo '${'$as_ac_Header'}'`
15503 { echo "$as_me:$LINENO: result: $ac_res" >&5
15504echo "${ECHO_T}$ac_res" >&6; }
15505
15506fi
15507if test `eval echo '${'$as_ac_Header'}'` = yes; then
15508 cat >>confdefs.h <<_ACEOF
15509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15510_ACEOF
15511
15512fi
15513
15514done
15515
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015516if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015517
15518for ac_header in pthread.h
15519do
15520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15526fi
15527ac_res=`eval echo '${'$as_ac_Header'}'`
15528 { echo "$as_me:$LINENO: result: $ac_res" >&5
15529echo "${ECHO_T}$ac_res" >&6; }
15530else
15531 # Is the header compilable?
15532{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15534cat >conftest.$ac_ext <<_ACEOF
15535/* confdefs.h. */
15536_ACEOF
15537cat confdefs.h >>conftest.$ac_ext
15538cat >>conftest.$ac_ext <<_ACEOF
15539/* end confdefs.h. */
15540$ac_includes_default
15541#include <$ac_header>
15542_ACEOF
15543rm -f conftest.$ac_objext
15544if { (ac_try="$ac_compile"
15545case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548esac
15549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_compile") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15558 { (case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15561esac
15562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_try") 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15571esac
15572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_try") 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler=yes
15578else
15579 echo "$as_me: failed program was:" >&5
15580sed 's/^/| /' conftest.$ac_ext >&5
15581
15582 ac_header_compiler=no
15583fi
15584
15585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15587echo "${ECHO_T}$ac_header_compiler" >&6; }
15588
15589# Is the header present?
15590{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15592cat >conftest.$ac_ext <<_ACEOF
15593/* confdefs.h. */
15594_ACEOF
15595cat confdefs.h >>conftest.$ac_ext
15596cat >>conftest.$ac_ext <<_ACEOF
15597/* end confdefs.h. */
15598#include <$ac_header>
15599_ACEOF
15600if { (ac_try="$ac_cpp conftest.$ac_ext"
15601case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15604esac
15605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15607 ac_status=$?
15608 grep -v '^ *+' conftest.er1 >conftest.err
15609 rm -f conftest.er1
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } >/dev/null; then
15613 if test -s conftest.err; then
15614 ac_cpp_err=$ac_c_preproc_warn_flag
15615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15616 else
15617 ac_cpp_err=
15618 fi
15619else
15620 ac_cpp_err=yes
15621fi
15622if test -z "$ac_cpp_err"; then
15623 ac_header_preproc=yes
15624else
15625 echo "$as_me: failed program was:" >&5
15626sed 's/^/| /' conftest.$ac_ext >&5
15627
15628 ac_header_preproc=no
15629fi
15630
15631rm -f conftest.err conftest.$ac_ext
15632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15633echo "${ECHO_T}$ac_header_preproc" >&6; }
15634
15635# So? What about this header?
15636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15637 yes:no: )
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15642 ac_header_preproc=yes
15643 ;;
15644 no:yes:* )
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15648echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15652echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15657 ( cat <<\_ASBOX
15658## ----------------------------------- ##
15659## Report this to llvmbugs@cs.uiuc.edu ##
15660## ----------------------------------- ##
15661_ASBOX
15662 ) | sed "s/^/$as_me: WARNING: /" >&2
15663 ;;
15664esac
15665{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15669else
15670 eval "$as_ac_Header=\$ac_header_preproc"
15671fi
15672ac_res=`eval echo '${'$as_ac_Header'}'`
15673 { echo "$as_me:$LINENO: result: $ac_res" >&5
15674echo "${ECHO_T}$ac_res" >&6; }
15675
15676fi
15677if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015678 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015679#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015680_ACEOF
15681 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015682
15683else
15684 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015685
15686fi
15687
Reid Spencerbe3e4192007-08-17 05:45:26 +000015688done
Reid Spencer1000b732006-12-01 00:37:14 +000015689
15690else
15691 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015692
15693fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015694
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015695if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015696
15697
15698for ac_header in ffi.h ffi/ffi.h
15699do
15700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15706fi
15707ac_res=`eval echo '${'$as_ac_Header'}'`
15708 { echo "$as_me:$LINENO: result: $ac_res" >&5
15709echo "${ECHO_T}$ac_res" >&6; }
15710else
15711 # Is the header compilable?
15712{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15714cat >conftest.$ac_ext <<_ACEOF
15715/* confdefs.h. */
15716_ACEOF
15717cat confdefs.h >>conftest.$ac_ext
15718cat >>conftest.$ac_ext <<_ACEOF
15719/* end confdefs.h. */
15720$ac_includes_default
15721#include <$ac_header>
15722_ACEOF
15723rm -f conftest.$ac_objext
15724if { (ac_try="$ac_compile"
15725case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15728esac
15729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15738 { (case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741esac
15742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_try") 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15751esac
15752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_header_compiler=yes
15758else
15759 echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5
15761
15762 ac_header_compiler=no
15763fi
15764
15765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15767echo "${ECHO_T}$ac_header_compiler" >&6; }
15768
15769# Is the header present?
15770{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15772cat >conftest.$ac_ext <<_ACEOF
15773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h. */
15778#include <$ac_header>
15779_ACEOF
15780if { (ac_try="$ac_cpp conftest.$ac_ext"
15781case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15784esac
15785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } >/dev/null; then
15793 if test -s conftest.err; then
15794 ac_cpp_err=$ac_c_preproc_warn_flag
15795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15796 else
15797 ac_cpp_err=
15798 fi
15799else
15800 ac_cpp_err=yes
15801fi
15802if test -z "$ac_cpp_err"; then
15803 ac_header_preproc=yes
15804else
15805 echo "$as_me: failed program was:" >&5
15806sed 's/^/| /' conftest.$ac_ext >&5
15807
15808 ac_header_preproc=no
15809fi
15810
15811rm -f conftest.err conftest.$ac_ext
15812{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15813echo "${ECHO_T}$ac_header_preproc" >&6; }
15814
15815# So? What about this header?
15816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15817 yes:no: )
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15822 ac_header_preproc=yes
15823 ;;
15824 no:yes:* )
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15832echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15837 ( cat <<\_ASBOX
15838## ----------------------------------- ##
15839## Report this to llvmbugs@cs.uiuc.edu ##
15840## ----------------------------------- ##
15841_ASBOX
15842 ) | sed "s/^/$as_me: WARNING: /" >&2
15843 ;;
15844esac
15845{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849else
15850 eval "$as_ac_Header=\$ac_header_preproc"
15851fi
15852ac_res=`eval echo '${'$as_ac_Header'}'`
15853 { echo "$as_me:$LINENO: result: $ac_res" >&5
15854echo "${ECHO_T}$ac_res" >&6; }
15855
15856fi
15857if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015858 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015860_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015861
15862fi
15863
15864done
15865
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015866fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015867
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015868
Eric Christopher654dee42010-06-22 21:01:04 +000015869for ac_header in CrashReporterClient.h
15870do
15871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15877fi
15878ac_res=`eval echo '${'$as_ac_Header'}'`
15879 { echo "$as_me:$LINENO: result: $ac_res" >&5
15880echo "${ECHO_T}$ac_res" >&6; }
15881else
15882 # Is the header compilable?
15883{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15885cat >conftest.$ac_ext <<_ACEOF
15886/* confdefs.h. */
15887_ACEOF
15888cat confdefs.h >>conftest.$ac_ext
15889cat >>conftest.$ac_ext <<_ACEOF
15890/* end confdefs.h. */
15891$ac_includes_default
15892#include <$ac_header>
15893_ACEOF
15894rm -f conftest.$ac_objext
15895if { (ac_try="$ac_compile"
15896case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15899esac
15900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_compile") 2>conftest.er1
15902 ac_status=$?
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
15908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15909 { (case "(($ac_try" in
15910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15912esac
15913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914 (eval "$ac_try") 2>&5
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; } &&
15918 { ac_try='test -s conftest.$ac_objext'
15919 { (case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15922esac
15923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924 (eval "$ac_try") 2>&5
15925 ac_status=$?
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 ac_header_compiler=yes
15929else
15930 echo "$as_me: failed program was:" >&5
15931sed 's/^/| /' conftest.$ac_ext >&5
15932
15933 ac_header_compiler=no
15934fi
15935
15936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15938echo "${ECHO_T}$ac_header_compiler" >&6; }
15939
15940# Is the header present?
15941{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15943cat >conftest.$ac_ext <<_ACEOF
15944/* confdefs.h. */
15945_ACEOF
15946cat confdefs.h >>conftest.$ac_ext
15947cat >>conftest.$ac_ext <<_ACEOF
15948/* end confdefs.h. */
15949#include <$ac_header>
15950_ACEOF
15951if { (ac_try="$ac_cpp conftest.$ac_ext"
15952case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15955esac
15956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15958 ac_status=$?
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } >/dev/null; then
15964 if test -s conftest.err; then
15965 ac_cpp_err=$ac_c_preproc_warn_flag
15966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15967 else
15968 ac_cpp_err=
15969 fi
15970else
15971 ac_cpp_err=yes
15972fi
15973if test -z "$ac_cpp_err"; then
15974 ac_header_preproc=yes
15975else
15976 echo "$as_me: failed program was:" >&5
15977sed 's/^/| /' conftest.$ac_ext >&5
15978
15979 ac_header_preproc=no
15980fi
15981
15982rm -f conftest.err conftest.$ac_ext
15983{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15984echo "${ECHO_T}$ac_header_preproc" >&6; }
15985
15986# So? What about this header?
15987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15988 yes:no: )
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15993 ac_header_preproc=yes
15994 ;;
15995 no:yes:* )
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15999echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16003echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16008 ( cat <<\_ASBOX
16009## ----------------------------------- ##
16010## Report this to llvmbugs@cs.uiuc.edu ##
16011## ----------------------------------- ##
16012_ASBOX
16013 ) | sed "s/^/$as_me: WARNING: /" >&2
16014 ;;
16015esac
16016{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020else
16021 eval "$as_ac_Header=\$ac_header_preproc"
16022fi
16023ac_res=`eval echo '${'$as_ac_Header'}'`
16024 { echo "$as_me:$LINENO: result: $ac_res" >&5
16025echo "${ECHO_T}$ac_res" >&6; }
16026
16027fi
16028if test `eval echo '${'$as_ac_Header'}'` = yes; then
16029 cat >>confdefs.h <<_ACEOF
16030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16031_ACEOF
16032
16033fi
16034
16035done
16036
16037
Eric Christopher51e57132010-12-07 02:05:42 +000016038{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16039echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016040cat >conftest.$ac_ext <<_ACEOF
16041/* confdefs.h. */
16042_ACEOF
16043cat confdefs.h >>conftest.$ac_ext
16044cat >>conftest.$ac_ext <<_ACEOF
16045/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016046extern const char *__crashreporter_info__;
16047 int main() {
16048 __crashreporter_info__ = "test";
16049 return 0;
16050 }
Eric Christopher481d4022010-12-03 07:45:22 +000016051
Eric Christopher481d4022010-12-03 07:45:22 +000016052_ACEOF
16053rm -f conftest.$ac_objext conftest$ac_exeext
16054if { (ac_try="$ac_link"
16055case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16058esac
16059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060 (eval "$ac_link") 2>conftest.er1
16061 ac_status=$?
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16068 { (case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16071esac
16072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_try") 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; } &&
16077 { ac_try='test -s conftest$ac_exeext'
16078 { (case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16081esac
16082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_try") 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016087 { echo "$as_me:$LINENO: result: yes" >&5
16088echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016089
16090cat >>confdefs.h <<\_ACEOF
16091#define HAVE_CRASHREPORTER_INFO 1
16092_ACEOF
16093
Eric Christopher51e57132010-12-07 02:05:42 +000016094else
16095 echo "$as_me: failed program was:" >&5
16096sed 's/^/| /' conftest.$ac_ext >&5
16097
16098 { echo "$as_me:$LINENO: result: no" >&5
16099echo "${ECHO_T}no" >&6; }
16100
16101cat >>confdefs.h <<\_ACEOF
16102#define HAVE_CRASHREPORTER_INFO 0
16103_ACEOF
16104
Eric Christopher481d4022010-12-03 07:45:22 +000016105fi
Eric Christopher654dee42010-06-22 21:01:04 +000016106
Eric Christopher51e57132010-12-07 02:05:42 +000016107rm -f core conftest.err conftest.$ac_objext \
16108 conftest$ac_exeext conftest.$ac_ext
16109
16110
Reid Spencer8085cff2005-01-16 02:58:39 +000016111
Torok Edwin871384f2010-01-26 08:50:50 +000016112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016113 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16114echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16115if test "${ac_cv_huge_val_sanity+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016117else
16118
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016119 ac_ext=cpp
16120ac_cpp='$CXXCPP $CPPFLAGS'
16121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016124
Eric Christopherc7718502010-03-02 05:06:54 +000016125 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016126 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016127 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016128 ac_cv_huge_val_sanity=yes
16129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016130 cat >conftest.$ac_ext <<_ACEOF
16131/* confdefs.h. */
16132_ACEOF
16133cat confdefs.h >>conftest.$ac_ext
16134cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016135/* end confdefs.h. */
16136#include <math.h>
16137int
16138main ()
16139{
16140double x = HUGE_VAL; return x != x;
16141 ;
16142 return 0;
16143}
16144_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016145rm -f conftest$ac_exeext
16146if { (ac_try="$ac_link"
16147case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16150esac
16151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_link") 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16156 { (case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159esac
16160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_try") 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016165 ac_cv_huge_val_sanity=yes
16166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016167 echo "$as_me: program exited with status $ac_status" >&5
16168echo "$as_me: failed program was:" >&5
16169sed 's/^/| /' conftest.$ac_ext >&5
16170
16171( exit $ac_status )
16172ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016174rm -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 +000016175fi
16176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016177
Eric Christopherc7718502010-03-02 05:06:54 +000016178 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016179 ac_ext=c
16180ac_cpp='$CPP $CPPFLAGS'
16181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16183ac_compiler_gnu=$ac_cv_c_compiler_gnu
16184
16185
16186fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016187{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16188echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016189 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16190
16191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016192{ echo "$as_me:$LINENO: checking for pid_t" >&5
16193echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16194if test "${ac_cv_type_pid_t+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196else
16197 cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
16203$ac_includes_default
16204typedef pid_t ac__type_new_;
16205int
16206main ()
16207{
16208if ((ac__type_new_ *) 0)
16209 return 0;
16210if (sizeof (ac__type_new_))
16211 return 0;
16212 ;
16213 return 0;
16214}
16215_ACEOF
16216rm -f conftest.$ac_objext
16217if { (ac_try="$ac_compile"
16218case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221esac
16222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_compile") 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234esac
16235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; } &&
16240 { ac_try='test -s conftest.$ac_objext'
16241 { (case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16244esac
16245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_try") 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_cv_type_pid_t=yes
16251else
16252 echo "$as_me: failed program was:" >&5
16253sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016255 ac_cv_type_pid_t=no
16256fi
16257
16258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259fi
16260{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16261echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16262if test $ac_cv_type_pid_t = yes; then
16263 :
John Criswell7a73b802003-06-30 21:59:07 +000016264else
16265
16266cat >>confdefs.h <<_ACEOF
16267#define pid_t int
16268_ACEOF
16269
16270fi
16271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016272{ echo "$as_me:$LINENO: checking for size_t" >&5
16273echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16274if test "${ac_cv_type_size_t+set}" = set; then
16275 echo $ECHO_N "(cached) $ECHO_C" >&6
16276else
16277 cat >conftest.$ac_ext <<_ACEOF
16278/* confdefs.h. */
16279_ACEOF
16280cat confdefs.h >>conftest.$ac_ext
16281cat >>conftest.$ac_ext <<_ACEOF
16282/* end confdefs.h. */
16283$ac_includes_default
16284typedef size_t ac__type_new_;
16285int
16286main ()
16287{
16288if ((ac__type_new_ *) 0)
16289 return 0;
16290if (sizeof (ac__type_new_))
16291 return 0;
16292 ;
16293 return 0;
16294}
16295_ACEOF
16296rm -f conftest.$ac_objext
16297if { (ac_try="$ac_compile"
16298case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16301esac
16302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_compile") 2>conftest.er1
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
16310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16311 { (case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16314esac
16315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_try") 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16324esac
16325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326 (eval "$ac_try") 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_cv_type_size_t=yes
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016335 ac_cv_type_size_t=no
16336fi
16337
16338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339fi
16340{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16341echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16342if test $ac_cv_type_size_t = yes; then
16343 :
John Criswell7a73b802003-06-30 21:59:07 +000016344else
16345
16346cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016347#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016348_ACEOF
16349
16350fi
16351
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016352
16353cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016354#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016355_ACEOF
16356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016357{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16358echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16359if test "${ac_cv_struct_tm+set}" = set; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016362 cat >conftest.$ac_ext <<_ACEOF
16363/* confdefs.h. */
16364_ACEOF
16365cat confdefs.h >>conftest.$ac_ext
16366cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016367/* end confdefs.h. */
16368#include <sys/types.h>
16369#include <time.h>
16370
16371int
16372main ()
16373{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016374struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016375 ;
16376 return 0;
16377}
16378_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016379rm -f conftest.$ac_objext
16380if { (ac_try="$ac_compile"
16381case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16384esac
16385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_compile") 2>conftest.er1
16387 ac_status=$?
16388 grep -v '^ *+' conftest.er1 >conftest.err
16389 rm -f conftest.er1
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } &&
16393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16394 { (case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16397esac
16398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399 (eval "$ac_try") 2>&5
16400 ac_status=$?
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; } &&
16403 { ac_try='test -s conftest.$ac_objext'
16404 { (case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16407esac
16408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_try") 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016413 ac_cv_struct_tm=time.h
16414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016415 echo "$as_me: failed program was:" >&5
16416sed 's/^/| /' conftest.$ac_ext >&5
16417
16418 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016420
Reid Spencera773bd52006-08-04 18:18:08 +000016421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016423{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16424echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016425if test $ac_cv_struct_tm = sys/time.h; then
16426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016427cat >>confdefs.h <<\_ACEOF
16428#define TM_IN_SYS_TIME 1
16429_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016430
16431fi
16432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016433{ echo "$as_me:$LINENO: checking for int64_t" >&5
16434echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16435if test "${ac_cv_type_int64_t+set}" = set; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16437else
16438 cat >conftest.$ac_ext <<_ACEOF
16439/* confdefs.h. */
16440_ACEOF
16441cat confdefs.h >>conftest.$ac_ext
16442cat >>conftest.$ac_ext <<_ACEOF
16443/* end confdefs.h. */
16444$ac_includes_default
16445typedef int64_t ac__type_new_;
16446int
16447main ()
16448{
16449if ((ac__type_new_ *) 0)
16450 return 0;
16451if (sizeof (ac__type_new_))
16452 return 0;
16453 ;
16454 return 0;
16455}
16456_ACEOF
16457rm -f conftest.$ac_objext
16458if { (ac_try="$ac_compile"
16459case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462esac
16463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_compile") 2>conftest.er1
16465 ac_status=$?
16466 grep -v '^ *+' conftest.er1 >conftest.err
16467 rm -f conftest.er1
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16472 { (case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16475esac
16476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_try") 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16485esac
16486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_try") 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; }; then
16491 ac_cv_type_int64_t=yes
16492else
16493 echo "$as_me: failed program was:" >&5
16494sed 's/^/| /' conftest.$ac_ext >&5
16495
16496 ac_cv_type_int64_t=no
16497fi
16498
16499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500fi
16501{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16502echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16503if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016504
16505cat >>confdefs.h <<_ACEOF
16506#define HAVE_INT64_T 1
16507_ACEOF
16508
16509
16510else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016511 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16512echo "$as_me: error: Type int64_t required but not found" >&2;}
16513 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016514fi
16515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016516{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16517echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16518if test "${ac_cv_type_uint64_t+set}" = set; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16520else
16521 cat >conftest.$ac_ext <<_ACEOF
16522/* confdefs.h. */
16523_ACEOF
16524cat confdefs.h >>conftest.$ac_ext
16525cat >>conftest.$ac_ext <<_ACEOF
16526/* end confdefs.h. */
16527$ac_includes_default
16528typedef uint64_t ac__type_new_;
16529int
16530main ()
16531{
16532if ((ac__type_new_ *) 0)
16533 return 0;
16534if (sizeof (ac__type_new_))
16535 return 0;
16536 ;
16537 return 0;
16538}
16539_ACEOF
16540rm -f conftest.$ac_objext
16541if { (ac_try="$ac_compile"
16542case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16545esac
16546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_compile") 2>conftest.er1
16548 ac_status=$?
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16555 { (case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16558esac
16559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_try") 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; } &&
16564 { ac_try='test -s conftest.$ac_objext'
16565 { (case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568esac
16569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_try") 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_cv_type_uint64_t=yes
16575else
16576 echo "$as_me: failed program was:" >&5
16577sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 ac_cv_type_uint64_t=no
16580fi
16581
16582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583fi
16584{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16585echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16586if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016587
16588cat >>confdefs.h <<_ACEOF
16589#define HAVE_UINT64_T 1
16590_ACEOF
16591
16592
16593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016594 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16595echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16596if test "${ac_cv_type_u_int64_t+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16598else
16599 cat >conftest.$ac_ext <<_ACEOF
16600/* confdefs.h. */
16601_ACEOF
16602cat confdefs.h >>conftest.$ac_ext
16603cat >>conftest.$ac_ext <<_ACEOF
16604/* end confdefs.h. */
16605$ac_includes_default
16606typedef u_int64_t ac__type_new_;
16607int
16608main ()
16609{
16610if ((ac__type_new_ *) 0)
16611 return 0;
16612if (sizeof (ac__type_new_))
16613 return 0;
16614 ;
16615 return 0;
16616}
16617_ACEOF
16618rm -f conftest.$ac_objext
16619if { (ac_try="$ac_compile"
16620case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16623esac
16624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16626 ac_status=$?
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16633 { (case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636esac
16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_try") 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16646esac
16647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_try") 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_cv_type_u_int64_t=yes
16653else
16654 echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
16656
16657 ac_cv_type_u_int64_t=no
16658fi
16659
16660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661fi
16662{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16663echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16664if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016665
16666cat >>confdefs.h <<_ACEOF
16667#define HAVE_U_INT64_T 1
16668_ACEOF
16669
16670
Misha Brukmanceca9042004-09-02 23:02:30 +000016671else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016672 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16673echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16674 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016675fi
16676
John Criswell679ff312004-09-02 18:44:44 +000016677fi
16678
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016679
16680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016681
16682
16683
16684
16685
16686
16687
Reid Spencerdf3be822006-01-23 08:15:53 +000016688for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016689do
16690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16694 echo $ECHO_N "(cached) $ECHO_C" >&6
16695else
16696 cat >conftest.$ac_ext <<_ACEOF
16697/* confdefs.h. */
16698_ACEOF
16699cat confdefs.h >>conftest.$ac_ext
16700cat >>conftest.$ac_ext <<_ACEOF
16701/* end confdefs.h. */
16702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16704#define $ac_func innocuous_$ac_func
16705
16706/* System header to define __stub macros and hopefully few prototypes,
16707 which can conflict with char $ac_func (); below.
16708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16709 <limits.h> exists even on freestanding compilers. */
16710
16711#ifdef __STDC__
16712# include <limits.h>
16713#else
16714# include <assert.h>
16715#endif
16716
16717#undef $ac_func
16718
16719/* Override any GCC internal prototype to avoid an error.
16720 Use char because int might match the return type of a GCC
16721 builtin and then its argument prototype would still apply. */
16722#ifdef __cplusplus
16723extern "C"
16724#endif
16725char $ac_func ();
16726/* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729#if defined __stub_$ac_func || defined __stub___$ac_func
16730choke me
16731#endif
16732
16733int
16734main ()
16735{
16736return $ac_func ();
16737 ;
16738 return 0;
16739}
16740_ACEOF
16741rm -f conftest.$ac_objext conftest$ac_exeext
16742if { (ac_try="$ac_link"
16743case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746esac
16747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_link") 2>conftest.er1
16749 ac_status=$?
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16756 { (case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16759esac
16760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761 (eval "$ac_try") 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest$ac_exeext'
16766 { (case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16769esac
16770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_try") 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16775 eval "$as_ac_var=yes"
16776else
16777 echo "$as_me: failed program was:" >&5
16778sed 's/^/| /' conftest.$ac_ext >&5
16779
16780 eval "$as_ac_var=no"
16781fi
16782
16783rm -f core conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
16785fi
16786ac_res=`eval echo '${'$as_ac_var'}'`
16787 { echo "$as_me:$LINENO: result: $ac_res" >&5
16788echo "${ECHO_T}$ac_res" >&6; }
16789if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016790 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016792_ACEOF
16793
16794fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016795done
John Criswell7a73b802003-06-30 21:59:07 +000016796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016797
16798
16799
16800
Reid Spencer96cf5872007-07-13 10:05:30 +000016801for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016802do
16803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16804{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16806if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808else
16809 cat >conftest.$ac_ext <<_ACEOF
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
16815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16817#define $ac_func innocuous_$ac_func
16818
16819/* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func (); below.
16821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822 <limits.h> exists even on freestanding compilers. */
16823
16824#ifdef __STDC__
16825# include <limits.h>
16826#else
16827# include <assert.h>
16828#endif
16829
16830#undef $ac_func
16831
16832/* Override any GCC internal prototype to avoid an error.
16833 Use char because int might match the return type of a GCC
16834 builtin and then its argument prototype would still apply. */
16835#ifdef __cplusplus
16836extern "C"
16837#endif
16838char $ac_func ();
16839/* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842#if defined __stub_$ac_func || defined __stub___$ac_func
16843choke me
16844#endif
16845
16846int
16847main ()
16848{
16849return $ac_func ();
16850 ;
16851 return 0;
16852}
16853_ACEOF
16854rm -f conftest.$ac_objext conftest$ac_exeext
16855if { (ac_try="$ac_link"
16856case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859esac
16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872esac
16873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest$ac_exeext'
16879 { (case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16882esac
16883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_try") 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 eval "$as_ac_var=yes"
16889else
16890 echo "$as_me: failed program was:" >&5
16891sed 's/^/| /' conftest.$ac_ext >&5
16892
16893 eval "$as_ac_var=no"
16894fi
16895
16896rm -f core conftest.err conftest.$ac_objext \
16897 conftest$ac_exeext conftest.$ac_ext
16898fi
16899ac_res=`eval echo '${'$as_ac_var'}'`
16900 { echo "$as_me:$LINENO: result: $ac_res" >&5
16901echo "${ECHO_T}$ac_res" >&6; }
16902if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016903 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016905_ACEOF
16906
16907fi
16908done
16909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016910
16911
16912
16913
16914
Reid Spencerb90645c2007-02-16 19:17:20 +000016915for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016916do
16917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16918{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16922else
16923 cat >conftest.$ac_ext <<_ACEOF
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
16929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16931#define $ac_func innocuous_$ac_func
16932
16933/* System header to define __stub macros and hopefully few prototypes,
16934 which can conflict with char $ac_func (); below.
16935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16936 <limits.h> exists even on freestanding compilers. */
16937
16938#ifdef __STDC__
16939# include <limits.h>
16940#else
16941# include <assert.h>
16942#endif
16943
16944#undef $ac_func
16945
16946/* Override any GCC internal prototype to avoid an error.
16947 Use char because int might match the return type of a GCC
16948 builtin and then its argument prototype would still apply. */
16949#ifdef __cplusplus
16950extern "C"
16951#endif
16952char $ac_func ();
16953/* The GNU C library defines this for functions which it implements
16954 to always fail with ENOSYS. Some functions are actually named
16955 something starting with __ and the normal name is an alias. */
16956#if defined __stub_$ac_func || defined __stub___$ac_func
16957choke me
16958#endif
16959
16960int
16961main ()
16962{
16963return $ac_func ();
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968rm -f conftest.$ac_objext conftest$ac_exeext
16969if { (ac_try="$ac_link"
16970case "(($ac_try" in
16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16973esac
16974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_link") 2>conftest.er1
16976 ac_status=$?
16977 grep -v '^ *+' conftest.er1 >conftest.err
16978 rm -f conftest.er1
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16983 { (case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986esac
16987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_try") 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; } &&
16992 { ac_try='test -s conftest$ac_exeext'
16993 { (case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996esac
16997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_try") 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 eval "$as_ac_var=yes"
17003else
17004 echo "$as_me: failed program was:" >&5
17005sed 's/^/| /' conftest.$ac_ext >&5
17006
17007 eval "$as_ac_var=no"
17008fi
17009
17010rm -f core conftest.err conftest.$ac_objext \
17011 conftest$ac_exeext conftest.$ac_ext
17012fi
17013ac_res=`eval echo '${'$as_ac_var'}'`
17014 { echo "$as_me:$LINENO: result: $ac_res" >&5
17015echo "${ECHO_T}$ac_res" >&6; }
17016if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017017 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017019_ACEOF
17020
17021fi
17022done
17023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017024
17025
17026
Reid Spencerb90645c2007-02-16 19:17:20 +000017027for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017028do
17029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17030{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17032if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17034else
17035 cat >conftest.$ac_ext <<_ACEOF
17036/* confdefs.h. */
17037_ACEOF
17038cat confdefs.h >>conftest.$ac_ext
17039cat >>conftest.$ac_ext <<_ACEOF
17040/* end confdefs.h. */
17041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17043#define $ac_func innocuous_$ac_func
17044
17045/* System header to define __stub macros and hopefully few prototypes,
17046 which can conflict with char $ac_func (); below.
17047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17048 <limits.h> exists even on freestanding compilers. */
17049
17050#ifdef __STDC__
17051# include <limits.h>
17052#else
17053# include <assert.h>
17054#endif
17055
17056#undef $ac_func
17057
17058/* Override any GCC internal prototype to avoid an error.
17059 Use char because int might match the return type of a GCC
17060 builtin and then its argument prototype would still apply. */
17061#ifdef __cplusplus
17062extern "C"
17063#endif
17064char $ac_func ();
17065/* The GNU C library defines this for functions which it implements
17066 to always fail with ENOSYS. Some functions are actually named
17067 something starting with __ and the normal name is an alias. */
17068#if defined __stub_$ac_func || defined __stub___$ac_func
17069choke me
17070#endif
17071
17072int
17073main ()
17074{
17075return $ac_func ();
17076 ;
17077 return 0;
17078}
17079_ACEOF
17080rm -f conftest.$ac_objext conftest$ac_exeext
17081if { (ac_try="$ac_link"
17082case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17085esac
17086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_link") 2>conftest.er1
17088 ac_status=$?
17089 grep -v '^ *+' conftest.er1 >conftest.err
17090 rm -f conftest.er1
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098esac
17099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest$ac_exeext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108esac
17109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 eval "$as_ac_var=yes"
17115else
17116 echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119 eval "$as_ac_var=no"
17120fi
17121
17122rm -f core conftest.err conftest.$ac_objext \
17123 conftest$ac_exeext conftest.$ac_ext
17124fi
17125ac_res=`eval echo '${'$as_ac_var'}'`
17126 { echo "$as_me:$LINENO: result: $ac_res" >&5
17127echo "${ECHO_T}$ac_res" >&6; }
17128if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017129 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017131_ACEOF
17132
17133fi
17134done
17135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017136
17137
17138
17139
17140
Eric Christophere4291822010-04-16 05:14:21 +000017141
17142for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017143do
17144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17149else
17150 cat >conftest.$ac_ext <<_ACEOF
17151/* confdefs.h. */
17152_ACEOF
17153cat confdefs.h >>conftest.$ac_ext
17154cat >>conftest.$ac_ext <<_ACEOF
17155/* end confdefs.h. */
17156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17158#define $ac_func innocuous_$ac_func
17159
17160/* System header to define __stub macros and hopefully few prototypes,
17161 which can conflict with char $ac_func (); below.
17162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163 <limits.h> exists even on freestanding compilers. */
17164
17165#ifdef __STDC__
17166# include <limits.h>
17167#else
17168# include <assert.h>
17169#endif
17170
17171#undef $ac_func
17172
17173/* Override any GCC internal prototype to avoid an error.
17174 Use char because int might match the return type of a GCC
17175 builtin and then its argument prototype would still apply. */
17176#ifdef __cplusplus
17177extern "C"
17178#endif
17179char $ac_func ();
17180/* The GNU C library defines this for functions which it implements
17181 to always fail with ENOSYS. Some functions are actually named
17182 something starting with __ and the normal name is an alias. */
17183#if defined __stub_$ac_func || defined __stub___$ac_func
17184choke me
17185#endif
17186
17187int
17188main ()
17189{
17190return $ac_func ();
17191 ;
17192 return 0;
17193}
17194_ACEOF
17195rm -f conftest.$ac_objext conftest$ac_exeext
17196if { (ac_try="$ac_link"
17197case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200esac
17201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210 { (case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_try") 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest$ac_exeext'
17220 { (case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223esac
17224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_try") 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 eval "$as_ac_var=yes"
17230else
17231 echo "$as_me: failed program was:" >&5
17232sed 's/^/| /' conftest.$ac_ext >&5
17233
17234 eval "$as_ac_var=no"
17235fi
17236
17237rm -f core conftest.err conftest.$ac_objext \
17238 conftest$ac_exeext conftest.$ac_ext
17239fi
17240ac_res=`eval echo '${'$as_ac_var'}'`
17241 { echo "$as_me:$LINENO: result: $ac_res" >&5
17242echo "${ECHO_T}$ac_res" >&6; }
17243if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017244 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017246_ACEOF
17247
17248fi
17249done
Reid Spencerdf3be822006-01-23 08:15:53 +000017250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017251
17252
17253
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017254for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017255do
17256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17257{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17259if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17261else
17262 cat >conftest.$ac_ext <<_ACEOF
17263/* confdefs.h. */
17264_ACEOF
17265cat confdefs.h >>conftest.$ac_ext
17266cat >>conftest.$ac_ext <<_ACEOF
17267/* end confdefs.h. */
17268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17270#define $ac_func innocuous_$ac_func
17271
17272/* System header to define __stub macros and hopefully few prototypes,
17273 which can conflict with char $ac_func (); below.
17274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17275 <limits.h> exists even on freestanding compilers. */
17276
17277#ifdef __STDC__
17278# include <limits.h>
17279#else
17280# include <assert.h>
17281#endif
17282
17283#undef $ac_func
17284
17285/* Override any GCC internal prototype to avoid an error.
17286 Use char because int might match the return type of a GCC
17287 builtin and then its argument prototype would still apply. */
17288#ifdef __cplusplus
17289extern "C"
17290#endif
17291char $ac_func ();
17292/* The GNU C library defines this for functions which it implements
17293 to always fail with ENOSYS. Some functions are actually named
17294 something starting with __ and the normal name is an alias. */
17295#if defined __stub_$ac_func || defined __stub___$ac_func
17296choke me
17297#endif
17298
17299int
17300main ()
17301{
17302return $ac_func ();
17303 ;
17304 return 0;
17305}
17306_ACEOF
17307rm -f conftest.$ac_objext conftest$ac_exeext
17308if { (ac_try="$ac_link"
17309case "(($ac_try" in
17310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311 *) ac_try_echo=$ac_try;;
17312esac
17313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314 (eval "$ac_link") 2>conftest.er1
17315 ac_status=$?
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17322 { (case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325esac
17326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_try") 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest$ac_exeext'
17332 { (case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17335esac
17336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_try") 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 eval "$as_ac_var=yes"
17342else
17343 echo "$as_me: failed program was:" >&5
17344sed 's/^/| /' conftest.$ac_ext >&5
17345
17346 eval "$as_ac_var=no"
17347fi
17348
17349rm -f core conftest.err conftest.$ac_objext \
17350 conftest$ac_exeext conftest.$ac_ext
17351fi
17352ac_res=`eval echo '${'$as_ac_var'}'`
17353 { echo "$as_me:$LINENO: result: $ac_res" >&5
17354echo "${ECHO_T}$ac_res" >&6; }
17355if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017356 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017357#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017358_ACEOF
17359
17360fi
17361done
17362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017363
17364
17365
17366
Chris Lattner511f11d2005-11-14 07:25:50 +000017367for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017368do
17369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17370{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17372if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374else
17375 cat >conftest.$ac_ext <<_ACEOF
17376/* confdefs.h. */
17377_ACEOF
17378cat confdefs.h >>conftest.$ac_ext
17379cat >>conftest.$ac_ext <<_ACEOF
17380/* end confdefs.h. */
17381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17383#define $ac_func innocuous_$ac_func
17384
17385/* System header to define __stub macros and hopefully few prototypes,
17386 which can conflict with char $ac_func (); below.
17387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388 <limits.h> exists even on freestanding compilers. */
17389
17390#ifdef __STDC__
17391# include <limits.h>
17392#else
17393# include <assert.h>
17394#endif
17395
17396#undef $ac_func
17397
17398/* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
17401#ifdef __cplusplus
17402extern "C"
17403#endif
17404char $ac_func ();
17405/* The GNU C library defines this for functions which it implements
17406 to always fail with ENOSYS. Some functions are actually named
17407 something starting with __ and the normal name is an alias. */
17408#if defined __stub_$ac_func || defined __stub___$ac_func
17409choke me
17410#endif
17411
17412int
17413main ()
17414{
17415return $ac_func ();
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420rm -f conftest.$ac_objext conftest$ac_exeext
17421if { (ac_try="$ac_link"
17422case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425esac
17426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17438esac
17439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest$ac_exeext'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17448esac
17449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 eval "$as_ac_var=yes"
17455else
17456 echo "$as_me: failed program was:" >&5
17457sed 's/^/| /' conftest.$ac_ext >&5
17458
17459 eval "$as_ac_var=no"
17460fi
17461
17462rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17464fi
17465ac_res=`eval echo '${'$as_ac_var'}'`
17466 { echo "$as_me:$LINENO: result: $ac_res" >&5
17467echo "${ECHO_T}$ac_res" >&6; }
17468if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017469 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017470#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017471_ACEOF
17472
17473fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017474done
John Criswell7a73b802003-06-30 21:59:07 +000017475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017476
17477
17478
17479
Daniel Dunbar3e462932011-02-03 02:40:02 +000017480
17481for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017482do
17483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17484{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488else
17489 cat >conftest.$ac_ext <<_ACEOF
17490/* confdefs.h. */
17491_ACEOF
17492cat confdefs.h >>conftest.$ac_ext
17493cat >>conftest.$ac_ext <<_ACEOF
17494/* end confdefs.h. */
17495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17497#define $ac_func innocuous_$ac_func
17498
17499/* System header to define __stub macros and hopefully few prototypes,
17500 which can conflict with char $ac_func (); below.
17501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17502 <limits.h> exists even on freestanding compilers. */
17503
17504#ifdef __STDC__
17505# include <limits.h>
17506#else
17507# include <assert.h>
17508#endif
17509
17510#undef $ac_func
17511
17512/* Override any GCC internal prototype to avoid an error.
17513 Use char because int might match the return type of a GCC
17514 builtin and then its argument prototype would still apply. */
17515#ifdef __cplusplus
17516extern "C"
17517#endif
17518char $ac_func ();
17519/* The GNU C library defines this for functions which it implements
17520 to always fail with ENOSYS. Some functions are actually named
17521 something starting with __ and the normal name is an alias. */
17522#if defined __stub_$ac_func || defined __stub___$ac_func
17523choke me
17524#endif
17525
17526int
17527main ()
17528{
17529return $ac_func ();
17530 ;
17531 return 0;
17532}
17533_ACEOF
17534rm -f conftest.$ac_objext conftest$ac_exeext
17535if { (ac_try="$ac_link"
17536case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>conftest.er1
17542 ac_status=$?
17543 grep -v '^ *+' conftest.er1 >conftest.err
17544 rm -f conftest.er1
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552esac
17553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562esac
17563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 eval "$as_ac_var=yes"
17569else
17570 echo "$as_me: failed program was:" >&5
17571sed 's/^/| /' conftest.$ac_ext >&5
17572
17573 eval "$as_ac_var=no"
17574fi
17575
17576rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17578fi
17579ac_res=`eval echo '${'$as_ac_var'}'`
17580 { echo "$as_me:$LINENO: result: $ac_res" >&5
17581echo "${ECHO_T}$ac_res" >&6; }
17582if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017583 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017585_ACEOF
17586
17587fi
17588done
17589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017590{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17591echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17592if test "${llvm_cv_c_printf_a+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017594else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017595 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017596ac_cpp='$CPP $CPPFLAGS'
17597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599ac_compiler_gnu=$ac_cv_c_compiler_gnu
17600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017601 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017602 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017604 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017606 /* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017611
John Criswella0137d32003-10-13 16:22:01 +000017612#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017613#include <stdlib.h>
17614
John Criswella0137d32003-10-13 16:22:01 +000017615int
17616main ()
17617{
17618
Reid Spencer2706f8c2004-09-19 23:53:36 +000017619volatile double A, B;
17620char Buffer[100];
17621A = 1;
17622A /= 10.0;
17623sprintf(Buffer, "%a", A);
17624B = atof(Buffer);
17625if (A != B)
17626 return (1);
17627if (A != 0x1.999999999999ap-4)
17628 return (1);
17629return (0);
John Criswella0137d32003-10-13 16:22:01 +000017630 ;
17631 return 0;
17632}
17633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017634rm -f conftest$ac_exeext
17635if { (ac_try="$ac_link"
17636case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639esac
17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_link") 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17645 { (case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648esac
17649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_try") 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017654 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017655else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017656 echo "$as_me: program exited with status $ac_status" >&5
17657echo "$as_me: failed program was:" >&5
17658sed 's/^/| /' conftest.$ac_ext >&5
17659
17660( exit $ac_status )
17661llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017663rm -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 +000017664fi
Reid Spencera773bd52006-08-04 18:18:08 +000017665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017666
Reid Spencer2706f8c2004-09-19 23:53:36 +000017667 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017668ac_cpp='$CPP $CPPFLAGS'
17669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17671ac_compiler_gnu=$ac_cv_c_compiler_gnu
17672
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017673fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017674{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17675echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017676 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017678cat >>confdefs.h <<\_ACEOF
17679#define HAVE_PRINTF_A 1
17680_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017681
Reid Spencer2706f8c2004-09-19 23:53:36 +000017682 fi
John Criswella0137d32003-10-13 16:22:01 +000017683
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017685{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17686echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17687if test "${ac_cv_func_rand48+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017689else
Reid Spencera773bd52006-08-04 18:18:08 +000017690 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017691ac_cpp='$CXXCPP $CPPFLAGS'
17692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017696 cat >conftest.$ac_ext <<_ACEOF
17697/* confdefs.h. */
17698_ACEOF
17699cat confdefs.h >>conftest.$ac_ext
17700cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017701/* end confdefs.h. */
17702#include <stdlib.h>
17703int
17704main ()
17705{
17706srand48(0);lrand48();drand48();
17707 ;
17708 return 0;
17709}
17710_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017711rm -f conftest.$ac_objext
17712if { (ac_try="$ac_compile"
17713case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_compile") 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest.$ac_objext'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17739esac
17740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017745 ac_cv_func_rand48=yes
17746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017747 echo "$as_me: failed program was:" >&5
17748sed 's/^/| /' conftest.$ac_ext >&5
17749
17750 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017751fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017752
Reid Spencera773bd52006-08-04 18:18:08 +000017753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017754 ac_ext=c
17755ac_cpp='$CPP $CPPFLAGS'
17756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17758ac_compiler_gnu=$ac_cv_c_compiler_gnu
17759
17760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017761{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17762echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017763
17764if test "$ac_cv_func_rand48" = "yes" ; then
17765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017766cat >>confdefs.h <<\_ACEOF
17767#define HAVE_RAND48 1
17768_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017769
17770fi
John Criswell0021c312004-02-13 21:57:29 +000017771
17772
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017773{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17774echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17775if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777else
17778 cat >conftest.$ac_ext <<_ACEOF
17779/* confdefs.h. */
17780_ACEOF
17781cat confdefs.h >>conftest.$ac_ext
17782cat >>conftest.$ac_ext <<_ACEOF
17783/* end confdefs.h. */
17784$ac_includes_default
17785int
17786main ()
17787{
17788#ifndef strerror_s
17789 char *p = (char *) strerror_s;
17790 return !p;
17791#endif
17792
17793 ;
17794 return 0;
17795}
17796_ACEOF
17797rm -f conftest.$ac_objext
17798if { (ac_try="$ac_compile"
17799case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17802esac
17803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_compile") 2>conftest.er1
17805 ac_status=$?
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17812 { (case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17815esac
17816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_try") 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825esac
17826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_try") 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 ac_cv_have_decl_strerror_s=yes
17832else
17833 echo "$as_me: failed program was:" >&5
17834sed 's/^/| /' conftest.$ac_ext >&5
17835
17836 ac_cv_have_decl_strerror_s=no
17837fi
17838
17839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840fi
17841{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17842echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17843if test $ac_cv_have_decl_strerror_s = yes; then
17844
17845cat >>confdefs.h <<_ACEOF
17846#define HAVE_DECL_STRERROR_S 1
17847_ACEOF
17848
17849
17850else
17851 cat >>confdefs.h <<_ACEOF
17852#define HAVE_DECL_STRERROR_S 0
17853_ACEOF
17854
17855
17856fi
17857
17858
17859
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017860if test "$llvm_cv_os_type" = "MingW" ; then
17861 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17862echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17863if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865else
17866 ac_check_lib_save_LIBS=$LIBS
17867LIBS="-lgcc $LIBS"
17868cat >conftest.$ac_ext <<_ACEOF
17869/* confdefs.h. */
17870_ACEOF
17871cat confdefs.h >>conftest.$ac_ext
17872cat >>conftest.$ac_ext <<_ACEOF
17873/* end confdefs.h. */
17874
17875/* Override any GCC internal prototype to avoid an error.
17876 Use char because int might match the return type of a GCC
17877 builtin and then its argument prototype would still apply. */
17878#ifdef __cplusplus
17879extern "C"
17880#endif
17881char _alloca ();
17882int
17883main ()
17884{
17885return _alloca ();
17886 ;
17887 return 0;
17888}
17889_ACEOF
17890rm -f conftest.$ac_objext conftest$ac_exeext
17891if { (ac_try="$ac_link"
17892case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17895esac
17896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_link") 2>conftest.er1
17898 ac_status=$?
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905 { (case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17908esac
17909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_try") 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest$ac_exeext'
17915 { (case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918esac
17919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_try") 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_gcc__alloca=yes
17925else
17926 echo "$as_me: failed program was:" >&5
17927sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 ac_cv_lib_gcc__alloca=no
17930fi
17931
17932rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
17934LIBS=$ac_check_lib_save_LIBS
17935fi
17936{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17937echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17938if test $ac_cv_lib_gcc__alloca = yes; then
17939
17940cat >>confdefs.h <<\_ACEOF
17941#define HAVE__ALLOCA 1
17942_ACEOF
17943
17944fi
17945
17946 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17947echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17948if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17950else
17951 ac_check_lib_save_LIBS=$LIBS
17952LIBS="-lgcc $LIBS"
17953cat >conftest.$ac_ext <<_ACEOF
17954/* confdefs.h. */
17955_ACEOF
17956cat confdefs.h >>conftest.$ac_ext
17957cat >>conftest.$ac_ext <<_ACEOF
17958/* end confdefs.h. */
17959
17960/* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17963#ifdef __cplusplus
17964extern "C"
17965#endif
17966char __alloca ();
17967int
17968main ()
17969{
17970return __alloca ();
17971 ;
17972 return 0;
17973}
17974_ACEOF
17975rm -f conftest.$ac_objext conftest$ac_exeext
17976if { (ac_try="$ac_link"
17977case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17980esac
17981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_link") 2>conftest.er1
17983 ac_status=$?
17984 grep -v '^ *+' conftest.er1 >conftest.err
17985 rm -f conftest.er1
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17990 { (case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17993esac
17994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_try") 2>&5
17996 ac_status=$?
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try='test -s conftest$ac_exeext'
18000 { (case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18003esac
18004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_try") 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_cv_lib_gcc___alloca=yes
18010else
18011 echo "$as_me: failed program was:" >&5
18012sed 's/^/| /' conftest.$ac_ext >&5
18013
18014 ac_cv_lib_gcc___alloca=no
18015fi
18016
18017rm -f core conftest.err conftest.$ac_objext \
18018 conftest$ac_exeext conftest.$ac_ext
18019LIBS=$ac_check_lib_save_LIBS
18020fi
18021{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18022echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18023if test $ac_cv_lib_gcc___alloca = yes; then
18024
18025cat >>confdefs.h <<\_ACEOF
18026#define HAVE___ALLOCA 1
18027_ACEOF
18028
18029fi
18030
18031 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18032echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18033if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18035else
18036 ac_check_lib_save_LIBS=$LIBS
18037LIBS="-lgcc $LIBS"
18038cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044
18045/* Override any GCC internal prototype to avoid an error.
18046 Use char because int might match the return type of a GCC
18047 builtin and then its argument prototype would still apply. */
18048#ifdef __cplusplus
18049extern "C"
18050#endif
18051char __chkstk ();
18052int
18053main ()
18054{
18055return __chkstk ();
18056 ;
18057 return 0;
18058}
18059_ACEOF
18060rm -f conftest.$ac_objext conftest$ac_exeext
18061if { (ac_try="$ac_link"
18062case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18065esac
18066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_link") 2>conftest.er1
18068 ac_status=$?
18069 grep -v '^ *+' conftest.er1 >conftest.err
18070 rm -f conftest.er1
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075 { (case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18078esac
18079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_try") 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest$ac_exeext'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18088esac
18089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_lib_gcc___chkstk=yes
18095else
18096 echo "$as_me: failed program was:" >&5
18097sed 's/^/| /' conftest.$ac_ext >&5
18098
18099 ac_cv_lib_gcc___chkstk=no
18100fi
18101
18102rm -f core conftest.err conftest.$ac_objext \
18103 conftest$ac_exeext conftest.$ac_ext
18104LIBS=$ac_check_lib_save_LIBS
18105fi
18106{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18107echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18108if test $ac_cv_lib_gcc___chkstk = yes; then
18109
18110cat >>confdefs.h <<\_ACEOF
18111#define HAVE___CHKSTK 1
18112_ACEOF
18113
18114fi
18115
18116 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18117echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18118if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18120else
18121 ac_check_lib_save_LIBS=$LIBS
18122LIBS="-lgcc $LIBS"
18123cat >conftest.$ac_ext <<_ACEOF
18124/* confdefs.h. */
18125_ACEOF
18126cat confdefs.h >>conftest.$ac_ext
18127cat >>conftest.$ac_ext <<_ACEOF
18128/* end confdefs.h. */
18129
18130/* Override any GCC internal prototype to avoid an error.
18131 Use char because int might match the return type of a GCC
18132 builtin and then its argument prototype would still apply. */
18133#ifdef __cplusplus
18134extern "C"
18135#endif
18136char ___chkstk ();
18137int
18138main ()
18139{
18140return ___chkstk ();
18141 ;
18142 return 0;
18143}
18144_ACEOF
18145rm -f conftest.$ac_objext conftest$ac_exeext
18146if { (ac_try="$ac_link"
18147case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150esac
18151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_link") 2>conftest.er1
18153 ac_status=$?
18154 grep -v '^ *+' conftest.er1 >conftest.err
18155 rm -f conftest.er1
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18160 { (case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18163esac
18164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_try") 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest$ac_exeext'
18170 { (case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18173esac
18174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_try") 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 ac_cv_lib_gcc____chkstk=yes
18180else
18181 echo "$as_me: failed program was:" >&5
18182sed 's/^/| /' conftest.$ac_ext >&5
18183
18184 ac_cv_lib_gcc____chkstk=no
18185fi
18186
18187rm -f core conftest.err conftest.$ac_objext \
18188 conftest$ac_exeext conftest.$ac_ext
18189LIBS=$ac_check_lib_save_LIBS
18190fi
18191{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18192echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18193if test $ac_cv_lib_gcc____chkstk = yes; then
18194
18195cat >>confdefs.h <<\_ACEOF
18196#define HAVE____CHKSTK 1
18197_ACEOF
18198
18199fi
18200
18201
18202 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18203echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18204if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
18206else
18207 ac_check_lib_save_LIBS=$LIBS
18208LIBS="-lgcc $LIBS"
18209cat >conftest.$ac_ext <<_ACEOF
18210/* confdefs.h. */
18211_ACEOF
18212cat confdefs.h >>conftest.$ac_ext
18213cat >>conftest.$ac_ext <<_ACEOF
18214/* end confdefs.h. */
18215
18216/* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18219#ifdef __cplusplus
18220extern "C"
18221#endif
18222char __ashldi3 ();
18223int
18224main ()
18225{
18226return __ashldi3 ();
18227 ;
18228 return 0;
18229}
18230_ACEOF
18231rm -f conftest.$ac_objext conftest$ac_exeext
18232if { (ac_try="$ac_link"
18233case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236esac
18237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_link") 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
18245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18246 { (case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249esac
18250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_try") 2>&5
18252 ac_status=$?
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; } &&
18255 { ac_try='test -s conftest$ac_exeext'
18256 { (case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18259esac
18260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_try") 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
18265 ac_cv_lib_gcc___ashldi3=yes
18266else
18267 echo "$as_me: failed program was:" >&5
18268sed 's/^/| /' conftest.$ac_ext >&5
18269
18270 ac_cv_lib_gcc___ashldi3=no
18271fi
18272
18273rm -f core conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275LIBS=$ac_check_lib_save_LIBS
18276fi
18277{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18278echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18279if test $ac_cv_lib_gcc___ashldi3 = yes; then
18280
18281cat >>confdefs.h <<\_ACEOF
18282#define HAVE___ASHLDI3 1
18283_ACEOF
18284
18285fi
18286
18287 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18288echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18289if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18291else
18292 ac_check_lib_save_LIBS=$LIBS
18293LIBS="-lgcc $LIBS"
18294cat >conftest.$ac_ext <<_ACEOF
18295/* confdefs.h. */
18296_ACEOF
18297cat confdefs.h >>conftest.$ac_ext
18298cat >>conftest.$ac_ext <<_ACEOF
18299/* end confdefs.h. */
18300
18301/* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18304#ifdef __cplusplus
18305extern "C"
18306#endif
18307char __ashrdi3 ();
18308int
18309main ()
18310{
18311return __ashrdi3 ();
18312 ;
18313 return 0;
18314}
18315_ACEOF
18316rm -f conftest.$ac_objext conftest$ac_exeext
18317if { (ac_try="$ac_link"
18318case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18321esac
18322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_link") 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18331 { (case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334esac
18335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_try") 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest$ac_exeext'
18341 { (case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18344esac
18345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_try") 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_cv_lib_gcc___ashrdi3=yes
18351else
18352 echo "$as_me: failed program was:" >&5
18353sed 's/^/| /' conftest.$ac_ext >&5
18354
18355 ac_cv_lib_gcc___ashrdi3=no
18356fi
18357
18358rm -f core conftest.err conftest.$ac_objext \
18359 conftest$ac_exeext conftest.$ac_ext
18360LIBS=$ac_check_lib_save_LIBS
18361fi
18362{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18363echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18364if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18365
18366cat >>confdefs.h <<\_ACEOF
18367#define HAVE___ASHRDI3 1
18368_ACEOF
18369
18370fi
18371
18372 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18373echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18374if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376else
18377 ac_check_lib_save_LIBS=$LIBS
18378LIBS="-lgcc $LIBS"
18379cat >conftest.$ac_ext <<_ACEOF
18380/* confdefs.h. */
18381_ACEOF
18382cat confdefs.h >>conftest.$ac_ext
18383cat >>conftest.$ac_ext <<_ACEOF
18384/* end confdefs.h. */
18385
18386/* Override any GCC internal prototype to avoid an error.
18387 Use char because int might match the return type of a GCC
18388 builtin and then its argument prototype would still apply. */
18389#ifdef __cplusplus
18390extern "C"
18391#endif
18392char __divdi3 ();
18393int
18394main ()
18395{
18396return __divdi3 ();
18397 ;
18398 return 0;
18399}
18400_ACEOF
18401rm -f conftest.$ac_objext conftest$ac_exeext
18402if { (ac_try="$ac_link"
18403case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18406esac
18407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_link") 2>conftest.er1
18409 ac_status=$?
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
18415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18416 { (case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18419esac
18420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_try") 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; } &&
18425 { ac_try='test -s conftest$ac_exeext'
18426 { (case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18429esac
18430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_try") 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_cv_lib_gcc___divdi3=yes
18436else
18437 echo "$as_me: failed program was:" >&5
18438sed 's/^/| /' conftest.$ac_ext >&5
18439
18440 ac_cv_lib_gcc___divdi3=no
18441fi
18442
18443rm -f core conftest.err conftest.$ac_objext \
18444 conftest$ac_exeext conftest.$ac_ext
18445LIBS=$ac_check_lib_save_LIBS
18446fi
18447{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18448echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18449if test $ac_cv_lib_gcc___divdi3 = yes; then
18450
18451cat >>confdefs.h <<\_ACEOF
18452#define HAVE___DIVDI3 1
18453_ACEOF
18454
18455fi
18456
18457 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18458echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18459if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18461else
18462 ac_check_lib_save_LIBS=$LIBS
18463LIBS="-lgcc $LIBS"
18464cat >conftest.$ac_ext <<_ACEOF
18465/* confdefs.h. */
18466_ACEOF
18467cat confdefs.h >>conftest.$ac_ext
18468cat >>conftest.$ac_ext <<_ACEOF
18469/* end confdefs.h. */
18470
18471/* Override any GCC internal prototype to avoid an error.
18472 Use char because int might match the return type of a GCC
18473 builtin and then its argument prototype would still apply. */
18474#ifdef __cplusplus
18475extern "C"
18476#endif
18477char __fixdfdi ();
18478int
18479main ()
18480{
18481return __fixdfdi ();
18482 ;
18483 return 0;
18484}
18485_ACEOF
18486rm -f conftest.$ac_objext conftest$ac_exeext
18487if { (ac_try="$ac_link"
18488case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18491esac
18492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_link") 2>conftest.er1
18494 ac_status=$?
18495 grep -v '^ *+' conftest.er1 >conftest.err
18496 rm -f conftest.er1
18497 cat conftest.err >&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } &&
18500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18501 { (case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18504esac
18505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_try") 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest$ac_exeext'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514esac
18515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; }; then
18520 ac_cv_lib_gcc___fixdfdi=yes
18521else
18522 echo "$as_me: failed program was:" >&5
18523sed 's/^/| /' conftest.$ac_ext >&5
18524
18525 ac_cv_lib_gcc___fixdfdi=no
18526fi
18527
18528rm -f core conftest.err conftest.$ac_objext \
18529 conftest$ac_exeext conftest.$ac_ext
18530LIBS=$ac_check_lib_save_LIBS
18531fi
18532{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18533echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18534if test $ac_cv_lib_gcc___fixdfdi = yes; then
18535
18536cat >>confdefs.h <<\_ACEOF
18537#define HAVE___FIXDFDI 1
18538_ACEOF
18539
18540fi
18541
18542 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18543echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18544if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18546else
18547 ac_check_lib_save_LIBS=$LIBS
18548LIBS="-lgcc $LIBS"
18549cat >conftest.$ac_ext <<_ACEOF
18550/* confdefs.h. */
18551_ACEOF
18552cat confdefs.h >>conftest.$ac_ext
18553cat >>conftest.$ac_ext <<_ACEOF
18554/* end confdefs.h. */
18555
18556/* Override any GCC internal prototype to avoid an error.
18557 Use char because int might match the return type of a GCC
18558 builtin and then its argument prototype would still apply. */
18559#ifdef __cplusplus
18560extern "C"
18561#endif
18562char __fixsfdi ();
18563int
18564main ()
18565{
18566return __fixsfdi ();
18567 ;
18568 return 0;
18569}
18570_ACEOF
18571rm -f conftest.$ac_objext conftest$ac_exeext
18572if { (ac_try="$ac_link"
18573case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18576esac
18577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_link") 2>conftest.er1
18579 ac_status=$?
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
18585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18586 { (case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589esac
18590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_try") 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest$ac_exeext'
18596 { (case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18599esac
18600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_try") 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_cv_lib_gcc___fixsfdi=yes
18606else
18607 echo "$as_me: failed program was:" >&5
18608sed 's/^/| /' conftest.$ac_ext >&5
18609
18610 ac_cv_lib_gcc___fixsfdi=no
18611fi
18612
18613rm -f core conftest.err conftest.$ac_objext \
18614 conftest$ac_exeext conftest.$ac_ext
18615LIBS=$ac_check_lib_save_LIBS
18616fi
18617{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18618echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18619if test $ac_cv_lib_gcc___fixsfdi = yes; then
18620
18621cat >>confdefs.h <<\_ACEOF
18622#define HAVE___FIXSFDI 1
18623_ACEOF
18624
18625fi
18626
18627 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18628echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18629if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18631else
18632 ac_check_lib_save_LIBS=$LIBS
18633LIBS="-lgcc $LIBS"
18634cat >conftest.$ac_ext <<_ACEOF
18635/* confdefs.h. */
18636_ACEOF
18637cat confdefs.h >>conftest.$ac_ext
18638cat >>conftest.$ac_ext <<_ACEOF
18639/* end confdefs.h. */
18640
18641/* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18644#ifdef __cplusplus
18645extern "C"
18646#endif
18647char __floatdidf ();
18648int
18649main ()
18650{
18651return __floatdidf ();
18652 ;
18653 return 0;
18654}
18655_ACEOF
18656rm -f conftest.$ac_objext conftest$ac_exeext
18657if { (ac_try="$ac_link"
18658case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18661esac
18662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_link") 2>conftest.er1
18664 ac_status=$?
18665 grep -v '^ *+' conftest.er1 >conftest.err
18666 rm -f conftest.er1
18667 cat conftest.err >&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
18670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18671 { (case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18674esac
18675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_try") 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; } &&
18680 { ac_try='test -s conftest$ac_exeext'
18681 { (case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684esac
18685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_try") 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_cv_lib_gcc___floatdidf=yes
18691else
18692 echo "$as_me: failed program was:" >&5
18693sed 's/^/| /' conftest.$ac_ext >&5
18694
18695 ac_cv_lib_gcc___floatdidf=no
18696fi
18697
18698rm -f core conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
18700LIBS=$ac_check_lib_save_LIBS
18701fi
18702{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18703echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18704if test $ac_cv_lib_gcc___floatdidf = yes; then
18705
18706cat >>confdefs.h <<\_ACEOF
18707#define HAVE___FLOATDIDF 1
18708_ACEOF
18709
18710fi
18711
18712 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18713echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18714if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717 ac_check_lib_save_LIBS=$LIBS
18718LIBS="-lgcc $LIBS"
18719cat >conftest.$ac_ext <<_ACEOF
18720/* confdefs.h. */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
18724/* end confdefs.h. */
18725
18726/* Override any GCC internal prototype to avoid an error.
18727 Use char because int might match the return type of a GCC
18728 builtin and then its argument prototype would still apply. */
18729#ifdef __cplusplus
18730extern "C"
18731#endif
18732char __lshrdi3 ();
18733int
18734main ()
18735{
18736return __lshrdi3 ();
18737 ;
18738 return 0;
18739}
18740_ACEOF
18741rm -f conftest.$ac_objext conftest$ac_exeext
18742if { (ac_try="$ac_link"
18743case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18746esac
18747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756 { (case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18759esac
18760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_try") 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest$ac_exeext'
18766 { (case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18769esac
18770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_try") 2>&5
18772 ac_status=$?
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775 ac_cv_lib_gcc___lshrdi3=yes
18776else
18777 echo "$as_me: failed program was:" >&5
18778sed 's/^/| /' conftest.$ac_ext >&5
18779
18780 ac_cv_lib_gcc___lshrdi3=no
18781fi
18782
18783rm -f core conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18785LIBS=$ac_check_lib_save_LIBS
18786fi
18787{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18788echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18789if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18790
18791cat >>confdefs.h <<\_ACEOF
18792#define HAVE___LSHRDI3 1
18793_ACEOF
18794
18795fi
18796
18797 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18798echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18799if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801else
18802 ac_check_lib_save_LIBS=$LIBS
18803LIBS="-lgcc $LIBS"
18804cat >conftest.$ac_ext <<_ACEOF
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h. */
18810
18811/* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
18814#ifdef __cplusplus
18815extern "C"
18816#endif
18817char __moddi3 ();
18818int
18819main ()
18820{
18821return __moddi3 ();
18822 ;
18823 return 0;
18824}
18825_ACEOF
18826rm -f conftest.$ac_objext conftest$ac_exeext
18827if { (ac_try="$ac_link"
18828case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831esac
18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844esac
18845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_try") 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18854esac
18855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_cv_lib_gcc___moddi3=yes
18861else
18862 echo "$as_me: failed program was:" >&5
18863sed 's/^/| /' conftest.$ac_ext >&5
18864
18865 ac_cv_lib_gcc___moddi3=no
18866fi
18867
18868rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870LIBS=$ac_check_lib_save_LIBS
18871fi
18872{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18873echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18874if test $ac_cv_lib_gcc___moddi3 = yes; then
18875
18876cat >>confdefs.h <<\_ACEOF
18877#define HAVE___MODDI3 1
18878_ACEOF
18879
18880fi
18881
18882 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18883echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18884if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886else
18887 ac_check_lib_save_LIBS=$LIBS
18888LIBS="-lgcc $LIBS"
18889cat >conftest.$ac_ext <<_ACEOF
18890/* confdefs.h. */
18891_ACEOF
18892cat confdefs.h >>conftest.$ac_ext
18893cat >>conftest.$ac_ext <<_ACEOF
18894/* end confdefs.h. */
18895
18896/* Override any GCC internal prototype to avoid an error.
18897 Use char because int might match the return type of a GCC
18898 builtin and then its argument prototype would still apply. */
18899#ifdef __cplusplus
18900extern "C"
18901#endif
18902char __udivdi3 ();
18903int
18904main ()
18905{
18906return __udivdi3 ();
18907 ;
18908 return 0;
18909}
18910_ACEOF
18911rm -f conftest.$ac_objext conftest$ac_exeext
18912if { (ac_try="$ac_link"
18913case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916esac
18917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18919 ac_status=$?
18920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } &&
18925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929esac
18930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; } &&
18935 { ac_try='test -s conftest$ac_exeext'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939esac
18940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 ac_cv_lib_gcc___udivdi3=yes
18946else
18947 echo "$as_me: failed program was:" >&5
18948sed 's/^/| /' conftest.$ac_ext >&5
18949
18950 ac_cv_lib_gcc___udivdi3=no
18951fi
18952
18953rm -f core conftest.err conftest.$ac_objext \
18954 conftest$ac_exeext conftest.$ac_ext
18955LIBS=$ac_check_lib_save_LIBS
18956fi
18957{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18958echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18959if test $ac_cv_lib_gcc___udivdi3 = yes; then
18960
18961cat >>confdefs.h <<\_ACEOF
18962#define HAVE___UDIVDI3 1
18963_ACEOF
18964
18965fi
18966
18967 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18968echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18969if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971else
18972 ac_check_lib_save_LIBS=$LIBS
18973LIBS="-lgcc $LIBS"
18974cat >conftest.$ac_ext <<_ACEOF
18975/* confdefs.h. */
18976_ACEOF
18977cat confdefs.h >>conftest.$ac_ext
18978cat >>conftest.$ac_ext <<_ACEOF
18979/* end confdefs.h. */
18980
18981/* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
18984#ifdef __cplusplus
18985extern "C"
18986#endif
18987char __umoddi3 ();
18988int
18989main ()
18990{
18991return __umoddi3 ();
18992 ;
18993 return 0;
18994}
18995_ACEOF
18996rm -f conftest.$ac_objext conftest$ac_exeext
18997if { (ac_try="$ac_link"
18998case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001esac
19002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_link") 2>conftest.er1
19004 ac_status=$?
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } &&
19010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19011 { (case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19014esac
19015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_try") 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest$ac_exeext'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19024esac
19025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 ac_cv_lib_gcc___umoddi3=yes
19031else
19032 echo "$as_me: failed program was:" >&5
19033sed 's/^/| /' conftest.$ac_ext >&5
19034
19035 ac_cv_lib_gcc___umoddi3=no
19036fi
19037
19038rm -f core conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext conftest.$ac_ext
19040LIBS=$ac_check_lib_save_LIBS
19041fi
19042{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19043echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19044if test $ac_cv_lib_gcc___umoddi3 = yes; then
19045
19046cat >>confdefs.h <<\_ACEOF
19047#define HAVE___UMODDI3 1
19048_ACEOF
19049
19050fi
19051
19052
19053 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19054echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19055if test "${ac_cv_lib_gcc___main+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19057else
19058 ac_check_lib_save_LIBS=$LIBS
19059LIBS="-lgcc $LIBS"
19060cat >conftest.$ac_ext <<_ACEOF
19061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
19066
19067/* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19070#ifdef __cplusplus
19071extern "C"
19072#endif
19073char __main ();
19074int
19075main ()
19076{
19077return __main ();
19078 ;
19079 return 0;
19080}
19081_ACEOF
19082rm -f conftest.$ac_objext conftest$ac_exeext
19083if { (ac_try="$ac_link"
19084case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087esac
19088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest$ac_exeext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110esac
19111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_lib_gcc___main=yes
19117else
19118 echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_cv_lib_gcc___main=no
19122fi
19123
19124rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19126LIBS=$ac_check_lib_save_LIBS
19127fi
19128{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19129echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19130if test $ac_cv_lib_gcc___main = yes; then
19131
19132cat >>confdefs.h <<\_ACEOF
19133#define HAVE___MAIN 1
19134_ACEOF
19135
19136fi
19137
19138 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19139echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19140if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19142else
19143 ac_check_lib_save_LIBS=$LIBS
19144LIBS="-lgcc $LIBS"
19145cat >conftest.$ac_ext <<_ACEOF
19146/* confdefs.h. */
19147_ACEOF
19148cat confdefs.h >>conftest.$ac_ext
19149cat >>conftest.$ac_ext <<_ACEOF
19150/* end confdefs.h. */
19151
19152/* Override any GCC internal prototype to avoid an error.
19153 Use char because int might match the return type of a GCC
19154 builtin and then its argument prototype would still apply. */
19155#ifdef __cplusplus
19156extern "C"
19157#endif
19158char __cmpdi2 ();
19159int
19160main ()
19161{
19162return __cmpdi2 ();
19163 ;
19164 return 0;
19165}
19166_ACEOF
19167rm -f conftest.$ac_objext conftest$ac_exeext
19168if { (ac_try="$ac_link"
19169case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172esac
19173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_link") 2>conftest.er1
19175 ac_status=$?
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185esac
19186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest$ac_exeext'
19192 { (case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19195esac
19196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_try") 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_cv_lib_gcc___cmpdi2=yes
19202else
19203 echo "$as_me: failed program was:" >&5
19204sed 's/^/| /' conftest.$ac_ext >&5
19205
19206 ac_cv_lib_gcc___cmpdi2=no
19207fi
19208
19209rm -f core conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext conftest.$ac_ext
19211LIBS=$ac_check_lib_save_LIBS
19212fi
19213{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19214echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19215if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19216
19217cat >>confdefs.h <<\_ACEOF
19218#define HAVE___CMPDI2 1
19219_ACEOF
19220
19221fi
19222
19223fi
19224
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019225if test "$llvm_cv_os_type" = "MingW" ; then
19226 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19227echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19228 cat >conftest.$ac_ext <<_ACEOF
19229#include <windows.h>
19230#include <imagehlp.h>
19231extern void foo(PENUMLOADED_MODULES_CALLBACK);
19232extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19233_ACEOF
19234rm -f conftest.$ac_objext
19235if { (ac_try="$ac_compile"
19236case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19239esac
19240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_compile") 2>conftest.er1
19242 ac_status=$?
19243 grep -v '^ *+' conftest.er1 >conftest.err
19244 rm -f conftest.er1
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249 { (case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19252esac
19253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_try") 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; } &&
19258 { ac_try='test -s conftest.$ac_objext'
19259 { (case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262esac
19263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_try") 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268
19269 { echo "$as_me:$LINENO: result: yes" >&5
19270echo "${ECHO_T}yes" >&6; }
19271 llvm_cv_win32_elmcb_pcstr="PCSTR"
19272
19273else
19274 echo "$as_me: failed program was:" >&5
19275sed 's/^/| /' conftest.$ac_ext >&5
19276
19277
19278 { echo "$as_me:$LINENO: result: no" >&5
19279echo "${ECHO_T}no" >&6; }
19280 llvm_cv_win32_elmcb_pcstr="PSTR"
19281
19282fi
19283
19284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285
19286cat >>confdefs.h <<_ACEOF
19287#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19288_ACEOF
19289
19290fi
19291
Torok Edwin871384f2010-01-26 08:50:50 +000019292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019293{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19294echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19295if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019297else
Reid Spencera773bd52006-08-04 18:18:08 +000019298 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019299ac_cpp='$CXXCPP $CPPFLAGS'
19300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019304 cat >conftest.$ac_ext <<_ACEOF
19305/* confdefs.h. */
19306_ACEOF
19307cat confdefs.h >>conftest.$ac_ext
19308cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019309/* end confdefs.h. */
19310#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019311int
19312main ()
19313{
19314float f; isnan(f);
19315 ;
19316 return 0;
19317}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019318_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019319rm -f conftest.$ac_objext
19320if { (ac_try="$ac_compile"
19321case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19324esac
19325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_compile") 2>conftest.er1
19327 ac_status=$?
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19334 { (case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19337esac
19338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_try") 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest.$ac_objext'
19344 { (case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19347esac
19348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_try") 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019353 ac_cv_func_isnan_in_math_h=yes
19354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019355 echo "$as_me: failed program was:" >&5
19356sed 's/^/| /' conftest.$ac_ext >&5
19357
19358 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019360
Reid Spencera773bd52006-08-04 18:18:08 +000019361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019362 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019363ac_cpp='$CPP $CPPFLAGS'
19364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19366ac_compiler_gnu=$ac_cv_c_compiler_gnu
19367
19368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019369{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19370echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019371
19372
19373if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019375cat >>confdefs.h <<\_ACEOF
19376#define HAVE_ISNAN_IN_MATH_H 1
19377_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019378
Reid Spencerabec8f92004-10-27 23:03:44 +000019379fi
19380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019381{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19382echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19383if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019385else
Reid Spencera773bd52006-08-04 18:18:08 +000019386 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019387ac_cpp='$CXXCPP $CPPFLAGS'
19388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019392 cat >conftest.$ac_ext <<_ACEOF
19393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019397/* end confdefs.h. */
19398#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019399int
19400main ()
19401{
19402float f; isnan(f);
19403 ;
19404 return 0;
19405}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019406_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019407rm -f conftest.$ac_objext
19408if { (ac_try="$ac_compile"
19409case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412esac
19413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_compile") 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19422 { (case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19425esac
19426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_try") 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435esac
19436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019441 ac_cv_func_isnan_in_cmath=yes
19442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019443 echo "$as_me: failed program was:" >&5
19444sed 's/^/| /' conftest.$ac_ext >&5
19445
19446 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019448
Reid Spencera773bd52006-08-04 18:18:08 +000019449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019450 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019451ac_cpp='$CPP $CPPFLAGS'
19452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454ac_compiler_gnu=$ac_cv_c_compiler_gnu
19455
19456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019457{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19458echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019459
19460if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019462cat >>confdefs.h <<\_ACEOF
19463#define HAVE_ISNAN_IN_CMATH 1
19464_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019465
Reid Spencerabec8f92004-10-27 23:03:44 +000019466fi
19467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019468{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19469echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19470if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019472else
Reid Spencera773bd52006-08-04 18:18:08 +000019473 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019474ac_cpp='$CXXCPP $CPPFLAGS'
19475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019479 cat >conftest.$ac_ext <<_ACEOF
19480/* confdefs.h. */
19481_ACEOF
19482cat confdefs.h >>conftest.$ac_ext
19483cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019484/* end confdefs.h. */
19485#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019486int
19487main ()
19488{
19489float f; std::isnan(f);
19490 ;
19491 return 0;
19492}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019493_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019494rm -f conftest.$ac_objext
19495if { (ac_try="$ac_compile"
19496case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499esac
19500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_compile") 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512esac
19513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522esac
19523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019528 ac_cv_func_std_isnan_in_cmath=yes
19529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019530 echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
19533 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019535
Reid Spencera773bd52006-08-04 18:18:08 +000019536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019537 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019538ac_cpp='$CPP $CPPFLAGS'
19539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541ac_compiler_gnu=$ac_cv_c_compiler_gnu
19542
19543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019544{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19545echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019546
19547if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019549cat >>confdefs.h <<\_ACEOF
19550#define HAVE_STD_ISNAN_IN_CMATH 1
19551_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019552
Reid Spencerabec8f92004-10-27 23:03:44 +000019553fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019554
19555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019556{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19557echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19558if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019560else
Reid Spencera773bd52006-08-04 18:18:08 +000019561 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019562ac_cpp='$CXXCPP $CPPFLAGS'
19563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019567 cat >conftest.$ac_ext <<_ACEOF
19568/* confdefs.h. */
19569_ACEOF
19570cat confdefs.h >>conftest.$ac_ext
19571cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019572/* end confdefs.h. */
19573#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019574int
19575main ()
19576{
19577float f; isinf(f);
19578 ;
19579 return 0;
19580}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019581_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019582rm -f conftest.$ac_objext
19583if { (ac_try="$ac_compile"
19584case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587esac
19588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_compile") 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19597 { (case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19600esac
19601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_try") 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19610esac
19611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_try") 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019616 ac_cv_func_isinf_in_math_h=yes
19617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019618 echo "$as_me: failed program was:" >&5
19619sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623
Reid Spencera773bd52006-08-04 18:18:08 +000019624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019625 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019626ac_cpp='$CPP $CPPFLAGS'
19627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629ac_compiler_gnu=$ac_cv_c_compiler_gnu
19630
19631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019632{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19633echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019634
19635if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019637cat >>confdefs.h <<\_ACEOF
19638#define HAVE_ISINF_IN_MATH_H 1
19639_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019640
Reid Spencerabec8f92004-10-27 23:03:44 +000019641fi
19642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019643{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19644echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19645if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019647else
Reid Spencera773bd52006-08-04 18:18:08 +000019648 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019649ac_cpp='$CXXCPP $CPPFLAGS'
19650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019654 cat >conftest.$ac_ext <<_ACEOF
19655/* confdefs.h. */
19656_ACEOF
19657cat confdefs.h >>conftest.$ac_ext
19658cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019659/* end confdefs.h. */
19660#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019661int
19662main ()
19663{
19664float f; isinf(f);
19665 ;
19666 return 0;
19667}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019668_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669rm -f conftest.$ac_objext
19670if { (ac_try="$ac_compile"
19671case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19674esac
19675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_compile") 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687esac
19688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; } &&
19693 { ac_try='test -s conftest.$ac_objext'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19697esac
19698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019703 ac_cv_func_isinf_in_cmath=yes
19704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019705 echo "$as_me: failed program was:" >&5
19706sed 's/^/| /' conftest.$ac_ext >&5
19707
19708 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019709fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019710
Reid Spencera773bd52006-08-04 18:18:08 +000019711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019712 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019713ac_cpp='$CPP $CPPFLAGS'
19714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716ac_compiler_gnu=$ac_cv_c_compiler_gnu
19717
19718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019719{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19720echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019721
19722if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019724cat >>confdefs.h <<\_ACEOF
19725#define HAVE_ISINF_IN_CMATH 1
19726_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019727
Reid Spencerabec8f92004-10-27 23:03:44 +000019728fi
19729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19731echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19732if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019734else
Reid Spencera773bd52006-08-04 18:18:08 +000019735 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019736ac_cpp='$CXXCPP $CPPFLAGS'
19737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019741 cat >conftest.$ac_ext <<_ACEOF
19742/* confdefs.h. */
19743_ACEOF
19744cat confdefs.h >>conftest.$ac_ext
19745cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019746/* end confdefs.h. */
19747#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019748int
19749main ()
19750{
19751float f; std::isinf(f)}
19752 ;
19753 return 0;
19754}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019755_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019756rm -f conftest.$ac_objext
19757if { (ac_try="$ac_compile"
19758case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761esac
19762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19771 { (case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774esac
19775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_try") 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest.$ac_objext'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19784esac
19785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019790 ac_cv_func_std_isinf_in_cmath=yes
19791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019792 echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019797
Reid Spencera773bd52006-08-04 18:18:08 +000019798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019799 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019800ac_cpp='$CPP $CPPFLAGS'
19801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19803ac_compiler_gnu=$ac_cv_c_compiler_gnu
19804
19805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019806{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19807echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019808
19809if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019811cat >>confdefs.h <<\_ACEOF
19812#define HAVE_STD_ISINF_IN_CMATH 1
19813_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019814
Reid Spencerabec8f92004-10-27 23:03:44 +000019815fi
19816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019817{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19818echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19819if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019821else
Reid Spencera773bd52006-08-04 18:18:08 +000019822 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019823ac_cpp='$CXXCPP $CPPFLAGS'
19824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019828 cat >conftest.$ac_ext <<_ACEOF
19829/* confdefs.h. */
19830_ACEOF
19831cat confdefs.h >>conftest.$ac_ext
19832cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019833/* end confdefs.h. */
19834#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019835int
19836main ()
19837{
19838float f; finite(f);
19839 ;
19840 return 0;
19841}
Brian Gaeked59a6472004-07-21 03:33:58 +000019842_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019843rm -f conftest.$ac_objext
19844if { (ac_try="$ac_compile"
19845case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848esac
19849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_compile") 2>conftest.er1
19851 ac_status=$?
19852 grep -v '^ *+' conftest.er1 >conftest.err
19853 rm -f conftest.er1
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } &&
19857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861esac
19862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; } &&
19867 { ac_try='test -s conftest.$ac_objext'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871esac
19872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019877 ac_cv_func_finite_in_ieeefp_h=yes
19878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019879 echo "$as_me: failed program was:" >&5
19880sed 's/^/| /' conftest.$ac_ext >&5
19881
19882 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019884
Reid Spencera773bd52006-08-04 18:18:08 +000019885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019886 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019887ac_cpp='$CPP $CPPFLAGS'
19888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890ac_compiler_gnu=$ac_cv_c_compiler_gnu
19891
19892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019893{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19894echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019895
Brian Gaeke6802b552004-10-28 05:06:45 +000019896if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019898cat >>confdefs.h <<\_ACEOF
19899#define HAVE_FINITE_IN_IEEEFP_H 1
19900_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019901
Reid Spencerabec8f92004-10-27 23:03:44 +000019902fi
19903
19904
19905
Reid Spencer30fe5262007-01-20 07:48:49 +000019906if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019907
19908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019909for ac_header in stdlib.h unistd.h
19910do
19911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917fi
19918ac_res=`eval echo '${'$as_ac_Header'}'`
19919 { echo "$as_me:$LINENO: result: $ac_res" >&5
19920echo "${ECHO_T}$ac_res" >&6; }
19921else
19922 # Is the header compilable?
19923{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19924echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19925cat >conftest.$ac_ext <<_ACEOF
19926/* confdefs.h. */
19927_ACEOF
19928cat confdefs.h >>conftest.$ac_ext
19929cat >>conftest.$ac_ext <<_ACEOF
19930/* end confdefs.h. */
19931$ac_includes_default
19932#include <$ac_header>
19933_ACEOF
19934rm -f conftest.$ac_objext
19935if { (ac_try="$ac_compile"
19936case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19939esac
19940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_compile") 2>conftest.er1
19942 ac_status=$?
19943 grep -v '^ *+' conftest.er1 >conftest.err
19944 rm -f conftest.er1
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } &&
19948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19949 { (case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19952esac
19953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_try") 2>&5
19955 ac_status=$?
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; } &&
19958 { ac_try='test -s conftest.$ac_objext'
19959 { (case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19962esac
19963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_try") 2>&5
19965 ac_status=$?
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 ac_header_compiler=yes
19969else
19970 echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019973 ac_header_compiler=no
19974fi
19975
19976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19978echo "${ECHO_T}$ac_header_compiler" >&6; }
19979
19980# Is the header present?
19981{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19983cat >conftest.$ac_ext <<_ACEOF
19984/* confdefs.h. */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
19988/* end confdefs.h. */
19989#include <$ac_header>
19990_ACEOF
19991if { (ac_try="$ac_cpp conftest.$ac_ext"
19992case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19995esac
19996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } >/dev/null; then
20004 if test -s conftest.err; then
20005 ac_cpp_err=$ac_c_preproc_warn_flag
20006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20007 else
20008 ac_cpp_err=
20009 fi
20010else
20011 ac_cpp_err=yes
20012fi
20013if test -z "$ac_cpp_err"; then
20014 ac_header_preproc=yes
20015else
20016 echo "$as_me: failed program was:" >&5
20017sed 's/^/| /' conftest.$ac_ext >&5
20018
20019 ac_header_preproc=no
20020fi
20021
20022rm -f conftest.err conftest.$ac_ext
20023{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20024echo "${ECHO_T}$ac_header_preproc" >&6; }
20025
20026# So? What about this header?
20027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20028 yes:no: )
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20033 ac_header_preproc=yes
20034 ;;
20035 no:yes:* )
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20048 ( cat <<\_ASBOX
20049## ----------------------------------- ##
20050## Report this to llvmbugs@cs.uiuc.edu ##
20051## ----------------------------------- ##
20052_ASBOX
20053 ) | sed "s/^/$as_me: WARNING: /" >&2
20054 ;;
20055esac
20056{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20060else
20061 eval "$as_ac_Header=\$ac_header_preproc"
20062fi
20063ac_res=`eval echo '${'$as_ac_Header'}'`
20064 { echo "$as_me:$LINENO: result: $ac_res" >&5
20065echo "${ECHO_T}$ac_res" >&6; }
20066
20067fi
20068if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020069 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020071_ACEOF
20072
20073fi
20074
20075done
20076
20077
20078for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020079do
20080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20081{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20085else
20086 cat >conftest.$ac_ext <<_ACEOF
20087/* confdefs.h. */
20088_ACEOF
20089cat confdefs.h >>conftest.$ac_ext
20090cat >>conftest.$ac_ext <<_ACEOF
20091/* end confdefs.h. */
20092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20094#define $ac_func innocuous_$ac_func
20095
20096/* System header to define __stub macros and hopefully few prototypes,
20097 which can conflict with char $ac_func (); below.
20098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20099 <limits.h> exists even on freestanding compilers. */
20100
20101#ifdef __STDC__
20102# include <limits.h>
20103#else
20104# include <assert.h>
20105#endif
20106
20107#undef $ac_func
20108
20109/* Override any GCC internal prototype to avoid an error.
20110 Use char because int might match the return type of a GCC
20111 builtin and then its argument prototype would still apply. */
20112#ifdef __cplusplus
20113extern "C"
20114#endif
20115char $ac_func ();
20116/* The GNU C library defines this for functions which it implements
20117 to always fail with ENOSYS. Some functions are actually named
20118 something starting with __ and the normal name is an alias. */
20119#if defined __stub_$ac_func || defined __stub___$ac_func
20120choke me
20121#endif
20122
20123int
20124main ()
20125{
20126return $ac_func ();
20127 ;
20128 return 0;
20129}
20130_ACEOF
20131rm -f conftest.$ac_objext conftest$ac_exeext
20132if { (ac_try="$ac_link"
20133case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20136esac
20137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_link") 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149esac
20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest$ac_exeext'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159esac
20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20165 eval "$as_ac_var=yes"
20166else
20167 echo "$as_me: failed program was:" >&5
20168sed 's/^/| /' conftest.$ac_ext >&5
20169
20170 eval "$as_ac_var=no"
20171fi
20172
20173rm -f core conftest.err conftest.$ac_objext \
20174 conftest$ac_exeext conftest.$ac_ext
20175fi
20176ac_res=`eval echo '${'$as_ac_var'}'`
20177 { echo "$as_me:$LINENO: result: $ac_res" >&5
20178echo "${ECHO_T}$ac_res" >&6; }
20179if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020180 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020182_ACEOF
20183
20184fi
20185done
20186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020187{ echo "$as_me:$LINENO: checking for working mmap" >&5
20188echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20189if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020192 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020193 ac_cv_func_mmap_fixed_mapped=no
20194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020195 cat >conftest.$ac_ext <<_ACEOF
20196/* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020201$ac_includes_default
20202/* malloc might have been renamed as rpl_malloc. */
20203#undef malloc
20204
20205/* Thanks to Mike Haertel and Jim Avera for this test.
20206 Here is a matrix of mmap possibilities:
20207 mmap private not fixed
20208 mmap private fixed at somewhere currently unmapped
20209 mmap private fixed at somewhere already mapped
20210 mmap shared not fixed
20211 mmap shared fixed at somewhere currently unmapped
20212 mmap shared fixed at somewhere already mapped
20213 For private mappings, we should verify that changes cannot be read()
20214 back from the file, nor mmap's back from the file at a different
20215 address. (There have been systems where private was not correctly
20216 implemented like the infamous i386 svr4.0, and systems where the
20217 VM page cache was not coherent with the file system buffer cache
20218 like early versions of FreeBSD and possibly contemporary NetBSD.)
20219 For shared mappings, we should conversely verify that changes get
20220 propagated back to all the places they're supposed to be.
20221
20222 Grep wants private fixed already mapped.
20223 The main things grep needs to know about mmap are:
20224 * does it exist and is it safe to write into the mmap'd area
20225 * how to use it (BSD variants) */
20226
20227#include <fcntl.h>
20228#include <sys/mman.h>
20229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020230#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020231char *malloc ();
20232#endif
20233
20234/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020235#if !HAVE_GETPAGESIZE
20236/* Assume that all systems that can run configure have sys/param.h. */
20237# if !HAVE_SYS_PARAM_H
20238# define HAVE_SYS_PARAM_H 1
20239# endif
20240
John Criswell7a73b802003-06-30 21:59:07 +000020241# ifdef _SC_PAGESIZE
20242# define getpagesize() sysconf(_SC_PAGESIZE)
20243# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020244# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020245# include <sys/param.h>
20246# ifdef EXEC_PAGESIZE
20247# define getpagesize() EXEC_PAGESIZE
20248# else /* no EXEC_PAGESIZE */
20249# ifdef NBPG
20250# define getpagesize() NBPG * CLSIZE
20251# ifndef CLSIZE
20252# define CLSIZE 1
20253# endif /* no CLSIZE */
20254# else /* no NBPG */
20255# ifdef NBPC
20256# define getpagesize() NBPC
20257# else /* no NBPC */
20258# ifdef PAGESIZE
20259# define getpagesize() PAGESIZE
20260# endif /* PAGESIZE */
20261# endif /* no NBPC */
20262# endif /* no NBPG */
20263# endif /* no EXEC_PAGESIZE */
20264# else /* no HAVE_SYS_PARAM_H */
20265# define getpagesize() 8192 /* punt totally */
20266# endif /* no HAVE_SYS_PARAM_H */
20267# endif /* no _SC_PAGESIZE */
20268
20269#endif /* no HAVE_GETPAGESIZE */
20270
20271int
20272main ()
20273{
20274 char *data, *data2, *data3;
20275 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020276 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020277
20278 pagesize = getpagesize ();
20279
20280 /* First, make a file with some known garbage in it. */
20281 data = (char *) malloc (pagesize);
20282 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020283 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020284 for (i = 0; i < pagesize; ++i)
20285 *(data + i) = rand ();
20286 umask (0);
20287 fd = creat ("conftest.mmap", 0600);
20288 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020289 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020290 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020291 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020292 close (fd);
20293
20294 /* Next, try to mmap the file at a fixed address which already has
20295 something else allocated at it. If we can, also make sure that
20296 we see the same garbage. */
20297 fd = open ("conftest.mmap", O_RDWR);
20298 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020299 return 1;
20300 data2 = (char *) malloc (2 * pagesize);
20301 if (!data2)
20302 return 1;
20303 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020304 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020305 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020307 for (i = 0; i < pagesize; ++i)
20308 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020309 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020310
20311 /* Finally, make sure that changes to the mapped area do not
20312 percolate back to the file as seen by read(). (This is a bug on
20313 some variants of i386 svr4.0.) */
20314 for (i = 0; i < pagesize; ++i)
20315 *(data2 + i) = *(data2 + i) + 1;
20316 data3 = (char *) malloc (pagesize);
20317 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020318 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020319 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020320 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020321 for (i = 0; i < pagesize; ++i)
20322 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020323 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020324 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020325 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020326}
20327_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020328rm -f conftest$ac_exeext
20329if { (ac_try="$ac_link"
20330case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333esac
20334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_link") 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20339 { (case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342esac
20343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_try") 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020348 ac_cv_func_mmap_fixed_mapped=yes
20349else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020350 echo "$as_me: program exited with status $ac_status" >&5
20351echo "$as_me: failed program was:" >&5
20352sed 's/^/| /' conftest.$ac_ext >&5
20353
20354( exit $ac_status )
20355ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357rm -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 +000020358fi
Reid Spencera773bd52006-08-04 18:18:08 +000020359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360
John Criswell7a73b802003-06-30 21:59:07 +000020361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20363echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020364if test $ac_cv_func_mmap_fixed_mapped = yes; then
20365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020366cat >>confdefs.h <<\_ACEOF
20367#define HAVE_MMAP 1
20368_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020369
20370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020371rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020373 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20374echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20375if test "${ac_cv_func_mmap_file+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020377else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020378 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020379ac_cpp='$CPP $CPPFLAGS'
20380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382ac_compiler_gnu=$ac_cv_c_compiler_gnu
20383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020384 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020385 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020387 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020389 /* confdefs.h. */
20390_ACEOF
20391cat confdefs.h >>conftest.$ac_ext
20392cat >>conftest.$ac_ext <<_ACEOF
20393/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020394
John Criswell7a73b802003-06-30 21:59:07 +000020395#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020396#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020397#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020398
20399int
20400main ()
20401{
John Criswell7a73b802003-06-30 21:59:07 +000020402
20403 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020404 fd = creat ("foo",0777);
20405 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20406 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020407 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020408 ;
20409 return 0;
20410}
John Criswell7a73b802003-06-30 21:59:07 +000020411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020412rm -f conftest$ac_exeext
20413if { (ac_try="$ac_link"
20414case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417esac
20418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_link") 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20423 { (case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20426esac
20427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_try") 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020432 ac_cv_func_mmap_file=yes
20433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020434 echo "$as_me: program exited with status $ac_status" >&5
20435echo "$as_me: failed program was:" >&5
20436sed 's/^/| /' conftest.$ac_ext >&5
20437
20438( exit $ac_status )
20439ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020441rm -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 +000020442fi
Reid Spencera773bd52006-08-04 18:18:08 +000020443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020444
John Criswell7a73b802003-06-30 21:59:07 +000020445 ac_ext=c
20446ac_cpp='$CPP $CPPFLAGS'
20447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20449ac_compiler_gnu=$ac_cv_c_compiler_gnu
20450
20451
20452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020453{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20454echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020455if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457cat >>confdefs.h <<\_ACEOF
20458#define HAVE_MMAP_FILE
20459_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020460
20461 MMAP_FILE=yes
20462
20463fi
20464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020465 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20466echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20467if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020469else
Reid Spencer582a23c2004-12-29 07:07:57 +000020470 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020471 ac_cv_need_dev_zero_for_mmap=yes
20472 else
20473 ac_cv_need_dev_zero_for_mmap=no
20474 fi
20475
20476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020477{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20478echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020479if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481cat >>confdefs.h <<\_ACEOF
20482#define NEED_DEV_ZERO_FOR_MMAP 1
20483_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020484
20485fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020486
Reid Spencer30fe5262007-01-20 07:48:49 +000020487 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20488 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020489 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20490echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020491 fi
20492 if test "$ac_cv_func_mmap_file" = "no"
20493 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020494 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20495echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020496 fi
John Criswellb13092b2003-07-22 21:00:24 +000020497fi
John Criswell7a73b802003-06-30 21:59:07 +000020498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020499{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20500echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020501ac_ext=cpp
20502ac_cpp='$CXXCPP $CPPFLAGS'
20503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020507cat >conftest.$ac_ext <<_ACEOF
20508/* confdefs.h. */
20509_ACEOF
20510cat confdefs.h >>conftest.$ac_ext
20511cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020512/* end confdefs.h. */
20513int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020514 volatile unsigned long val = 1;
20515 __sync_synchronize();
20516 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020517 __sync_add_and_fetch(&val, 1);
20518 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020519 return 0;
20520 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020521
20522_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020523rm -f conftest.$ac_objext conftest$ac_exeext
20524if { (ac_try="$ac_link"
20525case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20528esac
20529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_link") 2>conftest.er1
20531 ac_status=$?
20532 grep -v '^ *+' conftest.er1 >conftest.err
20533 rm -f conftest.er1
20534 cat conftest.err >&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } &&
20537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20538 { (case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20541esac
20542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_try") 2>&5
20544 ac_status=$?
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; } &&
20547 { ac_try='test -s conftest$ac_exeext'
20548 { (case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20551esac
20552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_try") 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020557 ac_ext=c
20558ac_cpp='$CPP $CPPFLAGS'
20559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561ac_compiler_gnu=$ac_cv_c_compiler_gnu
20562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020563 { echo "$as_me:$LINENO: result: yes" >&5
20564echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020566cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020567#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020569
Owen Andersond4b272b2009-05-18 23:58:51 +000020570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571 echo "$as_me: failed program was:" >&5
20572sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574 { echo "$as_me:$LINENO: result: no" >&5
20575echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020577cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020578#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579_ACEOF
20580
20581 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20582echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020584
Owen Andersond4b272b2009-05-18 23:58:51 +000020585rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020587
John Criswell7a73b802003-06-30 21:59:07 +000020588
Nick Lewycky4372e692009-09-29 06:18:23 +000020589if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020590 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20591echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20592if test "${llvm_cv_linux_mixed+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020594else
20595 ac_ext=c
20596ac_cpp='$CPP $CPPFLAGS'
20597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20599ac_compiler_gnu=$ac_cv_c_compiler_gnu
20600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020601 cat >conftest.$ac_ext <<_ACEOF
20602/* confdefs.h. */
20603_ACEOF
20604cat confdefs.h >>conftest.$ac_ext
20605cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020606/* end confdefs.h. */
20607#ifndef __x86_64__
20608 error: Not x86-64 even if uname says so!
20609 #endif
20610
20611int
20612main ()
20613{
20614
20615 ;
20616 return 0;
20617}
20618_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020619rm -f conftest.$ac_objext
20620if { (ac_try="$ac_compile"
20621case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624esac
20625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_compile") 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637esac
20638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20647esac
20648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20650 ac_status=$?
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020653 llvm_cv_linux_mixed=no
20654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020655 echo "$as_me: failed program was:" >&5
20656sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020660
Nick Lewycky4372e692009-09-29 06:18:23 +000020661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662 ac_ext=c
20663ac_cpp='$CPP $CPPFLAGS'
20664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666ac_compiler_gnu=$ac_cv_c_compiler_gnu
20667
20668
20669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020670{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20671echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020672
20673 if test "$llvm_cv_linux_mixed" = "yes"; then
20674 llvm_cv_target_arch="x86"
20675 ARCH="x86"
20676 fi
20677fi
20678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020679
Reid Spencer9372f152007-07-30 20:13:24 +000020680for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020681do
20682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20683{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20685if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20687else
20688 cat >conftest.$ac_ext <<_ACEOF
20689/* confdefs.h. */
20690_ACEOF
20691cat confdefs.h >>conftest.$ac_ext
20692cat >>conftest.$ac_ext <<_ACEOF
20693/* end confdefs.h. */
20694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20696#define $ac_func innocuous_$ac_func
20697
20698/* System header to define __stub macros and hopefully few prototypes,
20699 which can conflict with char $ac_func (); below.
20700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20701 <limits.h> exists even on freestanding compilers. */
20702
20703#ifdef __STDC__
20704# include <limits.h>
20705#else
20706# include <assert.h>
20707#endif
20708
20709#undef $ac_func
20710
20711/* Override any GCC internal prototype to avoid an error.
20712 Use char because int might match the return type of a GCC
20713 builtin and then its argument prototype would still apply. */
20714#ifdef __cplusplus
20715extern "C"
20716#endif
20717char $ac_func ();
20718/* The GNU C library defines this for functions which it implements
20719 to always fail with ENOSYS. Some functions are actually named
20720 something starting with __ and the normal name is an alias. */
20721#if defined __stub_$ac_func || defined __stub___$ac_func
20722choke me
20723#endif
20724
20725int
20726main ()
20727{
20728return $ac_func ();
20729 ;
20730 return 0;
20731}
20732_ACEOF
20733rm -f conftest.$ac_objext conftest$ac_exeext
20734if { (ac_try="$ac_link"
20735case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20738esac
20739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_link") 2>conftest.er1
20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20748 { (case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751esac
20752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_try") 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; } &&
20757 { ac_try='test -s conftest$ac_exeext'
20758 { (case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20761esac
20762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763 (eval "$ac_try") 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 eval "$as_ac_var=yes"
20768else
20769 echo "$as_me: failed program was:" >&5
20770sed 's/^/| /' conftest.$ac_ext >&5
20771
20772 eval "$as_ac_var=no"
20773fi
20774
20775rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20777fi
20778ac_res=`eval echo '${'$as_ac_var'}'`
20779 { echo "$as_me:$LINENO: result: $ac_res" >&5
20780echo "${ECHO_T}$ac_res" >&6; }
20781if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020782 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020783#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020784_ACEOF
20785
20786fi
20787done
20788
20789
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020790SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020791
20792
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020793SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20794
20795
Reid Spencere9de0912004-08-20 09:03:57 +000020796# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020797# information into substitutions that will end up in Makefile.config.in
20798# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020799if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020800 prefix="/usr/local"
20801fi
Reid Spencere9de0912004-08-20 09:03:57 +000020802eval LLVM_PREFIX="${prefix}";
20803eval LLVM_BINDIR="${prefix}/bin";
20804eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020805eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020806eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020807eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020808eval LLVM_INCLUDEDIR="${prefix}/include";
20809eval LLVM_INFODIR="${prefix}/info";
20810eval LLVM_MANDIR="${prefix}/man";
20811LLVM_CONFIGTIME=`date`
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020823# Place the various directores into the config.h file as #defines so that we
20824# can know about the installation paths within LLVM.
20825
Reid Spencere9de0912004-08-20 09:03:57 +000020826cat >>confdefs.h <<_ACEOF
20827#define LLVM_PREFIX "$LLVM_PREFIX"
20828_ACEOF
20829
20830
20831cat >>confdefs.h <<_ACEOF
20832#define LLVM_BINDIR "$LLVM_BINDIR"
20833_ACEOF
20834
20835
20836cat >>confdefs.h <<_ACEOF
20837#define LLVM_LIBDIR "$LLVM_LIBDIR"
20838_ACEOF
20839
20840
20841cat >>confdefs.h <<_ACEOF
20842#define LLVM_DATADIR "$LLVM_DATADIR"
20843_ACEOF
20844
20845
20846cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020847#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020848_ACEOF
20849
20850
20851cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020852#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020853_ACEOF
20854
20855
20856cat >>confdefs.h <<_ACEOF
20857#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20858_ACEOF
20859
20860
20861cat >>confdefs.h <<_ACEOF
20862#define LLVM_INFODIR "$LLVM_INFODIR"
20863_ACEOF
20864
20865
20866cat >>confdefs.h <<_ACEOF
20867#define LLVM_MANDIR "$LLVM_MANDIR"
20868_ACEOF
20869
20870
20871cat >>confdefs.h <<_ACEOF
20872#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20873_ACEOF
20874
20875
Eric Christopher790e11c2007-12-01 00:34:39 +000020876cat >>confdefs.h <<_ACEOF
20877#define LLVM_HOSTTRIPLE "$host"
20878_ACEOF
20879
20880
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020881# Determine which bindings to build.
20882if test "$BINDINGS_TO_BUILD" = auto ; then
20883 BINDINGS_TO_BUILD=""
20884 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20885 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20886 fi
20887fi
20888BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20889
20890
20891# This isn't really configurey, but it avoids having to repeat the list in
20892# other files.
20893ALL_BINDINGS=ocaml
20894
20895
Gordon Henriksenf0915682007-10-02 16:42:22 +000020896# Do any work necessary to ensure that bindings have what they need.
20897binding_prereqs_failed=0
20898for a_binding in $BINDINGS_TO_BUILD ; do
20899 case "$a_binding" in
20900 ocaml)
20901 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020902 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20903echo "$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 +000020904 binding_prereqs_failed=1
20905 fi
20906 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020907 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20908echo "$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 +000020909 binding_prereqs_failed=1
20910 fi
20911 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020912 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20913echo "$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 +000020914 fi
20915 if test "x$with_ocaml_libdir" != xauto ; then
20916 OCAML_LIBDIR=$with_ocaml_libdir
20917
20918 else
20919 ocaml_stdlib="`"$OCAMLC" -where`"
20920 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20921 then
20922 # ocaml stdlib is beneath our prefix; use stdlib
20923 OCAML_LIBDIR=$ocaml_stdlib
20924
20925 else
20926 # ocaml stdlib is outside our prefix; use libdir/ocaml
20927 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20928
20929 fi
20930 fi
20931 ;;
20932 esac
20933done
20934if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020935 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20936echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20937 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020938fi
20939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020940{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20941echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20942if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020944else
20945 ac_ext=cpp
20946ac_cpp='$CXXCPP $CPPFLAGS'
20947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20950
20951 oldcxxflags="$CXXFLAGS"
20952 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020953 cat >conftest.$ac_ext <<_ACEOF
20954/* confdefs.h. */
20955_ACEOF
20956cat confdefs.h >>conftest.$ac_ext
20957cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020958/* end confdefs.h. */
20959
20960int
20961main ()
20962{
20963
20964 ;
20965 return 0;
20966}
20967_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020968rm -f conftest.$ac_objext
20969if { (ac_try="$ac_compile"
20970case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20973esac
20974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_compile") 2>conftest.er1
20976 ac_status=$?
20977 grep -v '^ *+' conftest.er1 >conftest.err
20978 rm -f conftest.er1
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20983 { (case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20986esac
20987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988 (eval "$ac_try") 2>&5
20989 ac_status=$?
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; } &&
20992 { ac_try='test -s conftest.$ac_objext'
20993 { (case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20996esac
20997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_try") 2>&5
20999 ac_status=$?
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021002 llvm_cv_cxx_visibility_inlines_hidden=yes
21003else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021004 echo "$as_me: failed program was:" >&5
21005sed 's/^/| /' conftest.$ac_ext >&5
21006
21007 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021009
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011 CXXFLAGS="$oldcxxflags"
21012 ac_ext=c
21013ac_cpp='$CPP $CPPFLAGS'
21014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016ac_compiler_gnu=$ac_cv_c_compiler_gnu
21017
21018
21019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021020{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21021echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021022if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21023 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21024
21025else
21026 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21027
21028fi
21029
Gordon Henriksenf0915682007-10-02 16:42:22 +000021030
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021031if test "$llvm_cv_link_use_r" = "yes" ; then
21032 RPATH="-Wl,-R"
21033else
21034 RPATH="-Wl,-rpath"
21035fi
21036
21037
21038if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21039 RDYNAMIC="-Wl,-export-dynamic"
21040else
21041 RDYNAMIC=""
21042fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021043
21044
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021045
Eric Christophera1cba682010-08-08 02:44:25 +000021046ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021047
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021048
21049
21050
21051
21052
Douglas Gregor1555a232009-06-16 20:12:29 +000021053ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21054
21055ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21056
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021057ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21058
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021059ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21060
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021061ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021062
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021063
Reid Spencera773bd52006-08-04 18:18:08 +000021064ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021065
Reid Spencerea949cf2006-08-16 00:45:38 +000021066ac_config_files="$ac_config_files llvm.spec"
21067
21068
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021069ac_config_files="$ac_config_files docs/doxygen.cfg"
21070
21071if test -f ${srcdir}/tools/clang/README.txt; then
21072 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21073
21074fi
21075
Reid Spencera773bd52006-08-04 18:18:08 +000021076ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021077
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021078ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021079
Reid Spencera773bd52006-08-04 18:18:08 +000021080ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021081
Reid Spencera773bd52006-08-04 18:18:08 +000021082ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021083
21084
Reid Spencera773bd52006-08-04 18:18:08 +000021085ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021086
21087
Reid Spencera773bd52006-08-04 18:18:08 +000021088ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021089
21090
Reid Spencera773bd52006-08-04 18:18:08 +000021091ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021092
21093
Reid Spencer8b2e1412006-11-17 03:32:33 +000021094ac_config_commands="$ac_config_commands runtime/Makefile"
21095
21096
Reid Spencera773bd52006-08-04 18:18:08 +000021097ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021098
21099
Reid Spencera773bd52006-08-04 18:18:08 +000021100ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021101
21102
Bill Wendlingf24eb392009-01-04 23:12:30 +000021103ac_config_commands="$ac_config_commands unittests/Makefile"
21104
21105
Reid Spencera773bd52006-08-04 18:18:08 +000021106ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021107
21108
Reid Spencera773bd52006-08-04 18:18:08 +000021109ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021110
21111
Reid Spencera773bd52006-08-04 18:18:08 +000021112ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021113
21114
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021115ac_config_commands="$ac_config_commands bindings/Makefile"
21116
21117
21118ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21119
21120
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021121
John Criswell7a73b802003-06-30 21:59:07 +000021122cat >confcache <<\_ACEOF
21123# This file is a shell script that caches the results of configure
21124# tests run on this system so they can be shared between configure
21125# scripts and configure runs, see configure's option --config-cache.
21126# It is not useful on other systems. If it contains results you don't
21127# want to keep, you may remove or edit it.
21128#
21129# config.status only pays attention to the cache file if you give it
21130# the --recheck option to rerun configure.
21131#
John Criswell0c38eaf2003-09-10 15:17:25 +000021132# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021133# loading this file, other *unset* `ac_cv_foo' will be assigned the
21134# following values.
21135
21136_ACEOF
21137
21138# The following way of writing the cache mishandles newlines in values,
21139# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021140# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021141# Ultrix sh set writes to stderr and can't be redirected directly,
21142# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021143(
21144 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21145 eval ac_val=\$$ac_var
21146 case $ac_val in #(
21147 *${as_nl}*)
21148 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021149 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21150echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021151 esac
21152 case $ac_var in #(
21153 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021154 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021155 esac ;;
21156 esac
21157 done
21158
John Criswell7a73b802003-06-30 21:59:07 +000021159 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021160 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21161 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021162 # `set' does not quote correctly, so add quotes (double-quote
21163 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021164 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021165 "s/'/'\\\\''/g;
21166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021167 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021168 *)
21169 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021171 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021172 esac |
21173 sort
21174) |
John Criswell7a73b802003-06-30 21:59:07 +000021175 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021176 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021177 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021178 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21180 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021181 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21182 :end' >>confcache
21183if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21184 if test -w "$cache_file"; then
21185 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021186 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21187echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021188 cat confcache >$cache_file
21189 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021190 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21191echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021192 fi
21193fi
21194rm -f confcache
21195
21196test "x$prefix" = xNONE && prefix=$ac_default_prefix
21197# Let make expand exec_prefix.
21198test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21199
John Criswell7a73b802003-06-30 21:59:07 +000021200DEFS=-DHAVE_CONFIG_H
21201
John Criswell0c38eaf2003-09-10 15:17:25 +000021202ac_libobjs=
21203ac_ltlibobjs=
21204for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21205 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021206 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021207 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021208 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21209 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021210 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21211 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021212done
21213LIBOBJS=$ac_libobjs
21214
21215LTLIBOBJS=$ac_ltlibobjs
21216
21217
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021218if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021219 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21220Usually this means the macro was only invoked conditionally." >&5
21221echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21222Usually this means the macro was only invoked conditionally." >&2;}
21223 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021224fi
21225if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021226 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21227Usually this means the macro was only invoked conditionally." >&5
21228echo "$as_me: error: conditional \"CONVENIENCE_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
John Criswell7a73b802003-06-30 21:59:07 +000021232
21233: ${CONFIG_STATUS=./config.status}
21234ac_clean_files_save=$ac_clean_files
21235ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021236{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21237echo "$as_me: creating $CONFIG_STATUS" >&6;}
21238cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021239#! $SHELL
21240# Generated by $as_me.
21241# Run this file to recreate the current configuration.
21242# Compiler output produced by configure, useful for debugging
21243# configure, is in config.log if it exists.
21244
21245debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021246ac_cs_recheck=false
21247ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021248SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021249_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251cat >>$CONFIG_STATUS <<\_ACEOF
21252## --------------------- ##
21253## M4sh Initialization. ##
21254## --------------------- ##
21255
21256# Be Bourne compatible
21257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021258 emulate sh
21259 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021261 # is contrary to our usage. Disable this feature.
21262 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021263 setopt NO_GLOB_SUBST
21264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267BIN_SH=xpg4; export BIN_SH # for Tru64
21268DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021269
John Criswell7a73b802003-06-30 21:59:07 +000021270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021271# PATH needs CR
21272# Avoid depending upon Character Ranges.
21273as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21274as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21275as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21276as_cr_digits='0123456789'
21277as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021278
21279# The user is always right.
21280if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021281 echo "#! /bin/sh" >conf$$.sh
21282 echo "exit 0" >>conf$$.sh
21283 chmod +x conf$$.sh
21284 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21285 PATH_SEPARATOR=';'
21286 else
21287 PATH_SEPARATOR=:
21288 fi
21289 rm -f conf$$.sh
21290fi
21291
21292# Support unset when possible.
21293if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21294 as_unset=unset
21295else
21296 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021297fi
John Criswell7a73b802003-06-30 21:59:07 +000021298
Reid Spencera773bd52006-08-04 18:18:08 +000021299
21300# IFS
21301# We need space, tab and new line, in precisely that order. Quoting is
21302# there to prevent editors from complaining about space-tab.
21303# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21304# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021305as_nl='
21306'
Reid Spencera773bd52006-08-04 18:18:08 +000021307IFS=" "" $as_nl"
21308
21309# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021310case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021311 *[\\/]* ) as_myself=$0 ;;
21312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021313for as_dir in $PATH
21314do
21315 IFS=$as_save_IFS
21316 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21318done
Reid Spencera773bd52006-08-04 18:18:08 +000021319IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021320
Reid Spencera773bd52006-08-04 18:18:08 +000021321 ;;
21322esac
21323# We did not find ourselves, most probably we were run as `sh COMMAND'
21324# in which case we are not to be found in the path.
21325if test "x$as_myself" = x; then
21326 as_myself=$0
21327fi
21328if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021329 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21330 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021331fi
21332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021333# Work around bugs in pre-3.0 UWIN ksh.
21334for as_var in ENV MAIL MAILPATH
21335do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021336done
21337PS1='$ '
21338PS2='> '
21339PS4='+ '
21340
21341# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021342for as_var in \
21343 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21344 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21345 LC_TELEPHONE LC_TIME
21346do
21347 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21348 eval $as_var=C; export $as_var
21349 else
21350 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021351 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021352done
Torok Edwin871384f2010-01-26 08:50:50 +000021353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021354# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021355if expr a : '\(a\)' >/dev/null 2>&1 &&
21356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21357 as_expr=expr
21358else
21359 as_expr=false
21360fi
21361
21362if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21363 as_basename=basename
21364else
21365 as_basename=false
21366fi
21367
21368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021369# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021370as_me=`$as_basename -- "$0" ||
21371$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21372 X"$0" : 'X\(//\)$' \| \
21373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021374echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021375 sed '/^.*\/\([^/][^/]*\)\/*$/{
21376 s//\1/
21377 q
21378 }
21379 /^X\/\(\/\/\)$/{
21380 s//\1/
21381 q
21382 }
21383 /^X\/\(\/\).*/{
21384 s//\1/
21385 q
21386 }
21387 s/.*/./; q'`
21388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021389# CDPATH.
21390$as_unset CDPATH
21391
21392
21393
21394 as_lineno_1=$LINENO
21395 as_lineno_2=$LINENO
21396 test "x$as_lineno_1" != "x$as_lineno_2" &&
21397 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21398
21399 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21400 # uniformly replaced by the line number. The first 'sed' inserts a
21401 # line-number line after each line using $LINENO; the second 'sed'
21402 # does the real work. The second script uses 'N' to pair each
21403 # line-number line with the line containing $LINENO, and appends
21404 # trailing '-' during substitution so that $LINENO is not a special
21405 # case at line end.
21406 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21407 # scripts with optimization help from Paolo Bonzini. Blame Lee
21408 # E. McMahon (1931-1989) for sed's syntax. :-)
21409 sed -n '
21410 p
21411 /[$]LINENO/=
21412 ' <$as_myself |
21413 sed '
21414 s/[$]LINENO.*/&-/
21415 t lineno
21416 b
21417 :lineno
21418 N
21419 :loop
21420 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21421 t loop
21422 s/-\n.*//
21423 ' >$as_me.lineno &&
21424 chmod +x "$as_me.lineno" ||
21425 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21426 { (exit 1); exit 1; }; }
21427
21428 # Don't try to exec as it changes $[0], causing all sort of problems
21429 # (the dirname of $[0] is not the place where we might find the
21430 # original and so on. Autoconf is especially sensitive to this).
21431 . "./$as_me.lineno"
21432 # Exit status is that of the last command.
21433 exit
21434}
21435
21436
21437if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21438 as_dirname=dirname
21439else
21440 as_dirname=false
21441fi
Reid Spencera773bd52006-08-04 18:18:08 +000021442
21443ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021444case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021445-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021446 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021447 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021448 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021449 esac;;
21450*)
21451 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021452esac
21453
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021454if expr a : '\(a\)' >/dev/null 2>&1 &&
21455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21456 as_expr=expr
21457else
21458 as_expr=false
21459fi
21460
John Criswell7a73b802003-06-30 21:59:07 +000021461rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021462if test -d conf$$.dir; then
21463 rm -f conf$$.dir/conf$$.file
21464else
21465 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021466 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021468echo >conf$$.file
21469if ln -s conf$$.file conf$$ 2>/dev/null; then
21470 as_ln_s='ln -s'
21471 # ... but there are two gotchas:
21472 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21473 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21474 # In both cases, we have to default to `cp -p'.
21475 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021476 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021477elif ln conf$$.file conf$$ 2>/dev/null; then
21478 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021479else
21480 as_ln_s='cp -p'
21481fi
Reid Spencera773bd52006-08-04 18:18:08 +000021482rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21483rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021484
John Criswell0c38eaf2003-09-10 15:17:25 +000021485if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021486 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021487else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021488 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021489 as_mkdir_p=false
21490fi
21491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021492# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21493# systems may use methods other than mode bits to determine executability.
21494cat >conf$$.file <<_ASEOF
21495#! /bin/sh
21496exit 0
21497_ASEOF
21498chmod +x conf$$.file
21499if test -x conf$$.file >/dev/null 2>&1; then
21500 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021502 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021504rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021505
21506# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021507as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021508
21509# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021510as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021511
21512
John Criswell7a73b802003-06-30 21:59:07 +000021513exec 6>&1
21514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021515# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021516# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021517# values after options handling.
21518ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021519This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021520generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021521
21522 CONFIG_FILES = $CONFIG_FILES
21523 CONFIG_HEADERS = $CONFIG_HEADERS
21524 CONFIG_LINKS = $CONFIG_LINKS
21525 CONFIG_COMMANDS = $CONFIG_COMMANDS
21526 $ $0 $@
21527
Reid Spencera773bd52006-08-04 18:18:08 +000021528on `(hostname || uname -n) 2>/dev/null | sed 1q`
21529"
21530
John Criswell7a73b802003-06-30 21:59:07 +000021531_ACEOF
21532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021534# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021535config_files="$ac_config_files"
21536config_headers="$ac_config_headers"
21537config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021538
Reid Spencera773bd52006-08-04 18:18:08 +000021539_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021541cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021542ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021543\`$as_me' instantiates files from templates according to the
21544current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021546Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021547
21548 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549 -V, --version print version number, then exit
21550 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021551 -d, --debug don't remove temporary files
21552 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021553 --file=FILE[:TEMPLATE]
21554 instantiate the configuration file FILE
21555 --header=FILE[:TEMPLATE]
21556 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021557
21558Configuration files:
21559$config_files
21560
21561Configuration headers:
21562$config_headers
21563
John Criswellc764fbc2003-09-06 15:17:13 +000021564Configuration commands:
21565$config_commands
21566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021567Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021568
Reid Spencera773bd52006-08-04 18:18:08 +000021569_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021570cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021571ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021572llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573configured by $0, generated by GNU Autoconf 2.60,
21574 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021576Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021577This config.status script is free software; the Free Software Foundation
21578gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021579
21580ac_pwd='$ac_pwd'
21581srcdir='$srcdir'
21582INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021583_ACEOF
21584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021585cat >>$CONFIG_STATUS <<\_ACEOF
21586# If no file are specified by the user, then we need to provide default
21587# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021588ac_need_defaults=:
21589while test $# != 0
21590do
21591 case $1 in
21592 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021593 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21594 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021595 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021596 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021597 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021598 ac_option=$1
21599 ac_optarg=$2
21600 ac_shift=shift
21601 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021602 esac
21603
John Criswell0c38eaf2003-09-10 15:17:25 +000021604 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021605 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21607 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021608 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021609 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021610 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021611 debug=: ;;
21612 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021613 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021614 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021615 ac_need_defaults=false;;
21616 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021617 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021618 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021619 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021620 --he | --h)
21621 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021622 { echo "$as_me: error: ambiguous option: $1
21623Try \`$0 --help' for more information." >&2
21624 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021625 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021626 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21628 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21629 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021630
21631 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021632 -*) { echo "$as_me: error: unrecognized option: $1
21633Try \`$0 --help' for more information." >&2
21634 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021636 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021637 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021638
21639 esac
21640 shift
21641done
21642
John Criswell0c38eaf2003-09-10 15:17:25 +000021643ac_configure_extra_args=
21644
21645if $ac_cs_silent; then
21646 exec 6>/dev/null
21647 ac_configure_extra_args="$ac_configure_extra_args --silent"
21648fi
21649
21650_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021651cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021652if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021653 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21654 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021655 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021656 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021657fi
21658
John Criswell7a73b802003-06-30 21:59:07 +000021659_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021660cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021661exec 5>>config.log
21662{
21663 echo
21664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21665## Running $as_me. ##
21666_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021667 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021668} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021669
Reid Spencera773bd52006-08-04 18:18:08 +000021670_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021671cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021672#
Reid Spencera773bd52006-08-04 18:18:08 +000021673# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021674#
Reid Spencerc0682832005-02-24 19:05:19 +000021675llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021676
21677_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021679cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021680
21681# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021682for ac_config_target in $ac_config_targets
21683do
Reid Spencera773bd52006-08-04 18:18:08 +000021684 case $ac_config_target in
21685 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021686 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021687 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21688 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021689 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021690 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021691 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021692 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021693 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021694 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21695 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021696 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21697 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21698 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21699 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21700 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21701 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021702 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021703 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21704 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021705 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021706 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21707 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21708 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021709 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21710 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021712 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21713echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21714 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021715 esac
21716done
21717
Reid Spencera773bd52006-08-04 18:18:08 +000021718
John Criswell7a73b802003-06-30 21:59:07 +000021719# If the user did not use the arguments to specify the items to instantiate,
21720# then the envvar interface is used. Set only those that are not.
21721# We use the long form for the default assignment because of an extremely
21722# bizarre bug on SunOS 4.1.3.
21723if $ac_need_defaults; then
21724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021727fi
21728
John Criswell0c38eaf2003-09-10 15:17:25 +000021729# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021730# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021731# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021732# Hook for its removal unless debugging.
21733# Note that there is a small window in which the directory will not be cleaned:
21734# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021735$debug ||
21736{
Reid Spencera773bd52006-08-04 18:18:08 +000021737 tmp=
21738 trap 'exit_status=$?
21739 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21740' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021741 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021742}
John Criswell7a73b802003-06-30 21:59:07 +000021743# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021744
John Criswell7a73b802003-06-30 21:59:07 +000021745{
Reid Spencera773bd52006-08-04 18:18:08 +000021746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021747 test -n "$tmp" && test -d "$tmp"
21748} ||
21749{
Reid Spencera773bd52006-08-04 18:18:08 +000021750 tmp=./conf$$-$RANDOM
21751 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752} ||
21753{
21754 echo "$me: cannot create a temporary directory in ." >&2
21755 { (exit 1); exit 1; }
21756}
John Criswell7a73b802003-06-30 21:59:07 +000021757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758#
21759# Set up the sed scripts for CONFIG_FILES section.
21760#
21761
21762# No need to generate the scripts if there are no CONFIG_FILES.
21763# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021764if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021765
21766_ACEOF
21767
Reid Spencera773bd52006-08-04 18:18:08 +000021768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769
Reid Spencera773bd52006-08-04 18:18:08 +000021770ac_delim='%!_!# '
21771for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772 cat >conf$$subs.sed <<_ACEOF
21773SHELL!$SHELL$ac_delim
21774PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21775PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21776PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21777PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21778PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21779PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21780exec_prefix!$exec_prefix$ac_delim
21781prefix!$prefix$ac_delim
21782program_transform_name!$program_transform_name$ac_delim
21783bindir!$bindir$ac_delim
21784sbindir!$sbindir$ac_delim
21785libexecdir!$libexecdir$ac_delim
21786datarootdir!$datarootdir$ac_delim
21787datadir!$datadir$ac_delim
21788sysconfdir!$sysconfdir$ac_delim
21789sharedstatedir!$sharedstatedir$ac_delim
21790localstatedir!$localstatedir$ac_delim
21791includedir!$includedir$ac_delim
21792oldincludedir!$oldincludedir$ac_delim
21793docdir!$docdir$ac_delim
21794infodir!$infodir$ac_delim
21795htmldir!$htmldir$ac_delim
21796dvidir!$dvidir$ac_delim
21797pdfdir!$pdfdir$ac_delim
21798psdir!$psdir$ac_delim
21799libdir!$libdir$ac_delim
21800localedir!$localedir$ac_delim
21801mandir!$mandir$ac_delim
21802DEFS!$DEFS$ac_delim
21803ECHO_C!$ECHO_C$ac_delim
21804ECHO_N!$ECHO_N$ac_delim
21805ECHO_T!$ECHO_T$ac_delim
21806LIBS!$LIBS$ac_delim
21807build_alias!$build_alias$ac_delim
21808host_alias!$host_alias$ac_delim
21809target_alias!$target_alias$ac_delim
21810LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021811CC!$CC$ac_delim
21812CFLAGS!$CFLAGS$ac_delim
21813LDFLAGS!$LDFLAGS$ac_delim
21814CPPFLAGS!$CPPFLAGS$ac_delim
21815ac_ct_CC!$ac_ct_CC$ac_delim
21816EXEEXT!$EXEEXT$ac_delim
21817OBJEXT!$OBJEXT$ac_delim
21818CXX!$CXX$ac_delim
21819CXXFLAGS!$CXXFLAGS$ac_delim
21820ac_ct_CXX!$ac_ct_CXX$ac_delim
21821CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021822subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021823ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21824LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825build!$build$ac_delim
21826build_cpu!$build_cpu$ac_delim
21827build_vendor!$build_vendor$ac_delim
21828build_os!$build_os$ac_delim
21829host!$host$ac_delim
21830host_cpu!$host_cpu$ac_delim
21831host_vendor!$host_vendor$ac_delim
21832host_os!$host_os$ac_delim
21833target!$target$ac_delim
21834target_cpu!$target_cpu$ac_delim
21835target_vendor!$target_vendor$ac_delim
21836target_os!$target_os$ac_delim
21837OS!$OS$ac_delim
21838HOST_OS!$HOST_OS$ac_delim
21839TARGET_OS!$TARGET_OS$ac_delim
21840LINKALL!$LINKALL$ac_delim
21841NOLINKALL!$NOLINKALL$ac_delim
21842LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21843LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21844ARCH!$ARCH$ac_delim
21845ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021846GREP!$GREP$ac_delim
21847EGREP!$EGREP$ac_delim
21848LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21849BUILD_CC!$BUILD_CC$ac_delim
21850BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21851BUILD_CXX!$BUILD_CXX$ac_delim
21852CVSBUILD!$CVSBUILD$ac_delim
21853ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21854ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21855DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21856ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21857EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21858DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21859DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21860JIT!$JIT$ac_delim
21861TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021862ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021863ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21864ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021865ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021866ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021867ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021868ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021869ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021873 break
21874 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021878 else
21879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021880 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021881done
21882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021883ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884if test -n "$ac_eof"; then
21885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886 ac_eof=`expr $ac_eof + 1`
21887fi
21888
21889cat >>$CONFIG_STATUS <<_ACEOF
21890cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21891/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021892_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893sed '
21894s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895s/^/s,@/; s/!/@,|#_!!_#|/
21896:n
21897t n
21898s/'"$ac_delim"'$/,g/; t
21899s/$/\\/; p
21900N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901' >>$CONFIG_STATUS <conf$$subs.sed
21902rm -f conf$$subs.sed
21903cat >>$CONFIG_STATUS <<_ACEOF
21904CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021905_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906
21907
21908ac_delim='%!_!# '
21909for ac_last_try in false false false false false :; do
21910 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000021911TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21912LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21913LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021914LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021915LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021916ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021917OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021918EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021919EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021920CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021921BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922NM!$NM$ac_delim
21923ifGNUmake!$ifGNUmake$ac_delim
21924LN_S!$LN_S$ac_delim
21925CMP!$CMP$ac_delim
21926CP!$CP$ac_delim
21927DATE!$DATE$ac_delim
21928FIND!$FIND$ac_delim
21929MKDIR!$MKDIR$ac_delim
21930MV!$MV$ac_delim
21931RANLIB!$RANLIB$ac_delim
21932AR!$AR$ac_delim
21933RM!$RM$ac_delim
21934SED!$SED$ac_delim
21935TAR!$TAR$ac_delim
21936BINPWD!$BINPWD$ac_delim
21937GRAPHVIZ!$GRAPHVIZ$ac_delim
21938DOT!$DOT$ac_delim
21939FDP!$FDP$ac_delim
21940NEATO!$NEATO$ac_delim
21941TWOPI!$TWOPI$ac_delim
21942CIRCO!$CIRCO$ac_delim
21943GV!$GV$ac_delim
21944DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021945XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021946PERL!$PERL$ac_delim
21947HAVE_PERL!$HAVE_PERL$ac_delim
21948INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21949INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21950INSTALL_DATA!$INSTALL_DATA$ac_delim
21951BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021952CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021953DOXYGEN!$DOXYGEN$ac_delim
21954GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021955GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956POD2HTML!$POD2HTML$ac_delim
21957POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021958PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021959RUNTEST!$RUNTEST$ac_delim
21960TCLSH!$TCLSH$ac_delim
21961ZIP!$ZIP$ac_delim
21962OCAMLC!$OCAMLC$ac_delim
21963OCAMLOPT!$OCAMLOPT$ac_delim
21964OCAMLDEP!$OCAMLDEP$ac_delim
21965OCAMLDOC!$OCAMLDOC$ac_delim
21966GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021967HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021968INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21969INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21970CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21971CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21972LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021973NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21974NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21975USE_UDIS86!$USE_UDIS86$ac_delim
21976USE_OPROFILE!$USE_OPROFILE$ac_delim
21977HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21978HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21979MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021981SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021982LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21983LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21984LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21985LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21986LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21987LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21988LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21989LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21990LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21991LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21992BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21993ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000021994OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21995ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21996RPATH!$RPATH$ac_delim
21997RDYNAMIC!$RDYNAMIC$ac_delim
21998LIBOBJS!$LIBOBJS$ac_delim
21999LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022000_ACEOF
22001
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022002 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022003 break
22004 elif $ac_last_try; then
22005 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22006echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22007 { (exit 1); exit 1; }; }
22008 else
22009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22010 fi
22011done
22012
22013ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22014if test -n "$ac_eof"; then
22015 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22016 ac_eof=`expr $ac_eof + 1`
22017fi
22018
22019cat >>$CONFIG_STATUS <<_ACEOF
22020cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022021/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22022_ACEOF
22023sed '
22024s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22025s/^/s,@/; s/!/@,|#_!!_#|/
22026:n
22027t n
22028s/'"$ac_delim"'$/,g/; t
22029s/$/\\/; p
22030N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22031' >>$CONFIG_STATUS <conf$$subs.sed
22032rm -f conf$$subs.sed
22033cat >>$CONFIG_STATUS <<_ACEOF
22034:end
22035s/|#_!!_#|//g
22036CEOF$ac_eof
22037_ACEOF
22038
22039
Reid Spencera773bd52006-08-04 18:18:08 +000022040# VPATH may cause trouble with some makes, so we remove $(srcdir),
22041# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22042# trailing colons and then remove the whole line if VPATH becomes empty
22043# (actually we leave an empty line to preserve line numbers).
22044if test "x$srcdir" = x.; then
22045 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22046s/:*\$(srcdir):*/:/
22047s/:*\${srcdir}:*/:/
22048s/:*@srcdir@:*/:/
22049s/^\([^=]*=[ ]*\):*/\1/
22050s/:*$//
22051s/^[^=]*=[ ]*$//
22052}'
22053fi
22054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022055cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022056fi # test -n "$CONFIG_FILES"
22057
Reid Spencera773bd52006-08-04 18:18:08 +000022058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022059for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022060do
22061 case $ac_tag in
22062 :[FHLC]) ac_mode=$ac_tag; continue;;
22063 esac
22064 case $ac_mode$ac_tag in
22065 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22067echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22068 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022069 :[FH]-) ac_tag=-:-;;
22070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22071 esac
22072 ac_save_IFS=$IFS
22073 IFS=:
22074 set x $ac_tag
22075 IFS=$ac_save_IFS
22076 shift
22077 ac_file=$1
22078 shift
22079
22080 case $ac_mode in
22081 :L) ac_source=$1;;
22082 :[FH])
22083 ac_file_inputs=
22084 for ac_f
22085 do
22086 case $ac_f in
22087 -) ac_f="$tmp/stdin";;
22088 *) # Look for the file first in the build tree, then in the source tree
22089 # (if the path is not absolute). The absolute path cannot be DOS-style,
22090 # because $ac_f cannot contain `:'.
22091 test -f "$ac_f" ||
22092 case $ac_f in
22093 [\\/$]*) false;;
22094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22095 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022096 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22097echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22098 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022099 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022100 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022101 done
22102
22103 # Let's still pretend it is `configure' which instantiates (i.e., don't
22104 # use $as_me), people would be surprised to read:
22105 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022106 configure_input="Generated from "`IFS=:
22107 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022108 if test x"$ac_file" != x-; then
22109 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022110 { echo "$as_me:$LINENO: creating $ac_file" >&5
22111echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022112 fi
22113
22114 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022115 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022116 esac
22117 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022118 esac
22119
Reid Spencera773bd52006-08-04 18:18:08 +000022120 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022121$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022122 X"$ac_file" : 'X\(//\)[^/]' \| \
22123 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022124 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022125echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22127 s//\1/
22128 q
22129 }
22130 /^X\(\/\/\)[^/].*/{
22131 s//\1/
22132 q
22133 }
22134 /^X\(\/\/\)$/{
22135 s//\1/
22136 q
22137 }
22138 /^X\(\/\).*/{
22139 s//\1/
22140 q
22141 }
22142 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022143 { as_dir="$ac_dir"
22144 case $as_dir in #(
22145 -*) as_dir=./$as_dir;;
22146 esac
22147 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22148 as_dirs=
22149 while :; do
22150 case $as_dir in #(
22151 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22152 *) as_qdir=$as_dir;;
22153 esac
22154 as_dirs="'$as_qdir' $as_dirs"
22155 as_dir=`$as_dirname -- "$as_dir" ||
22156$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22157 X"$as_dir" : 'X\(//\)[^/]' \| \
22158 X"$as_dir" : 'X\(//\)$' \| \
22159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22160echo X"$as_dir" |
22161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22162 s//\1/
22163 q
22164 }
22165 /^X\(\/\/\)[^/].*/{
22166 s//\1/
22167 q
22168 }
22169 /^X\(\/\/\)$/{
22170 s//\1/
22171 q
22172 }
22173 /^X\(\/\).*/{
22174 s//\1/
22175 q
22176 }
22177 s/.*/./; q'`
22178 test -d "$as_dir" && break
22179 done
22180 test -z "$as_dirs" || eval "mkdir $as_dirs"
22181 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22182echo "$as_me: error: cannot create directory $as_dir" >&2;}
22183 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022184 ac_builddir=.
22185
Reid Spencera773bd52006-08-04 18:18:08 +000022186case "$ac_dir" in
22187.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22188*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022190 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022191 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022192 case $ac_top_builddir_sub in
22193 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22194 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22195 esac ;;
22196esac
22197ac_abs_top_builddir=$ac_pwd
22198ac_abs_builddir=$ac_pwd$ac_dir_suffix
22199# for backward compatibility:
22200ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022201
22202case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022203 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022204 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022205 ac_top_srcdir=$ac_top_builddir_sub
22206 ac_abs_top_srcdir=$ac_pwd ;;
22207 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022208 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022209 ac_top_srcdir=$srcdir
22210 ac_abs_top_srcdir=$srcdir ;;
22211 *) # Relative name.
22212 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22213 ac_top_srcdir=$ac_top_build_prefix$srcdir
22214 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022215esac
Reid Spencera773bd52006-08-04 18:18:08 +000022216ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022217
John Criswell7a73b802003-06-30 21:59:07 +000022218
Reid Spencera773bd52006-08-04 18:18:08 +000022219 case $ac_mode in
22220 :F)
22221 #
22222 # CONFIG_FILE
22223 #
John Criswell7a73b802003-06-30 21:59:07 +000022224
22225 case $INSTALL in
22226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022227 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022228 esac
John Criswell7a73b802003-06-30 21:59:07 +000022229_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022231cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022232# If the template does not know about datarootdir, expand it.
22233# FIXME: This hack should be removed a few years after 2.60.
22234ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022235
22236case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022237 p
22238 q
22239}
22240/@datadir@/p
22241/@docdir@/p
22242/@infodir@/p
22243/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022244/@mandir@/p
22245' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022246*datarootdir*) ac_datarootdir_seen=yes;;
22247*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022248 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22249echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022250_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022251cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022252 ac_datarootdir_hack='
22253 s&@datadir@&$datadir&g
22254 s&@docdir@&$docdir&g
22255 s&@infodir@&$infodir&g
22256 s&@localedir@&$localedir&g
22257 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022258 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022259esac
22260_ACEOF
22261
22262# Neutralize VPATH when `$srcdir' = `.'.
22263# Shell code in configure.ac might set extrasub.
22264# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022265cat >>$CONFIG_STATUS <<_ACEOF
22266 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022267$extrasub
22268_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022269cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022270:t
22271/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022272s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022273s&@top_builddir@&$ac_top_builddir_sub&;t t
22274s&@srcdir@&$ac_srcdir&;t t
22275s&@abs_srcdir@&$ac_abs_srcdir&;t t
22276s&@top_srcdir@&$ac_top_srcdir&;t t
22277s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22278s&@builddir@&$ac_builddir&;t t
22279s&@abs_builddir@&$ac_abs_builddir&;t t
22280s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22281s&@INSTALL@&$ac_INSTALL&;t t
22282$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022283" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022284
Reid Spencera773bd52006-08-04 18:18:08 +000022285test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22286 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022288 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022289which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022291which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022292
Reid Spencera773bd52006-08-04 18:18:08 +000022293 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022294 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022295 -) cat "$tmp/out"; rm -f "$tmp/out";;
22296 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22297 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022298 ;;
22299 :H)
22300 #
22301 # CONFIG_HEADER
22302 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022303_ACEOF
22304
22305# Transform confdefs.h into a sed script `conftest.defines', that
22306# substitutes the proper values into config.h.in to produce config.h.
22307rm -f conftest.defines conftest.tail
22308# First, append a space to every undef/define line, to ease matching.
22309echo 's/$/ /' >conftest.defines
22310# Then, protect against being on the right side of a sed subst, or in
22311# an unquoted here document, in config.status. If some macros were
22312# called several times there might be several #defines for the same
22313# symbol, which is useless. But do not sort them, since the last
22314# AC_DEFINE must be honored.
22315ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22316# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22317# NAME is the cpp macro being defined, VALUE is the value it is being given.
22318# PARAMS is the parameter list in the macro definition--in most cases, it's
22319# just an empty string.
22320ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22321ac_dB='\\)[ (].*,\\1define\\2'
22322ac_dC=' '
22323ac_dD=' ,'
22324
22325uniq confdefs.h |
22326 sed -n '
22327 t rset
22328 :rset
22329 s/^[ ]*#[ ]*define[ ][ ]*//
22330 t ok
22331 d
22332 :ok
22333 s/[\\&,]/\\&/g
22334 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22335 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22336 ' >>conftest.defines
22337
22338# Remove the space that was appended to ease matching.
22339# Then replace #undef with comments. This is necessary, for
22340# example, in the case of _POSIX_SOURCE, which is predefined and required
22341# on some systems where configure will not decide to define it.
22342# (The regexp can be short, since the line contains either #define or #undef.)
22343echo 's/ $//
22344s,^[ #]*u.*,/* & */,' >>conftest.defines
22345
22346# Break up conftest.defines:
22347ac_max_sed_lines=50
22348
22349# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22350# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22351# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22352# et cetera.
22353ac_in='$ac_file_inputs'
22354ac_out='"$tmp/out1"'
22355ac_nxt='"$tmp/out2"'
22356
22357while :
22358do
22359 # Write a here document:
22360 cat >>$CONFIG_STATUS <<_ACEOF
22361 # First, check the format of the line:
22362 cat >"\$tmp/defines.sed" <<\\CEOF
22363/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22364/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22365b
22366:def
22367_ACEOF
22368 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22369 echo 'CEOF
22370 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22371 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22372 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22373 grep . conftest.tail >/dev/null || break
22374 rm -f conftest.defines
22375 mv conftest.tail conftest.defines
22376done
22377rm -f conftest.defines conftest.tail
22378
22379echo "ac_result=$ac_in" >>$CONFIG_STATUS
22380cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022381 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022382 echo "/* $configure_input */" >"$tmp/config.h"
22383 cat "$ac_result" >>"$tmp/config.h"
22384 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22385 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22386echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022387 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022388 rm -f $ac_file
22389 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022390 fi
22391 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022392 echo "/* $configure_input */"
22393 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022394 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022395 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022396 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022398 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22399echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022400 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022401 esac
John Criswell7a73b802003-06-30 21:59:07 +000022402
Reid Spencera773bd52006-08-04 18:18:08 +000022403
22404 case $ac_file$ac_mode in
22405 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022406 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022407 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022408 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022409 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022410 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022411 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022412 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022413 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022414 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022415 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022416 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022417 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022418 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022419 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022420 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022421 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022422 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022423 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022425 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022427 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022429 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022430 ${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 +000022431
22432 esac
22433done # for ac_tag
22434
John Criswell7a73b802003-06-30 21:59:07 +000022435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022436{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022438chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022439ac_clean_files=$ac_clean_files_save
22440
22441
22442# configure is writing to config.log, and then calls config.status.
22443# config.status does its own redirection, appending to config.log.
22444# Unfortunately, on DOS this fails, as config.log is still kept open
22445# by configure, so config.status won't be able to write to it; its
22446# output is simply discarded. So we exec the FD to /dev/null,
22447# effectively closing config.log, so it can be properly (re)opened and
22448# appended to by config.status. When coming back to configure, we
22449# need to make the FD available again.
22450if test "$no_create" != yes; then
22451 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022452 ac_config_status_args=
22453 test "$silent" = yes &&
22454 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022455 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022457 exec 5>>config.log
22458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22459 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022460 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022461fi
22462
John Criswell12399a12003-09-30 15:55:44 +000022463#
22464# CONFIG_SUBDIRS section.
22465#
22466if test "$no_recursion" != yes; then
22467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022468 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022469 ac_sub_configure_args=
22470 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022471 eval "set x $ac_configure_args"
22472 shift
22473 for ac_arg
22474 do
John Criswell12399a12003-09-30 15:55:44 +000022475 if test -n "$ac_prev"; then
22476 ac_prev=
22477 continue
22478 fi
22479 case $ac_arg in
22480 -cache-file | --cache-file | --cache-fil | --cache-fi \
22481 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22482 ac_prev=cache_file ;;
22483 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22484 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22485 | --c=*)
22486 ;;
22487 --config-cache | -C)
22488 ;;
22489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22490 ac_prev=srcdir ;;
22491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22492 ;;
22493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22494 ac_prev=prefix ;;
22495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22496 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022497 *)
22498 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022499 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022500 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022501 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022502 esac
22503 done
22504
22505 # Always prepend --prefix to ensure using the same prefix
22506 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022507 ac_arg="--prefix=$prefix"
22508 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022509 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022510 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022511 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022512
22513 ac_popdir=`pwd`
22514 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22515
22516 # Do not complain, so a configure script can configure whichever
22517 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022518 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022519
Reid Spencera773bd52006-08-04 18:18:08 +000022520 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022521 echo "$as_me:$LINENO: $ac_msg" >&5
22522 echo "$ac_msg" >&6
22523 { as_dir="$ac_dir"
22524 case $as_dir in #(
22525 -*) as_dir=./$as_dir;;
22526 esac
22527 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22528 as_dirs=
22529 while :; do
22530 case $as_dir in #(
22531 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22532 *) as_qdir=$as_dir;;
22533 esac
22534 as_dirs="'$as_qdir' $as_dirs"
22535 as_dir=`$as_dirname -- "$as_dir" ||
22536$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22537 X"$as_dir" : 'X\(//\)[^/]' \| \
22538 X"$as_dir" : 'X\(//\)$' \| \
22539 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22540echo X"$as_dir" |
22541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22542 s//\1/
22543 q
22544 }
22545 /^X\(\/\/\)[^/].*/{
22546 s//\1/
22547 q
22548 }
22549 /^X\(\/\/\)$/{
22550 s//\1/
22551 q
22552 }
22553 /^X\(\/\).*/{
22554 s//\1/
22555 q
22556 }
22557 s/.*/./; q'`
22558 test -d "$as_dir" && break
22559 done
22560 test -z "$as_dirs" || eval "mkdir $as_dirs"
22561 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22562echo "$as_me: error: cannot create directory $as_dir" >&2;}
22563 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022564 ac_builddir=.
22565
Reid Spencera773bd52006-08-04 18:18:08 +000022566case "$ac_dir" in
22567.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22568*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022570 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022571 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022572 case $ac_top_builddir_sub in
22573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22575 esac ;;
22576esac
22577ac_abs_top_builddir=$ac_pwd
22578ac_abs_builddir=$ac_pwd$ac_dir_suffix
22579# for backward compatibility:
22580ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022581
22582case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022583 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022584 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022585 ac_top_srcdir=$ac_top_builddir_sub
22586 ac_abs_top_srcdir=$ac_pwd ;;
22587 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022588 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022589 ac_top_srcdir=$srcdir
22590 ac_abs_top_srcdir=$srcdir ;;
22591 *) # Relative name.
22592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22593 ac_top_srcdir=$ac_top_build_prefix$srcdir
22594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022595esac
Reid Spencera773bd52006-08-04 18:18:08 +000022596ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022597
22598
Reid Spencera773bd52006-08-04 18:18:08 +000022599 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022600
22601 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022602 if test -f "$ac_srcdir/configure.gnu"; then
22603 ac_sub_configure=$ac_srcdir/configure.gnu
22604 elif test -f "$ac_srcdir/configure"; then
22605 ac_sub_configure=$ac_srcdir/configure
22606 elif test -f "$ac_srcdir/configure.in"; then
22607 # This should be Cygnus configure.
22608 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022609 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022610 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22611echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022612 ac_sub_configure=
22613 fi
22614
22615 # The recursion is here.
22616 if test -n "$ac_sub_configure"; then
22617 # Make the cache file name correct relative to the subdirectory.
22618 case $cache_file in
22619 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022620 *) # Relative name.
22621 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022622 esac
22623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022624 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22625echo "$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 +000022626 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022627 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22628 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022629 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22630echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22631 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022632 fi
22633
Reid Spencera773bd52006-08-04 18:18:08 +000022634 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022635 done
22636fi
22637