blob: cd3be75085e491abfd4430db71553ec50e3df618 [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 Gohman29074cc2011-10-24 23:48:32 +00001419 xcore, msp430, blackfin, 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 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3884 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3885 ptx-*) llvm_cv_target_arch="PTX" ;;
3886 *) llvm_cv_target_arch="Unknown" ;;
3887esac
3888fi
3889{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3890echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3891
3892if test "$llvm_cv_target_arch" = "Unknown" ; then
3893 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3894echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3895fi
3896
3897# Determine the LLVM native architecture for the target
3898case "$llvm_cv_target_arch" in
3899 x86) LLVM_NATIVE_ARCH="X86" ;;
3900 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3901 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3902esac
3903
3904ARCH=$llvm_cv_target_arch
3905
3906
3907
3908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003909{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3910echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3911if test "${ac_cv_path_GREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003913else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003914 # Extract the first word of "grep ggrep" to use in msg output
3915if test -z "$GREP"; then
3916set dummy grep ggrep; ac_prog_name=$2
3917if test "${ac_cv_path_GREP+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919else
Reid Spencera773bd52006-08-04 18:18:08 +00003920 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003921# Loop through the user's path and test for each of PROGNAME-LIST
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003923for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003927 for ac_prog in grep ggrep; do
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3930 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3931 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003932 # Check for GNU $ac_path_GREP
3933case `"$ac_path_GREP" --version 2>&1` in
3934*GNU*)
3935 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3936*)
3937 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003938 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003939 while :
3940 do
3941 cat "conftest.in" "conftest.in" >"conftest.tmp"
3942 mv "conftest.tmp" "conftest.in"
3943 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003944 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003945 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3946 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003948 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3949 # Best one so far, save it but keep looking for a better one
3950 ac_cv_path_GREP="$ac_path_GREP"
3951 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003952 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003953 # 10*(2^10) chars as input seems more than enough
3954 test $ac_count -gt 10 && break
3955 done
3956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3957esac
3958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959
3960 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003961 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962done
3963
3964done
Reid Spencera773bd52006-08-04 18:18:08 +00003965IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003966
3967
3968fi
3969
3970GREP="$ac_cv_path_GREP"
3971if test -z "$GREP"; then
3972 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3973echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3974 { (exit 1); exit 1; }; }
3975fi
3976
Reid Spencera773bd52006-08-04 18:18:08 +00003977else
3978 ac_cv_path_GREP=$GREP
3979fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003981
Reid Spencera773bd52006-08-04 18:18:08 +00003982fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003983{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3984echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003985 GREP="$ac_cv_path_GREP"
3986
3987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988{ echo "$as_me:$LINENO: checking for egrep" >&5
3989echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3990if test "${ac_cv_path_EGREP+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003992else
3993 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3994 then ac_cv_path_EGREP="$GREP -E"
3995 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003996 # Extract the first word of "egrep" to use in msg output
3997if test -z "$EGREP"; then
3998set dummy egrep; ac_prog_name=$2
3999if test "${ac_cv_path_EGREP+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
Reid Spencera773bd52006-08-04 18:18:08 +00004002 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004003# Loop through the user's path and test for each of PROGNAME-LIST
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004005for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004009 for ac_prog in egrep; do
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4012 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4013 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004014 # Check for GNU $ac_path_EGREP
4015case `"$ac_path_EGREP" --version 2>&1` in
4016*GNU*)
4017 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4018*)
4019 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004020 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004021 while :
4022 do
4023 cat "conftest.in" "conftest.in" >"conftest.tmp"
4024 mv "conftest.tmp" "conftest.in"
4025 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004026 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004027 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004030 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4031 # Best one so far, save it but keep looking for a better one
4032 ac_cv_path_EGREP="$ac_path_EGREP"
4033 ac_path_EGREP_max=$ac_count
4034 fi
4035 # 10*(2^10) chars as input seems more than enough
4036 test $ac_count -gt 10 && break
4037 done
4038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4039esac
4040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041
4042 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004043 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004044done
4045
4046done
Reid Spencera773bd52006-08-04 18:18:08 +00004047IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004048
4049
4050fi
4051
4052EGREP="$ac_cv_path_EGREP"
4053if test -z "$EGREP"; then
4054 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4055echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4056 { (exit 1); exit 1; }; }
4057fi
4058
Reid Spencera773bd52006-08-04 18:18:08 +00004059else
4060 ac_cv_path_EGREP=$EGREP
4061fi
4062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004063
Reid Spencera773bd52006-08-04 18:18:08 +00004064 fi
4065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004066{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4067echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004068 EGREP="$ac_cv_path_EGREP"
4069
4070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004071{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4072echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4073if test "${ac_cv_header_stdc+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004076 cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004081/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004082#include <stdlib.h>
4083#include <stdarg.h>
4084#include <string.h>
4085#include <float.h>
4086
John Criswell0c38eaf2003-09-10 15:17:25 +00004087int
4088main ()
4089{
4090
4091 ;
4092 return 0;
4093}
John Criswell7a73b802003-06-30 21:59:07 +00004094_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004095rm -f conftest.$ac_objext
4096if { (ac_try="$ac_compile"
4097case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4103 ac_status=$?
4104 grep -v '^ *+' conftest.er1 >conftest.err
4105 rm -f conftest.er1
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4110 { (case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_try") 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123esac
4124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_try") 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004129 ac_cv_header_stdc=yes
4130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004131 echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004136
Reid Spencera773bd52006-08-04 18:18:08 +00004137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004138
4139if test $ac_cv_header_stdc = yes; then
4140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004141 cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004146/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004147#include <string.h>
4148
4149_ACEOF
4150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004151 $EGREP "memchr" >/dev/null 2>&1; then
4152 :
John Criswell7a73b802003-06-30 21:59:07 +00004153else
4154 ac_cv_header_stdc=no
4155fi
4156rm -f conftest*
4157
4158fi
4159
4160if test $ac_cv_header_stdc = yes; then
4161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004162 cat >conftest.$ac_ext <<_ACEOF
4163/* confdefs.h. */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004168#include <stdlib.h>
4169
4170_ACEOF
4171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004172 $EGREP "free" >/dev/null 2>&1; then
4173 :
John Criswell7a73b802003-06-30 21:59:07 +00004174else
4175 ac_cv_header_stdc=no
4176fi
4177rm -f conftest*
4178
4179fi
4180
4181if test $ac_cv_header_stdc = yes; then
4182 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004183 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004184 :
4185else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004186 cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004192#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004193#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004194#if ((' ' & 0x0FF) == 0x020)
4195# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4196# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4197#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004198# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004199 (('a' <= (c) && (c) <= 'i') \
4200 || ('j' <= (c) && (c) <= 'r') \
4201 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004202# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4203#endif
4204
4205#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4206int
4207main ()
4208{
4209 int i;
4210 for (i = 0; i < 256; i++)
4211 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004212 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004213 return 2;
4214 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004215}
4216_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004217rm -f conftest$ac_exeext
4218if { (ac_try="$ac_link"
4219case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222esac
4223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_link") 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 :
John Criswell7a73b802003-06-30 21:59:07 +00004238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004239 echo "$as_me: program exited with status $ac_status" >&5
4240echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243( exit $ac_status )
4244ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004246rm -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 +00004247fi
4248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004249
John Criswell7a73b802003-06-30 21:59:07 +00004250fi
4251fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004252{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4253echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004254if test $ac_cv_header_stdc = yes; then
4255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004256cat >>confdefs.h <<\_ACEOF
4257#define STDC_HEADERS 1
4258_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004259
4260fi
4261
Reid Spencera773bd52006-08-04 18:18:08 +00004262# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004263
4264
4265
4266
4267
4268
4269
4270
4271
Reid Spencera773bd52006-08-04 18:18:08 +00004272for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4273 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004274do
4275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4276{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281 cat >conftest.$ac_ext <<_ACEOF
4282/* confdefs.h. */
4283_ACEOF
4284cat confdefs.h >>conftest.$ac_ext
4285cat >>conftest.$ac_ext <<_ACEOF
4286/* end confdefs.h. */
4287$ac_includes_default
4288
4289#include <$ac_header>
4290_ACEOF
4291rm -f conftest.$ac_objext
4292if { (ac_try="$ac_compile"
4293case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296esac
4297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_compile") 2>conftest.er1
4299 ac_status=$?
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; } &&
4315 { ac_try='test -s conftest.$ac_objext'
4316 { (case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_try") 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 eval "$as_ac_Header=yes"
4326else
4327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 eval "$as_ac_Header=no"
4331fi
4332
4333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334fi
4335ac_res=`eval echo '${'$as_ac_Header'}'`
4336 { echo "$as_me:$LINENO: result: $ac_res" >&5
4337echo "${ECHO_T}$ac_res" >&6; }
4338if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004339 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004341_ACEOF
4342
4343fi
4344
4345done
4346
4347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004348{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4349echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4350if test "${ac_cv_c_bigendian+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004353 # See if sys/param.h defines the BYTE_ORDER macro.
4354cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004356_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004359/* end confdefs.h. */
4360#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004361#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004362
4363int
4364main ()
4365{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004366#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4367 bogus endian macros
4368#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004369
4370 ;
4371 return 0;
4372}
4373_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374rm -f conftest.$ac_objext
4375if { (ac_try="$ac_compile"
4376case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379esac
4380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_compile") 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4389 { (case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392esac
4393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_try") 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402esac
4403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_try") 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004408 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h. */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004414/* end confdefs.h. */
4415#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004416#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004417
4418int
4419main ()
4420{
4421#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004422 not big endian
4423#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004424
4425 ;
4426 return 0;
4427}
4428_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004429rm -f conftest.$ac_objext
4430if { (ac_try="$ac_compile"
4431case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434esac
4435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436 (eval "$ac_compile") 2>conftest.er1
4437 ac_status=$?
4438 grep -v '^ *+' conftest.er1 >conftest.err
4439 rm -f conftest.er1
4440 cat conftest.err >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4444 { (case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447esac
4448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449 (eval "$ac_try") 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457esac
4458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_try") 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004463 ac_cv_c_bigendian=yes
4464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004465 echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004468 ac_cv_c_bigendian=no
4469fi
4470
4471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472else
4473 echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 # It does not; compile a test program.
4477if test "$cross_compiling" = yes; then
4478 # try to guess the endianness by grepping values into an object file
4479 ac_cv_c_bigendian=unknown
4480 cat >conftest.$ac_ext <<_ACEOF
4481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
4486short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4487short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4488void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4489short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4490short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4491void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004492int
4493main ()
4494{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004495 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004496 ;
4497 return 0;
4498}
4499_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004500rm -f conftest.$ac_objext
4501if { (ac_try="$ac_compile"
4502case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505esac
4506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_compile") 2>conftest.er1
4508 ac_status=$?
4509 grep -v '^ *+' conftest.er1 >conftest.err
4510 rm -f conftest.er1
4511 cat conftest.err >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4515 { (case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518esac
4519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520 (eval "$ac_try") 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; } &&
4524 { ac_try='test -s conftest.$ac_objext'
4525 { (case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528esac
4529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_try") 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004535 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004536fi
4537if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4538 if test "$ac_cv_c_bigendian" = unknown; then
4539 ac_cv_c_bigendian=no
4540 else
4541 # finding both strings is unlikely to happen, but who knows?
4542 ac_cv_c_bigendian=unknown
4543 fi
4544fi
Reid Spencera773bd52006-08-04 18:18:08 +00004545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004546 echo "$as_me: failed program was:" >&5
4547sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004549
Torok Edwin871384f2010-01-26 08:50:50 +00004550fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004551
Reid Spencera773bd52006-08-04 18:18:08 +00004552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554 cat >conftest.$ac_ext <<_ACEOF
4555/* confdefs.h. */
4556_ACEOF
4557cat confdefs.h >>conftest.$ac_ext
4558cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004559/* end confdefs.h. */
4560$ac_includes_default
4561int
4562main ()
4563{
4564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565 /* Are we little or big endian? From Harbison&Steele. */
4566 union
4567 {
4568 long int l;
4569 char c[sizeof (long int)];
4570 } u;
4571 u.l = 1;
4572 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004573
4574 ;
4575 return 0;
4576}
4577_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004578rm -f conftest$ac_exeext
4579if { (ac_try="$ac_link"
4580case "(($ac_try" in
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4583esac
4584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585 (eval "$ac_link") 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4589 { (case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592esac
4593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_try") 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004598 ac_cv_c_bigendian=no
4599else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004600 echo "$as_me: program exited with status $ac_status" >&5
4601echo "$as_me: failed program was:" >&5
4602sed 's/^/| /' conftest.$ac_ext >&5
4603
4604( exit $ac_status )
4605ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607rm -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 +00004608fi
4609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610
Reid Spencera773bd52006-08-04 18:18:08 +00004611fi
4612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614fi
4615{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4616echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4617case $ac_cv_c_bigendian in
4618 yes)
4619 ENDIAN=big
4620 ;;
4621 no)
4622 ENDIAN=little
4623 ;;
4624 *)
4625 { { echo "$as_me:$LINENO: error: unknown endianness
4626presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4627echo "$as_me: error: unknown endianness
4628presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4629 { (exit 1); exit 1; }; } ;;
4630esac
Reid Spencera773bd52006-08-04 18:18:08 +00004631
4632
4633if test "$cross_compiling" = yes; then
4634 LLVM_CROSS_COMPILING=1
4635
4636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004637{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4638echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4639if test "${ac_cv_build_exeext+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004641else
4642 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4643 ac_cv_build_exeext=.exe
4644else
4645 ac_build_prefix=${build_alias}-
4646
4647 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4648set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004653else
4654 if test -n "$BUILD_CC"; then
4655 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 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 +00004664 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004666 break 2
4667 fi
4668done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004669done
Reid Spencera773bd52006-08-04 18:18:08 +00004670IFS=$as_save_IFS
4671
4672fi
4673fi
4674BUILD_CC=$ac_cv_prog_BUILD_CC
4675if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004676 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4677echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004679 { echo "$as_me:$LINENO: result: no" >&5
4680echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004681fi
4682
4683
4684 if test -z "$BUILD_CC"; then
4685 # Extract the first word of "gcc", so it can be a program name with args.
4686set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004691else
4692 if test -n "$BUILD_CC"; then
4693 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 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 +00004702 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004704 break 2
4705 fi
4706done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004707done
Reid Spencera773bd52006-08-04 18:18:08 +00004708IFS=$as_save_IFS
4709
4710fi
4711fi
4712BUILD_CC=$ac_cv_prog_BUILD_CC
4713if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4715echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717 { echo "$as_me:$LINENO: result: no" >&5
4718echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004719fi
4720
4721
4722 if test -z "$BUILD_CC"; then
4723 # Extract the first word of "cc", so it can be a program name with args.
4724set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4727if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004729else
4730 if test -n "$BUILD_CC"; then
4731 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4732else
4733 ac_prog_rejected=no
4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH
4736do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 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 +00004741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4742 ac_prog_rejected=yes
4743 continue
4744 fi
4745 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004747 break 2
4748 fi
4749done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004750done
Reid Spencera773bd52006-08-04 18:18:08 +00004751IFS=$as_save_IFS
4752
4753if test $ac_prog_rejected = yes; then
4754 # We found a bogon in the path, so make sure we never use it.
4755 set dummy $ac_cv_prog_BUILD_CC
4756 shift
4757 if test $# != 0; then
4758 # We chose a different compiler from the bogus one.
4759 # However, it has the same basename, so the bogon will be chosen
4760 # first if we set BUILD_CC to just the basename; use the full file name.
4761 shift
4762 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4763 fi
4764fi
4765fi
4766fi
4767BUILD_CC=$ac_cv_prog_BUILD_CC
4768if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004769 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4770echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004771else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004772 { echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004774fi
4775
4776
4777 fi
4778 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004779 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4780echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4781 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004782 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4783 rm -f conftest*
4784 echo 'int main () { return 0; }' > conftest.$ac_ext
4785 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004786 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004787 (eval $ac_build_link) 2>&5
4788 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004791 for file in conftest.*; do
4792 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004793 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004794 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4795 esac
4796 done
4797 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4799echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4800 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004801 fi
4802 rm -f conftest*
4803 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4804fi
4805fi
4806
4807BUILD_EXEEXT=""
4808test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004809{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4810echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004811ac_build_exeext=$BUILD_EXEEXT
4812
Jim Grosbach673612e2008-10-02 22:56:44 +00004813 ac_build_prefix=${build_alias}-
4814 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4815set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004820else
4821 if test -n "$BUILD_CXX"; then
4822 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4823else
4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 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 +00004831 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004833 break 2
4834 fi
4835done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004836done
Jim Grosbach673612e2008-10-02 22:56:44 +00004837IFS=$as_save_IFS
4838
4839fi
4840fi
4841BUILD_CXX=$ac_cv_prog_BUILD_CXX
4842if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004843 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4844echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004846 { echo "$as_me:$LINENO: result: no" >&5
4847echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004848fi
4849
4850
4851 if test -z "$BUILD_CXX"; then
4852 # Extract the first word of "g++", so it can be a program name with args.
4853set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004858else
4859 if test -n "$BUILD_CXX"; then
4860 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 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 +00004869 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004871 break 2
4872 fi
4873done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004874done
Jim Grosbach673612e2008-10-02 22:56:44 +00004875IFS=$as_save_IFS
4876
4877fi
4878fi
4879BUILD_CXX=$ac_cv_prog_BUILD_CXX
4880if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004881 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4882echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884 { echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004886fi
4887
4888
4889 if test -z "$BUILD_CXX"; then
4890 # Extract the first word of "c++", so it can be a program name with args.
4891set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004896else
4897 if test -n "$BUILD_CXX"; then
4898 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4899else
4900 ac_prog_rejected=no
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 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 +00004908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4909 ac_prog_rejected=yes
4910 continue
4911 fi
4912 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004914 break 2
4915 fi
4916done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004917done
Jim Grosbach673612e2008-10-02 22:56:44 +00004918IFS=$as_save_IFS
4919
4920if test $ac_prog_rejected = yes; then
4921 # We found a bogon in the path, so make sure we never use it.
4922 set dummy $ac_cv_prog_BUILD_CXX
4923 shift
4924 if test $# != 0; then
4925 # We chose a different compiler from the bogus one.
4926 # However, it has the same basename, so the bogon will be chosen
4927 # first if we set BUILD_CXX to just the basename; use the full file name.
4928 shift
4929 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4930 fi
4931fi
4932fi
4933fi
4934BUILD_CXX=$ac_cv_prog_BUILD_CXX
4935if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004936 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4937echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004938else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939 { echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004941fi
4942
4943
4944 fi
4945 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004946else
4947 LLVM_CROSS_COMPILING=0
4948
4949fi
4950
Dan Gohman56fb5f92010-08-04 16:25:01 +00004951if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004952 cvsbuild="yes"
4953 optimize="no"
4954 CVSBUILD=CVSBUILD=1
4955
4956else
4957 cvsbuild="no"
4958 optimize="yes"
4959fi
4960
4961
4962# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004963if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004964 enableval=$enable_optimized;
4965else
4966 enableval=$optimize
4967fi
4968
4969if test ${enableval} = "no" ; then
4970 ENABLE_OPTIMIZED=
4971
4972else
4973 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4974
4975fi
4976
David Greene2a5a12c2009-04-17 14:50:39 +00004977# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004978if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004979 enableval=$enable_profiling;
4980else
4981 enableval="no"
4982fi
4983
4984if test ${enableval} = "no" ; then
4985 ENABLE_PROFILING=
4986
4987else
4988 ENABLE_PROFILING=ENABLE_PROFILING=1
4989
4990fi
4991
Reid Spencera773bd52006-08-04 18:18:08 +00004992# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004993if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004994 enableval=$enable_assertions;
4995else
4996 enableval="yes"
4997fi
4998
4999if test ${enableval} = "yes" ; then
5000 DISABLE_ASSERTIONS=
5001
5002else
5003 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5004
5005fi
5006
David Greenea696d242007-06-28 19:36:08 +00005007# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005008if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005009 enableval=$enable_expensive_checks;
5010else
5011 enableval="no"
5012fi
5013
5014if test ${enableval} = "yes" ; then
5015 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5016
5017 EXPENSIVE_CHECKS=yes
5018
5019else
5020 ENABLE_EXPENSIVE_CHECKS=
5021
5022 EXPENSIVE_CHECKS=no
5023
5024fi
5025
Reid Spencer8b2e1412006-11-17 03:32:33 +00005026# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005027if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005028 enableval=$enable_debug_runtime;
5029else
5030 enableval=no
5031fi
5032
5033if test ${enableval} = "no" ; then
5034 DEBUG_RUNTIME=
5035
5036else
5037 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5038
5039fi
5040
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005041# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005042if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005043 enableval=$enable_debug_symbols;
5044else
5045 enableval=no
5046fi
5047
5048if test ${enableval} = "no" ; then
5049 DEBUG_SYMBOLS=
5050
5051else
5052 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5053
5054fi
5055
Reid Spencera773bd52006-08-04 18:18:08 +00005056# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005057if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005058 enableval=$enable_jit;
5059else
5060 enableval=default
5061fi
5062
5063if test ${enableval} = "no"
5064then
5065 JIT=
5066
5067else
5068 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005069 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005070 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005071 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005072 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005073 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005074 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005075 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005076 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00005077 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005078 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005079 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005080 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005081 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005082 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005083 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005084 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005085 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005086 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005087 Blackfin) TARGET_HAS_JIT=0
5088 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005089 MBlaze) TARGET_HAS_JIT=0
5090 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005091 PTX) TARGET_HAS_JIT=0
5092 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005093 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005094 ;;
5095 esac
5096fi
5097
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005098# Check whether --enable-docs was given.
5099if test "${enable_docs+set}" = set; then
5100 enableval=$enable_docs;
5101else
5102 enableval=default
5103fi
5104
5105case "$enableval" in
5106 yes) ENABLE_DOCS=1
5107 ;;
5108 no) ENABLE_DOCS=0
5109 ;;
5110 default) ENABLE_DOCS=1
5111 ;;
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5113echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5115esac
5116
Reid Spencera773bd52006-08-04 18:18:08 +00005117# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005118if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005119 enableval=$enable_doxygen;
5120else
5121 enableval=default
5122fi
5123
5124case "$enableval" in
5125 yes) ENABLE_DOXYGEN=1
5126 ;;
5127 no) ENABLE_DOXYGEN=0
5128 ;;
5129 default) ENABLE_DOXYGEN=0
5130 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005131 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5132echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5133 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005134esac
5135
5136# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005137if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005138 enableval=$enable_threads;
5139else
Reid Spencer65c5d752006-11-05 17:08:18 +00005140 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005141fi
5142
5143case "$enableval" in
5144 yes) ENABLE_THREADS=1
5145 ;;
5146 no) ENABLE_THREADS=0
5147 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005148 default) ENABLE_THREADS=1
5149 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005150 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5151echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5152 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005153esac
5154
Owen Andersona8603702009-05-19 22:18:56 +00005155cat >>confdefs.h <<_ACEOF
5156#define ENABLE_THREADS $ENABLE_THREADS
5157_ACEOF
5158
5159
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005160# Check whether --enable-pthreads was given.
5161if test "${enable_pthreads+set}" = set; then
5162 enableval=$enable_pthreads;
5163else
5164 enableval=default
5165fi
5166
5167case "$enableval" in
5168 yes) ENABLE_PTHREADS=1
5169 ;;
5170 no) ENABLE_PTHREADS=0
5171 ;;
5172 default) ENABLE_PTHREADS=1
5173 ;;
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5175echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5177esac
5178
Reid Spencer89b0d992006-12-16 22:07:52 +00005179# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005180if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005181 enableval=$enable_pic;
5182else
5183 enableval=default
5184fi
5185
5186case "$enableval" in
5187 yes) ENABLE_PIC=1
5188 ;;
5189 no) ENABLE_PIC=0
5190 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005191 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005192 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005193 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5194echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5195 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005196esac
5197
5198cat >>confdefs.h <<_ACEOF
5199#define ENABLE_PIC $ENABLE_PIC
5200_ACEOF
5201
5202
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005203# Check whether --enable-shared was given.
5204if test "${enable_shared+set}" = set; then
5205 enableval=$enable_shared;
5206else
5207 enableval=default
5208fi
5209
5210case "$enableval" in
5211 yes) ENABLE_SHARED=1
5212 ;;
5213 no) ENABLE_SHARED=0
5214 ;;
5215 default) ENABLE_SHARED=0
5216 ;;
5217 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5218echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5219 { (exit 1); exit 1; }; } ;;
5220esac
5221
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005222# Check whether --enable-embed-stdcxx was given.
5223if test "${enable_embed_stdcxx+set}" = set; then
5224 enableval=$enable_embed_stdcxx;
5225else
5226 enableval=default
5227fi
5228
5229case "$enableval" in
5230 yes) ENABLE_EMBED_STDCXX=1
5231 ;;
5232 no) ENABLE_EMBED_STDCXX=0
5233 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005234 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005235 ;;
5236 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5237echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5238 { (exit 1); exit 1; }; } ;;
5239esac
5240
Daniel Dunbardd464df2010-05-10 20:11:56 +00005241# Check whether --enable-timestamps was given.
5242if test "${enable_timestamps+set}" = set; then
5243 enableval=$enable_timestamps;
5244else
5245 enableval=default
5246fi
5247
5248case "$enableval" in
5249 yes) ENABLE_TIMESTAMPS=1
5250 ;;
5251 no) ENABLE_TIMESTAMPS=0
5252 ;;
5253 default) ENABLE_TIMESTAMPS=1
5254 ;;
5255 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5256echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5257 { (exit 1); exit 1; }; } ;;
5258esac
5259
5260cat >>confdefs.h <<_ACEOF
5261#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5262_ACEOF
5263
5264
Reid Spencera773bd52006-08-04 18:18:08 +00005265TARGETS_TO_BUILD=""
5266# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005267if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005268 enableval=$enable_targets;
5269else
5270 enableval=all
5271fi
5272
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005273if test "$enableval" = host-only ; then
5274 enableval=host
5275fi
Reid Spencera773bd52006-08-04 18:18:08 +00005276case "$enableval" in
Dan Gohman29074cc2011-10-24 23:48:32 +00005277 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 +00005278 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5279 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005280 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5281 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5282 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5283 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5284 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5285 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5286 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5287 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005288 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5289 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005290 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5291 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005292 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005293 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005294 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005295 host) case "$llvm_cv_target_arch" in
5296 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5297 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5298 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5299 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5300 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5301 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5302 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005303 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005304 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005305 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5306 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005307 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005308 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005309 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5310echo "$as_me: error: Can not set target to build" >&2;}
5311 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005312 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005313 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5314echo "$as_me: error: Unrecognized target $a_target" >&2;}
5315 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005316 esac
5317 done
5318 ;;
5319esac
Reid Spencera773bd52006-08-04 18:18:08 +00005320TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5321
5322
Douglas Gregor0711c302009-06-17 00:43:20 +00005323# Determine whether we are building LLVM support for the native architecture.
5324# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5325for a_target in $TARGETS_TO_BUILD; do
5326 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5327
5328cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005329#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5330_ACEOF
5331
5332 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5333 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005334 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005335 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005336 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5337 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5338 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005339
5340cat >>confdefs.h <<_ACEOF
5341#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005342_ACEOF
5343
5344
5345cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005346#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5347_ACEOF
5348
5349
5350cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005351#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005352_ACEOF
5353
5354
5355cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005356#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005357_ACEOF
5358
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005359 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005360
5361cat >>confdefs.h <<_ACEOF
5362#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5363_ACEOF
5364
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005365 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005366 fi
5367done
5368
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005369# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5370# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005371LLVM_ENUM_TARGETS=""
5372LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005373LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005374LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005375for target_to_build in $TARGETS_TO_BUILD; do
5376 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005377 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005378 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5379 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005380 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5381 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5382 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005383 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5384 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5385 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005386done
5387
5388
5389
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005390
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005391
Reid Spencer65c5d752006-11-05 17:08:18 +00005392# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005393if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005394 enableval=$enable_cbe_printf_a;
5395else
5396 enableval=default
5397fi
5398
5399case "$enableval" in
5400 yes) ENABLE_CBE_PRINTF_A=1
5401 ;;
5402 no) ENABLE_CBE_PRINTF_A=0
5403 ;;
5404 default) ENABLE_CBE_PRINTF_A=1
5405 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005406 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5407echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5408 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005409esac
5410
5411cat >>confdefs.h <<_ACEOF
5412#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5413_ACEOF
5414
5415
Reid Spencera773bd52006-08-04 18:18:08 +00005416
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005417# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005418if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005419 withval=$with_optimize_option;
5420else
5421 withval=default
5422fi
5423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005424{ echo "$as_me:$LINENO: checking optimization flags" >&5
5425echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005426case "$withval" in
5427 default)
5428 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005429 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005430 MingW) optimize_option=-O2 ;;
5431 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005432 esac ;;
5433 *) optimize_option="$withval" ;;
5434esac
5435OPTIMIZE_OPTION=$optimize_option
5436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005437{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5438echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005439
5440
Reid Spencera773bd52006-08-04 18:18:08 +00005441# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005442if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005443 withval=$with_extra_options;
5444else
5445 withval=default
5446fi
5447
5448case "$withval" in
5449 default) EXTRA_OPTIONS= ;;
5450 *) EXTRA_OPTIONS=$withval ;;
5451esac
5452EXTRA_OPTIONS=$EXTRA_OPTIONS
5453
5454
Daniel Dunbared344d22011-06-16 22:30:41 +00005455
5456# Check whether --with-extra-ld-options was given.
5457if test "${with_extra_ld_options+set}" = set; then
5458 withval=$with_extra_ld_options;
5459else
5460 withval=default
5461fi
5462
5463case "$withval" in
5464 default) EXTRA_LD_OPTIONS= ;;
5465 *) EXTRA_LD_OPTIONS=$withval ;;
5466esac
5467EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5468
5469
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005470# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005471if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005472 enableval=$enable_bindings;
5473else
5474 enableval=default
5475fi
5476
5477BINDINGS_TO_BUILD=""
5478case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005479 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005480 all ) BINDINGS_TO_BUILD="ocaml" ;;
5481 none | no) BINDINGS_TO_BUILD="" ;;
5482 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5483 case "$a_binding" in
5484 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005485 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5486echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5487 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005488 esac
5489 done
5490 ;;
5491esac
5492
Reid Spencera773bd52006-08-04 18:18:08 +00005493
Gordon Henriksenf0915682007-10-02 16:42:22 +00005494# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005495if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005496 withval=$with_ocaml_libdir;
5497else
5498 withval=auto
5499fi
5500
5501case "$withval" in
5502 auto) with_ocaml_libdir="$withval" ;;
5503 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005504 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5505echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5506 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005507esac
5508
5509
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005510# Check whether --with-clang-srcdir was given.
5511if test "${with_clang_srcdir+set}" = set; then
5512 withval=$with_clang_srcdir;
5513else
5514 withval="-"
5515fi
5516
5517case "$withval" in
5518 -) clang_src_root="" ;;
5519 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5520 *) clang_src_root="$ac_pwd/$withval" ;;
5521esac
5522CLANG_SRC_ROOT=$clang_src_root
5523
5524
5525
Chandler Carruth6b241162010-10-19 08:21:25 +00005526# Check whether --with-clang-resource-dir was given.
5527if test "${with_clang_resource_dir+set}" = set; then
5528 withval=$with_clang_resource_dir;
5529else
5530 withval=""
5531fi
5532
5533
5534cat >>confdefs.h <<_ACEOF
5535#define CLANG_RESOURCE_DIR "$withval"
5536_ACEOF
5537
5538
5539
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005540# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005541if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005542 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005543else
5544 withval=""
5545fi
5546
5547
5548cat >>confdefs.h <<_ACEOF
5549#define C_INCLUDE_DIRS "$withval"
5550_ACEOF
5551
5552
5553
Rafael Espindola420d23c2009-11-16 19:46:55 +00005554# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005555if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005556 withval=$with_cxx_include_root;
5557else
5558 withval=""
5559fi
5560
5561
5562cat >>confdefs.h <<_ACEOF
5563#define CXX_INCLUDE_ROOT "$withval"
5564_ACEOF
5565
5566
5567
5568# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005569if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005570 withval=$with_cxx_include_arch;
5571else
5572 withval=""
5573fi
5574
5575
5576cat >>confdefs.h <<_ACEOF
5577#define CXX_INCLUDE_ARCH "$withval"
5578_ACEOF
5579
5580
5581
5582# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005583if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005584 withval=$with_cxx_include_32bit_dir;
5585else
5586 withval=""
5587fi
5588
5589
5590cat >>confdefs.h <<_ACEOF
5591#define CXX_INCLUDE_32BIT_DIR "$withval"
5592_ACEOF
5593
5594
5595
5596# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005597if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005598 withval=$with_cxx_include_64bit_dir;
5599else
5600 withval=""
5601fi
5602
5603
5604cat >>confdefs.h <<_ACEOF
5605#define CXX_INCLUDE_64BIT_DIR "$withval"
5606_ACEOF
5607
5608
5609
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005610# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005611if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005612 withval=$with_binutils_include;
5613else
5614 withval=default
5615fi
5616
5617case "$withval" in
5618 default) WITH_BINUTILS_INCDIR=default ;;
5619 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005620 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5621echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5622 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005623esac
5624if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5625 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5626
5627 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5628 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005629 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5630echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5631 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005632 fi
5633fi
5634
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005635
5636# Check whether --with-bug-report-url was given.
5637if test "${with_bug_report_url+set}" = set; then
5638 withval=$with_bug_report_url;
5639else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005640 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005641fi
5642
5643
5644cat >>confdefs.h <<_ACEOF
5645#define BUG_REPORT_URL "$withval"
5646_ACEOF
5647
5648
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005649# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005650if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005651 enableval=$enable_libffi; case "$enableval" in
5652 yes) llvm_cv_enable_libffi="yes" ;;
5653 no) llvm_cv_enable_libffi="no" ;;
5654 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5656 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005657 esac
5658else
5659 llvm_cv_enable_libffi=no
5660fi
5661
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005662
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005664{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5665echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5666if test "${lt_cv_path_NM+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005668else
5669 if test -n "$NM"; then
5670 # Let the user override the test.
5671 lt_cv_path_NM="$NM"
5672else
5673 lt_nm_to_check="${ac_tool_prefix}nm"
5674 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5675 lt_nm_to_check="$lt_nm_to_check nm"
5676 fi
5677 for lt_tmp_nm in $lt_nm_to_check; do
5678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5679 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5680 IFS="$lt_save_ifs"
5681 test -z "$ac_dir" && ac_dir=.
5682 tmp_nm="$ac_dir/$lt_tmp_nm"
5683 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5684 # Check to see if the nm accepts a BSD-compat flag.
5685 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5686 # nm: unknown option "B" ignored
5687 # Tru64's nm complains that /dev/null is an invalid object file
5688 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5689 */dev/null* | *'Invalid file or object type'*)
5690 lt_cv_path_NM="$tmp_nm -B"
5691 break
5692 ;;
5693 *)
5694 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5695 */dev/null*)
5696 lt_cv_path_NM="$tmp_nm -p"
5697 break
5698 ;;
5699 *)
5700 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5701 continue # so that we can try to find one that supports BSD flags
5702 ;;
5703 esac
5704 ;;
5705 esac
5706 fi
5707 done
5708 IFS="$lt_save_ifs"
5709 done
5710 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5711fi
5712fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005713{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5714echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005715NM="$lt_cv_path_NM"
5716
5717
5718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005719{ echo "$as_me:$LINENO: checking for GNU make" >&5
5720echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5721if test "${llvm_cv_gnu_make_command+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005723else
5724 llvm_cv_gnu_make_command=''
5725 for a in "$MAKE" make gmake gnumake ; do
5726 if test -z "$a" ; then continue ; fi ;
5727 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5728 then
5729 llvm_cv_gnu_make_command=$a ;
5730 break;
5731 fi
5732 done
5733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5735echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005736 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5737 ifGNUmake='' ;
5738 else
5739 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005740 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5741echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005742 fi
5743
5744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005745{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5746echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005747LN_S=$as_ln_s
5748if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749 { echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005752 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5753echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005754fi
5755
5756# Extract the first word of "cmp", so it can be a program name with args.
5757set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5760if test "${ac_cv_path_CMP+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005762else
5763 case $CMP in
5764 [\\/]* | ?:[\\/]*)
5765 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5766 ;;
5767 *)
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 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 +00005775 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005777 break 2
5778 fi
5779done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005780done
Reid Spencera773bd52006-08-04 18:18:08 +00005781IFS=$as_save_IFS
5782
5783 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5784 ;;
5785esac
5786fi
5787CMP=$ac_cv_path_CMP
5788if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789 { echo "$as_me:$LINENO: result: $CMP" >&5
5790echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005792 { echo "$as_me:$LINENO: result: no" >&5
5793echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005794fi
5795
5796
5797# Extract the first word of "cp", so it can be a program name with args.
5798set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801if test "${ac_cv_path_CP+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005803else
5804 case $CP in
5805 [\\/]* | ?:[\\/]*)
5806 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5807 ;;
5808 *)
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 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 +00005816 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005818 break 2
5819 fi
5820done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005821done
Reid Spencera773bd52006-08-04 18:18:08 +00005822IFS=$as_save_IFS
5823
5824 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5825 ;;
5826esac
5827fi
5828CP=$ac_cv_path_CP
5829if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005830 { echo "$as_me:$LINENO: result: $CP" >&5
5831echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005833 { echo "$as_me:$LINENO: result: no" >&5
5834echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005835fi
5836
5837
5838# Extract the first word of "date", so it can be a program name with args.
5839set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5842if test "${ac_cv_path_DATE+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005844else
5845 case $DATE in
5846 [\\/]* | ?:[\\/]*)
5847 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5848 ;;
5849 *)
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 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 +00005857 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005859 break 2
5860 fi
5861done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005862done
Reid Spencera773bd52006-08-04 18:18:08 +00005863IFS=$as_save_IFS
5864
5865 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5866 ;;
5867esac
5868fi
5869DATE=$ac_cv_path_DATE
5870if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005871 { echo "$as_me:$LINENO: result: $DATE" >&5
5872echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874 { echo "$as_me:$LINENO: result: no" >&5
5875echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005876fi
5877
5878
5879# Extract the first word of "find", so it can be a program name with args.
5880set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883if test "${ac_cv_path_FIND+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005885else
5886 case $FIND in
5887 [\\/]* | ?:[\\/]*)
5888 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5889 ;;
5890 *)
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 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 +00005898 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005900 break 2
5901 fi
5902done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005903done
Reid Spencera773bd52006-08-04 18:18:08 +00005904IFS=$as_save_IFS
5905
5906 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5907 ;;
5908esac
5909fi
5910FIND=$ac_cv_path_FIND
5911if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005912 { echo "$as_me:$LINENO: result: $FIND" >&5
5913echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915 { echo "$as_me:$LINENO: result: no" >&5
5916echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005917fi
5918
5919
5920# Extract the first word of "grep", so it can be a program name with args.
5921set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924if test "${ac_cv_path_GREP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005926else
5927 case $GREP in
5928 [\\/]* | ?:[\\/]*)
5929 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5930 ;;
5931 *)
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 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 +00005939 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005941 break 2
5942 fi
5943done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944done
Reid Spencera773bd52006-08-04 18:18:08 +00005945IFS=$as_save_IFS
5946
5947 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5948 ;;
5949esac
5950fi
5951GREP=$ac_cv_path_GREP
5952if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953 { echo "$as_me:$LINENO: result: $GREP" >&5
5954echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005956 { echo "$as_me:$LINENO: result: no" >&5
5957echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005958fi
5959
5960
5961# Extract the first word of "mkdir", so it can be a program name with args.
5962set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965if test "${ac_cv_path_MKDIR+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005967else
5968 case $MKDIR in
5969 [\\/]* | ?:[\\/]*)
5970 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5971 ;;
5972 *)
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 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 +00005980 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005982 break 2
5983 fi
5984done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985done
Reid Spencera773bd52006-08-04 18:18:08 +00005986IFS=$as_save_IFS
5987
5988 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5989 ;;
5990esac
5991fi
5992MKDIR=$ac_cv_path_MKDIR
5993if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005994 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5995echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005997 { echo "$as_me:$LINENO: result: no" >&5
5998echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005999fi
6000
6001
6002# Extract the first word of "mv", so it can be a program name with args.
6003set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006if test "${ac_cv_path_MV+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006008else
6009 case $MV in
6010 [\\/]* | ?:[\\/]*)
6011 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6012 ;;
6013 *)
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 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 +00006021 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006023 break 2
6024 fi
6025done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026done
Reid Spencera773bd52006-08-04 18:18:08 +00006027IFS=$as_save_IFS
6028
6029 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6030 ;;
6031esac
6032fi
6033MV=$ac_cv_path_MV
6034if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006035 { echo "$as_me:$LINENO: result: $MV" >&5
6036echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006038 { echo "$as_me:$LINENO: result: no" >&5
6039echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006040fi
6041
6042
6043if test -n "$ac_tool_prefix"; then
6044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6045set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048if test "${ac_cv_prog_RANLIB+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006050else
6051 if test -n "$RANLIB"; then
6052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 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 +00006061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006063 break 2
6064 fi
6065done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066done
Reid Spencera773bd52006-08-04 18:18:08 +00006067IFS=$as_save_IFS
6068
6069fi
6070fi
6071RANLIB=$ac_cv_prog_RANLIB
6072if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006073 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6074echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006076 { echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006078fi
6079
6080
6081fi
6082if test -z "$ac_cv_prog_RANLIB"; then
6083 ac_ct_RANLIB=$RANLIB
6084 # Extract the first word of "ranlib", so it can be a program name with args.
6085set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006090else
6091 if test -n "$ac_ct_RANLIB"; then
6092 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 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 +00006101 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006103 break 2
6104 fi
6105done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006106done
Reid Spencera773bd52006-08-04 18:18:08 +00006107IFS=$as_save_IFS
6108
6109fi
6110fi
6111ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6112if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006113 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6114echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006115else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006116 { echo "$as_me:$LINENO: result: no" >&5
6117echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006118fi
6119
6120 if test "x$ac_ct_RANLIB" = x; then
6121 RANLIB=":"
6122 else
6123 case $cross_compiling:$ac_tool_warned in
6124yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006125{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6126whose name does not start with the host triplet. If you think this
6127configuration is useful to you, please write to autoconf@gnu.org." >&5
6128echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6129whose name does not start with the host triplet. If you think this
6130configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006131ac_tool_warned=yes ;;
6132esac
6133 RANLIB=$ac_ct_RANLIB
6134 fi
6135else
6136 RANLIB="$ac_cv_prog_RANLIB"
6137fi
6138
Torok Edwin871384f2010-01-26 08:50:50 +00006139if test -n "$ac_tool_prefix"; then
6140 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6141set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6144if test "${ac_cv_prog_AR+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006146else
6147 if test -n "$AR"; then
6148 ac_cv_prog_AR="$AR" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 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 +00006157 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006159 break 2
6160 fi
6161done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006162done
Torok Edwin871384f2010-01-26 08:50:50 +00006163IFS=$as_save_IFS
6164
6165fi
6166fi
6167AR=$ac_cv_prog_AR
6168if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006169 { echo "$as_me:$LINENO: result: $AR" >&5
6170echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006172 { echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006174fi
6175
6176
6177fi
6178if test -z "$ac_cv_prog_AR"; then
6179 ac_ct_AR=$AR
6180 # Extract the first word of "ar", so it can be a program name with args.
6181set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006186else
6187 if test -n "$ac_ct_AR"; then
6188 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6189else
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 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 +00006197 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006199 break 2
6200 fi
6201done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202done
Torok Edwin871384f2010-01-26 08:50:50 +00006203IFS=$as_save_IFS
6204
6205fi
6206fi
6207ac_ct_AR=$ac_cv_prog_ac_ct_AR
6208if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006209 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6210echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212 { echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006214fi
6215
6216 if test "x$ac_ct_AR" = x; then
6217 AR="false"
6218 else
6219 case $cross_compiling:$ac_tool_warned in
6220yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006221{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222whose name does not start with the host triplet. If you think this
6223configuration is useful to you, please write to autoconf@gnu.org." >&5
6224echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225whose name does not start with the host triplet. If you think this
6226configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006227ac_tool_warned=yes ;;
6228esac
6229 AR=$ac_ct_AR
6230 fi
6231else
6232 AR="$ac_cv_prog_AR"
6233fi
6234
Reid Spencera773bd52006-08-04 18:18:08 +00006235# Extract the first word of "rm", so it can be a program name with args.
6236set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239if test "${ac_cv_path_RM+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006241else
6242 case $RM in
6243 [\\/]* | ?:[\\/]*)
6244 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6245 ;;
6246 *)
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 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 +00006254 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006256 break 2
6257 fi
6258done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006259done
Reid Spencera773bd52006-08-04 18:18:08 +00006260IFS=$as_save_IFS
6261
6262 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6263 ;;
6264esac
6265fi
6266RM=$ac_cv_path_RM
6267if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006268 { echo "$as_me:$LINENO: result: $RM" >&5
6269echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006271 { echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006273fi
6274
6275
6276# Extract the first word of "sed", so it can be a program name with args.
6277set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6280if test "${ac_cv_path_SED+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006282else
6283 case $SED in
6284 [\\/]* | ?:[\\/]*)
6285 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6286 ;;
6287 *)
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 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 +00006295 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006297 break 2
6298 fi
6299done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300done
Reid Spencera773bd52006-08-04 18:18:08 +00006301IFS=$as_save_IFS
6302
6303 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6304 ;;
6305esac
6306fi
6307SED=$ac_cv_path_SED
6308if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006309 { echo "$as_me:$LINENO: result: $SED" >&5
6310echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006312 { echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006314fi
6315
6316
6317# Extract the first word of "tar", so it can be a program name with args.
6318set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6321if test "${ac_cv_path_TAR+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006323else
6324 case $TAR in
6325 [\\/]* | ?:[\\/]*)
6326 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6327 ;;
6328 *)
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 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 +00006336 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006338 break 2
6339 fi
6340done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006341done
Reid Spencera773bd52006-08-04 18:18:08 +00006342IFS=$as_save_IFS
6343
6344 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6345 ;;
6346esac
6347fi
6348TAR=$ac_cv_path_TAR
6349if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006350 { echo "$as_me:$LINENO: result: $TAR" >&5
6351echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006353 { echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006355fi
6356
6357
6358# Extract the first word of "pwd", so it can be a program name with args.
6359set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362if test "${ac_cv_path_BINPWD+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006364else
6365 case $BINPWD in
6366 [\\/]* | ?:[\\/]*)
6367 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6368 ;;
6369 *)
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 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 +00006377 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006379 break 2
6380 fi
6381done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382done
Reid Spencera773bd52006-08-04 18:18:08 +00006383IFS=$as_save_IFS
6384
6385 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6386 ;;
6387esac
6388fi
6389BINPWD=$ac_cv_path_BINPWD
6390if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006391 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6392echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006394 { echo "$as_me:$LINENO: result: no" >&5
6395echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006396fi
6397
6398
6399
6400# Extract the first word of "Graphviz", so it can be a program name with args.
6401set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006406else
6407 case $GRAPHVIZ in
6408 [\\/]* | ?:[\\/]*)
6409 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6410 ;;
6411 *)
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 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 +00006419 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006421 break 2
6422 fi
6423done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424done
Reid Spencera773bd52006-08-04 18:18:08 +00006425IFS=$as_save_IFS
6426
6427 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6428 ;;
6429esac
6430fi
6431GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6432if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6434echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006436 { echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006438fi
6439
6440
6441if test "$GRAPHVIZ" != "echo Graphviz" ; then
6442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006443cat >>confdefs.h <<\_ACEOF
6444#define HAVE_GRAPHVIZ 1
6445_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006446
Jeff Cohen28783c32007-01-12 18:22:38 +00006447 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006448 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6449 fi
6450
6451cat >>confdefs.h <<_ACEOF
6452#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6453_ACEOF
6454
6455fi
6456# Extract the first word of "dot", so it can be a program name with args.
6457set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460if test "${ac_cv_path_DOT+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006462else
6463 case $DOT in
6464 [\\/]* | ?:[\\/]*)
6465 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6466 ;;
6467 *)
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 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 +00006475 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006477 break 2
6478 fi
6479done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480done
Reid Spencera773bd52006-08-04 18:18:08 +00006481IFS=$as_save_IFS
6482
6483 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6484 ;;
6485esac
6486fi
6487DOT=$ac_cv_path_DOT
6488if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006489 { echo "$as_me:$LINENO: result: $DOT" >&5
6490echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006492 { echo "$as_me:$LINENO: result: no" >&5
6493echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006494fi
6495
6496
6497if test "$DOT" != "echo dot" ; then
6498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006499cat >>confdefs.h <<\_ACEOF
6500#define HAVE_DOT 1
6501_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006502
Jeff Cohen28783c32007-01-12 18:22:38 +00006503 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006504 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6505 fi
6506
6507cat >>confdefs.h <<_ACEOF
6508#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6509_ACEOF
6510
6511fi
David Greenef0b9eff2009-07-09 17:16:26 +00006512# Extract the first word of "fdp", so it can be a program name with args.
6513set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516if test "${ac_cv_path_FDP+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006518else
6519 case $FDP in
6520 [\\/]* | ?:[\\/]*)
6521 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6522 ;;
6523 *)
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 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 +00006531 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006533 break 2
6534 fi
6535done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006536done
David Greenef0b9eff2009-07-09 17:16:26 +00006537IFS=$as_save_IFS
6538
6539 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6540 ;;
6541esac
6542fi
6543FDP=$ac_cv_path_FDP
6544if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006545 { echo "$as_me:$LINENO: result: $FDP" >&5
6546echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006548 { echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006550fi
6551
6552
6553if test "$FDP" != "echo fdp" ; then
6554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006555cat >>confdefs.h <<\_ACEOF
6556#define HAVE_FDP 1
6557_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006558
6559 if test "$llvm_cv_os_type" = "MingW" ; then
6560 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6561 fi
6562
6563cat >>confdefs.h <<_ACEOF
6564#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6565_ACEOF
6566
6567fi
6568# Extract the first word of "neato", so it can be a program name with args.
6569set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572if test "${ac_cv_path_NEATO+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006574else
6575 case $NEATO in
6576 [\\/]* | ?:[\\/]*)
6577 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6578 ;;
6579 *)
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH
6582do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 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 +00006587 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006589 break 2
6590 fi
6591done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592done
David Greenef0b9eff2009-07-09 17:16:26 +00006593IFS=$as_save_IFS
6594
6595 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6596 ;;
6597esac
6598fi
6599NEATO=$ac_cv_path_NEATO
6600if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601 { echo "$as_me:$LINENO: result: $NEATO" >&5
6602echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006604 { echo "$as_me:$LINENO: result: no" >&5
6605echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006606fi
6607
6608
6609if test "$NEATO" != "echo neato" ; then
6610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006611cat >>confdefs.h <<\_ACEOF
6612#define HAVE_NEATO 1
6613_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006614
6615 if test "$llvm_cv_os_type" = "MingW" ; then
6616 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6617 fi
6618
6619cat >>confdefs.h <<_ACEOF
6620#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6621_ACEOF
6622
6623fi
6624# Extract the first word of "twopi", so it can be a program name with args.
6625set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628if test "${ac_cv_path_TWOPI+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006630else
6631 case $TWOPI in
6632 [\\/]* | ?:[\\/]*)
6633 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6634 ;;
6635 *)
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 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 +00006643 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006645 break 2
6646 fi
6647done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006648done
David Greenef0b9eff2009-07-09 17:16:26 +00006649IFS=$as_save_IFS
6650
6651 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6652 ;;
6653esac
6654fi
6655TWOPI=$ac_cv_path_TWOPI
6656if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006657 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6658echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006660 { echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006662fi
6663
6664
6665if test "$TWOPI" != "echo twopi" ; then
6666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006667cat >>confdefs.h <<\_ACEOF
6668#define HAVE_TWOPI 1
6669_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006670
6671 if test "$llvm_cv_os_type" = "MingW" ; then
6672 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6673 fi
6674
6675cat >>confdefs.h <<_ACEOF
6676#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6677_ACEOF
6678
6679fi
6680# Extract the first word of "circo", so it can be a program name with args.
6681set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684if test "${ac_cv_path_CIRCO+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006686else
6687 case $CIRCO in
6688 [\\/]* | ?:[\\/]*)
6689 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6690 ;;
6691 *)
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 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 +00006699 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006701 break 2
6702 fi
6703done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006704done
David Greenef0b9eff2009-07-09 17:16:26 +00006705IFS=$as_save_IFS
6706
6707 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6708 ;;
6709esac
6710fi
6711CIRCO=$ac_cv_path_CIRCO
6712if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6714echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006716 { echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006718fi
6719
6720
6721if test "$CIRCO" != "echo circo" ; then
6722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006723cat >>confdefs.h <<\_ACEOF
6724#define HAVE_CIRCO 1
6725_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006726
6727 if test "$llvm_cv_os_type" = "MingW" ; then
6728 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6729 fi
6730
6731cat >>confdefs.h <<_ACEOF
6732#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6733_ACEOF
6734
6735fi
Reid Spencera773bd52006-08-04 18:18:08 +00006736for ac_prog in gv gsview32
6737do
6738 # Extract the first word of "$ac_prog", so it can be a program name with args.
6739set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742if test "${ac_cv_path_GV+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006744else
6745 case $GV in
6746 [\\/]* | ?:[\\/]*)
6747 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6748 ;;
6749 *)
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 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 +00006757 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006759 break 2
6760 fi
6761done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762done
Reid Spencera773bd52006-08-04 18:18:08 +00006763IFS=$as_save_IFS
6764
6765 ;;
6766esac
6767fi
6768GV=$ac_cv_path_GV
6769if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006770 { echo "$as_me:$LINENO: result: $GV" >&5
6771echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006773 { echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006775fi
6776
6777
6778 test -n "$GV" && break
6779done
6780test -n "$GV" || GV="echo gv"
6781
6782if test "$GV" != "echo gv" ; then
6783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784cat >>confdefs.h <<\_ACEOF
6785#define HAVE_GV 1
6786_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006787
Jeff Cohen28783c32007-01-12 18:22:38 +00006788 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006789 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6790 fi
6791
6792cat >>confdefs.h <<_ACEOF
6793#define LLVM_PATH_GV "$GV${EXEEXT}"
6794_ACEOF
6795
6796fi
6797# Extract the first word of "dotty", so it can be a program name with args.
6798set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801if test "${ac_cv_path_DOTTY+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006803else
6804 case $DOTTY in
6805 [\\/]* | ?:[\\/]*)
6806 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6807 ;;
6808 *)
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 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 +00006816 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006818 break 2
6819 fi
6820done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006821done
Reid Spencera773bd52006-08-04 18:18:08 +00006822IFS=$as_save_IFS
6823
6824 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6825 ;;
6826esac
6827fi
6828DOTTY=$ac_cv_path_DOTTY
6829if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6831echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006833 { echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006835fi
6836
6837
6838if test "$DOTTY" != "echo dotty" ; then
6839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840cat >>confdefs.h <<\_ACEOF
6841#define HAVE_DOTTY 1
6842_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006843
Jeff Cohen28783c32007-01-12 18:22:38 +00006844 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006845 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6846 fi
6847
6848cat >>confdefs.h <<_ACEOF
6849#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6850_ACEOF
6851
6852fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006853# Extract the first word of "xdot.py", so it can be a program name with args.
6854set dummy xdot.py; ac_word=$2
6855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857if test "${ac_cv_path_XDOT_PY+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859else
6860 case $XDOT_PY in
6861 [\\/]* | ?:[\\/]*)
6862 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6863 ;;
6864 *)
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876done
6877done
6878IFS=$as_save_IFS
6879
6880 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6881 ;;
6882esac
6883fi
6884XDOT_PY=$ac_cv_path_XDOT_PY
6885if test -n "$XDOT_PY"; then
6886 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6887echo "${ECHO_T}$XDOT_PY" >&6; }
6888else
6889 { echo "$as_me:$LINENO: result: no" >&5
6890echo "${ECHO_T}no" >&6; }
6891fi
6892
6893
6894if test "$XDOT_PY" != "echo xdot.py" ; then
6895
6896cat >>confdefs.h <<\_ACEOF
6897#define HAVE_XDOT_PY 1
6898_ACEOF
6899
6900 if test "$llvm_cv_os_type" = "MingW" ; then
6901 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6902 fi
6903
6904cat >>confdefs.h <<_ACEOF
6905#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6906_ACEOF
6907
6908fi
Reid Spencera773bd52006-08-04 18:18:08 +00006909
6910
6911# Extract the first word of "perl", so it can be a program name with args.
6912set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915if test "${ac_cv_path_PERL+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006917else
6918 case $PERL in
6919 [\\/]* | ?:[\\/]*)
6920 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6921 ;;
6922 *)
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 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 +00006930 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006932 break 2
6933 fi
6934done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935done
Reid Spencera773bd52006-08-04 18:18:08 +00006936IFS=$as_save_IFS
6937
6938 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6939 ;;
6940esac
6941fi
6942PERL=$ac_cv_path_PERL
6943if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944 { echo "$as_me:$LINENO: result: $PERL" >&5
6945echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006946else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947 { echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006949fi
6950
6951
6952if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6954echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006955 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006956 { echo "$as_me:$LINENO: result: yes" >&5
6957echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006958 else
6959 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 { echo "$as_me:$LINENO: result: not found" >&5
6961echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006962 fi
6963fi
6964
6965
6966if test x"$PERL" = xnone; then
6967 HAVE_PERL=0
6968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6970echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6971 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006972else
6973 HAVE_PERL=1
6974
6975fi
6976
6977# Find a good install program. We prefer a C program (faster),
6978# so one script is as good as another. But avoid the broken or
6979# incompatible versions:
6980# SysV /etc/install, /usr/sbin/install
6981# SunOS /usr/etc/install
6982# IRIX /sbin/install
6983# AIX /bin/install
6984# AmigaOS /C/install, which installs bootblocks on floppy discs
6985# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6986# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6987# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6988# OS/2's system install, which has a completely different semantic
6989# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006990{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6991echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006992if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006993if test "${ac_cv_path_install+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006995else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007001 # Account for people who put trailing slashes in PATH elements.
7002case $as_dir/ in
7003 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007004 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007005 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007006 /usr/ucb/* ) ;;
7007 *)
7008 # OSF1 and SCO ODT 3.0 have their own names for install.
7009 # Don't use installbsd from OSF since it installs stuff as root
7010 # by default.
7011 for ac_prog in ginstall scoinst install; do
7012 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013 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 +00007014 if test $ac_prog = install &&
7015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7016 # AIX install. It has an incompatible calling convention.
7017 :
7018 elif test $ac_prog = install &&
7019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7020 # program-specific install script used by HP pwplus--don't use.
7021 :
7022 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007023 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7024 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007025 fi
7026 fi
7027 done
7028 done
7029 ;;
7030esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007031done
Reid Spencera773bd52006-08-04 18:18:08 +00007032IFS=$as_save_IFS
7033
7034
7035fi
7036 if test "${ac_cv_path_install+set}" = set; then
7037 INSTALL=$ac_cv_path_install
7038 else
7039 # As a last resort, use the slow shell script. Don't cache a
7040 # value for INSTALL within a source directory, because that will
7041 # break other packages using the cache if that directory is
7042 # removed, or if the value is a relative name.
7043 INSTALL=$ac_install_sh
7044 fi
7045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007046{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7047echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007048
7049# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7050# It thinks the first close brace ends the variable substitution.
7051test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7052
7053test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7054
7055test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7056
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007057case "$INSTALL" in
7058 [\\/$]* | ?:[\\/]* ) ;;
7059 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7060esac
Reid Spencera773bd52006-08-04 18:18:08 +00007061
7062# Extract the first word of "bzip2", so it can be a program name with args.
7063set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066if test "${ac_cv_path_BZIP2+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007068else
7069 case $BZIP2 in
7070 [\\/]* | ?:[\\/]*)
7071 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7072 ;;
7073 *)
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 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 +00007081 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007083 break 2
7084 fi
7085done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086done
Reid Spencera773bd52006-08-04 18:18:08 +00007087IFS=$as_save_IFS
7088
Reid Spencera773bd52006-08-04 18:18:08 +00007089 ;;
7090esac
7091fi
7092BZIP2=$ac_cv_path_BZIP2
7093if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007094 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7095echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007096else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007097 { echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007099fi
7100
7101
mike-m68cb3192010-05-06 23:45:43 +00007102# Extract the first word of "cat", so it can be a program name with args.
7103set dummy cat; ac_word=$2
7104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106if test "${ac_cv_path_CAT+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108else
7109 case $CAT in
7110 [\\/]* | ?:[\\/]*)
7111 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7112 ;;
7113 *)
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125done
7126done
7127IFS=$as_save_IFS
7128
7129 ;;
7130esac
7131fi
7132CAT=$ac_cv_path_CAT
7133if test -n "$CAT"; then
7134 { echo "$as_me:$LINENO: result: $CAT" >&5
7135echo "${ECHO_T}$CAT" >&6; }
7136else
7137 { echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6; }
7139fi
7140
7141
Reid Spencera773bd52006-08-04 18:18:08 +00007142# Extract the first word of "doxygen", so it can be a program name with args.
7143set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146if test "${ac_cv_path_DOXYGEN+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007148else
7149 case $DOXYGEN in
7150 [\\/]* | ?:[\\/]*)
7151 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7152 ;;
7153 *)
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 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 +00007161 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007163 break 2
7164 fi
7165done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007166done
Reid Spencera773bd52006-08-04 18:18:08 +00007167IFS=$as_save_IFS
7168
Reid Spencera773bd52006-08-04 18:18:08 +00007169 ;;
7170esac
7171fi
7172DOXYGEN=$ac_cv_path_DOXYGEN
7173if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007174 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7175echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007176else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177 { echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007179fi
7180
7181
Reid Spencera773bd52006-08-04 18:18:08 +00007182# Extract the first word of "groff", so it can be a program name with args.
7183set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186if test "${ac_cv_path_GROFF+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007188else
7189 case $GROFF in
7190 [\\/]* | ?:[\\/]*)
7191 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7192 ;;
7193 *)
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 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 +00007201 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007203 break 2
7204 fi
7205done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007206done
Reid Spencera773bd52006-08-04 18:18:08 +00007207IFS=$as_save_IFS
7208
Reid Spencera773bd52006-08-04 18:18:08 +00007209 ;;
7210esac
7211fi
7212GROFF=$ac_cv_path_GROFF
7213if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214 { echo "$as_me:$LINENO: result: $GROFF" >&5
7215echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007217 { echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007219fi
7220
7221
7222# Extract the first word of "gzip", so it can be a program name with args.
7223set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007226if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007228else
Eric Christopher031d3072010-12-10 01:31:51 +00007229 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007230 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007231 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007232 ;;
7233 *)
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 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 +00007241 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007243 break 2
7244 fi
7245done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007246done
Reid Spencera773bd52006-08-04 18:18:08 +00007247IFS=$as_save_IFS
7248
Reid Spencera773bd52006-08-04 18:18:08 +00007249 ;;
7250esac
7251fi
Eric Christopher031d3072010-12-10 01:31:51 +00007252GZIPBIN=$ac_cv_path_GZIPBIN
7253if test -n "$GZIPBIN"; then
7254 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7255echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007257 { echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007259fi
7260
7261
7262# Extract the first word of "pod2html", so it can be a program name with args.
7263set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266if test "${ac_cv_path_POD2HTML+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007268else
7269 case $POD2HTML in
7270 [\\/]* | ?:[\\/]*)
7271 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7272 ;;
7273 *)
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 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 +00007281 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007283 break 2
7284 fi
7285done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286done
Reid Spencera773bd52006-08-04 18:18:08 +00007287IFS=$as_save_IFS
7288
Reid Spencera773bd52006-08-04 18:18:08 +00007289 ;;
7290esac
7291fi
7292POD2HTML=$ac_cv_path_POD2HTML
7293if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7295echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297 { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007299fi
7300
7301
7302# Extract the first word of "pod2man", so it can be a program name with args.
7303set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306if test "${ac_cv_path_POD2MAN+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007308else
7309 case $POD2MAN in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7312 ;;
7313 *)
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 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 +00007321 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007323 break 2
7324 fi
7325done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326done
Reid Spencera773bd52006-08-04 18:18:08 +00007327IFS=$as_save_IFS
7328
Reid Spencera773bd52006-08-04 18:18:08 +00007329 ;;
7330esac
7331fi
7332POD2MAN=$ac_cv_path_POD2MAN
7333if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007334 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7335echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007337 { echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007339fi
7340
7341
mike-m68cb3192010-05-06 23:45:43 +00007342# Extract the first word of "pdfroff", so it can be a program name with args.
7343set dummy pdfroff; ac_word=$2
7344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346if test "${ac_cv_path_PDFROFF+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349 case $PDFROFF in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7352 ;;
7353 *)
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365done
7366done
7367IFS=$as_save_IFS
7368
7369 ;;
7370esac
7371fi
7372PDFROFF=$ac_cv_path_PDFROFF
7373if test -n "$PDFROFF"; then
7374 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7375echo "${ECHO_T}$PDFROFF" >&6; }
7376else
7377 { echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6; }
7379fi
7380
7381
Reid Spencera773bd52006-08-04 18:18:08 +00007382# Extract the first word of "runtest", so it can be a program name with args.
7383set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386if test "${ac_cv_path_RUNTEST+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007388else
7389 case $RUNTEST in
7390 [\\/]* | ?:[\\/]*)
7391 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7392 ;;
7393 *)
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 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 +00007401 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007403 break 2
7404 fi
7405done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007406done
Reid Spencera773bd52006-08-04 18:18:08 +00007407IFS=$as_save_IFS
7408
Reid Spencera773bd52006-08-04 18:18:08 +00007409 ;;
7410esac
7411fi
7412RUNTEST=$ac_cv_path_RUNTEST
7413if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7415echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417 { echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007419fi
7420
7421
7422
7423no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7425echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007426
7427# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007428if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007429 withval=$with_tclinclude; with_tclinclude=${withval}
7430else
7431 with_tclinclude=''
7432fi
7433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434if test "${ac_cv_path_tclsh+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007436else
7437
7438if test x"${with_tclinclude}" != x ; then
7439 if test -f ${with_tclinclude}/tclsh ; then
7440 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7441 elif test -f ${with_tclinclude}/src/tclsh ; then
7442 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7443 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7445echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7446 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007447 fi
7448fi
Torok Edwin871384f2010-01-26 08:50:50 +00007449fi
7450
Reid Spencera773bd52006-08-04 18:18:08 +00007451
7452if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007453 { echo "$as_me:$LINENO: result: none" >&5
7454echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007455 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
7456do
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461if test "${ac_cv_path_TCLSH+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007463else
7464 case $TCLSH in
7465 [\\/]* | ?:[\\/]*)
7466 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7467 ;;
7468 *)
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 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 +00007476 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007478 break 2
7479 fi
7480done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007481done
Reid Spencera773bd52006-08-04 18:18:08 +00007482IFS=$as_save_IFS
7483
7484 ;;
7485esac
7486fi
7487TCLSH=$ac_cv_path_TCLSH
7488if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7490echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492 { echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007494fi
7495
7496
7497 test -n "$TCLSH" && break
7498done
7499
7500 if test x"${TCLSH}" = x ; then
7501 ac_cv_path_tclsh='';
7502 else
7503 ac_cv_path_tclsh="${TCLSH}";
7504 fi
7505else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007506 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7507echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007508 TCLSH="${ac_cv_path_tclsh}"
7509
7510fi
7511
Reid Spencera773bd52006-08-04 18:18:08 +00007512# Extract the first word of "zip", so it can be a program name with args.
7513set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516if test "${ac_cv_path_ZIP+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007518else
7519 case $ZIP in
7520 [\\/]* | ?:[\\/]*)
7521 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7522 ;;
7523 *)
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 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 +00007531 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007533 break 2
7534 fi
7535done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007536done
Reid Spencera773bd52006-08-04 18:18:08 +00007537IFS=$as_save_IFS
7538
Reid Spencera773bd52006-08-04 18:18:08 +00007539 ;;
7540esac
7541fi
7542ZIP=$ac_cv_path_ZIP
7543if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544 { echo "$as_me:$LINENO: result: $ZIP" >&5
7545echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007547 { echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007549fi
7550
7551
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007552for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007553do
7554 # Extract the first word of "$ac_prog", so it can be a program name with args.
7555set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7558if test "${ac_cv_path_OCAMLC+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007560else
7561 case $OCAMLC in
7562 [\\/]* | ?:[\\/]*)
7563 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7564 ;;
7565 *)
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 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 +00007573 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007575 break 2
7576 fi
7577done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007578done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007579IFS=$as_save_IFS
7580
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007581 ;;
7582esac
7583fi
7584OCAMLC=$ac_cv_path_OCAMLC
7585if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007586 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7587echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589 { echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007591fi
7592
7593
Gordon Henriksene7072162008-03-07 18:20:01 +00007594 test -n "$OCAMLC" && break
7595done
7596
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007597for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007598do
7599 # Extract the first word of "$ac_prog", so it can be a program name with args.
7600set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007605else
7606 case $OCAMLOPT in
7607 [\\/]* | ?:[\\/]*)
7608 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7609 ;;
7610 *)
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 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 +00007618 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007620 break 2
7621 fi
7622done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007623done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007624IFS=$as_save_IFS
7625
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007626 ;;
7627esac
7628fi
7629OCAMLOPT=$ac_cv_path_OCAMLOPT
7630if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007631 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7632echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007633else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007634 { echo "$as_me:$LINENO: result: no" >&5
7635echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007636fi
7637
7638
Gordon Henriksene7072162008-03-07 18:20:01 +00007639 test -n "$OCAMLOPT" && break
7640done
7641
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007642for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007643do
7644 # Extract the first word of "$ac_prog", so it can be a program name with args.
7645set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007650else
7651 case $OCAMLDEP in
7652 [\\/]* | ?:[\\/]*)
7653 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7654 ;;
7655 *)
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657for as_dir in $PATH
7658do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 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 +00007663 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007665 break 2
7666 fi
7667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007669IFS=$as_save_IFS
7670
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007671 ;;
7672esac
7673fi
7674OCAMLDEP=$ac_cv_path_OCAMLDEP
7675if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7677echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007679 { echo "$as_me:$LINENO: result: no" >&5
7680echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007681fi
7682
7683
Gordon Henriksene7072162008-03-07 18:20:01 +00007684 test -n "$OCAMLDEP" && break
7685done
7686
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007687for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007688do
7689 # Extract the first word of "$ac_prog", so it can be a program name with args.
7690set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7693if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007695else
7696 case $OCAMLDOC in
7697 [\\/]* | ?:[\\/]*)
7698 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7699 ;;
7700 *)
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702for as_dir in $PATH
7703do
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 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 +00007708 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007710 break 2
7711 fi
7712done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007713done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007714IFS=$as_save_IFS
7715
7716 ;;
7717esac
7718fi
7719OCAMLDOC=$ac_cv_path_OCAMLDOC
7720if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7722echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007724 { echo "$as_me:$LINENO: result: no" >&5
7725echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007726fi
7727
7728
7729 test -n "$OCAMLDOC" && break
7730done
7731
Torok Edwincc499a42008-10-22 09:56:27 +00007732for ac_prog in gas as
7733do
7734 # Extract the first word of "$ac_prog", so it can be a program name with args.
7735set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7738if test "${ac_cv_path_GAS+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007740else
7741 case $GAS in
7742 [\\/]* | ?:[\\/]*)
7743 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7744 ;;
7745 *)
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 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 +00007753 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007755 break 2
7756 fi
7757done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007758done
Torok Edwincc499a42008-10-22 09:56:27 +00007759IFS=$as_save_IFS
7760
7761 ;;
7762esac
7763fi
7764GAS=$ac_cv_path_GAS
7765if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007766 { echo "$as_me:$LINENO: result: $GAS" >&5
7767echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007769 { echo "$as_me:$LINENO: result: no" >&5
7770echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007771fi
7772
7773
7774 test -n "$GAS" && break
7775done
7776
Reid Spencera773bd52006-08-04 18:18:08 +00007777
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007778{ echo "$as_me:$LINENO: checking for linker version" >&5
7779echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7780if test "${llvm_cv_link_version+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783
7784 version_string="$(ld -v 2>&1 | head -1)"
7785
7786 # Check for ld64.
7787 if (echo "$version_string" | grep -q "ld64"); then
7788 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7789 else
7790 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7791 fi
7792
7793fi
7794{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7795echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7796
7797cat >>confdefs.h <<_ACEOF
7798#define HOST_LINK_VERSION "$llvm_cv_link_version"
7799_ACEOF
7800
7801
7802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7804echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7805if test "${llvm_cv_link_use_r+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007807else
7808 ac_ext=c
7809ac_cpp='$CPP $CPPFLAGS'
7810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7812ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813
7814 oldcflags="$CFLAGS"
7815 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007816 cat >conftest.$ac_ext <<_ACEOF
7817/* confdefs.h. */
7818_ACEOF
7819cat confdefs.h >>conftest.$ac_ext
7820cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007821/* end confdefs.h. */
7822
7823int
7824main ()
7825{
Dan Gohman39ed6782010-04-25 00:12:20 +00007826
Reid Spencera773bd52006-08-04 18:18:08 +00007827 ;
7828 return 0;
7829}
7830_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007831rm -f conftest.$ac_objext conftest$ac_exeext
7832if { (ac_try="$ac_link"
7833case "(($ac_try" in
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7836esac
7837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_link") 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7846 { (case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849esac
7850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_try") 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; } &&
7855 { ac_try='test -s conftest$ac_exeext'
7856 { (case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859esac
7860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_try") 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007865 llvm_cv_link_use_r=yes
7866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867 echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007871fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872
Bill Wendlingebcceee2009-04-18 11:20:33 +00007873rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007874 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007875 CFLAGS="$oldcflags"
7876 ac_ext=c
7877ac_cpp='$CPP $CPPFLAGS'
7878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881
7882
7883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007884{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7885echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007886if test "$llvm_cv_link_use_r" = yes ; then
7887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888cat >>confdefs.h <<\_ACEOF
7889#define HAVE_LINK_R 1
7890_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007891
7892 fi
7893
7894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007895{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7896echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7897if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007899else
7900 ac_ext=c
7901ac_cpp='$CPP $CPPFLAGS'
7902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906 oldcflags="$CFLAGS"
7907 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007908 cat >conftest.$ac_ext <<_ACEOF
7909/* confdefs.h. */
7910_ACEOF
7911cat confdefs.h >>conftest.$ac_ext
7912cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007913/* end confdefs.h. */
7914
7915int
7916main ()
7917{
Dan Gohman39ed6782010-04-25 00:12:20 +00007918
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007919 ;
7920 return 0;
7921}
7922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007923rm -f conftest.$ac_objext conftest$ac_exeext
7924if { (ac_try="$ac_link"
7925case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_link") 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7938 { (case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_try") 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; } &&
7947 { ac_try='test -s conftest$ac_exeext'
7948 { (case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951esac
7952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_try") 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007957 llvm_cv_link_use_export_dynamic=yes
7958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007959 echo "$as_me: failed program was:" >&5
7960sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007964
Bill Wendlingebcceee2009-04-18 11:20:33 +00007965rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007966 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007967 CFLAGS="$oldcflags"
7968 ac_ext=c
7969ac_cpp='$CPP $CPPFLAGS'
7970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972ac_compiler_gnu=$ac_cv_c_compiler_gnu
7973
7974
7975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007976{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7977echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007978if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007980cat >>confdefs.h <<\_ACEOF
7981#define HAVE_LINK_EXPORT_DYNAMIC 1
7982_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007983
7984 fi
7985
7986
Dan Gohmanda612d62010-06-01 14:56:56 +00007987{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7988echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7989if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992 ac_ext=c
7993ac_cpp='$CPP $CPPFLAGS'
7994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997
7998 oldcflags="$CFLAGS"
7999
8000 # The following code is from the autoconf manual,
8001 # "11.13: Limitations of Usual Tools".
8002 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8003 # Use mktemp if possible; otherwise fall back on mkdir,
8004 # with $RANDOM to make collisions less likely.
8005 : ${TMPDIR=/tmp}
8006 {
8007 tmp=`
8008 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8009 ` &&
8010 test -n "$tmp" && test -d "$tmp"
8011 } || {
8012 tmp=$TMPDIR/foo$$-$RANDOM
8013 (umask 077 && mkdir "$tmp")
8014 } || exit $?
8015
Dan Gohmanda612d62010-06-01 14:56:56 +00008016 echo "{" > "$tmp/export.map"
8017 echo " global: main;" >> "$tmp/export.map"
8018 echo " local: *;" >> "$tmp/export.map"
8019 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008020
Dan Gohmanda612d62010-06-01 14:56:56 +00008021 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008022 cat >conftest.$ac_ext <<_ACEOF
8023/* confdefs.h. */
8024_ACEOF
8025cat confdefs.h >>conftest.$ac_ext
8026cat >>conftest.$ac_ext <<_ACEOF
8027/* end confdefs.h. */
8028
8029int
8030main ()
8031{
Dan Gohman39ed6782010-04-25 00:12:20 +00008032
Dan Gohman391569c2010-04-16 22:59:06 +00008033 ;
8034 return 0;
8035}
8036_ACEOF
8037rm -f conftest.$ac_objext conftest$ac_exeext
8038if { (ac_try="$ac_link"
8039case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042esac
8043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_link") 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8052 { (case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055esac
8056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_try") 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try='test -s conftest$ac_exeext'
8062 { (case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065esac
8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008071 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008072else
8073 echo "$as_me: failed program was:" >&5
8074sed 's/^/| /' conftest.$ac_ext >&5
8075
Dan Gohman943005e2010-06-01 16:22:27 +00008076 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008077fi
8078
8079rm -f core conftest.err conftest.$ac_objext \
8080 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008081 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008082 rmdir "$tmp"
8083 CFLAGS="$oldcflags"
8084 ac_ext=c
8085ac_cpp='$CPP $CPPFLAGS'
8086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8088ac_compiler_gnu=$ac_cv_c_compiler_gnu
8089
8090
8091fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008092{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8093echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8094if test "$llvm_cv_link_use_version_script" = yes ; then
8095 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008096
8097 fi
8098
8099
Reid Spencera773bd52006-08-04 18:18:08 +00008100
8101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8103echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8104if test "${ac_cv_c_const+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008107 cat >conftest.$ac_ext <<_ACEOF
8108/* confdefs.h. */
8109_ACEOF
8110cat confdefs.h >>conftest.$ac_ext
8111cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008112/* end confdefs.h. */
8113
8114int
8115main ()
8116{
8117/* FIXME: Include the comments suggested by Paul. */
8118#ifndef __cplusplus
8119 /* Ultrix mips cc rejects this. */
8120 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008122 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008123 char const *const *ccp;
8124 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008125 /* NEC SVR4.0.2 mips cc rejects this. */
8126 struct point {int x, y;};
8127 static struct point const zero = {0,0};
8128 /* AIX XL C 1.02.0.0 rejects this.
8129 It does not let you subtract one const X* pointer from another in
8130 an arm of an if-expression whose if-part is not a constant
8131 expression */
8132 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008133 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008134 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008135 ++ccp;
8136 p = (char**) ccp;
8137 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008138 { /* SCO 3.2v4 cc rejects this. */
8139 char *t;
8140 char const *s = 0 ? (char *) 0 : (char const *) 0;
8141
8142 *t++ = 0;
8143 if (s) return 0;
8144 }
8145 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8146 int x[] = {25, 17};
8147 const int *foo = &x[0];
8148 ++foo;
8149 }
8150 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8151 typedef const int *iptr;
8152 iptr p = 0;
8153 ++p;
8154 }
8155 { /* AIX XL C 1.02.0.0 rejects this saying
8156 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8157 struct s { int j; const int *ap[3]; };
8158 struct s *b; b->j = 5;
8159 }
8160 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8161 const int foo = 10;
8162 if (!foo) return 0;
8163 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008164 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008165#endif
8166
8167 ;
8168 return 0;
8169}
8170_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008171rm -f conftest.$ac_objext
8172if { (ac_try="$ac_compile"
8173case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176esac
8177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_compile") 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
8185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8186 { (case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8189esac
8190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_try") 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; } &&
8195 { ac_try='test -s conftest.$ac_objext'
8196 { (case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199esac
8200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_try") 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008205 ac_cv_c_const=yes
8206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207 echo "$as_me: failed program was:" >&5
8208sed 's/^/| /' conftest.$ac_ext >&5
8209
8210 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212
Reid Spencera773bd52006-08-04 18:18:08 +00008213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008215{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8216echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008217if test $ac_cv_c_const = no; then
8218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008219cat >>confdefs.h <<\_ACEOF
8220#define const
8221_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008222
8223fi
8224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008225
8226
8227
8228
8229
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008230ac_header_dirent=no
8231for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8233{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8234echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238 cat >conftest.$ac_ext <<_ACEOF
8239/* confdefs.h. */
8240_ACEOF
8241cat confdefs.h >>conftest.$ac_ext
8242cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008243/* end confdefs.h. */
8244#include <sys/types.h>
8245#include <$ac_hdr>
8246
8247int
8248main ()
8249{
8250if ((DIR *) 0)
8251return 0;
8252 ;
8253 return 0;
8254}
8255_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008256rm -f conftest.$ac_objext
8257if { (ac_try="$ac_compile"
8258case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261esac
8262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_compile") 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8271 { (case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274esac
8275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_try") 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest.$ac_objext'
8281 { (case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_try") 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008290 eval "$as_ac_Header=yes"
8291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008292 echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297
Reid Spencera773bd52006-08-04 18:18:08 +00008298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008300ac_res=`eval echo '${'$as_ac_Header'}'`
8301 { echo "$as_me:$LINENO: result: $ac_res" >&5
8302echo "${ECHO_T}$ac_res" >&6; }
8303if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008304 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008305#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008306_ACEOF
8307
8308ac_header_dirent=$ac_hdr; break
8309fi
8310
8311done
8312# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8313if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8315echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8316if test "${ac_cv_search_opendir+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008318else
8319 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008320cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h. */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008325/* end confdefs.h. */
8326
Reid Spencera773bd52006-08-04 18:18:08 +00008327/* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008330#ifdef __cplusplus
8331extern "C"
8332#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008333char opendir ();
8334int
8335main ()
8336{
Reid Spencera773bd52006-08-04 18:18:08 +00008337return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008338 ;
8339 return 0;
8340}
8341_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008342for ac_lib in '' dir; do
8343 if test -z "$ac_lib"; then
8344 ac_res="none required"
8345 else
8346 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008348 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008349 rm -f conftest.$ac_objext conftest$ac_exeext
8350if { (ac_try="$ac_link"
8351case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_link") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367esac
8368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_try") 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest$ac_exeext'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008383 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008384else
8385 echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008389fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008390
Bill Wendlingebcceee2009-04-18 11:20:33 +00008391rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392 conftest$ac_exeext
8393 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008394 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008395fi
John Criswell7a73b802003-06-30 21:59:07 +00008396done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008397if test "${ac_cv_search_opendir+set}" = set; then
8398 :
Reid Spencera773bd52006-08-04 18:18:08 +00008399else
8400 ac_cv_search_opendir=no
8401fi
8402rm conftest.$ac_ext
8403LIBS=$ac_func_search_save_LIBS
8404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8406echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008407ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008408if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008410
Reid Spencera773bd52006-08-04 18:18:08 +00008411fi
8412
8413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008414 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8415echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8416if test "${ac_cv_search_opendir+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008418else
8419 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008420cat >conftest.$ac_ext <<_ACEOF
8421/* confdefs.h. */
8422_ACEOF
8423cat confdefs.h >>conftest.$ac_ext
8424cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008425/* end confdefs.h. */
8426
8427/* Override any GCC internal prototype to avoid an error.
8428 Use char because int might match the return type of a GCC
8429 builtin and then its argument prototype would still apply. */
8430#ifdef __cplusplus
8431extern "C"
8432#endif
8433char opendir ();
8434int
8435main ()
8436{
8437return opendir ();
8438 ;
8439 return 0;
8440}
8441_ACEOF
8442for ac_lib in '' x; do
8443 if test -z "$ac_lib"; then
8444 ac_res="none required"
8445 else
8446 ac_res=-l$ac_lib
8447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8448 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008449 rm -f conftest.$ac_objext conftest$ac_exeext
8450if { (ac_try="$ac_link"
8451case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454esac
8455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_link") 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8464 { (case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467esac
8468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_try") 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest$ac_exeext'
8474 { (case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_try") 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008483 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008484else
8485 echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
8488
Reid Spencera773bd52006-08-04 18:18:08 +00008489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490
Bill Wendlingebcceee2009-04-18 11:20:33 +00008491rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008492 conftest$ac_exeext
8493 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008494 break
8495fi
8496done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497if test "${ac_cv_search_opendir+set}" = set; then
8498 :
Reid Spencera773bd52006-08-04 18:18:08 +00008499else
8500 ac_cv_search_opendir=no
8501fi
8502rm conftest.$ac_ext
8503LIBS=$ac_func_search_save_LIBS
8504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008505{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8506echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008507ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008508if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8510
8511fi
8512
8513fi
John Criswell7a73b802003-06-30 21:59:07 +00008514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008515
John Criswell7a73b802003-06-30 21:59:07 +00008516for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008517do
8518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524fi
8525ac_res=`eval echo '${'$as_ac_Header'}'`
8526 { echo "$as_me:$LINENO: result: $ac_res" >&5
8527echo "${ECHO_T}$ac_res" >&6; }
8528else
8529 # Is the header compilable?
8530{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8532cat >conftest.$ac_ext <<_ACEOF
8533/* confdefs.h. */
8534_ACEOF
8535cat confdefs.h >>conftest.$ac_ext
8536cat >>conftest.$ac_ext <<_ACEOF
8537/* end confdefs.h. */
8538$ac_includes_default
8539#include <$ac_header>
8540_ACEOF
8541rm -f conftest.$ac_objext
8542if { (ac_try="$ac_compile"
8543case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546esac
8547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_compile") 2>conftest.er1
8549 ac_status=$?
8550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8556 { (case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559esac
8560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_try") 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; } &&
8565 { ac_try='test -s conftest.$ac_objext'
8566 { (case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_try") 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_header_compiler=yes
8576else
8577 echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
8580 ac_header_compiler=no
8581fi
8582
8583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8585echo "${ECHO_T}$ac_header_compiler" >&6; }
8586
8587# Is the header present?
8588{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8590cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h. */
8596#include <$ac_header>
8597_ACEOF
8598if { (ac_try="$ac_cpp conftest.$ac_ext"
8599case "(($ac_try" in
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8602esac
8603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } >/dev/null; then
8611 if test -s conftest.err; then
8612 ac_cpp_err=$ac_c_preproc_warn_flag
8613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8614 else
8615 ac_cpp_err=
8616 fi
8617else
8618 ac_cpp_err=yes
8619fi
8620if test -z "$ac_cpp_err"; then
8621 ac_header_preproc=yes
8622else
8623 echo "$as_me: failed program was:" >&5
8624sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 ac_header_preproc=no
8627fi
8628
8629rm -f conftest.err conftest.$ac_ext
8630{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8631echo "${ECHO_T}$ac_header_preproc" >&6; }
8632
8633# So? What about this header?
8634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8635 yes:no: )
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8637echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8639echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8640 ac_header_preproc=yes
8641 ;;
8642 no:yes:* )
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8644echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8646echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8648echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8650echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8652echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8654echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8655 ( cat <<\_ASBOX
8656## ----------------------------------- ##
8657## Report this to llvmbugs@cs.uiuc.edu ##
8658## ----------------------------------- ##
8659_ASBOX
8660 ) | sed "s/^/$as_me: WARNING: /" >&2
8661 ;;
8662esac
8663{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667else
8668 eval "$as_ac_Header=\$ac_header_preproc"
8669fi
8670ac_res=`eval echo '${'$as_ac_Header'}'`
8671 { echo "$as_me:$LINENO: result: $ac_res" >&5
8672echo "${ECHO_T}$ac_res" >&6; }
8673
8674fi
8675if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008676 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008678_ACEOF
8679
8680fi
8681
8682done
8683
Reid Spencera773bd52006-08-04 18:18:08 +00008684# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008685if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008686 enableval=$enable_ltdl_install;
8687fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008688
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008690
8691
8692if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008693 INSTALL_LTDL_TRUE=
8694 INSTALL_LTDL_FALSE='#'
8695else
8696 INSTALL_LTDL_TRUE='#'
8697 INSTALL_LTDL_FALSE=
8698fi
8699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008700
8701
8702if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008703 CONVENIENCE_LTDL_TRUE=
8704 CONVENIENCE_LTDL_FALSE='#'
8705else
8706 CONVENIENCE_LTDL_TRUE='#'
8707 CONVENIENCE_LTDL_FALSE=
8708fi
8709
8710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008711{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8712echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008713library_names_spec=
8714libname_spec='lib$name'
8715soname_spec=
8716shrext_cmds=".so"
8717postinstall_cmds=
8718postuninstall_cmds=
8719finish_cmds=
8720finish_eval=
8721shlibpath_var=
8722shlibpath_overrides_runpath=unknown
8723version_type=none
8724dynamic_linker="$host_os ld.so"
8725sys_lib_dlsearch_path_spec="/lib /usr/lib"
8726if test "$GCC" = yes; then
8727 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8728 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8729 # if the path contains ";" then we assume it to be the separator
8730 # otherwise default to the standard path separator (i.e. ":") - it is
8731 # assumed that no part of a normal pathname contains ";" but that should
8732 # okay in the real world where ";" in dirpaths is itself problematic.
8733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8734 else
8735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8736 fi
8737else
8738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8739fi
8740need_lib_prefix=unknown
8741hardcode_into_libs=no
8742
8743# when you set need_version to no, make sure it does not cause -set_version
8744# flags to be left without arguments
8745need_version=unknown
8746
8747case $host_os in
8748aix3*)
8749 version_type=linux
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8751 shlibpath_var=LIBPATH
8752
8753 # AIX 3 has no versioning support, so we append a major version to the name.
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 ;;
8756
8757aix4* | aix5*)
8758 version_type=linux
8759 need_lib_prefix=no
8760 need_version=no
8761 hardcode_into_libs=yes
8762 if test "$host_cpu" = ia64; then
8763 # AIX 5 supports IA64
8764 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8765 shlibpath_var=LD_LIBRARY_PATH
8766 else
8767 # With GCC up to 2.95.x, collect2 would create an import file
8768 # for dependence libraries. The import file would start with
8769 # the line `#! .'. This would cause the generated library to
8770 # depend on `.', always an invalid library. This was fixed in
8771 # development snapshots of GCC prior to 3.0.
8772 case $host_os in
8773 aix4 | aix4.[01] | aix4.[01].*)
8774 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8775 echo ' yes '
8776 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8777 :
8778 else
8779 can_build_shared=no
8780 fi
8781 ;;
8782 esac
8783 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8784 # soname into executable. Probably we can add versioning support to
8785 # collect2, so additional links can be useful in future.
8786 if test "$aix_use_runtimelinking" = yes; then
8787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8788 # instead of lib<name>.a to let people know that these are not
8789 # typical AIX shared libraries.
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 else
8792 # We preserve .a as extension for shared libraries through AIX4.2
8793 # and later when we are not doing run time linking.
8794 library_names_spec='${libname}${release}.a $libname.a'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8796 fi
8797 shlibpath_var=LIBPATH
8798 fi
8799 ;;
8800
8801amigaos*)
8802 library_names_spec='$libname.ixlibrary $libname.a'
8803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8804 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'
8805 ;;
8806
8807beos*)
8808 library_names_spec='${libname}${shared_ext}'
8809 dynamic_linker="$host_os ld.so"
8810 shlibpath_var=LIBRARY_PATH
8811 ;;
8812
8813bsdi[45]*)
8814 version_type=linux
8815 need_version=no
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8822 # the default ld.so.conf also contains /usr/contrib/lib and
8823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8824 # libtool to hard-code these into programs
8825 ;;
8826
8827cygwin* | mingw* | pw32*)
8828 version_type=windows
8829 shrext_cmds=".dll"
8830 need_version=no
8831 need_lib_prefix=no
8832
8833 case $GCC,$host_os in
8834 yes,cygwin* | yes,mingw* | yes,pw32*)
8835 library_names_spec='$libname.dll.a'
8836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8837 postinstall_cmds='base_file=`basename \${file}`~
8838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8839 dldir=$destdir/`dirname \$dlpath`~
8840 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008841 $install_prog $dir/$dlname \$dldir/$dlname~
8842 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8844 dlpath=$dir/\$dldll~
8845 $rm \$dlpath'
8846 shlibpath_overrides_runpath=yes
8847
8848 case $host_os in
8849 cygwin*)
8850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8851 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8852 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8853 ;;
8854 mingw*)
8855 # MinGW DLLs use traditional 'lib' prefix
8856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8858 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8859 # It is most probably a Windows format PATH printed by
8860 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8861 # path with ; separators, and with drive letters. We can handle the
8862 # drive letters (cygwin fileutils understands them), so leave them,
8863 # especially as we might pass files found there to a mingw objdump,
8864 # which wouldn't understand a cygwinified path. Ahh.
8865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8866 else
8867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8868 fi
8869 ;;
8870 pw32*)
8871 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008872 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 +00008873 ;;
8874 esac
8875 ;;
8876
8877 *)
8878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8879 ;;
8880 esac
8881 dynamic_linker='Win32 ld.exe'
8882 # FIXME: first we should search . and the directory the executable is in
8883 shlibpath_var=PATH
8884 ;;
8885
8886darwin* | rhapsody*)
8887 dynamic_linker="$host_os dyld"
8888 version_type=darwin
8889 need_lib_prefix=no
8890 need_version=no
8891 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8892 soname_spec='${libname}${release}${major}$shared_ext'
8893 shlibpath_overrides_runpath=yes
8894 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008895 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008896 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8897 if test "$GCC" = yes; then
8898 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"`
8899 else
8900 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8901 fi
8902 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8903 ;;
8904
8905dgux*)
8906 version_type=linux
8907 need_lib_prefix=no
8908 need_version=no
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 ;;
8913
8914freebsd1*)
8915 dynamic_linker=no
8916 ;;
8917
8918kfreebsd*-gnu)
8919 version_type=linux
8920 need_lib_prefix=no
8921 need_version=no
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=no
8926 hardcode_into_libs=yes
8927 dynamic_linker='GNU ld.so'
8928 ;;
8929
Reid Spencera773bd52006-08-04 18:18:08 +00008930freebsd* | dragonfly*)
8931 # DragonFly does not have aout. When/if they implement a new
8932 # versioning mechanism, adjust this.
8933 if test -x /usr/bin/objformat; then
8934 objformat=`/usr/bin/objformat`
8935 else
8936 case $host_os in
8937 freebsd[123]*) objformat=aout ;;
8938 *) objformat=elf ;;
8939 esac
8940 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008941 version_type=freebsd-$objformat
8942 case $version_type in
8943 freebsd-elf*)
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8945 need_version=no
8946 need_lib_prefix=no
8947 ;;
8948 freebsd-*)
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8950 need_version=yes
8951 ;;
8952 esac
8953 shlibpath_var=LD_LIBRARY_PATH
8954 case $host_os in
8955 freebsd2*)
8956 shlibpath_overrides_runpath=yes
8957 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008958 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008959 shlibpath_overrides_runpath=yes
8960 hardcode_into_libs=yes
8961 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008964 shlibpath_overrides_runpath=no
8965 hardcode_into_libs=yes
8966 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008967 freebsd*) # from 4.6 on
8968 shlibpath_overrides_runpath=yes
8969 hardcode_into_libs=yes
8970 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008971 esac
8972 ;;
8973
8974gnu*)
8975 version_type=linux
8976 need_lib_prefix=no
8977 need_version=no
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 hardcode_into_libs=yes
8982 ;;
8983
8984hpux9* | hpux10* | hpux11*)
8985 # Give a soname corresponding to the major version so that dld.sl refuses to
8986 # link against other versions.
8987 version_type=sunos
8988 need_lib_prefix=no
8989 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008990 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008991 ia64*)
8992 shrext_cmds='.so'
8993 hardcode_into_libs=yes
8994 dynamic_linker="$host_os dld.so"
8995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 if test "X$HPUX_IA64_MODE" = X32; then
9000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9001 else
9002 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9003 fi
9004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9005 ;;
9006 hppa*64*)
9007 shrext_cmds='.sl'
9008 hardcode_into_libs=yes
9009 dynamic_linker="$host_os dld.sl"
9010 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9016 ;;
9017 *)
9018 shrext_cmds='.sl'
9019 dynamic_linker="$host_os dld.sl"
9020 shlibpath_var=SHLIB_PATH
9021 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 ;;
9025 esac
9026 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9027 postinstall_cmds='chmod 555 $lib'
9028 ;;
9029
Reid Spencera773bd52006-08-04 18:18:08 +00009030interix3*)
9031 version_type=linux
9032 need_lib_prefix=no
9033 need_version=no
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=no
9039 hardcode_into_libs=yes
9040 ;;
9041
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009042irix5* | irix6* | nonstopux*)
9043 case $host_os in
9044 nonstopux*) version_type=nonstopux ;;
9045 *)
9046 if test "$lt_cv_prog_gnu_ld" = yes; then
9047 version_type=linux
9048 else
9049 version_type=irix
9050 fi ;;
9051 esac
9052 need_lib_prefix=no
9053 need_version=no
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9056 case $host_os in
9057 irix5* | nonstopux*)
9058 libsuff= shlibsuff=
9059 ;;
9060 *)
9061 case $LD in # libtool.m4 will add one of these switches to LD
9062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9063 libsuff= shlibsuff= libmagic=32-bit;;
9064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9065 libsuff=32 shlibsuff=N32 libmagic=N32;;
9066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9068 *) libsuff= shlibsuff= libmagic=never-match;;
9069 esac
9070 ;;
9071 esac
9072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9073 shlibpath_overrides_runpath=no
9074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9076 hardcode_into_libs=yes
9077 ;;
9078
9079# No shared lib support for Linux oldld, aout, or coff.
9080linux*oldld* | linux*aout* | linux*coff*)
9081 dynamic_linker=no
9082 ;;
9083
9084# This must be Linux ELF.
9085linux*)
9086 version_type=linux
9087 need_lib_prefix=no
9088 need_version=no
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=no
9094 # This implies no fast_install, which is unacceptable.
9095 # Some rework will be needed to allow for fast_install
9096 # before this can be enabled.
9097 hardcode_into_libs=yes
9098
9099 # Append ld.so.conf contents to the search path
9100 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009101 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 +00009102 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9103 fi
9104
9105 # We used to test for /lib/ld.so.1 and disable shared libraries on
9106 # powerpc, because MkLinux only supported shared libraries with the
9107 # GNU dynamic linker. Since this was broken with cross compilers,
9108 # most powerpc-linux boxes support dynamic linking these days and
9109 # people can always --disable-shared, the test was removed, and we
9110 # assume the GNU/Linux dynamic linker is in use.
9111 dynamic_linker='GNU/Linux ld.so'
9112 ;;
9113
9114knetbsd*-gnu)
9115 version_type=linux
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=no
9122 hardcode_into_libs=yes
9123 dynamic_linker='GNU ld.so'
9124 ;;
9125
9126netbsd*)
9127 version_type=sunos
9128 need_lib_prefix=no
9129 need_version=no
9130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9133 dynamic_linker='NetBSD (a.out) ld.so'
9134 else
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 dynamic_linker='NetBSD ld.elf_so'
9138 fi
9139 shlibpath_var=LD_LIBRARY_PATH
9140 shlibpath_overrides_runpath=yes
9141 hardcode_into_libs=yes
9142 ;;
9143
9144newsos6)
9145 version_type=linux
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 shlibpath_overrides_runpath=yes
9149 ;;
9150
9151nto-qnx*)
9152 version_type=linux
9153 need_lib_prefix=no
9154 need_version=no
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes
9159 ;;
9160
9161openbsd*)
9162 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009163 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009164 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9166 case $host_os in
9167 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9168 *) need_version=no ;;
9169 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9174 case $host_os in
9175 openbsd2.[89] | openbsd2.[89].*)
9176 shlibpath_overrides_runpath=no
9177 ;;
9178 *)
9179 shlibpath_overrides_runpath=yes
9180 ;;
9181 esac
9182 else
9183 shlibpath_overrides_runpath=yes
9184 fi
9185 ;;
9186
9187os2*)
9188 libname_spec='$name'
9189 shrext_cmds=".dll"
9190 need_lib_prefix=no
9191 library_names_spec='$libname${shared_ext} $libname.a'
9192 dynamic_linker='OS/2 ld.exe'
9193 shlibpath_var=LIBPATH
9194 ;;
9195
9196osf3* | osf4* | osf5*)
9197 version_type=osf
9198 need_lib_prefix=no
9199 need_version=no
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9205 ;;
9206
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009207solaris*)
9208 version_type=linux
9209 need_lib_prefix=no
9210 need_version=no
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 shlibpath_var=LD_LIBRARY_PATH
9214 shlibpath_overrides_runpath=yes
9215 hardcode_into_libs=yes
9216 # ldd complains unless libraries are executable
9217 postinstall_cmds='chmod +x $lib'
9218 ;;
9219
9220sunos4*)
9221 version_type=sunos
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9223 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=yes
9226 if test "$with_gnu_ld" = yes; then
9227 need_lib_prefix=no
9228 fi
9229 need_version=yes
9230 ;;
9231
Reid Spencera773bd52006-08-04 18:18:08 +00009232sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009233 version_type=linux
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 case $host_vendor in
9238 sni)
9239 shlibpath_overrides_runpath=no
9240 need_lib_prefix=no
9241 export_dynamic_flag_spec='${wl}-Blargedynsym'
9242 runpath_var=LD_RUN_PATH
9243 ;;
9244 siemens)
9245 need_lib_prefix=no
9246 ;;
9247 motorola)
9248 need_lib_prefix=no
9249 need_version=no
9250 shlibpath_overrides_runpath=no
9251 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9252 ;;
9253 esac
9254 ;;
9255
9256sysv4*MP*)
9257 if test -d /usr/nec ;then
9258 version_type=linux
9259 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9260 soname_spec='$libname${shared_ext}.$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 fi
9263 ;;
9264
Reid Spencera773bd52006-08-04 18:18:08 +00009265sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9266 version_type=freebsd-elf
9267 need_lib_prefix=no
9268 need_version=no
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 hardcode_into_libs=yes
9273 if test "$with_gnu_ld" = yes; then
9274 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9275 shlibpath_overrides_runpath=no
9276 else
9277 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9278 shlibpath_overrides_runpath=yes
9279 case $host_os in
9280 sco3.2v5*)
9281 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9282 ;;
9283 esac
9284 fi
9285 sys_lib_dlsearch_path_spec='/usr/lib'
9286 ;;
9287
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009288uts4*)
9289 version_type=linux
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 ;;
9294
9295*)
9296 dynamic_linker=no
9297 ;;
9298esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009299{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9300echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009301test "$dynamic_linker" = no && can_build_shared=no
9302
Reid Spencera773bd52006-08-04 18:18:08 +00009303variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9304if test "$GCC" = yes; then
9305 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9306fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307
Reid Spencera773bd52006-08-04 18:18:08 +00009308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009309{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9310echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9311if test "${libltdl_cv_shlibext+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009313else
9314
9315module=yes
9316eval libltdl_cv_shlibext=$shrext_cmds
9317
9318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009319{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9320echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009321if test -n "$libltdl_cv_shlibext"; then
9322
9323cat >>confdefs.h <<_ACEOF
9324#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9325_ACEOF
9326
9327fi
9328
9329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009330{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9331echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9332if test "${libltdl_cv_shlibpath_var+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334else
9335 libltdl_cv_shlibpath_var="$shlibpath_var"
9336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009337{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9338echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009339if test -n "$libltdl_cv_shlibpath_var"; then
9340
9341cat >>confdefs.h <<_ACEOF
9342#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9343_ACEOF
9344
9345fi
9346
9347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009348{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9349echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9350if test "${libltdl_cv_sys_search_path+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009352else
9353 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009355{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9356echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357if test -n "$libltdl_cv_sys_search_path"; then
9358 sys_search_path=
9359 for dir in $libltdl_cv_sys_search_path; do
9360 if test -z "$sys_search_path"; then
9361 sys_search_path="$dir"
9362 else
9363 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9364 fi
9365 done
9366
9367cat >>confdefs.h <<_ACEOF
9368#define LTDL_SYSSEARCHPATH "$sys_search_path"
9369_ACEOF
9370
9371fi
9372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009373{ echo "$as_me:$LINENO: checking for objdir" >&5
9374echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9375if test "${libltdl_cv_objdir+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009377else
9378 libltdl_cv_objdir="$objdir"
9379 if test -n "$objdir"; then
9380 :
9381 else
9382 rm -f .libs 2>/dev/null
9383 mkdir .libs 2>/dev/null
9384 if test -d .libs; then
9385 libltdl_cv_objdir=.libs
9386 else
9387 # MS-DOS does not allow filenames that begin with a dot.
9388 libltdl_cv_objdir=_libs
9389 fi
9390 rmdir .libs 2>/dev/null
9391 fi
9392
9393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009394{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9395echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009396
9397cat >>confdefs.h <<_ACEOF
9398#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9399_ACEOF
9400
9401
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009402
9403
9404
9405
9406# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009407{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9408echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9409if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009411else
9412
9413# These are sane defaults that work on at least a few old systems.
9414# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9415
9416# Character class describing NM global symbol codes.
9417symcode='[BCDEGRST]'
9418
9419# Regexp to match symbols that can be accessed directly from C.
9420sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9421
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009422# Transform an extracted symbol line into a proper C declaration
9423lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9424
9425# Transform an extracted symbol line into symbol name and symbol address
9426lt_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'"
9427
9428# Define system-specific variables.
9429case $host_os in
9430aix*)
9431 symcode='[BCDT]'
9432 ;;
9433cygwin* | mingw* | pw32*)
9434 symcode='[ABCDGISTW]'
9435 ;;
9436hpux*) # Its linker distinguishes data from code symbols
9437 if test "$host_cpu" = ia64; then
9438 symcode='[ABCDEGRST]'
9439 fi
9440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9441 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'"
9442 ;;
9443linux*)
9444 if test "$host_cpu" = ia64; then
9445 symcode='[ABCDGIRSTW]'
9446 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9447 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'"
9448 fi
9449 ;;
9450irix* | nonstopux*)
9451 symcode='[BCDEGRST]'
9452 ;;
9453osf*)
9454 symcode='[BCDEGQRST]'
9455 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009456solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009457 symcode='[BDRT]'
9458 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009459sco3.2v5*)
9460 symcode='[DT]'
9461 ;;
9462sysv4.2uw2*)
9463 symcode='[DT]'
9464 ;;
9465sysv5* | sco5v6* | unixware* | OpenUNIX*)
9466 symcode='[ABDT]'
9467 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468sysv4)
9469 symcode='[DFNSTU]'
9470 ;;
9471esac
9472
9473# Handle CRLF in mingw tool chain
9474opt_cr=
9475case $build_os in
9476mingw*)
9477 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9478 ;;
9479esac
9480
9481# If we're using GNU nm, then use its standard symbol codes.
9482case `$NM -V 2>&1` in
9483*GNU* | *'with BFD'*)
9484 symcode='[ABCDGIRSTW]' ;;
9485esac
9486
9487# Try without a prefix undercore, then with it.
9488for ac_symprfx in "" "_"; do
9489
Reid Spencera773bd52006-08-04 18:18:08 +00009490 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9491 symxfrm="\\1 $ac_symprfx\\2 \\2"
9492
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009494 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 +00009495
9496 # Check to see that the pipe works correctly.
9497 pipe_works=no
9498
9499 rm -f conftest*
9500 cat > conftest.$ac_ext <<EOF
9501#ifdef __cplusplus
9502extern "C" {
9503#endif
9504char nm_test_var;
9505void nm_test_func(){}
9506#ifdef __cplusplus
9507}
9508#endif
9509int main(){nm_test_var='a';nm_test_func();return(0);}
9510EOF
9511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513 (eval $ac_compile) 2>&5
9514 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517 # Now try to grab the symbols.
9518 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009519 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 +00009520 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9521 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009524 # Try sorting and uniquifying the output.
9525 if sort "$nlist" | uniq > "$nlist"T; then
9526 mv -f "$nlist"T "$nlist"
9527 else
9528 rm -f "$nlist"T
9529 fi
9530
9531 # Make sure that we snagged all the symbols we need.
9532 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9533 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9534 cat <<EOF > conftest.$ac_ext
9535#ifdef __cplusplus
9536extern "C" {
9537#endif
9538
9539EOF
9540 # Now generate the symbol file.
9541 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9542
9543 cat <<EOF >> conftest.$ac_ext
9544#if defined (__STDC__) && __STDC__
9545# define lt_ptr_t void *
9546#else
9547# define lt_ptr_t char *
9548# define const
9549#endif
9550
9551/* The mapping between symbol names and symbols. */
9552const struct {
9553 const char *name;
9554 lt_ptr_t address;
9555}
9556lt_preloaded_symbols[] =
9557{
9558EOF
9559 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9560 cat <<\EOF >> conftest.$ac_ext
9561 {0, (lt_ptr_t) 0}
9562};
9563
9564#ifdef __cplusplus
9565}
9566#endif
9567EOF
9568 # Now try linking the two files.
9569 mv conftest.$ac_objext conftstm.$ac_objext
9570 lt_save_LIBS="$LIBS"
9571 lt_save_CFLAGS="$CFLAGS"
9572 LIBS="conftstm.$ac_objext"
9573 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009575 (eval $ac_link) 2>&5
9576 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009579 pipe_works=yes
9580 fi
9581 LIBS="$lt_save_LIBS"
9582 CFLAGS="$lt_save_CFLAGS"
9583 else
9584 echo "cannot find nm_test_func in $nlist" >&5
9585 fi
9586 else
9587 echo "cannot find nm_test_var in $nlist" >&5
9588 fi
9589 else
9590 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9591 fi
9592 else
9593 echo "$progname: failed program was:" >&5
9594 cat conftest.$ac_ext >&5
9595 fi
9596 rm -f conftest* conftst*
9597
9598 # Do not use the global_symbol_pipe unless it works.
9599 if test "$pipe_works" = yes; then
9600 break
9601 else
9602 lt_cv_sys_global_symbol_pipe=
9603 fi
9604done
9605
9606fi
9607
9608if test -z "$lt_cv_sys_global_symbol_pipe"; then
9609 lt_cv_sys_global_symbol_to_cdecl=
9610fi
9611if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009612 { echo "$as_me:$LINENO: result: failed" >&5
9613echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009615 { echo "$as_me:$LINENO: result: ok" >&5
9616echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617fi
9618
9619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009620{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9621echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9622if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009624else
9625 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9626 libltdl_cv_preloaded_symbols=yes
9627 else
9628 libltdl_cv_preloaded_symbols=no
9629 fi
9630
9631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009632{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9633echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009634if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009636cat >>confdefs.h <<\_ACEOF
9637#define HAVE_PRELOADED_SYMBOLS 1
9638_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009639
9640fi
9641
9642LIBADD_DL=
9643
9644ac_ext=c
9645ac_cpp='$CPP $CPPFLAGS'
9646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9648ac_compiler_gnu=$ac_cv_c_compiler_gnu
9649
9650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009651{ echo "$as_me:$LINENO: checking for shl_load" >&5
9652echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9653if test "${ac_cv_func_shl_load+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655else
9656 cat >conftest.$ac_ext <<_ACEOF
9657/* confdefs.h. */
9658_ACEOF
9659cat confdefs.h >>conftest.$ac_ext
9660cat >>conftest.$ac_ext <<_ACEOF
9661/* end confdefs.h. */
9662/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9664#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009666/* System header to define __stub macros and hopefully few prototypes,
9667 which can conflict with char shl_load (); below.
9668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9669 <limits.h> exists even on freestanding compilers. */
9670
9671#ifdef __STDC__
9672# include <limits.h>
9673#else
9674# include <assert.h>
9675#endif
9676
9677#undef shl_load
9678
9679/* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9682#ifdef __cplusplus
9683extern "C"
9684#endif
9685char shl_load ();
9686/* The GNU C library defines this for functions which it implements
9687 to always fail with ENOSYS. Some functions are actually named
9688 something starting with __ and the normal name is an alias. */
9689#if defined __stub_shl_load || defined __stub___shl_load
9690choke me
9691#endif
9692
9693int
9694main ()
9695{
9696return shl_load ();
9697 ;
9698 return 0;
9699}
9700_ACEOF
9701rm -f conftest.$ac_objext conftest$ac_exeext
9702if { (ac_try="$ac_link"
9703case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9706esac
9707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>conftest.er1
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716 { (case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9719esac
9720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_try") 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_func_shl_load=yes
9736else
9737 echo "$as_me: failed program was:" >&5
9738sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ac_cv_func_shl_load=no
9741fi
9742
9743rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745fi
9746{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9747echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9748if test $ac_cv_func_shl_load = yes; then
9749
9750cat >>confdefs.h <<\_ACEOF
9751#define HAVE_SHL_LOAD 1
9752_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753
9754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009755 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9756echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9757if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009759else
9760 ac_check_lib_save_LIBS=$LIBS
9761LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009762cat >conftest.$ac_ext <<_ACEOF
9763/* confdefs.h. */
9764_ACEOF
9765cat confdefs.h >>conftest.$ac_ext
9766cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009767/* end confdefs.h. */
9768
Reid Spencera773bd52006-08-04 18:18:08 +00009769/* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772#ifdef __cplusplus
9773extern "C"
9774#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009775char shl_load ();
9776int
9777main ()
9778{
Reid Spencera773bd52006-08-04 18:18:08 +00009779return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780 ;
9781 return 0;
9782}
9783_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009784rm -f conftest.$ac_objext conftest$ac_exeext
9785if { (ac_try="$ac_link"
9786case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789esac
9790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_link") 2>conftest.er1
9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9799 { (case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802esac
9803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_try") 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try='test -s conftest$ac_exeext'
9809 { (case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812esac
9813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_try") 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818 ac_cv_lib_dld_shl_load=yes
9819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009820 echo "$as_me: failed program was:" >&5
9821sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009825
Bill Wendlingebcceee2009-04-18 11:20:33 +00009826rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009827 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009828LIBS=$ac_check_lib_save_LIBS
9829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009830{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9831echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9832if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009834cat >>confdefs.h <<\_ACEOF
9835#define HAVE_SHL_LOAD 1
9836_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009837
9838 LIBADD_DL="$LIBADD_DL -ldld"
9839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009840 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9841echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9842if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844else
9845 ac_check_lib_save_LIBS=$LIBS
9846LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009847cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h. */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852/* end confdefs.h. */
9853
Reid Spencera773bd52006-08-04 18:18:08 +00009854/* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857#ifdef __cplusplus
9858extern "C"
9859#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860char dlopen ();
9861int
9862main ()
9863{
Reid Spencera773bd52006-08-04 18:18:08 +00009864return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865 ;
9866 return 0;
9867}
9868_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009869rm -f conftest.$ac_objext conftest$ac_exeext
9870if { (ac_try="$ac_link"
9871case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_link") 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9884 { (case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887esac
9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_try") 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; } &&
9893 { ac_try='test -s conftest$ac_exeext'
9894 { (case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_try") 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903 ac_cv_lib_dl_dlopen=yes
9904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009905 echo "$as_me: failed program was:" >&5
9906sed 's/^/| /' conftest.$ac_ext >&5
9907
9908 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009910
Bill Wendlingebcceee2009-04-18 11:20:33 +00009911rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009912 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009913LIBS=$ac_check_lib_save_LIBS
9914fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009915{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9916echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9917if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009919cat >>confdefs.h <<\_ACEOF
9920#define HAVE_LIBDL 1
9921_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009922
9923 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009925 cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930/* end confdefs.h. */
9931#if HAVE_DLFCN_H
9932# include <dlfcn.h>
9933#endif
9934
9935int
9936main ()
9937{
9938dlopen(0, 0);
9939 ;
9940 return 0;
9941}
9942_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009943rm -f conftest.$ac_objext conftest$ac_exeext
9944if { (ac_try="$ac_link"
9945case "(($ac_try" in
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9948esac
9949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_link") 2>conftest.er1
9951 ac_status=$?
9952 grep -v '^ *+' conftest.er1 >conftest.err
9953 rm -f conftest.er1
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9958 { (case "(($ac_try" in
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9961esac
9962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_try") 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest$ac_exeext'
9968 { (case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971esac
9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_try") 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009978cat >>confdefs.h <<\_ACEOF
9979#define HAVE_LIBDL 1
9980_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981 libltdl_cv_func_dlopen="yes"
9982else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9987echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9988if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990else
9991 ac_check_lib_save_LIBS=$LIBS
9992LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009993cat >conftest.$ac_ext <<_ACEOF
9994/* confdefs.h. */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998/* end confdefs.h. */
9999
Reid Spencera773bd52006-08-04 18:18:08 +000010000/* Override any GCC internal prototype to avoid an error.
10001 Use char because int might match the return type of a GCC
10002 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003#ifdef __cplusplus
10004extern "C"
10005#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006char dlopen ();
10007int
10008main ()
10009{
Reid Spencera773bd52006-08-04 18:18:08 +000010010return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011 ;
10012 return 0;
10013}
10014_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010015rm -f conftest.$ac_objext conftest$ac_exeext
10016if { (ac_try="$ac_link"
10017case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10020esac
10021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_link") 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10030 { (case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10033esac
10034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_try") 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10043esac
10044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_try") 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010049 ac_cv_lib_svld_dlopen=yes
10050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010051 echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010056
Bill Wendlingebcceee2009-04-18 11:20:33 +000010057rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010058 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059LIBS=$ac_check_lib_save_LIBS
10060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010061{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10062echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10063if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010065cat >>confdefs.h <<\_ACEOF
10066#define HAVE_LIBDL 1
10067_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010068
10069 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010071 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10072echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10073if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010075else
10076 ac_check_lib_save_LIBS=$LIBS
10077LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010078cat >conftest.$ac_ext <<_ACEOF
10079/* confdefs.h. */
10080_ACEOF
10081cat confdefs.h >>conftest.$ac_ext
10082cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083/* end confdefs.h. */
10084
Reid Spencera773bd52006-08-04 18:18:08 +000010085/* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088#ifdef __cplusplus
10089extern "C"
10090#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010091char dld_link ();
10092int
10093main ()
10094{
Reid Spencera773bd52006-08-04 18:18:08 +000010095return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096 ;
10097 return 0;
10098}
10099_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010100rm -f conftest.$ac_objext conftest$ac_exeext
10101if { (ac_try="$ac_link"
10102case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105esac
10106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_link") 2>conftest.er1
10108 ac_status=$?
10109 grep -v '^ *+' conftest.er1 >conftest.err
10110 rm -f conftest.er1
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10115 { (case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118esac
10119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_try") 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try='test -s conftest$ac_exeext'
10125 { (case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_try") 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010134 ac_cv_lib_dld_dld_link=yes
10135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010136 echo "$as_me: failed program was:" >&5
10137sed 's/^/| /' conftest.$ac_ext >&5
10138
10139 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010141
Bill Wendlingebcceee2009-04-18 11:20:33 +000010142rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010143 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144LIBS=$ac_check_lib_save_LIBS
10145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010146{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10147echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10148if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010150cat >>confdefs.h <<\_ACEOF
10151#define HAVE_DLD 1
10152_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153
10154 LIBADD_DL="$LIBADD_DL -ldld"
10155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010156 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10157echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10158if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161 cat >conftest.$ac_ext <<_ACEOF
10162/* confdefs.h. */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h. */
10167/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10169#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010171/* System header to define __stub macros and hopefully few prototypes,
10172 which can conflict with char _dyld_func_lookup (); below.
10173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10174 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010176#ifdef __STDC__
10177# include <limits.h>
10178#else
10179# include <assert.h>
10180#endif
10181
10182#undef _dyld_func_lookup
10183
10184/* Override any GCC internal prototype to avoid an error.
10185 Use char because int might match the return type of a GCC
10186 builtin and then its argument prototype would still apply. */
10187#ifdef __cplusplus
10188extern "C"
10189#endif
10190char _dyld_func_lookup ();
10191/* The GNU C library defines this for functions which it implements
10192 to always fail with ENOSYS. Some functions are actually named
10193 something starting with __ and the normal name is an alias. */
10194#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10195choke me
10196#endif
10197
10198int
10199main ()
10200{
10201return _dyld_func_lookup ();
10202 ;
10203 return 0;
10204}
10205_ACEOF
10206rm -f conftest.$ac_objext conftest$ac_exeext
10207if { (ac_try="$ac_link"
10208case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10211esac
10212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213 (eval "$ac_link") 2>conftest.er1
10214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10221 { (case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10224esac
10225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_try") 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; } &&
10230 { ac_try='test -s conftest$ac_exeext'
10231 { (case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_try") 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_cv_func__dyld_func_lookup=yes
10241else
10242 echo "$as_me: failed program was:" >&5
10243sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010246fi
Reid Spencera773bd52006-08-04 18:18:08 +000010247
Bill Wendlingebcceee2009-04-18 11:20:33 +000010248rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010249 conftest$ac_exeext conftest.$ac_ext
10250fi
10251{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10252echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10253if test $ac_cv_func__dyld_func_lookup = yes; then
10254
10255cat >>confdefs.h <<\_ACEOF
10256#define HAVE_DYLD 1
10257_ACEOF
10258
10259fi
10260
10261
10262fi
10263
10264
10265fi
10266
10267
10268fi
10269
10270rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272
10273fi
10274
10275
10276fi
10277
10278
10279fi
10280
10281
10282if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10283then
10284 lt_save_LIBS="$LIBS"
10285 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010286
10287for ac_func in dlerror
10288do
10289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10290{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10292if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295 cat >conftest.$ac_ext <<_ACEOF
10296/* confdefs.h. */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h. */
10301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10303#define $ac_func innocuous_$ac_func
10304
10305/* System header to define __stub macros and hopefully few prototypes,
10306 which can conflict with char $ac_func (); below.
10307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308 <limits.h> exists even on freestanding compilers. */
10309
10310#ifdef __STDC__
10311# include <limits.h>
10312#else
10313# include <assert.h>
10314#endif
10315
10316#undef $ac_func
10317
10318/* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10321#ifdef __cplusplus
10322extern "C"
10323#endif
10324char $ac_func ();
10325/* The GNU C library defines this for functions which it implements
10326 to always fail with ENOSYS. Some functions are actually named
10327 something starting with __ and the normal name is an alias. */
10328#if defined __stub_$ac_func || defined __stub___$ac_func
10329choke me
10330#endif
10331
10332int
10333main ()
10334{
10335return $ac_func ();
10336 ;
10337 return 0;
10338}
10339_ACEOF
10340rm -f conftest.$ac_objext conftest$ac_exeext
10341if { (ac_try="$ac_link"
10342case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345esac
10346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_link") 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10355 { (case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10358esac
10359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_try") 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest$ac_exeext'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368esac
10369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 eval "$as_ac_var=yes"
10375else
10376 echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
10379 eval "$as_ac_var=no"
10380fi
10381
10382rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10384fi
10385ac_res=`eval echo '${'$as_ac_var'}'`
10386 { echo "$as_me:$LINENO: result: $ac_res" >&5
10387echo "${ECHO_T}$ac_res" >&6; }
10388if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010391_ACEOF
10392
10393fi
10394done
10395
10396 LIBS="$lt_save_LIBS"
10397fi
10398ac_ext=c
10399ac_cpp='$CPP $CPPFLAGS'
10400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10402ac_compiler_gnu=$ac_cv_c_compiler_gnu
10403
10404
10405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010406{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10407echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10408if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410else
10411 ac_cv_sys_symbol_underscore=no
10412 cat > conftest.$ac_ext <<EOF
10413void nm_test_func(){}
10414int main(){nm_test_func;return 0;}
10415EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010417 (eval $ac_compile) 2>&5
10418 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421 # Now try to grab the symbols.
10422 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010423 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 +000010424 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10425 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428 # See whether the symbols have a leading underscore.
10429 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10430 ac_cv_sys_symbol_underscore=yes
10431 else
10432 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10433 :
10434 else
10435 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10436 fi
10437 fi
10438 else
10439 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10440 fi
10441 else
10442 echo "configure: failed program was:" >&5
10443 cat conftest.c >&5
10444 fi
10445 rm -rf conftest*
10446
10447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010448{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10449echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010450
10451
10452if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10453 if test x"$libltdl_cv_func_dlopen" = xyes ||
10454 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010455 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10456echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10457if test "${libltdl_cv_need_uscore+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459else
10460 libltdl_cv_need_uscore=unknown
10461 save_LIBS="$LIBS"
10462 LIBS="$LIBS $LIBADD_DL"
10463 if test "$cross_compiling" = yes; then :
10464 libltdl_cv_need_uscore=cross
10465else
10466 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10467 lt_status=$lt_dlunknown
10468 cat > conftest.$ac_ext <<EOF
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000010469#line 10474 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470#include "confdefs.h"
10471
10472#if HAVE_DLFCN_H
10473#include <dlfcn.h>
10474#endif
10475
10476#include <stdio.h>
10477
10478#ifdef RTLD_GLOBAL
10479# define LT_DLGLOBAL RTLD_GLOBAL
10480#else
10481# ifdef DL_GLOBAL
10482# define LT_DLGLOBAL DL_GLOBAL
10483# else
10484# define LT_DLGLOBAL 0
10485# endif
10486#endif
10487
10488/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10489 find out it does not work in some platform. */
10490#ifndef LT_DLLAZY_OR_NOW
10491# ifdef RTLD_LAZY
10492# define LT_DLLAZY_OR_NOW RTLD_LAZY
10493# else
10494# ifdef DL_LAZY
10495# define LT_DLLAZY_OR_NOW DL_LAZY
10496# else
10497# ifdef RTLD_NOW
10498# define LT_DLLAZY_OR_NOW RTLD_NOW
10499# else
10500# ifdef DL_NOW
10501# define LT_DLLAZY_OR_NOW DL_NOW
10502# else
10503# define LT_DLLAZY_OR_NOW 0
10504# endif
10505# endif
10506# endif
10507# endif
10508#endif
10509
10510#ifdef __cplusplus
10511extern "C" void exit (int);
10512#endif
10513
10514void fnord() { int i=42;}
10515int main ()
10516{
10517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10518 int status = $lt_dlunknown;
10519
10520 if (self)
10521 {
10522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10523 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10524 /* dlclose (self); */
10525 }
Reid Spencera773bd52006-08-04 18:18:08 +000010526 else
10527 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528
10529 exit (status);
10530}
10531EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010533 (eval $ac_link) 2>&5
10534 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010537 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538 lt_status=$?
10539 case x$lt_status in
10540 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10541 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010542 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010543 esac
10544 else :
10545 # compilation failed
10546
10547 fi
10548fi
10549rm -fr conftest*
10550
10551 LIBS="$save_LIBS"
10552
10553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010554{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10555echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010556 fi
10557fi
10558
10559if test x"$libltdl_cv_need_uscore" = xyes; then
10560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010561cat >>confdefs.h <<\_ACEOF
10562#define NEED_USCORE 1
10563_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564
10565fi
10566
10567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010568{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10569echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10570if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010572else
10573 # PORTME does your system automatically load deplibs for dlopen?
10574 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10575 # For now, we just catch OSes we know something about -- in the
10576 # future, we'll try test this programmatically.
10577 libltdl_cv_sys_dlopen_deplibs=unknown
10578 case "$host_os" in
10579 aix3*|aix4.1.*|aix4.2.*)
10580 # Unknown whether this is true for these versions of AIX, but
10581 # we want this `case' here to explicitly catch those versions.
10582 libltdl_cv_sys_dlopen_deplibs=unknown
10583 ;;
10584 aix[45]*)
10585 libltdl_cv_sys_dlopen_deplibs=yes
10586 ;;
10587 darwin*)
10588 # Assuming the user has installed a libdl from somewhere, this is true
10589 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10590 libltdl_cv_sys_dlopen_deplibs=yes
10591 ;;
10592 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10593 # GNU and its variants, using gnu ld.so (Glibc)
10594 libltdl_cv_sys_dlopen_deplibs=yes
10595 ;;
10596 hpux10*|hpux11*)
10597 libltdl_cv_sys_dlopen_deplibs=yes
10598 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010599 interix*)
10600 libltdl_cv_sys_dlopen_deplibs=yes
10601 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010602 irix[12345]*|irix6.[01]*)
10603 # Catch all versions of IRIX before 6.2, and indicate that we don't
10604 # know how it worked for any of those versions.
10605 libltdl_cv_sys_dlopen_deplibs=unknown
10606 ;;
10607 irix*)
10608 # The case above catches anything before 6.2, and it's known that
10609 # at 6.2 and later dlopen does load deplibs.
10610 libltdl_cv_sys_dlopen_deplibs=yes
10611 ;;
10612 netbsd*)
10613 libltdl_cv_sys_dlopen_deplibs=yes
10614 ;;
10615 openbsd*)
10616 libltdl_cv_sys_dlopen_deplibs=yes
10617 ;;
10618 osf[1234]*)
10619 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10620 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010621 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010622 libltdl_cv_sys_dlopen_deplibs=no
10623 ;;
10624 osf5.0|osf5.0a|osf5.1)
10625 # dlopen *does* load deplibs and with the right loader patch applied
10626 # it even uses RPATH in a shared library to search for shared objects
10627 # that the library depends on, but there's no easy way to know if that
10628 # patch is installed. Since this is the case, all we can really
10629 # say is unknown -- it depends on the patch being installed. If
10630 # it is, this changes to `yes'. Without it, it would be `no'.
10631 libltdl_cv_sys_dlopen_deplibs=unknown
10632 ;;
10633 osf*)
10634 # the two cases above should catch all versions of osf <= 5.1. Read
10635 # the comments above for what we know about them.
10636 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10637 # is used to find them so we can finally say `yes'.
10638 libltdl_cv_sys_dlopen_deplibs=yes
10639 ;;
10640 solaris*)
10641 libltdl_cv_sys_dlopen_deplibs=yes
10642 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10644 libltdl_cv_sys_dlopen_deplibs=yes
10645 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646 esac
10647
10648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010649{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10650echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010651if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010653cat >>confdefs.h <<\_ACEOF
10654#define LTDL_DLOPEN_DEPLIBS 1
10655_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656
10657fi
10658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010659
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010660for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010661do
10662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668fi
10669ac_res=`eval echo '${'$as_ac_Header'}'`
10670 { echo "$as_me:$LINENO: result: $ac_res" >&5
10671echo "${ECHO_T}$ac_res" >&6; }
10672else
10673 # Is the header compilable?
10674{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10676cat >conftest.$ac_ext <<_ACEOF
10677/* confdefs.h. */
10678_ACEOF
10679cat confdefs.h >>conftest.$ac_ext
10680cat >>conftest.$ac_ext <<_ACEOF
10681/* end confdefs.h. */
10682$ac_includes_default
10683#include <$ac_header>
10684_ACEOF
10685rm -f conftest.$ac_objext
10686if { (ac_try="$ac_compile"
10687case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690esac
10691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_compile") 2>conftest.er1
10693 ac_status=$?
10694 grep -v '^ *+' conftest.er1 >conftest.err
10695 rm -f conftest.er1
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10700 { (case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10703esac
10704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_try") 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest.$ac_objext'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713esac
10714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_header_compiler=yes
10720else
10721 echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_header_compiler=no
10725fi
10726
10727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729echo "${ECHO_T}$ac_header_compiler" >&6; }
10730
10731# Is the header present?
10732{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10733echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10734cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h. */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h. */
10740#include <$ac_header>
10741_ACEOF
10742if { (ac_try="$ac_cpp conftest.$ac_ext"
10743case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746esac
10747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } >/dev/null; then
10755 if test -s conftest.err; then
10756 ac_cpp_err=$ac_c_preproc_warn_flag
10757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10758 else
10759 ac_cpp_err=
10760 fi
10761else
10762 ac_cpp_err=yes
10763fi
10764if test -z "$ac_cpp_err"; then
10765 ac_header_preproc=yes
10766else
10767 echo "$as_me: failed program was:" >&5
10768sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 ac_header_preproc=no
10771fi
10772
10773rm -f conftest.err conftest.$ac_ext
10774{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10775echo "${ECHO_T}$ac_header_preproc" >&6; }
10776
10777# So? What about this header?
10778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10779 yes:no: )
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10784 ac_header_preproc=yes
10785 ;;
10786 no:yes:* )
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10794echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10799 ( cat <<\_ASBOX
10800## ----------------------------------- ##
10801## Report this to llvmbugs@cs.uiuc.edu ##
10802## ----------------------------------- ##
10803_ASBOX
10804 ) | sed "s/^/$as_me: WARNING: /" >&2
10805 ;;
10806esac
10807{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811else
10812 eval "$as_ac_Header=\$ac_header_preproc"
10813fi
10814ac_res=`eval echo '${'$as_ac_Header'}'`
10815 { echo "$as_me:$LINENO: result: $ac_res" >&5
10816echo "${ECHO_T}$ac_res" >&6; }
10817
10818fi
10819if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010820 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010822_ACEOF
10823
10824fi
10825
10826done
10827
10828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010829{ echo "$as_me:$LINENO: checking for error_t" >&5
10830echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10831if test "${ac_cv_type_error_t+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833else
10834 cat >conftest.$ac_ext <<_ACEOF
10835/* confdefs.h. */
10836_ACEOF
10837cat confdefs.h >>conftest.$ac_ext
10838cat >>conftest.$ac_ext <<_ACEOF
10839/* end confdefs.h. */
10840#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841# include <argz.h>
10842#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010843
10844typedef error_t ac__type_new_;
10845int
10846main ()
10847{
10848if ((ac__type_new_ *) 0)
10849 return 0;
10850if (sizeof (ac__type_new_))
10851 return 0;
10852 ;
10853 return 0;
10854}
10855_ACEOF
10856rm -f conftest.$ac_objext
10857if { (ac_try="$ac_compile"
10858case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10861esac
10862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_compile") 2>conftest.er1
10864 ac_status=$?
10865 grep -v '^ *+' conftest.er1 >conftest.err
10866 rm -f conftest.er1
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10871 { (case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10874esac
10875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_try") 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; } &&
10880 { ac_try='test -s conftest.$ac_objext'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 ac_cv_type_error_t=yes
10891else
10892 echo "$as_me: failed program was:" >&5
10893sed 's/^/| /' conftest.$ac_ext >&5
10894
10895 ac_cv_type_error_t=no
10896fi
10897
10898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899fi
10900{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10901echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10902if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010903
10904cat >>confdefs.h <<_ACEOF
10905#define HAVE_ERROR_T 1
10906_ACEOF
10907
10908
10909else
10910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010911cat >>confdefs.h <<\_ACEOF
10912#define error_t int
10913_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010914
10915fi
10916
10917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010918
10919
10920
10921
10922
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010924do
10925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10926{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10928if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
10930else
10931 cat >conftest.$ac_ext <<_ACEOF
10932/* confdefs.h. */
10933_ACEOF
10934cat confdefs.h >>conftest.$ac_ext
10935cat >>conftest.$ac_ext <<_ACEOF
10936/* end confdefs.h. */
10937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10939#define $ac_func innocuous_$ac_func
10940
10941/* System header to define __stub macros and hopefully few prototypes,
10942 which can conflict with char $ac_func (); below.
10943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10944 <limits.h> exists even on freestanding compilers. */
10945
10946#ifdef __STDC__
10947# include <limits.h>
10948#else
10949# include <assert.h>
10950#endif
10951
10952#undef $ac_func
10953
10954/* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957#ifdef __cplusplus
10958extern "C"
10959#endif
10960char $ac_func ();
10961/* The GNU C library defines this for functions which it implements
10962 to always fail with ENOSYS. Some functions are actually named
10963 something starting with __ and the normal name is an alias. */
10964#if defined __stub_$ac_func || defined __stub___$ac_func
10965choke me
10966#endif
10967
10968int
10969main ()
10970{
10971return $ac_func ();
10972 ;
10973 return 0;
10974}
10975_ACEOF
10976rm -f conftest.$ac_objext conftest$ac_exeext
10977if { (ac_try="$ac_link"
10978case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10981esac
10982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_link") 2>conftest.er1
10984 ac_status=$?
10985 grep -v '^ *+' conftest.er1 >conftest.err
10986 rm -f conftest.er1
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
10990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10991 { (case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994esac
10995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_try") 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest$ac_exeext'
11001 { (case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_try") 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 eval "$as_ac_var=yes"
11011else
11012 echo "$as_me: failed program was:" >&5
11013sed 's/^/| /' conftest.$ac_ext >&5
11014
11015 eval "$as_ac_var=no"
11016fi
11017
11018rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020fi
11021ac_res=`eval echo '${'$as_ac_var'}'`
11022 { echo "$as_me:$LINENO: result: $ac_res" >&5
11023echo "${ECHO_T}$ac_res" >&6; }
11024if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011027_ACEOF
11028
11029fi
11030done
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011051
11052
11053
11054
11055
11056
11057
11058
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11060 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011061do
11062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068fi
11069ac_res=`eval echo '${'$as_ac_Header'}'`
11070 { echo "$as_me:$LINENO: result: $ac_res" >&5
11071echo "${ECHO_T}$ac_res" >&6; }
11072else
11073 # Is the header compilable?
11074{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11076cat >conftest.$ac_ext <<_ACEOF
11077/* confdefs.h. */
11078_ACEOF
11079cat confdefs.h >>conftest.$ac_ext
11080cat >>conftest.$ac_ext <<_ACEOF
11081/* end confdefs.h. */
11082$ac_includes_default
11083#include <$ac_header>
11084_ACEOF
11085rm -f conftest.$ac_objext
11086if { (ac_try="$ac_compile"
11087case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090esac
11091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_compile") 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100 { (case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103esac
11104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_try") 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest.$ac_objext'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11113esac
11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_header_compiler=yes
11120else
11121 echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 ac_header_compiler=no
11125fi
11126
11127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11129echo "${ECHO_T}$ac_header_compiler" >&6; }
11130
11131# Is the header present?
11132{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11134cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h. */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
11139/* end confdefs.h. */
11140#include <$ac_header>
11141_ACEOF
11142if { (ac_try="$ac_cpp conftest.$ac_ext"
11143case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146esac
11147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11149 ac_status=$?
11150 grep -v '^ *+' conftest.er1 >conftest.err
11151 rm -f conftest.er1
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } >/dev/null; then
11155 if test -s conftest.err; then
11156 ac_cpp_err=$ac_c_preproc_warn_flag
11157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11158 else
11159 ac_cpp_err=
11160 fi
11161else
11162 ac_cpp_err=yes
11163fi
11164if test -z "$ac_cpp_err"; then
11165 ac_header_preproc=yes
11166else
11167 echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 ac_header_preproc=no
11171fi
11172
11173rm -f conftest.err conftest.$ac_ext
11174{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11175echo "${ECHO_T}$ac_header_preproc" >&6; }
11176
11177# So? What about this header?
11178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11179 yes:no: )
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11184 ac_header_preproc=yes
11185 ;;
11186 no:yes:* )
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11190echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11194echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11199 ( cat <<\_ASBOX
11200## ----------------------------------- ##
11201## Report this to llvmbugs@cs.uiuc.edu ##
11202## ----------------------------------- ##
11203_ASBOX
11204 ) | sed "s/^/$as_me: WARNING: /" >&2
11205 ;;
11206esac
11207{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11211else
11212 eval "$as_ac_Header=\$ac_header_preproc"
11213fi
11214ac_res=`eval echo '${'$as_ac_Header'}'`
11215 { echo "$as_me:$LINENO: result: $ac_res" >&5
11216echo "${ECHO_T}$ac_res" >&6; }
11217
11218fi
11219if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011222_ACEOF
11223
11224fi
11225
11226done
11227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011228
11229
11230
11231
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011232for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011233do
11234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240fi
11241ac_res=`eval echo '${'$as_ac_Header'}'`
11242 { echo "$as_me:$LINENO: result: $ac_res" >&5
11243echo "${ECHO_T}$ac_res" >&6; }
11244else
11245 # Is the header compilable?
11246{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11248cat >conftest.$ac_ext <<_ACEOF
11249/* confdefs.h. */
11250_ACEOF
11251cat confdefs.h >>conftest.$ac_ext
11252cat >>conftest.$ac_ext <<_ACEOF
11253/* end confdefs.h. */
11254$ac_includes_default
11255#include <$ac_header>
11256_ACEOF
11257rm -f conftest.$ac_objext
11258if { (ac_try="$ac_compile"
11259case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262esac
11263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_compile") 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11272 { (case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11275esac
11276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_try") 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; } &&
11281 { ac_try='test -s conftest.$ac_objext'
11282 { (case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285esac
11286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_try") 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ac_header_compiler=yes
11292else
11293 echo "$as_me: failed program was:" >&5
11294sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 ac_header_compiler=no
11297fi
11298
11299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11301echo "${ECHO_T}$ac_header_compiler" >&6; }
11302
11303# Is the header present?
11304{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11305echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11306cat >conftest.$ac_ext <<_ACEOF
11307/* confdefs.h. */
11308_ACEOF
11309cat confdefs.h >>conftest.$ac_ext
11310cat >>conftest.$ac_ext <<_ACEOF
11311/* end confdefs.h. */
11312#include <$ac_header>
11313_ACEOF
11314if { (ac_try="$ac_cpp conftest.$ac_ext"
11315case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11318esac
11319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } >/dev/null; then
11327 if test -s conftest.err; then
11328 ac_cpp_err=$ac_c_preproc_warn_flag
11329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11330 else
11331 ac_cpp_err=
11332 fi
11333else
11334 ac_cpp_err=yes
11335fi
11336if test -z "$ac_cpp_err"; then
11337 ac_header_preproc=yes
11338else
11339 echo "$as_me: failed program was:" >&5
11340sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 ac_header_preproc=no
11343fi
11344
11345rm -f conftest.err conftest.$ac_ext
11346{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11347echo "${ECHO_T}$ac_header_preproc" >&6; }
11348
11349# So? What about this header?
11350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11351 yes:no: )
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11356 ac_header_preproc=yes
11357 ;;
11358 no:yes:* )
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11362echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11366echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11371 ( cat <<\_ASBOX
11372## ----------------------------------- ##
11373## Report this to llvmbugs@cs.uiuc.edu ##
11374## ----------------------------------- ##
11375_ASBOX
11376 ) | sed "s/^/$as_me: WARNING: /" >&2
11377 ;;
11378esac
11379{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383else
11384 eval "$as_ac_Header=\$ac_header_preproc"
11385fi
11386ac_res=`eval echo '${'$as_ac_Header'}'`
11387 { echo "$as_me:$LINENO: result: $ac_res" >&5
11388echo "${ECHO_T}$ac_res" >&6; }
11389
11390fi
11391if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011394_ACEOF
11395
11396fi
11397
11398done
11399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011400
11401
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011402for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011403do
11404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410fi
11411ac_res=`eval echo '${'$as_ac_Header'}'`
11412 { echo "$as_me:$LINENO: result: $ac_res" >&5
11413echo "${ECHO_T}$ac_res" >&6; }
11414else
11415 # Is the header compilable?
11416{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11418cat >conftest.$ac_ext <<_ACEOF
11419/* confdefs.h. */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h. */
11424$ac_includes_default
11425#include <$ac_header>
11426_ACEOF
11427rm -f conftest.$ac_objext
11428if { (ac_try="$ac_compile"
11429case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11432esac
11433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_compile") 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442 { (case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445esac
11446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_try") 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest.$ac_objext'
11452 { (case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11455esac
11456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_try") 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 ac_header_compiler=yes
11462else
11463 echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
11466 ac_header_compiler=no
11467fi
11468
11469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11471echo "${ECHO_T}$ac_header_compiler" >&6; }
11472
11473# Is the header present?
11474{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11476cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h. */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h. */
11482#include <$ac_header>
11483_ACEOF
11484if { (ac_try="$ac_cpp conftest.$ac_ext"
11485case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488esac
11489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } >/dev/null; then
11497 if test -s conftest.err; then
11498 ac_cpp_err=$ac_c_preproc_warn_flag
11499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11500 else
11501 ac_cpp_err=
11502 fi
11503else
11504 ac_cpp_err=yes
11505fi
11506if test -z "$ac_cpp_err"; then
11507 ac_header_preproc=yes
11508else
11509 echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
11511
11512 ac_header_preproc=no
11513fi
11514
11515rm -f conftest.err conftest.$ac_ext
11516{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11517echo "${ECHO_T}$ac_header_preproc" >&6; }
11518
11519# So? What about this header?
11520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11521 yes:no: )
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11525echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11526 ac_header_preproc=yes
11527 ;;
11528 no:yes:* )
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11530echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11532echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11534echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11536echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11540echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11541 ( cat <<\_ASBOX
11542## ----------------------------------- ##
11543## Report this to llvmbugs@cs.uiuc.edu ##
11544## ----------------------------------- ##
11545_ASBOX
11546 ) | sed "s/^/$as_me: WARNING: /" >&2
11547 ;;
11548esac
11549{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553else
11554 eval "$as_ac_Header=\$ac_header_preproc"
11555fi
11556ac_res=`eval echo '${'$as_ac_Header'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558echo "${ECHO_T}$ac_res" >&6; }
11559
11560fi
11561if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011562 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011564_ACEOF
11565 break
11566fi
11567
11568done
11569
11570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011571
11572
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011573for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011574do
11575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11576{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580else
11581 cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h. */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h. */
11587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11589#define $ac_func innocuous_$ac_func
11590
11591/* System header to define __stub macros and hopefully few prototypes,
11592 which can conflict with char $ac_func (); below.
11593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11594 <limits.h> exists even on freestanding compilers. */
11595
11596#ifdef __STDC__
11597# include <limits.h>
11598#else
11599# include <assert.h>
11600#endif
11601
11602#undef $ac_func
11603
11604/* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11607#ifdef __cplusplus
11608extern "C"
11609#endif
11610char $ac_func ();
11611/* The GNU C library defines this for functions which it implements
11612 to always fail with ENOSYS. Some functions are actually named
11613 something starting with __ and the normal name is an alias. */
11614#if defined __stub_$ac_func || defined __stub___$ac_func
11615choke me
11616#endif
11617
11618int
11619main ()
11620{
11621return $ac_func ();
11622 ;
11623 return 0;
11624}
11625_ACEOF
11626rm -f conftest.$ac_objext conftest$ac_exeext
11627if { (ac_try="$ac_link"
11628case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_link") 2>conftest.er1
11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } &&
11640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11641 { (case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11644esac
11645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646 (eval "$ac_try") 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest$ac_exeext'
11651 { (case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654esac
11655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_try") 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 eval "$as_ac_var=yes"
11661else
11662 echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665 eval "$as_ac_var=no"
11666fi
11667
11668rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670fi
11671ac_res=`eval echo '${'$as_ac_var'}'`
11672 { echo "$as_me:$LINENO: result: $ac_res" >&5
11673echo "${ECHO_T}$ac_res" >&6; }
11674if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677_ACEOF
11678 break
11679fi
11680done
11681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011682
11683
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011684for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011685do
11686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11687{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11689if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
11698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11700#define $ac_func innocuous_$ac_func
11701
11702/* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func (); below.
11704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 <limits.h> exists even on freestanding compilers. */
11706
11707#ifdef __STDC__
11708# include <limits.h>
11709#else
11710# include <assert.h>
11711#endif
11712
11713#undef $ac_func
11714
11715/* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11718#ifdef __cplusplus
11719extern "C"
11720#endif
11721char $ac_func ();
11722/* The GNU C library defines this for functions which it implements
11723 to always fail with ENOSYS. Some functions are actually named
11724 something starting with __ and the normal name is an alias. */
11725#if defined __stub_$ac_func || defined __stub___$ac_func
11726choke me
11727#endif
11728
11729int
11730main ()
11731{
11732return $ac_func ();
11733 ;
11734 return 0;
11735}
11736_ACEOF
11737rm -f conftest.$ac_objext conftest$ac_exeext
11738if { (ac_try="$ac_link"
11739case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742esac
11743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_link") 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11752 { (case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11755esac
11756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_try") 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest$ac_exeext'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765esac
11766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "$as_ac_var=yes"
11772else
11773 echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
11776 eval "$as_ac_var=no"
11777fi
11778
11779rm -f core conftest.err conftest.$ac_objext \
11780 conftest$ac_exeext conftest.$ac_ext
11781fi
11782ac_res=`eval echo '${'$as_ac_var'}'`
11783 { echo "$as_me:$LINENO: result: $ac_res" >&5
11784echo "${ECHO_T}$ac_res" >&6; }
11785if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011788_ACEOF
11789 break
11790fi
11791done
11792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011793
11794
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011795for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011796do
11797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11800if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802else
11803 cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
11809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11811#define $ac_func innocuous_$ac_func
11812
11813/* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char $ac_func (); below.
11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816 <limits.h> exists even on freestanding compilers. */
11817
11818#ifdef __STDC__
11819# include <limits.h>
11820#else
11821# include <assert.h>
11822#endif
11823
11824#undef $ac_func
11825
11826/* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11829#ifdef __cplusplus
11830extern "C"
11831#endif
11832char $ac_func ();
11833/* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836#if defined __stub_$ac_func || defined __stub___$ac_func
11837choke me
11838#endif
11839
11840int
11841main ()
11842{
11843return $ac_func ();
11844 ;
11845 return 0;
11846}
11847_ACEOF
11848rm -f conftest.$ac_objext conftest$ac_exeext
11849if { (ac_try="$ac_link"
11850case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863 { (case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11866esac
11867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_try") 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest$ac_exeext'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 eval "$as_ac_var=yes"
11883else
11884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
11887 eval "$as_ac_var=no"
11888fi
11889
11890rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11892fi
11893ac_res=`eval echo '${'$as_ac_var'}'`
11894 { echo "$as_me:$LINENO: result: $ac_res" >&5
11895echo "${ECHO_T}$ac_res" >&6; }
11896if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011899_ACEOF
11900 break
11901fi
11902done
11903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011904
11905
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011906for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011907do
11908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11909{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913else
11914 cat >conftest.$ac_ext <<_ACEOF
11915/* confdefs.h. */
11916_ACEOF
11917cat confdefs.h >>conftest.$ac_ext
11918cat >>conftest.$ac_ext <<_ACEOF
11919/* end confdefs.h. */
11920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11922#define $ac_func innocuous_$ac_func
11923
11924/* System header to define __stub macros and hopefully few prototypes,
11925 which can conflict with char $ac_func (); below.
11926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927 <limits.h> exists even on freestanding compilers. */
11928
11929#ifdef __STDC__
11930# include <limits.h>
11931#else
11932# include <assert.h>
11933#endif
11934
11935#undef $ac_func
11936
11937/* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11940#ifdef __cplusplus
11941extern "C"
11942#endif
11943char $ac_func ();
11944/* The GNU C library defines this for functions which it implements
11945 to always fail with ENOSYS. Some functions are actually named
11946 something starting with __ and the normal name is an alias. */
11947#if defined __stub_$ac_func || defined __stub___$ac_func
11948choke me
11949#endif
11950
11951int
11952main ()
11953{
11954return $ac_func ();
11955 ;
11956 return 0;
11957}
11958_ACEOF
11959rm -f conftest.$ac_objext conftest$ac_exeext
11960if { (ac_try="$ac_link"
11961case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11964esac
11965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_link") 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977esac
11978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987esac
11988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 eval "$as_ac_var=yes"
11994else
11995 echo "$as_me: failed program was:" >&5
11996sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 eval "$as_ac_var=no"
11999fi
12000
12001rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003fi
12004ac_res=`eval echo '${'$as_ac_var'}'`
12005 { echo "$as_me:$LINENO: result: $ac_res" >&5
12006echo "${ECHO_T}$ac_res" >&6; }
12007if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012008 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012010_ACEOF
12011
12012fi
12013done
12014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012015
12016
12017
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012019do
12020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025else
12026 cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
12032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12034#define $ac_func innocuous_$ac_func
12035
12036/* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below.
12038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039 <limits.h> exists even on freestanding compilers. */
12040
12041#ifdef __STDC__
12042# include <limits.h>
12043#else
12044# include <assert.h>
12045#endif
12046
12047#undef $ac_func
12048
12049/* Override any GCC internal prototype to avoid an error.
12050 Use char because int might match the return type of a GCC
12051 builtin and then its argument prototype would still apply. */
12052#ifdef __cplusplus
12053extern "C"
12054#endif
12055char $ac_func ();
12056/* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059#if defined __stub_$ac_func || defined __stub___$ac_func
12060choke me
12061#endif
12062
12063int
12064main ()
12065{
12066return $ac_func ();
12067 ;
12068 return 0;
12069}
12070_ACEOF
12071rm -f conftest.$ac_objext conftest$ac_exeext
12072if { (ac_try="$ac_link"
12073case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_link") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086 { (case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12089esac
12090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_try") 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 eval "$as_ac_var=yes"
12106else
12107 echo "$as_me: failed program was:" >&5
12108sed 's/^/| /' conftest.$ac_ext >&5
12109
12110 eval "$as_ac_var=no"
12111fi
12112
12113rm -f core conftest.err conftest.$ac_objext \
12114 conftest$ac_exeext conftest.$ac_ext
12115fi
12116ac_res=`eval echo '${'$as_ac_var'}'`
12117 { echo "$as_me:$LINENO: result: $ac_res" >&5
12118echo "${ECHO_T}$ac_res" >&6; }
12119if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122_ACEOF
12123
12124fi
12125done
12126
12127
Douglas Gregor01746742009-05-11 18:05:52 +000012128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012129{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12130echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012131
Reid Spencer86901802004-12-08 23:07:27 +000012132ICC=no
12133IXX=no
12134case $CC in
12135 icc*|icpc*)
12136 ICC=yes
12137 IXX=yes
12138 ;;
12139 *)
12140 ;;
12141esac
12142
Duraid Madina937c60a2006-02-15 07:57:42 +000012143if test "$GCC" != "yes" && test "$ICC" != "yes"
12144then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012145 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12146echo "$as_me: error: gcc|icc required but not found" >&2;}
12147 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012148fi
12149
12150if test "$GXX" != "yes" && test "$IXX" != "yes"
12151then
Eric Christopher73e36da2010-12-08 02:02:14 +000012152 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12153echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012154 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012155fi
12156
Reid Spencer86901802004-12-08 23:07:27 +000012157if test "$GCC" = "yes"
12158then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012159 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012160#if !defined(__GNUC__) || __GNUC__ < 3
12161#error Unsupported GCC version
12162#endif
12163
12164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012165rm -f conftest.$ac_objext
12166if { (ac_try="$ac_compile"
12167case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170esac
12171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_compile") 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12180 { (case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183esac
12184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_try") 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; } &&
12189 { ac_try='test -s conftest.$ac_objext'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193esac
12194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012201 echo "$as_me: failed program was:" >&5
12202sed 's/^/| /' conftest.$ac_ext >&5
12203
12204 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12205echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12206 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012208
Chris Lattner399c7c72008-02-05 19:43:53 +000012209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012210fi
12211
12212if test -z "$llvm_cv_gnu_make_command"
12213then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012214 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12215echo "$as_me: error: GNU Make required but not found" >&2;}
12216 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012217fi
12218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012219{ echo "$as_me:$LINENO: result: ok" >&5
12220echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012222{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12223echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012224NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12225
12226NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012228{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12229echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012230
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012232
12233{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12234echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12235if test "${ac_cv_lib_m_sin+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012237else
12238 ac_check_lib_save_LIBS=$LIBS
12239LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012240cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h. */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012245/* end confdefs.h. */
12246
Reid Spencera773bd52006-08-04 18:18:08 +000012247/* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012250#ifdef __cplusplus
12251extern "C"
12252#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012253char sin ();
12254int
12255main ()
12256{
Reid Spencera773bd52006-08-04 18:18:08 +000012257return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012258 ;
12259 return 0;
12260}
12261_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012262rm -f conftest.$ac_objext conftest$ac_exeext
12263if { (ac_try="$ac_link"
12264case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12267esac
12268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_link") 2>conftest.er1
12270 ac_status=$?
12271 grep -v '^ *+' conftest.er1 >conftest.err
12272 rm -f conftest.er1
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12277 { (case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12280esac
12281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_try") 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest$ac_exeext'
12287 { (case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290esac
12291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_try") 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012296 ac_cv_lib_m_sin=yes
12297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012298 echo "$as_me: failed program was:" >&5
12299sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012303
Bill Wendlingebcceee2009-04-18 11:20:33 +000012304rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012305 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012306LIBS=$ac_check_lib_save_LIBS
12307fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012308{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12309echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12310if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012311 cat >>confdefs.h <<_ACEOF
12312#define HAVE_LIBM 1
12313_ACEOF
12314
12315 LIBS="-lm $LIBS"
12316
12317fi
12318
Jeff Cohen28783c32007-01-12 18:22:38 +000012319if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012320
12321{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12322echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12323if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012325else
12326 ac_check_lib_save_LIBS=$LIBS
12327LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012328cat >conftest.$ac_ext <<_ACEOF
12329/* confdefs.h. */
12330_ACEOF
12331cat confdefs.h >>conftest.$ac_ext
12332cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012333/* end confdefs.h. */
12334
Reid Spencer48fdf912006-06-01 19:03:21 +000012335
Reid Spencer484fc8e2006-06-01 16:55:59 +000012336int
12337main ()
12338{
Reid Spencera773bd52006-08-04 18:18:08 +000012339return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012340 ;
12341 return 0;
12342}
12343_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012344rm -f conftest.$ac_objext conftest$ac_exeext
12345if { (ac_try="$ac_link"
12346case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349esac
12350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_link") 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362esac
12363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_try") 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012378 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012379else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012380 echo "$as_me: failed program was:" >&5
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
12383 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012385
Bill Wendlingebcceee2009-04-18 11:20:33 +000012386rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012387 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012388LIBS=$ac_check_lib_save_LIBS
12389fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012390{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12391echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12392if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012393 cat >>confdefs.h <<_ACEOF
12394#define HAVE_LIBIMAGEHLP 1
12395_ACEOF
12396
12397 LIBS="-limagehlp $LIBS"
12398
12399fi
12400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012401
12402{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12403echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12404if test "${ac_cv_lib_psapi_main+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012406else
12407 ac_check_lib_save_LIBS=$LIBS
12408LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012409cat >conftest.$ac_ext <<_ACEOF
12410/* confdefs.h. */
12411_ACEOF
12412cat confdefs.h >>conftest.$ac_ext
12413cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012414/* end confdefs.h. */
12415
Reid Spencer48fdf912006-06-01 19:03:21 +000012416
Reid Spencer484fc8e2006-06-01 16:55:59 +000012417int
12418main ()
12419{
Reid Spencera773bd52006-08-04 18:18:08 +000012420return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012421 ;
12422 return 0;
12423}
12424_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012425rm -f conftest.$ac_objext conftest$ac_exeext
12426if { (ac_try="$ac_link"
12427case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430esac
12431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_link") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } &&
12439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12440 { (case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12443esac
12444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445 (eval "$ac_try") 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; } &&
12449 { ac_try='test -s conftest$ac_exeext'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453esac
12454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012459 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012460else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012461 echo "$as_me: failed program was:" >&5
12462sed 's/^/| /' conftest.$ac_ext >&5
12463
12464 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012466
Bill Wendlingebcceee2009-04-18 11:20:33 +000012467rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012468 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012469LIBS=$ac_check_lib_save_LIBS
12470fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012471{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12472echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12473if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012474 cat >>confdefs.h <<_ACEOF
12475#define HAVE_LIBPSAPI 1
12476_ACEOF
12477
12478 LIBS="-lpsapi $LIBS"
12479
12480fi
12481
12482fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012484{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12485echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12486if test "${ac_cv_search_dlopen+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012488else
12489 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012490cat >conftest.$ac_ext <<_ACEOF
12491/* confdefs.h. */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012496
Reid Spencera773bd52006-08-04 18:18:08 +000012497/* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012500#ifdef __cplusplus
12501extern "C"
12502#endif
John Criswell7a73b802003-06-30 21:59:07 +000012503char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012504int
12505main ()
12506{
Reid Spencera773bd52006-08-04 18:18:08 +000012507return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012508 ;
12509 return 0;
12510}
12511_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012512for ac_lib in '' dl; do
12513 if test -z "$ac_lib"; then
12514 ac_res="none required"
12515 else
12516 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012518 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012519 rm -f conftest.$ac_objext conftest$ac_exeext
12520if { (ac_try="$ac_link"
12521case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524esac
12525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_link") 2>conftest.er1
12527 ac_status=$?
12528 grep -v '^ *+' conftest.er1 >conftest.err
12529 rm -f conftest.er1
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12534 { (case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12537esac
12538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_try") 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest$ac_exeext'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547esac
12548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012553 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012554else
12555 echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558
John Criswell7a73b802003-06-30 21:59:07 +000012559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012560
Bill Wendlingebcceee2009-04-18 11:20:33 +000012561rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012562 conftest$ac_exeext
12563 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012564 break
John Criswell7a73b802003-06-30 21:59:07 +000012565fi
Reid Spencera773bd52006-08-04 18:18:08 +000012566done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012567if test "${ac_cv_search_dlopen+set}" = set; then
12568 :
Reid Spencera773bd52006-08-04 18:18:08 +000012569else
12570 ac_cv_search_dlopen=no
12571fi
12572rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012573LIBS=$ac_func_search_save_LIBS
12574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012575{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12576echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012577ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012578if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012581cat >>confdefs.h <<\_ACEOF
12582#define HAVE_DLOPEN 1
12583_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012584
12585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012586 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12587echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012588fi
12589
12590
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012591if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012592 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12593echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12594if test "${ac_cv_search_ffi_call+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012596else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012597 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012598cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012603/* end confdefs.h. */
12604
12605/* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12608#ifdef __cplusplus
12609extern "C"
12610#endif
12611char ffi_call ();
12612int
12613main ()
12614{
12615return ffi_call ();
12616 ;
12617 return 0;
12618}
12619_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012620for ac_lib in '' ffi; do
12621 if test -z "$ac_lib"; then
12622 ac_res="none required"
12623 else
12624 ac_res=-l$ac_lib
12625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12626 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012627 rm -f conftest.$ac_objext conftest$ac_exeext
12628if { (ac_try="$ac_link"
12629case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_link") 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12645esac
12646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest$ac_exeext'
12652 { (case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012661 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012662else
12663 echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
12666
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012668
Bill Wendlingebcceee2009-04-18 11:20:33 +000012669rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012670 conftest$ac_exeext
12671 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012672 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012673fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012674done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012675if test "${ac_cv_search_ffi_call+set}" = set; then
12676 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012677else
12678 ac_cv_search_ffi_call=no
12679fi
12680rm conftest.$ac_ext
12681LIBS=$ac_func_search_save_LIBS
12682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012683{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12684echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012685ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012686if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012689cat >>confdefs.h <<\_ACEOF
12690#define HAVE_FFI_CALL 1
12691_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012692
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012693else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012694 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12695echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12696 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012697fi
12698
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012699fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012701{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12702echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12703if test "${ac_cv_search_mallinfo+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012705else
12706 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012707cat >conftest.$ac_ext <<_ACEOF
12708/* confdefs.h. */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012712/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012713
Reid Spencera773bd52006-08-04 18:18:08 +000012714/* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012717#ifdef __cplusplus
12718extern "C"
12719#endif
John Criswell7a73b802003-06-30 21:59:07 +000012720char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012721int
12722main ()
12723{
Reid Spencera773bd52006-08-04 18:18:08 +000012724return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012725 ;
12726 return 0;
12727}
12728_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012729for ac_lib in '' malloc; do
12730 if test -z "$ac_lib"; then
12731 ac_res="none required"
12732 else
12733 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012735 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012736 rm -f conftest.$ac_objext conftest$ac_exeext
12737if { (ac_try="$ac_link"
12738case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12741esac
12742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743 (eval "$ac_link") 2>conftest.er1
12744 ac_status=$?
12745 grep -v '^ *+' conftest.er1 >conftest.err
12746 rm -f conftest.er1
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751 { (case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12754esac
12755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_try") 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest$ac_exeext'
12761 { (case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_try") 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012770 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012771else
12772 echo "$as_me: failed program was:" >&5
12773sed 's/^/| /' conftest.$ac_ext >&5
12774
12775
John Criswell7a73b802003-06-30 21:59:07 +000012776fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012777
Bill Wendlingebcceee2009-04-18 11:20:33 +000012778rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012779 conftest$ac_exeext
12780 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012781 break
John Criswell7a73b802003-06-30 21:59:07 +000012782fi
Reid Spencera773bd52006-08-04 18:18:08 +000012783done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012784if test "${ac_cv_search_mallinfo+set}" = set; then
12785 :
Reid Spencera773bd52006-08-04 18:18:08 +000012786else
12787 ac_cv_search_mallinfo=no
12788fi
12789rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012790LIBS=$ac_func_search_save_LIBS
12791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012792{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12793echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012794ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012795if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012798cat >>confdefs.h <<\_ACEOF
12799#define HAVE_MALLINFO 1
12800_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012801
12802fi
12803
12804
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000012805if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012806
12807{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12808echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12809if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012811else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012812 ac_check_lib_save_LIBS=$LIBS
12813LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012814cat >conftest.$ac_ext <<_ACEOF
12815/* confdefs.h. */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012819/* end confdefs.h. */
12820
Reid Spencera773bd52006-08-04 18:18:08 +000012821/* Override any GCC internal prototype to avoid an error.
12822 Use char because int might match the return type of a GCC
12823 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012824#ifdef __cplusplus
12825extern "C"
12826#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012827char pthread_mutex_init ();
12828int
12829main ()
12830{
Reid Spencera773bd52006-08-04 18:18:08 +000012831return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012832 ;
12833 return 0;
12834}
12835_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012836rm -f conftest.$ac_objext conftest$ac_exeext
12837if { (ac_try="$ac_link"
12838case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841esac
12842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_link") 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12851 { (case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12854esac
12855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_try") 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest$ac_exeext'
12861 { (case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864esac
12865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_try") 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012870 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012872 echo "$as_me: failed program was:" >&5
12873sed 's/^/| /' conftest.$ac_ext >&5
12874
12875 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012876fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012877
Bill Wendlingebcceee2009-04-18 11:20:33 +000012878rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012879 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012880LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012882{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12883echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12884if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012885 cat >>confdefs.h <<_ACEOF
12886#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012887_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012888
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012889 LIBS="-lpthread $LIBS"
12890
Reid Spencer22177fe2005-07-12 15:24:20 +000012891fi
12892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012893 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12894echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12895if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012897else
12898 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012899cat >conftest.$ac_ext <<_ACEOF
12900/* confdefs.h. */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012904/* end confdefs.h. */
12905
Reid Spencera773bd52006-08-04 18:18:08 +000012906/* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012909#ifdef __cplusplus
12910extern "C"
12911#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012912char pthread_mutex_lock ();
12913int
12914main ()
12915{
Reid Spencera773bd52006-08-04 18:18:08 +000012916return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012917 ;
12918 return 0;
12919}
12920_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012921for ac_lib in '' pthread; do
12922 if test -z "$ac_lib"; then
12923 ac_res="none required"
12924 else
12925 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012927 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012928 rm -f conftest.$ac_objext conftest$ac_exeext
12929if { (ac_try="$ac_link"
12930case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12933esac
12934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_link") 2>conftest.er1
12936 ac_status=$?
12937 grep -v '^ *+' conftest.er1 >conftest.err
12938 rm -f conftest.er1
12939 cat conftest.err >&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12943 { (case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12946esac
12947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_try") 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; } &&
12952 { ac_try='test -s conftest$ac_exeext'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12956esac
12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012962 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967
Brian Gaeke5f268f72003-12-05 19:29:01 +000012968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012969
Bill Wendlingebcceee2009-04-18 11:20:33 +000012970rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012971 conftest$ac_exeext
12972 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012973 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012974fi
Reid Spencera773bd52006-08-04 18:18:08 +000012975done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012976if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12977 :
Reid Spencera773bd52006-08-04 18:18:08 +000012978else
12979 ac_cv_search_pthread_mutex_lock=no
12980fi
12981rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012982LIBS=$ac_func_search_save_LIBS
12983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12985echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012986ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012987if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012990cat >>confdefs.h <<\_ACEOF
12991#define HAVE_PTHREAD_MUTEX_LOCK 1
12992_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012993
12994fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012996 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12997echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12998if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013000else
13001 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013002cat >conftest.$ac_ext <<_ACEOF
13003/* confdefs.h. */
13004_ACEOF
13005cat confdefs.h >>conftest.$ac_ext
13006cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013007/* end confdefs.h. */
13008
13009/* Override any GCC internal prototype to avoid an error.
13010 Use char because int might match the return type of a GCC
13011 builtin and then its argument prototype would still apply. */
13012#ifdef __cplusplus
13013extern "C"
13014#endif
13015char pthread_rwlock_init ();
13016int
13017main ()
13018{
13019return pthread_rwlock_init ();
13020 ;
13021 return 0;
13022}
13023_ACEOF
13024for ac_lib in '' pthread; do
13025 if test -z "$ac_lib"; then
13026 ac_res="none required"
13027 else
13028 ac_res=-l$ac_lib
13029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13030 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013031 rm -f conftest.$ac_objext conftest$ac_exeext
13032if { (ac_try="$ac_link"
13033case "(($ac_try" in
13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035 *) ac_try_echo=$ac_try;;
13036esac
13037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038 (eval "$ac_link") 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13046 { (case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049esac
13050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_try") 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; } &&
13055 { ac_try='test -s conftest$ac_exeext'
13056 { (case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_try") 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013065 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013066else
13067 echo "$as_me: failed program was:" >&5
13068sed 's/^/| /' conftest.$ac_ext >&5
13069
13070
Owen Andersonde8aed22009-06-16 18:20:20 +000013071fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013072
Owen Andersonde8aed22009-06-16 18:20:20 +000013073rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013074 conftest$ac_exeext
13075 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013076 break
13077fi
13078done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013079if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13080 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013081else
13082 ac_cv_search_pthread_rwlock_init=no
13083fi
13084rm conftest.$ac_ext
13085LIBS=$ac_func_search_save_LIBS
13086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013087{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13088echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013089ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013090if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013093cat >>confdefs.h <<\_ACEOF
13094#define HAVE_PTHREAD_RWLOCK_INIT 1
13095_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013096
13097fi
13098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013099 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13100echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13101if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013103else
13104 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013105cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013110/* end confdefs.h. */
13111
13112/* Override any GCC internal prototype to avoid an error.
13113 Use char because int might match the return type of a GCC
13114 builtin and then its argument prototype would still apply. */
13115#ifdef __cplusplus
13116extern "C"
13117#endif
13118char pthread_getspecific ();
13119int
13120main ()
13121{
13122return pthread_getspecific ();
13123 ;
13124 return 0;
13125}
13126_ACEOF
13127for ac_lib in '' pthread; do
13128 if test -z "$ac_lib"; then
13129 ac_res="none required"
13130 else
13131 ac_res=-l$ac_lib
13132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13133 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013134 rm -f conftest.$ac_objext conftest$ac_exeext
13135if { (ac_try="$ac_link"
13136case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139esac
13140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_link") 2>conftest.er1
13142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13149 { (case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152esac
13153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_try") 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest$ac_exeext'
13159 { (case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162esac
13163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_try") 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013168 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013169else
13170 echo "$as_me: failed program was:" >&5
13171sed 's/^/| /' conftest.$ac_ext >&5
13172
13173
Owen Anderson27fcfe12009-06-25 23:10:26 +000013174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013175
Owen Anderson27fcfe12009-06-25 23:10:26 +000013176rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013177 conftest$ac_exeext
13178 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013179 break
13180fi
13181done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013182if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13183 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013184else
13185 ac_cv_search_pthread_getspecific=no
13186fi
13187rm conftest.$ac_ext
13188LIBS=$ac_func_search_save_LIBS
13189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13191echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013192ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013193if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013196cat >>confdefs.h <<\_ACEOF
13197#define HAVE_PTHREAD_GETSPECIFIC 1
13198_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013199
13200fi
13201
Reid Spencer0a262ba2005-08-24 10:07:20 +000013202fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013203
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013204
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013205# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013206if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013207 withval=$with_udis86;
13208 USE_UDIS86=1
13209
13210 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013211 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013212 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13213 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013214
13215{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13216echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13217if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013219else
13220 ac_check_lib_save_LIBS=$LIBS
13221LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013222cat >conftest.$ac_ext <<_ACEOF
13223/* confdefs.h. */
13224_ACEOF
13225cat confdefs.h >>conftest.$ac_ext
13226cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013227/* end confdefs.h. */
13228
13229/* Override any GCC internal prototype to avoid an error.
13230 Use char because int might match the return type of a GCC
13231 builtin and then its argument prototype would still apply. */
13232#ifdef __cplusplus
13233extern "C"
13234#endif
13235char ud_init ();
13236int
13237main ()
13238{
13239return ud_init ();
13240 ;
13241 return 0;
13242}
13243_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013244rm -f conftest.$ac_objext conftest$ac_exeext
13245if { (ac_try="$ac_link"
13246case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249esac
13250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_link") 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13259 { (case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262esac
13263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_try") 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest$ac_exeext'
13269 { (case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13272esac
13273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_try") 2>&5
13275 ac_status=$?
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013278 ac_cv_lib_udis86_ud_init=yes
13279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280 echo "$as_me: failed program was:" >&5
13281sed 's/^/| /' conftest.$ac_ext >&5
13282
13283 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285
Bill Wendlingebcceee2009-04-18 11:20:33 +000013286rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013287 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013288LIBS=$ac_check_lib_save_LIBS
13289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013290{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13291echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13292if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013293 cat >>confdefs.h <<_ACEOF
13294#define HAVE_LIBUDIS86 1
13295_ACEOF
13296
13297 LIBS="-ludis86 $LIBS"
13298
13299else
13300
13301 echo "Error! You need to have libudis86 around."
13302 exit -1
13303
13304fi
13305
13306
13307else
13308 USE_UDIS86=0
13309
13310fi
13311
13312
13313cat >>confdefs.h <<_ACEOF
13314#define USE_UDIS86 $USE_UDIS86
13315_ACEOF
13316
13317
13318
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013319# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013320if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013321 withval=$with_oprofile;
13322 USE_OPROFILE=1
13323
13324 case "$withval" in
13325 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013326 no) llvm_cv_oppath=
13327 USE_OPROFILE=0
13328 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013329 *) llvm_cv_oppath="${withval}/lib/oprofile"
13330 CPPFLAGS="-I${withval}/include";;
13331 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013332 if test -n "$llvm_cv_oppath" ; then
13333 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013334 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13335echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13336if test "${ac_cv_search_bfd_init+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013338else
13339 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013340cat >conftest.$ac_ext <<_ACEOF
13341/* confdefs.h. */
13342_ACEOF
13343cat confdefs.h >>conftest.$ac_ext
13344cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013345/* end confdefs.h. */
13346
13347/* Override any GCC internal prototype to avoid an error.
13348 Use char because int might match the return type of a GCC
13349 builtin and then its argument prototype would still apply. */
13350#ifdef __cplusplus
13351extern "C"
13352#endif
13353char bfd_init ();
13354int
13355main ()
13356{
13357return bfd_init ();
13358 ;
13359 return 0;
13360}
13361_ACEOF
13362for ac_lib in '' bfd; do
13363 if test -z "$ac_lib"; then
13364 ac_res="none required"
13365 else
13366 ac_res=-l$ac_lib
13367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13368 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369 rm -f conftest.$ac_objext conftest$ac_exeext
13370if { (ac_try="$ac_link"
13371case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_link") 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13384 { (case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13387esac
13388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_try") 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; } &&
13393 { ac_try='test -s conftest$ac_exeext'
13394 { (case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397esac
13398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_try") 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013403 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013404else
13405 echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
13408
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013410
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013411rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013412 conftest$ac_exeext
13413 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013414 break
13415fi
13416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013417if test "${ac_cv_search_bfd_init+set}" = set; then
13418 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013419else
13420 ac_cv_search_bfd_init=no
13421fi
13422rm conftest.$ac_ext
13423LIBS=$ac_func_search_save_LIBS
13424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013425{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13426echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013427ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013428if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13430
13431fi
13432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13434echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13435if test "${ac_cv_search_op_open_agent+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013437else
13438 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013439cat >conftest.$ac_ext <<_ACEOF
13440/* confdefs.h. */
13441_ACEOF
13442cat confdefs.h >>conftest.$ac_ext
13443cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013444/* end confdefs.h. */
13445
13446/* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
13449#ifdef __cplusplus
13450extern "C"
13451#endif
13452char op_open_agent ();
13453int
13454main ()
13455{
13456return op_open_agent ();
13457 ;
13458 return 0;
13459}
13460_ACEOF
13461for ac_lib in '' opagent; do
13462 if test -z "$ac_lib"; then
13463 ac_res="none required"
13464 else
13465 ac_res=-l$ac_lib
13466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13467 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013468 rm -f conftest.$ac_objext conftest$ac_exeext
13469if { (ac_try="$ac_link"
13470case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13473esac
13474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_link") 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486esac
13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest$ac_exeext'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496esac
13497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013502 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013503else
13504 echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013509
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013510rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013511 conftest$ac_exeext
13512 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013513 break
13514fi
13515done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516if test "${ac_cv_search_op_open_agent+set}" = set; then
13517 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013518else
13519 ac_cv_search_op_open_agent=no
13520fi
13521rm conftest.$ac_ext
13522LIBS=$ac_func_search_save_LIBS
13523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013524{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13525echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013526ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013527if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13529
13530else
13531
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013532 echo "Error! You need to have libopagent around."
13533 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013534
13535fi
13536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013537 if test "${ac_cv_header_opagent_h+set}" = set; then
13538 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13539echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13540if test "${ac_cv_header_opagent_h+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542fi
13543{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13544echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13545else
13546 # Is the header compilable?
13547{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13548echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13549cat >conftest.$ac_ext <<_ACEOF
13550/* confdefs.h. */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h. */
13555$ac_includes_default
13556#include <opagent.h>
13557_ACEOF
13558rm -f conftest.$ac_objext
13559if { (ac_try="$ac_compile"
13560case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563esac
13564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_compile") 2>conftest.er1
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13573 { (case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576esac
13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_try") 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest.$ac_objext'
13583 { (case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13586esac
13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_try") 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_header_compiler=yes
13593else
13594 echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013597 ac_header_compiler=no
13598fi
13599
13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13602echo "${ECHO_T}$ac_header_compiler" >&6; }
13603
13604# Is the header present?
13605{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13606echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13607cat >conftest.$ac_ext <<_ACEOF
13608/* confdefs.h. */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h. */
13613#include <opagent.h>
13614_ACEOF
13615if { (ac_try="$ac_cpp conftest.$ac_ext"
13616case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619esac
13620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } >/dev/null; then
13628 if test -s conftest.err; then
13629 ac_cpp_err=$ac_c_preproc_warn_flag
13630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13631 else
13632 ac_cpp_err=
13633 fi
13634else
13635 ac_cpp_err=yes
13636fi
13637if test -z "$ac_cpp_err"; then
13638 ac_header_preproc=yes
13639else
13640 echo "$as_me: failed program was:" >&5
13641sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 ac_header_preproc=no
13644fi
13645
13646rm -f conftest.err conftest.$ac_ext
13647{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13648echo "${ECHO_T}$ac_header_preproc" >&6; }
13649
13650# So? What about this header?
13651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13652 yes:no: )
13653 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13654echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13656echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13657 ac_header_preproc=yes
13658 ;;
13659 no:yes:* )
13660 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13661echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13663echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13665echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13667echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13668 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13669echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13671echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13672 ( cat <<\_ASBOX
13673## ----------------------------------- ##
13674## Report this to llvmbugs@cs.uiuc.edu ##
13675## ----------------------------------- ##
13676_ASBOX
13677 ) | sed "s/^/$as_me: WARNING: /" >&2
13678 ;;
13679esac
13680{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13681echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13682if test "${ac_cv_header_opagent_h+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684else
13685 ac_cv_header_opagent_h=$ac_header_preproc
13686fi
13687{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13688echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13689
13690fi
13691if test $ac_cv_header_opagent_h = yes; then
13692 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013693else
13694
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013695 echo "Error! You need to have opagent.h around."
13696 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013697
13698fi
13699
13700
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013701 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013702
13703else
13704
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013705 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013706
13707
13708fi
13709
13710
13711cat >>confdefs.h <<_ACEOF
13712#define USE_OPROFILE $USE_OPROFILE
13713_ACEOF
13714
13715
13716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013717
13718
13719
13720
13721
Reid Spencer59473af2004-12-25 07:31:29 +000013722ac_header_dirent=no
13723for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013724 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13725{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13726echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013729else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013730 cat >conftest.$ac_ext <<_ACEOF
13731/* confdefs.h. */
13732_ACEOF
13733cat confdefs.h >>conftest.$ac_ext
13734cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013735/* end confdefs.h. */
13736#include <sys/types.h>
13737#include <$ac_hdr>
13738
13739int
13740main ()
13741{
13742if ((DIR *) 0)
13743return 0;
13744 ;
13745 return 0;
13746}
13747_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013748rm -f conftest.$ac_objext
13749if { (ac_try="$ac_compile"
13750case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753esac
13754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_compile") 2>conftest.er1
13756 ac_status=$?
13757 grep -v '^ *+' conftest.er1 >conftest.err
13758 rm -f conftest.er1
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13766esac
13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; } &&
13772 { ac_try='test -s conftest.$ac_objext'
13773 { (case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13776esac
13777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_try") 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013782 eval "$as_ac_Header=yes"
13783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013784 echo "$as_me: failed program was:" >&5
13785sed 's/^/| /' conftest.$ac_ext >&5
13786
13787 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013789
Reid Spencera773bd52006-08-04 18:18:08 +000013790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013792ac_res=`eval echo '${'$as_ac_Header'}'`
13793 { echo "$as_me:$LINENO: result: $ac_res" >&5
13794echo "${ECHO_T}$ac_res" >&6; }
13795if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013796 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013797#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013798_ACEOF
13799
13800ac_header_dirent=$ac_hdr; break
13801fi
13802
13803done
13804# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13805if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013806 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13807echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13808if test "${ac_cv_search_opendir+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013810else
13811 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013812cat >conftest.$ac_ext <<_ACEOF
13813/* confdefs.h. */
13814_ACEOF
13815cat confdefs.h >>conftest.$ac_ext
13816cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013817/* end confdefs.h. */
13818
Reid Spencera773bd52006-08-04 18:18:08 +000013819/* Override any GCC internal prototype to avoid an error.
13820 Use char because int might match the return type of a GCC
13821 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013822#ifdef __cplusplus
13823extern "C"
13824#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013825char opendir ();
13826int
13827main ()
13828{
Reid Spencera773bd52006-08-04 18:18:08 +000013829return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013830 ;
13831 return 0;
13832}
13833_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013834for ac_lib in '' dir; do
13835 if test -z "$ac_lib"; then
13836 ac_res="none required"
13837 else
13838 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013840 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013841 rm -f conftest.$ac_objext conftest$ac_exeext
13842if { (ac_try="$ac_link"
13843case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13846esac
13847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_link") 2>conftest.er1
13849 ac_status=$?
13850 grep -v '^ *+' conftest.er1 >conftest.err
13851 rm -f conftest.er1
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13859esac
13860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest$ac_exeext'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013875 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013876else
13877 echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
13880
Reid Spencer59473af2004-12-25 07:31:29 +000013881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013882
Bill Wendlingebcceee2009-04-18 11:20:33 +000013883rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013884 conftest$ac_exeext
13885 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013886 break
Reid Spencer59473af2004-12-25 07:31:29 +000013887fi
Reid Spencera773bd52006-08-04 18:18:08 +000013888done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013889if test "${ac_cv_search_opendir+set}" = set; then
13890 :
Reid Spencera773bd52006-08-04 18:18:08 +000013891else
13892 ac_cv_search_opendir=no
13893fi
13894rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013895LIBS=$ac_func_search_save_LIBS
13896fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13898echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013899ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013900if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013902
13903fi
13904
13905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013906 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13907echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13908if test "${ac_cv_search_opendir+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013910else
13911 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013912cat >conftest.$ac_ext <<_ACEOF
13913/* confdefs.h. */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013917/* end confdefs.h. */
13918
Reid Spencera773bd52006-08-04 18:18:08 +000013919/* Override any GCC internal prototype to avoid an error.
13920 Use char because int might match the return type of a GCC
13921 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013922#ifdef __cplusplus
13923extern "C"
13924#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013925char opendir ();
13926int
13927main ()
13928{
Reid Spencera773bd52006-08-04 18:18:08 +000013929return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013930 ;
13931 return 0;
13932}
13933_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013934for ac_lib in '' x; do
13935 if test -z "$ac_lib"; then
13936 ac_res="none required"
13937 else
13938 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013940 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013941 rm -f conftest.$ac_objext conftest$ac_exeext
13942if { (ac_try="$ac_link"
13943case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946esac
13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_link") 2>conftest.er1
13949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959esac
13960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest$ac_exeext'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969esac
13970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013975 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013976else
13977 echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980
Reid Spencer59473af2004-12-25 07:31:29 +000013981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013982
Bill Wendlingebcceee2009-04-18 11:20:33 +000013983rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013984 conftest$ac_exeext
13985 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013986 break
Reid Spencer59473af2004-12-25 07:31:29 +000013987fi
Reid Spencera773bd52006-08-04 18:18:08 +000013988done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989if test "${ac_cv_search_opendir+set}" = set; then
13990 :
Reid Spencera773bd52006-08-04 18:18:08 +000013991else
13992 ac_cv_search_opendir=no
13993fi
13994rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013995LIBS=$ac_func_search_save_LIBS
13996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013997{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13998echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013999ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014000if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014002
14003fi
14004
14005fi
14006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14008echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14009if test "${ac_cv_header_mmap_anon+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014011else
14012 ac_ext=c
14013ac_cpp='$CPP $CPPFLAGS'
14014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016ac_compiler_gnu=$ac_cv_c_compiler_gnu
14017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014018 cat >conftest.$ac_ext <<_ACEOF
14019/* confdefs.h. */
14020_ACEOF
14021cat confdefs.h >>conftest.$ac_ext
14022cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014023/* end confdefs.h. */
14024#include <sys/mman.h>
14025#include <unistd.h>
14026#include <fcntl.h>
14027int
14028main ()
14029{
14030mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14031 ;
14032 return 0;
14033}
14034_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014035rm -f conftest.$ac_objext
14036if { (ac_try="$ac_compile"
14037case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14050 { (case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14053esac
14054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055 (eval "$ac_try") 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest.$ac_objext'
14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_try") 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014069 ac_cv_header_mmap_anon=yes
14070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071 echo "$as_me: failed program was:" >&5
14072sed 's/^/| /' conftest.$ac_ext >&5
14073
14074 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014076
Reid Spencera773bd52006-08-04 18:18:08 +000014077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014078 ac_ext=c
14079ac_cpp='$CPP $CPPFLAGS'
14080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14082ac_compiler_gnu=$ac_cv_c_compiler_gnu
14083
14084
14085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014086{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14087echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014088if test "$ac_cv_header_mmap_anon" = yes; then
14089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090cat >>confdefs.h <<\_ACEOF
14091#define HAVE_MMAP_ANONYMOUS 1
14092_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014093
14094fi
14095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014096{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14097echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14098if test "${ac_cv_header_stat_broken+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014101 cat >conftest.$ac_ext <<_ACEOF
14102/* confdefs.h. */
14103_ACEOF
14104cat confdefs.h >>conftest.$ac_ext
14105cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014106/* end confdefs.h. */
14107#include <sys/types.h>
14108#include <sys/stat.h>
14109
Reid Spencera773bd52006-08-04 18:18:08 +000014110#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014111# if S_ISBLK (S_IFDIR)
14112You lose.
14113# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014114#endif
14115
Reid Spencera773bd52006-08-04 18:18:08 +000014116#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117# if S_ISBLK (S_IFCHR)
14118You lose.
14119# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014120#endif
14121
Reid Spencera773bd52006-08-04 18:18:08 +000014122#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014123# if S_ISLNK (S_IFREG)
14124You lose.
14125# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014126#endif
14127
Reid Spencera773bd52006-08-04 18:18:08 +000014128#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014129# if S_ISSOCK (S_IFREG)
14130You lose.
14131# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014132#endif
14133
14134_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14136 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014137 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014138else
14139 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141rm -f conftest*
14142
Reid Spencer59473af2004-12-25 07:31:29 +000014143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14145echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014146if test $ac_cv_header_stat_broken = yes; then
14147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148cat >>confdefs.h <<\_ACEOF
14149#define STAT_MACROS_BROKEN 1
14150_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014151
14152fi
14153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014154{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14155echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14156if test "${ac_cv_header_sys_wait_h+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159 cat >conftest.$ac_ext <<_ACEOF
14160/* confdefs.h. */
14161_ACEOF
14162cat confdefs.h >>conftest.$ac_ext
14163cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014165#include <sys/types.h>
14166#include <sys/wait.h>
14167#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014168# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014169#endif
14170#ifndef WIFEXITED
14171# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14172#endif
14173
John Criswell7a73b802003-06-30 21:59:07 +000014174int
14175main ()
14176{
14177 int s;
14178 wait (&s);
14179 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14180 ;
14181 return 0;
14182}
14183_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014184rm -f conftest.$ac_objext
14185if { (ac_try="$ac_compile"
14186case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14189esac
14190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_compile") 2>conftest.er1
14192 ac_status=$?
14193 grep -v '^ *+' conftest.er1 >conftest.err
14194 rm -f conftest.er1
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14199 { (case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202esac
14203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_try") 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212esac
14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014218 ac_cv_header_sys_wait_h=yes
14219else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220 echo "$as_me: failed program was:" >&5
14221sed 's/^/| /' conftest.$ac_ext >&5
14222
14223 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225
Reid Spencera773bd52006-08-04 18:18:08 +000014226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014228{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14229echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014230if test $ac_cv_header_sys_wait_h = yes; then
14231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014232cat >>confdefs.h <<\_ACEOF
14233#define HAVE_SYS_WAIT_H 1
14234_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014235
14236fi
14237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14239echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14240if test "${ac_cv_header_time+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014243 cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h. */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014248/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014249#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014250#include <sys/time.h>
14251#include <time.h>
14252
14253int
14254main ()
14255{
14256if ((struct tm *) 0)
14257return 0;
14258 ;
14259 return 0;
14260}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014261_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262rm -f conftest.$ac_objext
14263if { (ac_try="$ac_compile"
14264case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14267esac
14268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_compile") 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14280esac
14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest.$ac_objext'
14287 { (case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290esac
14291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_try") 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014296 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014298 echo "$as_me: failed program was:" >&5
14299sed 's/^/| /' conftest.$ac_ext >&5
14300
14301 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303
Reid Spencera773bd52006-08-04 18:18:08 +000014304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014306{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14307echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014308if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014310cat >>confdefs.h <<\_ACEOF
14311#define TIME_WITH_SYS_TIME 1
14312_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014313
14314fi
14315
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014317
14318
14319
14320
14321
14322
Reid Spencer59473af2004-12-25 07:31:29 +000014323for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014324do
14325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331fi
14332ac_res=`eval echo '${'$as_ac_Header'}'`
14333 { echo "$as_me:$LINENO: result: $ac_res" >&5
14334echo "${ECHO_T}$ac_res" >&6; }
14335else
14336 # Is the header compilable?
14337{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14339cat >conftest.$ac_ext <<_ACEOF
14340/* confdefs.h. */
14341_ACEOF
14342cat confdefs.h >>conftest.$ac_ext
14343cat >>conftest.$ac_ext <<_ACEOF
14344/* end confdefs.h. */
14345$ac_includes_default
14346#include <$ac_header>
14347_ACEOF
14348rm -f conftest.$ac_objext
14349if { (ac_try="$ac_compile"
14350case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14353esac
14354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_compile") 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14363 { (case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366esac
14367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_try") 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest.$ac_objext'
14373 { (case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_try") 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_header_compiler=yes
14383else
14384 echo "$as_me: failed program was:" >&5
14385sed 's/^/| /' conftest.$ac_ext >&5
14386
14387 ac_header_compiler=no
14388fi
14389
14390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14392echo "${ECHO_T}$ac_header_compiler" >&6; }
14393
14394# Is the header present?
14395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14397cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
14402/* end confdefs.h. */
14403#include <$ac_header>
14404_ACEOF
14405if { (ac_try="$ac_cpp conftest.$ac_ext"
14406case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14409esac
14410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } >/dev/null; then
14418 if test -s conftest.err; then
14419 ac_cpp_err=$ac_c_preproc_warn_flag
14420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14421 else
14422 ac_cpp_err=
14423 fi
14424else
14425 ac_cpp_err=yes
14426fi
14427if test -z "$ac_cpp_err"; then
14428 ac_header_preproc=yes
14429else
14430 echo "$as_me: failed program was:" >&5
14431sed 's/^/| /' conftest.$ac_ext >&5
14432
14433 ac_header_preproc=no
14434fi
14435
14436rm -f conftest.err conftest.$ac_ext
14437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14438echo "${ECHO_T}$ac_header_preproc" >&6; }
14439
14440# So? What about this header?
14441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14442 yes:no: )
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14447 ac_header_preproc=yes
14448 ;;
14449 no:yes:* )
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14462 ( cat <<\_ASBOX
14463## ----------------------------------- ##
14464## Report this to llvmbugs@cs.uiuc.edu ##
14465## ----------------------------------- ##
14466_ASBOX
14467 ) | sed "s/^/$as_me: WARNING: /" >&2
14468 ;;
14469esac
14470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474else
14475 eval "$as_ac_Header=\$ac_header_preproc"
14476fi
14477ac_res=`eval echo '${'$as_ac_Header'}'`
14478 { echo "$as_me:$LINENO: result: $ac_res" >&5
14479echo "${ECHO_T}$ac_res" >&6; }
14480
14481fi
14482if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014483 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014485_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014486
14487fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014488
Reid Spencer59473af2004-12-25 07:31:29 +000014489done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014491
14492
14493
14494
14495
14496
Douglas Gregor071d73d2009-05-18 17:21:34 +000014497for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014498do
14499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505fi
14506ac_res=`eval echo '${'$as_ac_Header'}'`
14507 { echo "$as_me:$LINENO: result: $ac_res" >&5
14508echo "${ECHO_T}$ac_res" >&6; }
14509else
14510 # Is the header compilable?
14511{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14513cat >conftest.$ac_ext <<_ACEOF
14514/* confdefs.h. */
14515_ACEOF
14516cat confdefs.h >>conftest.$ac_ext
14517cat >>conftest.$ac_ext <<_ACEOF
14518/* end confdefs.h. */
14519$ac_includes_default
14520#include <$ac_header>
14521_ACEOF
14522rm -f conftest.$ac_objext
14523if { (ac_try="$ac_compile"
14524case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14527esac
14528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_compile") 2>conftest.er1
14530 ac_status=$?
14531 grep -v '^ *+' conftest.er1 >conftest.err
14532 rm -f conftest.er1
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14537 { (case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14540esac
14541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_try") 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest.$ac_objext'
14547 { (case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550esac
14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_try") 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 ac_header_compiler=yes
14557else
14558 echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5
14560
14561 ac_header_compiler=no
14562fi
14563
14564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14566echo "${ECHO_T}$ac_header_compiler" >&6; }
14567
14568# Is the header present?
14569{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14571cat >conftest.$ac_ext <<_ACEOF
14572/* confdefs.h. */
14573_ACEOF
14574cat confdefs.h >>conftest.$ac_ext
14575cat >>conftest.$ac_ext <<_ACEOF
14576/* end confdefs.h. */
14577#include <$ac_header>
14578_ACEOF
14579if { (ac_try="$ac_cpp conftest.$ac_ext"
14580case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } >/dev/null; then
14592 if test -s conftest.err; then
14593 ac_cpp_err=$ac_c_preproc_warn_flag
14594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14595 else
14596 ac_cpp_err=
14597 fi
14598else
14599 ac_cpp_err=yes
14600fi
14601if test -z "$ac_cpp_err"; then
14602 ac_header_preproc=yes
14603else
14604 echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607 ac_header_preproc=no
14608fi
14609
14610rm -f conftest.err conftest.$ac_ext
14611{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14612echo "${ECHO_T}$ac_header_preproc" >&6; }
14613
14614# So? What about this header?
14615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14616 yes:no: )
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14621 ac_header_preproc=yes
14622 ;;
14623 no:yes:* )
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14627echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14631echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14636 ( cat <<\_ASBOX
14637## ----------------------------------- ##
14638## Report this to llvmbugs@cs.uiuc.edu ##
14639## ----------------------------------- ##
14640_ASBOX
14641 ) | sed "s/^/$as_me: WARNING: /" >&2
14642 ;;
14643esac
14644{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648else
14649 eval "$as_ac_Header=\$ac_header_preproc"
14650fi
14651ac_res=`eval echo '${'$as_ac_Header'}'`
14652 { echo "$as_me:$LINENO: result: $ac_res" >&5
14653echo "${ECHO_T}$ac_res" >&6; }
14654
14655fi
14656if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014657 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014659_ACEOF
14660
14661fi
14662
14663done
14664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014665
14666
Douglas Gregor071d73d2009-05-18 17:21:34 +000014667for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014668do
14669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14675fi
14676ac_res=`eval echo '${'$as_ac_Header'}'`
14677 { echo "$as_me:$LINENO: result: $ac_res" >&5
14678echo "${ECHO_T}$ac_res" >&6; }
14679else
14680 # Is the header compilable?
14681{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14683cat >conftest.$ac_ext <<_ACEOF
14684/* confdefs.h. */
14685_ACEOF
14686cat confdefs.h >>conftest.$ac_ext
14687cat >>conftest.$ac_ext <<_ACEOF
14688/* end confdefs.h. */
14689$ac_includes_default
14690#include <$ac_header>
14691_ACEOF
14692rm -f conftest.$ac_objext
14693if { (ac_try="$ac_compile"
14694case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14697esac
14698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_compile") 2>conftest.er1
14700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707 { (case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14710esac
14711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_try") 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest.$ac_objext'
14717 { (case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14720esac
14721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_try") 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ac_header_compiler=yes
14727else
14728 echo "$as_me: failed program was:" >&5
14729sed 's/^/| /' conftest.$ac_ext >&5
14730
14731 ac_header_compiler=no
14732fi
14733
14734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14736echo "${ECHO_T}$ac_header_compiler" >&6; }
14737
14738# Is the header present?
14739{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14741cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h. */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h. */
14747#include <$ac_header>
14748_ACEOF
14749if { (ac_try="$ac_cpp conftest.$ac_ext"
14750case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14753esac
14754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14756 ac_status=$?
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } >/dev/null; then
14762 if test -s conftest.err; then
14763 ac_cpp_err=$ac_c_preproc_warn_flag
14764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14765 else
14766 ac_cpp_err=
14767 fi
14768else
14769 ac_cpp_err=yes
14770fi
14771if test -z "$ac_cpp_err"; then
14772 ac_header_preproc=yes
14773else
14774 echo "$as_me: failed program was:" >&5
14775sed 's/^/| /' conftest.$ac_ext >&5
14776
14777 ac_header_preproc=no
14778fi
14779
14780rm -f conftest.err conftest.$ac_ext
14781{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14782echo "${ECHO_T}$ac_header_preproc" >&6; }
14783
14784# So? What about this header?
14785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14786 yes:no: )
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14791 ac_header_preproc=yes
14792 ;;
14793 no:yes:* )
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14797echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14801echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14806 ( cat <<\_ASBOX
14807## ----------------------------------- ##
14808## Report this to llvmbugs@cs.uiuc.edu ##
14809## ----------------------------------- ##
14810_ASBOX
14811 ) | sed "s/^/$as_me: WARNING: /" >&2
14812 ;;
14813esac
14814{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14818else
14819 eval "$as_ac_Header=\$ac_header_preproc"
14820fi
14821ac_res=`eval echo '${'$as_ac_Header'}'`
14822 { echo "$as_me:$LINENO: result: $ac_res" >&5
14823echo "${ECHO_T}$ac_res" >&6; }
14824
14825fi
14826if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014827 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014829_ACEOF
14830
14831fi
14832
14833done
Reid Spencer59473af2004-12-25 07:31:29 +000014834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014835
14836
14837
14838
Daniel Dunbar3e462932011-02-03 02:40:02 +000014839
14840for 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 +000014841do
14842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848fi
14849ac_res=`eval echo '${'$as_ac_Header'}'`
14850 { echo "$as_me:$LINENO: result: $ac_res" >&5
14851echo "${ECHO_T}$ac_res" >&6; }
14852else
14853 # Is the header compilable?
14854{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14856cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h. */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h. */
14862$ac_includes_default
14863#include <$ac_header>
14864_ACEOF
14865rm -f conftest.$ac_objext
14866if { (ac_try="$ac_compile"
14867case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_compile") 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883esac
14884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest.$ac_objext'
14890 { (case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893esac
14894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_try") 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_header_compiler=yes
14900else
14901 echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 ac_header_compiler=no
14905fi
14906
14907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14909echo "${ECHO_T}$ac_header_compiler" >&6; }
14910
14911# Is the header present?
14912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14914cat >conftest.$ac_ext <<_ACEOF
14915/* confdefs.h. */
14916_ACEOF
14917cat confdefs.h >>conftest.$ac_ext
14918cat >>conftest.$ac_ext <<_ACEOF
14919/* end confdefs.h. */
14920#include <$ac_header>
14921_ACEOF
14922if { (ac_try="$ac_cpp conftest.$ac_ext"
14923case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14926esac
14927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } >/dev/null; then
14935 if test -s conftest.err; then
14936 ac_cpp_err=$ac_c_preproc_warn_flag
14937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14938 else
14939 ac_cpp_err=
14940 fi
14941else
14942 ac_cpp_err=yes
14943fi
14944if test -z "$ac_cpp_err"; then
14945 ac_header_preproc=yes
14946else
14947 echo "$as_me: failed program was:" >&5
14948sed 's/^/| /' conftest.$ac_ext >&5
14949
14950 ac_header_preproc=no
14951fi
14952
14953rm -f conftest.err conftest.$ac_ext
14954{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14955echo "${ECHO_T}$ac_header_preproc" >&6; }
14956
14957# So? What about this header?
14958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14959 yes:no: )
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14964 ac_header_preproc=yes
14965 ;;
14966 no:yes:* )
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14974echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14979 ( cat <<\_ASBOX
14980## ----------------------------------- ##
14981## Report this to llvmbugs@cs.uiuc.edu ##
14982## ----------------------------------- ##
14983_ASBOX
14984 ) | sed "s/^/$as_me: WARNING: /" >&2
14985 ;;
14986esac
14987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14991else
14992 eval "$as_ac_Header=\$ac_header_preproc"
14993fi
14994ac_res=`eval echo '${'$as_ac_Header'}'`
14995 { echo "$as_me:$LINENO: result: $ac_res" >&5
14996echo "${ECHO_T}$ac_res" >&6; }
14997
14998fi
14999if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015000 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015002_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015003
15004fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015005
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015006done
15007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015008
15009
15010
15011
Douglas Gregor01746742009-05-11 18:05:52 +000015012for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015013do
15014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15020fi
15021ac_res=`eval echo '${'$as_ac_Header'}'`
15022 { echo "$as_me:$LINENO: result: $ac_res" >&5
15023echo "${ECHO_T}$ac_res" >&6; }
15024else
15025 # Is the header compilable?
15026{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15028cat >conftest.$ac_ext <<_ACEOF
15029/* confdefs.h. */
15030_ACEOF
15031cat confdefs.h >>conftest.$ac_ext
15032cat >>conftest.$ac_ext <<_ACEOF
15033/* end confdefs.h. */
15034$ac_includes_default
15035#include <$ac_header>
15036_ACEOF
15037rm -f conftest.$ac_objext
15038if { (ac_try="$ac_compile"
15039case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15042esac
15043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_compile") 2>conftest.er1
15045 ac_status=$?
15046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052 { (case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055esac
15056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_try") 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15065esac
15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_header_compiler=yes
15072else
15073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 ac_header_compiler=no
15077fi
15078
15079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15081echo "${ECHO_T}$ac_header_compiler" >&6; }
15082
15083# Is the header present?
15084{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15086cat >conftest.$ac_ext <<_ACEOF
15087/* confdefs.h. */
15088_ACEOF
15089cat confdefs.h >>conftest.$ac_ext
15090cat >>conftest.$ac_ext <<_ACEOF
15091/* end confdefs.h. */
15092#include <$ac_header>
15093_ACEOF
15094if { (ac_try="$ac_cpp conftest.$ac_ext"
15095case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098esac
15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } >/dev/null; then
15107 if test -s conftest.err; then
15108 ac_cpp_err=$ac_c_preproc_warn_flag
15109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15110 else
15111 ac_cpp_err=
15112 fi
15113else
15114 ac_cpp_err=yes
15115fi
15116if test -z "$ac_cpp_err"; then
15117 ac_header_preproc=yes
15118else
15119 echo "$as_me: failed program was:" >&5
15120sed 's/^/| /' conftest.$ac_ext >&5
15121
15122 ac_header_preproc=no
15123fi
15124
15125rm -f conftest.err conftest.$ac_ext
15126{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15127echo "${ECHO_T}$ac_header_preproc" >&6; }
15128
15129# So? What about this header?
15130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15131 yes:no: )
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15136 ac_header_preproc=yes
15137 ;;
15138 no:yes:* )
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15151 ( cat <<\_ASBOX
15152## ----------------------------------- ##
15153## Report this to llvmbugs@cs.uiuc.edu ##
15154## ----------------------------------- ##
15155_ASBOX
15156 ) | sed "s/^/$as_me: WARNING: /" >&2
15157 ;;
15158esac
15159{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163else
15164 eval "$as_ac_Header=\$ac_header_preproc"
15165fi
15166ac_res=`eval echo '${'$as_ac_Header'}'`
15167 { echo "$as_me:$LINENO: result: $ac_res" >&5
15168echo "${ECHO_T}$ac_res" >&6; }
15169
15170fi
15171if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015172 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015174_ACEOF
15175
15176fi
15177
15178done
15179
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015180
15181for ac_header in valgrind/valgrind.h
15182do
15183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15189fi
15190ac_res=`eval echo '${'$as_ac_Header'}'`
15191 { echo "$as_me:$LINENO: result: $ac_res" >&5
15192echo "${ECHO_T}$ac_res" >&6; }
15193else
15194 # Is the header compilable?
15195{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15197cat >conftest.$ac_ext <<_ACEOF
15198/* confdefs.h. */
15199_ACEOF
15200cat confdefs.h >>conftest.$ac_ext
15201cat >>conftest.$ac_ext <<_ACEOF
15202/* end confdefs.h. */
15203$ac_includes_default
15204#include <$ac_header>
15205_ACEOF
15206rm -f conftest.$ac_objext
15207if { (ac_try="$ac_compile"
15208case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211esac
15212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_compile") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15221 { (case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15224esac
15225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_try") 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest.$ac_objext'
15231 { (case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_try") 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_header_compiler=yes
15241else
15242 echo "$as_me: failed program was:" >&5
15243sed 's/^/| /' conftest.$ac_ext >&5
15244
15245 ac_header_compiler=no
15246fi
15247
15248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15250echo "${ECHO_T}$ac_header_compiler" >&6; }
15251
15252# Is the header present?
15253{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15255cat >conftest.$ac_ext <<_ACEOF
15256/* confdefs.h. */
15257_ACEOF
15258cat confdefs.h >>conftest.$ac_ext
15259cat >>conftest.$ac_ext <<_ACEOF
15260/* end confdefs.h. */
15261#include <$ac_header>
15262_ACEOF
15263if { (ac_try="$ac_cpp conftest.$ac_ext"
15264case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267esac
15268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } >/dev/null; then
15276 if test -s conftest.err; then
15277 ac_cpp_err=$ac_c_preproc_warn_flag
15278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15279 else
15280 ac_cpp_err=
15281 fi
15282else
15283 ac_cpp_err=yes
15284fi
15285if test -z "$ac_cpp_err"; then
15286 ac_header_preproc=yes
15287else
15288 echo "$as_me: failed program was:" >&5
15289sed 's/^/| /' conftest.$ac_ext >&5
15290
15291 ac_header_preproc=no
15292fi
15293
15294rm -f conftest.err conftest.$ac_ext
15295{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15296echo "${ECHO_T}$ac_header_preproc" >&6; }
15297
15298# So? What about this header?
15299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15300 yes:no: )
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15305 ac_header_preproc=yes
15306 ;;
15307 no:yes:* )
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15320 ( cat <<\_ASBOX
15321## ----------------------------------- ##
15322## Report this to llvmbugs@cs.uiuc.edu ##
15323## ----------------------------------- ##
15324_ASBOX
15325 ) | sed "s/^/$as_me: WARNING: /" >&2
15326 ;;
15327esac
15328{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15332else
15333 eval "$as_ac_Header=\$ac_header_preproc"
15334fi
15335ac_res=`eval echo '${'$as_ac_Header'}'`
15336 { echo "$as_me:$LINENO: result: $ac_res" >&5
15337echo "${ECHO_T}$ac_res" >&6; }
15338
15339fi
15340if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15343_ACEOF
15344
15345fi
15346
15347done
15348
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015349
15350for ac_header in fenv.h
15351do
15352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358fi
15359ac_res=`eval echo '${'$as_ac_Header'}'`
15360 { echo "$as_me:$LINENO: result: $ac_res" >&5
15361echo "${ECHO_T}$ac_res" >&6; }
15362else
15363 # Is the header compilable?
15364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15366cat >conftest.$ac_ext <<_ACEOF
15367/* confdefs.h. */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h. */
15372$ac_includes_default
15373#include <$ac_header>
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (ac_try="$ac_compile"
15377case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15380esac
15381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_compile") 2>conftest.er1
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15390 { (case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15393esac
15394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_try") 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try='test -s conftest.$ac_objext'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15403esac
15404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 ac_header_compiler=yes
15410else
15411 echo "$as_me: failed program was:" >&5
15412sed 's/^/| /' conftest.$ac_ext >&5
15413
15414 ac_header_compiler=no
15415fi
15416
15417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15419echo "${ECHO_T}$ac_header_compiler" >&6; }
15420
15421# Is the header present?
15422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15424cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h. */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h. */
15430#include <$ac_header>
15431_ACEOF
15432if { (ac_try="$ac_cpp conftest.$ac_ext"
15433case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15436esac
15437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } >/dev/null; then
15445 if test -s conftest.err; then
15446 ac_cpp_err=$ac_c_preproc_warn_flag
15447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15448 else
15449 ac_cpp_err=
15450 fi
15451else
15452 ac_cpp_err=yes
15453fi
15454if test -z "$ac_cpp_err"; then
15455 ac_header_preproc=yes
15456else
15457 echo "$as_me: failed program was:" >&5
15458sed 's/^/| /' conftest.$ac_ext >&5
15459
15460 ac_header_preproc=no
15461fi
15462
15463rm -f conftest.err conftest.$ac_ext
15464{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15465echo "${ECHO_T}$ac_header_preproc" >&6; }
15466
15467# So? What about this header?
15468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15469 yes:no: )
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15474 ac_header_preproc=yes
15475 ;;
15476 no:yes:* )
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15489 ( cat <<\_ASBOX
15490## ----------------------------------- ##
15491## Report this to llvmbugs@cs.uiuc.edu ##
15492## ----------------------------------- ##
15493_ASBOX
15494 ) | sed "s/^/$as_me: WARNING: /" >&2
15495 ;;
15496esac
15497{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501else
15502 eval "$as_ac_Header=\$ac_header_preproc"
15503fi
15504ac_res=`eval echo '${'$as_ac_Header'}'`
15505 { echo "$as_me:$LINENO: result: $ac_res" >&5
15506echo "${ECHO_T}$ac_res" >&6; }
15507
15508fi
15509if test `eval echo '${'$as_ac_Header'}'` = yes; then
15510 cat >>confdefs.h <<_ACEOF
15511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15512_ACEOF
15513
15514fi
15515
15516done
15517
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015518if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015519
15520for ac_header in pthread.h
15521do
15522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528fi
15529ac_res=`eval echo '${'$as_ac_Header'}'`
15530 { echo "$as_me:$LINENO: result: $ac_res" >&5
15531echo "${ECHO_T}$ac_res" >&6; }
15532else
15533 # Is the header compilable?
15534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h. */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h. */
15542$ac_includes_default
15543#include <$ac_header>
15544_ACEOF
15545rm -f conftest.$ac_objext
15546if { (ac_try="$ac_compile"
15547case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15550esac
15551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_compile") 2>conftest.er1
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } &&
15559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15560 { (case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15563esac
15564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_try") 2>&5
15566 ac_status=$?
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } &&
15569 { ac_try='test -s conftest.$ac_objext'
15570 { (case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15573esac
15574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_try") 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; }; then
15579 ac_header_compiler=yes
15580else
15581 echo "$as_me: failed program was:" >&5
15582sed 's/^/| /' conftest.$ac_ext >&5
15583
15584 ac_header_compiler=no
15585fi
15586
15587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15589echo "${ECHO_T}$ac_header_compiler" >&6; }
15590
15591# Is the header present?
15592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15594cat >conftest.$ac_ext <<_ACEOF
15595/* confdefs.h. */
15596_ACEOF
15597cat confdefs.h >>conftest.$ac_ext
15598cat >>conftest.$ac_ext <<_ACEOF
15599/* end confdefs.h. */
15600#include <$ac_header>
15601_ACEOF
15602if { (ac_try="$ac_cpp conftest.$ac_ext"
15603case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606esac
15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15609 ac_status=$?
15610 grep -v '^ *+' conftest.er1 >conftest.err
15611 rm -f conftest.er1
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } >/dev/null; then
15615 if test -s conftest.err; then
15616 ac_cpp_err=$ac_c_preproc_warn_flag
15617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15618 else
15619 ac_cpp_err=
15620 fi
15621else
15622 ac_cpp_err=yes
15623fi
15624if test -z "$ac_cpp_err"; then
15625 ac_header_preproc=yes
15626else
15627 echo "$as_me: failed program was:" >&5
15628sed 's/^/| /' conftest.$ac_ext >&5
15629
15630 ac_header_preproc=no
15631fi
15632
15633rm -f conftest.err conftest.$ac_ext
15634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15635echo "${ECHO_T}$ac_header_preproc" >&6; }
15636
15637# So? What about this header?
15638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15639 yes:no: )
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15644 ac_header_preproc=yes
15645 ;;
15646 no:yes:* )
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15659 ( cat <<\_ASBOX
15660## ----------------------------------- ##
15661## Report this to llvmbugs@cs.uiuc.edu ##
15662## ----------------------------------- ##
15663_ASBOX
15664 ) | sed "s/^/$as_me: WARNING: /" >&2
15665 ;;
15666esac
15667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15671else
15672 eval "$as_ac_Header=\$ac_header_preproc"
15673fi
15674ac_res=`eval echo '${'$as_ac_Header'}'`
15675 { echo "$as_me:$LINENO: result: $ac_res" >&5
15676echo "${ECHO_T}$ac_res" >&6; }
15677
15678fi
15679if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015680 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015682_ACEOF
15683 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015684
15685else
15686 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015687
15688fi
15689
Reid Spencerbe3e4192007-08-17 05:45:26 +000015690done
Reid Spencer1000b732006-12-01 00:37:14 +000015691
15692else
15693 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015694
15695fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015696
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015697if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015698
15699
15700for ac_header in ffi.h ffi/ffi.h
15701do
15702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15708fi
15709ac_res=`eval echo '${'$as_ac_Header'}'`
15710 { echo "$as_me:$LINENO: result: $ac_res" >&5
15711echo "${ECHO_T}$ac_res" >&6; }
15712else
15713 # Is the header compilable?
15714{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15716cat >conftest.$ac_ext <<_ACEOF
15717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
15722$ac_includes_default
15723#include <$ac_header>
15724_ACEOF
15725rm -f conftest.$ac_objext
15726if { (ac_try="$ac_compile"
15727case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15730esac
15731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_compile") 2>conftest.er1
15733 ac_status=$?
15734 grep -v '^ *+' conftest.er1 >conftest.err
15735 rm -f conftest.er1
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15740 { (case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15743esac
15744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_try") 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest.$ac_objext'
15750 { (case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15753esac
15754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_try") 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_header_compiler=yes
15760else
15761 echo "$as_me: failed program was:" >&5
15762sed 's/^/| /' conftest.$ac_ext >&5
15763
15764 ac_header_compiler=no
15765fi
15766
15767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15769echo "${ECHO_T}$ac_header_compiler" >&6; }
15770
15771# Is the header present?
15772{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15774cat >conftest.$ac_ext <<_ACEOF
15775/* confdefs.h. */
15776_ACEOF
15777cat confdefs.h >>conftest.$ac_ext
15778cat >>conftest.$ac_ext <<_ACEOF
15779/* end confdefs.h. */
15780#include <$ac_header>
15781_ACEOF
15782if { (ac_try="$ac_cpp conftest.$ac_ext"
15783case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786esac
15787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15789 ac_status=$?
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } >/dev/null; then
15795 if test -s conftest.err; then
15796 ac_cpp_err=$ac_c_preproc_warn_flag
15797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15798 else
15799 ac_cpp_err=
15800 fi
15801else
15802 ac_cpp_err=yes
15803fi
15804if test -z "$ac_cpp_err"; then
15805 ac_header_preproc=yes
15806else
15807 echo "$as_me: failed program was:" >&5
15808sed 's/^/| /' conftest.$ac_ext >&5
15809
15810 ac_header_preproc=no
15811fi
15812
15813rm -f conftest.err conftest.$ac_ext
15814{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15815echo "${ECHO_T}$ac_header_preproc" >&6; }
15816
15817# So? What about this header?
15818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15819 yes:no: )
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15824 ac_header_preproc=yes
15825 ;;
15826 no:yes:* )
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15830echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15834echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15839 ( cat <<\_ASBOX
15840## ----------------------------------- ##
15841## Report this to llvmbugs@cs.uiuc.edu ##
15842## ----------------------------------- ##
15843_ASBOX
15844 ) | sed "s/^/$as_me: WARNING: /" >&2
15845 ;;
15846esac
15847{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15851else
15852 eval "$as_ac_Header=\$ac_header_preproc"
15853fi
15854ac_res=`eval echo '${'$as_ac_Header'}'`
15855 { echo "$as_me:$LINENO: result: $ac_res" >&5
15856echo "${ECHO_T}$ac_res" >&6; }
15857
15858fi
15859if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015860 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015862_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015863
15864fi
15865
15866done
15867
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015868fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015869
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015870
Eric Christopher654dee42010-06-22 21:01:04 +000015871for ac_header in CrashReporterClient.h
15872do
15873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879fi
15880ac_res=`eval echo '${'$as_ac_Header'}'`
15881 { echo "$as_me:$LINENO: result: $ac_res" >&5
15882echo "${ECHO_T}$ac_res" >&6; }
15883else
15884 # Is the header compilable?
15885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15887cat >conftest.$ac_ext <<_ACEOF
15888/* confdefs.h. */
15889_ACEOF
15890cat confdefs.h >>conftest.$ac_ext
15891cat >>conftest.$ac_ext <<_ACEOF
15892/* end confdefs.h. */
15893$ac_includes_default
15894#include <$ac_header>
15895_ACEOF
15896rm -f conftest.$ac_objext
15897if { (ac_try="$ac_compile"
15898case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15901esac
15902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_compile") 2>conftest.er1
15904 ac_status=$?
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15911 { (case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15914esac
15915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_try") 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest.$ac_objext'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924esac
15925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_try") 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15930 ac_header_compiler=yes
15931else
15932 echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935 ac_header_compiler=no
15936fi
15937
15938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15940echo "${ECHO_T}$ac_header_compiler" >&6; }
15941
15942# Is the header present?
15943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15945cat >conftest.$ac_ext <<_ACEOF
15946/* confdefs.h. */
15947_ACEOF
15948cat confdefs.h >>conftest.$ac_ext
15949cat >>conftest.$ac_ext <<_ACEOF
15950/* end confdefs.h. */
15951#include <$ac_header>
15952_ACEOF
15953if { (ac_try="$ac_cpp conftest.$ac_ext"
15954case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15957esac
15958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15960 ac_status=$?
15961 grep -v '^ *+' conftest.er1 >conftest.err
15962 rm -f conftest.er1
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } >/dev/null; then
15966 if test -s conftest.err; then
15967 ac_cpp_err=$ac_c_preproc_warn_flag
15968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15969 else
15970 ac_cpp_err=
15971 fi
15972else
15973 ac_cpp_err=yes
15974fi
15975if test -z "$ac_cpp_err"; then
15976 ac_header_preproc=yes
15977else
15978 echo "$as_me: failed program was:" >&5
15979sed 's/^/| /' conftest.$ac_ext >&5
15980
15981 ac_header_preproc=no
15982fi
15983
15984rm -f conftest.err conftest.$ac_ext
15985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15986echo "${ECHO_T}$ac_header_preproc" >&6; }
15987
15988# So? What about this header?
15989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15990 yes:no: )
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15995 ac_header_preproc=yes
15996 ;;
15997 no:yes:* )
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16001echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16005echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16010 ( cat <<\_ASBOX
16011## ----------------------------------- ##
16012## Report this to llvmbugs@cs.uiuc.edu ##
16013## ----------------------------------- ##
16014_ASBOX
16015 ) | sed "s/^/$as_me: WARNING: /" >&2
16016 ;;
16017esac
16018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16022else
16023 eval "$as_ac_Header=\$ac_header_preproc"
16024fi
16025ac_res=`eval echo '${'$as_ac_Header'}'`
16026 { echo "$as_me:$LINENO: result: $ac_res" >&5
16027echo "${ECHO_T}$ac_res" >&6; }
16028
16029fi
16030if test `eval echo '${'$as_ac_Header'}'` = yes; then
16031 cat >>confdefs.h <<_ACEOF
16032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16033_ACEOF
16034
16035fi
16036
16037done
16038
16039
Eric Christopher51e57132010-12-07 02:05:42 +000016040{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16041echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016042cat >conftest.$ac_ext <<_ACEOF
16043/* confdefs.h. */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016048extern const char *__crashreporter_info__;
16049 int main() {
16050 __crashreporter_info__ = "test";
16051 return 0;
16052 }
Eric Christopher481d4022010-12-03 07:45:22 +000016053
Eric Christopher481d4022010-12-03 07:45:22 +000016054_ACEOF
16055rm -f conftest.$ac_objext conftest$ac_exeext
16056if { (ac_try="$ac_link"
16057case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_link") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest$ac_exeext'
16080 { (case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16083esac
16084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_try") 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016089 { echo "$as_me:$LINENO: result: yes" >&5
16090echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016091
16092cat >>confdefs.h <<\_ACEOF
16093#define HAVE_CRASHREPORTER_INFO 1
16094_ACEOF
16095
Eric Christopher51e57132010-12-07 02:05:42 +000016096else
16097 echo "$as_me: failed program was:" >&5
16098sed 's/^/| /' conftest.$ac_ext >&5
16099
16100 { echo "$as_me:$LINENO: result: no" >&5
16101echo "${ECHO_T}no" >&6; }
16102
16103cat >>confdefs.h <<\_ACEOF
16104#define HAVE_CRASHREPORTER_INFO 0
16105_ACEOF
16106
Eric Christopher481d4022010-12-03 07:45:22 +000016107fi
Eric Christopher654dee42010-06-22 21:01:04 +000016108
Eric Christopher51e57132010-12-07 02:05:42 +000016109rm -f core conftest.err conftest.$ac_objext \
16110 conftest$ac_exeext conftest.$ac_ext
16111
16112
Reid Spencer8085cff2005-01-16 02:58:39 +000016113
Torok Edwin871384f2010-01-26 08:50:50 +000016114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016115 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16116echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16117if test "${ac_cv_huge_val_sanity+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016119else
16120
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016121 ac_ext=cpp
16122ac_cpp='$CXXCPP $CPPFLAGS'
16123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016126
Eric Christopherc7718502010-03-02 05:06:54 +000016127 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016128 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016129 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016130 ac_cv_huge_val_sanity=yes
16131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016132 cat >conftest.$ac_ext <<_ACEOF
16133/* confdefs.h. */
16134_ACEOF
16135cat confdefs.h >>conftest.$ac_ext
16136cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016137/* end confdefs.h. */
16138#include <math.h>
16139int
16140main ()
16141{
16142double x = HUGE_VAL; return x != x;
16143 ;
16144 return 0;
16145}
16146_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016147rm -f conftest$ac_exeext
16148if { (ac_try="$ac_link"
16149case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152esac
16153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_link") 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16158 { (case "(($ac_try" in
16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160 *) ac_try_echo=$ac_try;;
16161esac
16162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_try") 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016167 ac_cv_huge_val_sanity=yes
16168else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016169 echo "$as_me: program exited with status $ac_status" >&5
16170echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
16173( exit $ac_status )
16174ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016176rm -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 +000016177fi
16178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016179
Eric Christopherc7718502010-03-02 05:06:54 +000016180 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016181 ac_ext=c
16182ac_cpp='$CPP $CPPFLAGS'
16183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16185ac_compiler_gnu=$ac_cv_c_compiler_gnu
16186
16187
16188fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016189{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16190echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016191 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16192
16193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016194{ echo "$as_me:$LINENO: checking for pid_t" >&5
16195echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16196if test "${ac_cv_type_pid_t+set}" = set; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16198else
16199 cat >conftest.$ac_ext <<_ACEOF
16200/* confdefs.h. */
16201_ACEOF
16202cat confdefs.h >>conftest.$ac_ext
16203cat >>conftest.$ac_ext <<_ACEOF
16204/* end confdefs.h. */
16205$ac_includes_default
16206typedef pid_t ac__type_new_;
16207int
16208main ()
16209{
16210if ((ac__type_new_ *) 0)
16211 return 0;
16212if (sizeof (ac__type_new_))
16213 return 0;
16214 ;
16215 return 0;
16216}
16217_ACEOF
16218rm -f conftest.$ac_objext
16219if { (ac_try="$ac_compile"
16220case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16223esac
16224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225 (eval "$ac_compile") 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16233 { (case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16236esac
16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_try") 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest.$ac_objext'
16243 { (case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_try") 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }; then
16252 ac_cv_type_pid_t=yes
16253else
16254 echo "$as_me: failed program was:" >&5
16255sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016257 ac_cv_type_pid_t=no
16258fi
16259
16260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261fi
16262{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16263echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16264if test $ac_cv_type_pid_t = yes; then
16265 :
John Criswell7a73b802003-06-30 21:59:07 +000016266else
16267
16268cat >>confdefs.h <<_ACEOF
16269#define pid_t int
16270_ACEOF
16271
16272fi
16273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016274{ echo "$as_me:$LINENO: checking for size_t" >&5
16275echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16276if test "${ac_cv_type_size_t+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16278else
16279 cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h. */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h. */
16285$ac_includes_default
16286typedef size_t ac__type_new_;
16287int
16288main ()
16289{
16290if ((ac__type_new_ *) 0)
16291 return 0;
16292if (sizeof (ac__type_new_))
16293 return 0;
16294 ;
16295 return 0;
16296}
16297_ACEOF
16298rm -f conftest.$ac_objext
16299if { (ac_try="$ac_compile"
16300case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303esac
16304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_compile") 2>conftest.er1
16306 ac_status=$?
16307 grep -v '^ *+' conftest.er1 >conftest.err
16308 rm -f conftest.er1
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16313 { (case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16316esac
16317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_try") 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; } &&
16322 { ac_try='test -s conftest.$ac_objext'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_try") 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_cv_type_size_t=yes
16333else
16334 echo "$as_me: failed program was:" >&5
16335sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016337 ac_cv_type_size_t=no
16338fi
16339
16340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341fi
16342{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16343echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16344if test $ac_cv_type_size_t = yes; then
16345 :
John Criswell7a73b802003-06-30 21:59:07 +000016346else
16347
16348cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016349#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016350_ACEOF
16351
16352fi
16353
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016354
16355cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016356#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016357_ACEOF
16358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016359{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16360echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16361if test "${ac_cv_struct_tm+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016364 cat >conftest.$ac_ext <<_ACEOF
16365/* confdefs.h. */
16366_ACEOF
16367cat confdefs.h >>conftest.$ac_ext
16368cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016369/* end confdefs.h. */
16370#include <sys/types.h>
16371#include <time.h>
16372
16373int
16374main ()
16375{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016376struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016377 ;
16378 return 0;
16379}
16380_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016381rm -f conftest.$ac_objext
16382if { (ac_try="$ac_compile"
16383case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16386esac
16387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_compile") 2>conftest.er1
16389 ac_status=$?
16390 grep -v '^ *+' conftest.er1 >conftest.err
16391 rm -f conftest.er1
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
16395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16396 { (case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16399esac
16400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_try") 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest.$ac_objext'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016415 ac_cv_struct_tm=time.h
16416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016417 echo "$as_me: failed program was:" >&5
16418sed 's/^/| /' conftest.$ac_ext >&5
16419
16420 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016422
Reid Spencera773bd52006-08-04 18:18:08 +000016423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016425{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16426echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016427if test $ac_cv_struct_tm = sys/time.h; then
16428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016429cat >>confdefs.h <<\_ACEOF
16430#define TM_IN_SYS_TIME 1
16431_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016432
16433fi
16434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016435{ echo "$as_me:$LINENO: checking for int64_t" >&5
16436echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16437if test "${ac_cv_type_int64_t+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16439else
16440 cat >conftest.$ac_ext <<_ACEOF
16441/* confdefs.h. */
16442_ACEOF
16443cat confdefs.h >>conftest.$ac_ext
16444cat >>conftest.$ac_ext <<_ACEOF
16445/* end confdefs.h. */
16446$ac_includes_default
16447typedef int64_t ac__type_new_;
16448int
16449main ()
16450{
16451if ((ac__type_new_ *) 0)
16452 return 0;
16453if (sizeof (ac__type_new_))
16454 return 0;
16455 ;
16456 return 0;
16457}
16458_ACEOF
16459rm -f conftest.$ac_objext
16460if { (ac_try="$ac_compile"
16461case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16464esac
16465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_compile") 2>conftest.er1
16467 ac_status=$?
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16474 { (case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477esac
16478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_try") 2>&5
16480 ac_status=$?
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; } &&
16483 { ac_try='test -s conftest.$ac_objext'
16484 { (case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16487esac
16488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_cv_type_int64_t=yes
16494else
16495 echo "$as_me: failed program was:" >&5
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498 ac_cv_type_int64_t=no
16499fi
16500
16501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502fi
16503{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16504echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16505if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016506
16507cat >>confdefs.h <<_ACEOF
16508#define HAVE_INT64_T 1
16509_ACEOF
16510
16511
16512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016513 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16514echo "$as_me: error: Type int64_t required but not found" >&2;}
16515 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016516fi
16517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016518{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16519echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16520if test "${ac_cv_type_uint64_t+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16522else
16523 cat >conftest.$ac_ext <<_ACEOF
16524/* confdefs.h. */
16525_ACEOF
16526cat confdefs.h >>conftest.$ac_ext
16527cat >>conftest.$ac_ext <<_ACEOF
16528/* end confdefs.h. */
16529$ac_includes_default
16530typedef uint64_t ac__type_new_;
16531int
16532main ()
16533{
16534if ((ac__type_new_ *) 0)
16535 return 0;
16536if (sizeof (ac__type_new_))
16537 return 0;
16538 ;
16539 return 0;
16540}
16541_ACEOF
16542rm -f conftest.$ac_objext
16543if { (ac_try="$ac_compile"
16544case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16547esac
16548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_compile") 2>conftest.er1
16550 ac_status=$?
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560esac
16561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest.$ac_objext'
16567 { (case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16570esac
16571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_try") 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 ac_cv_type_uint64_t=yes
16577else
16578 echo "$as_me: failed program was:" >&5
16579sed 's/^/| /' conftest.$ac_ext >&5
16580
16581 ac_cv_type_uint64_t=no
16582fi
16583
16584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16585fi
16586{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16587echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16588if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016589
16590cat >>confdefs.h <<_ACEOF
16591#define HAVE_UINT64_T 1
16592_ACEOF
16593
16594
16595else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016596 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16597echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16598if test "${ac_cv_type_u_int64_t+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16600else
16601 cat >conftest.$ac_ext <<_ACEOF
16602/* confdefs.h. */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h. */
16607$ac_includes_default
16608typedef u_int64_t ac__type_new_;
16609int
16610main ()
16611{
16612if ((ac__type_new_ *) 0)
16613 return 0;
16614if (sizeof (ac__type_new_))
16615 return 0;
16616 ;
16617 return 0;
16618}
16619_ACEOF
16620rm -f conftest.$ac_objext
16621if { (ac_try="$ac_compile"
16622case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625esac
16626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_compile") 2>conftest.er1
16628 ac_status=$?
16629 grep -v '^ *+' conftest.er1 >conftest.err
16630 rm -f conftest.er1
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
16634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; } &&
16644 { ac_try='test -s conftest.$ac_objext'
16645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16648esac
16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_type_u_int64_t=yes
16655else
16656 echo "$as_me: failed program was:" >&5
16657sed 's/^/| /' conftest.$ac_ext >&5
16658
16659 ac_cv_type_u_int64_t=no
16660fi
16661
16662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663fi
16664{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16665echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16666if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016667
16668cat >>confdefs.h <<_ACEOF
16669#define HAVE_U_INT64_T 1
16670_ACEOF
16671
16672
Misha Brukmanceca9042004-09-02 23:02:30 +000016673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016674 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16675echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16676 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016677fi
16678
John Criswell679ff312004-09-02 18:44:44 +000016679fi
16680
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016681
16682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016683
16684
16685
16686
16687
16688
16689
Reid Spencerdf3be822006-01-23 08:15:53 +000016690for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016691do
16692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16693{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16695if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697else
16698 cat >conftest.$ac_ext <<_ACEOF
16699/* confdefs.h. */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h. */
16704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16706#define $ac_func innocuous_$ac_func
16707
16708/* System header to define __stub macros and hopefully few prototypes,
16709 which can conflict with char $ac_func (); below.
16710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16711 <limits.h> exists even on freestanding compilers. */
16712
16713#ifdef __STDC__
16714# include <limits.h>
16715#else
16716# include <assert.h>
16717#endif
16718
16719#undef $ac_func
16720
16721/* Override any GCC internal prototype to avoid an error.
16722 Use char because int might match the return type of a GCC
16723 builtin and then its argument prototype would still apply. */
16724#ifdef __cplusplus
16725extern "C"
16726#endif
16727char $ac_func ();
16728/* The GNU C library defines this for functions which it implements
16729 to always fail with ENOSYS. Some functions are actually named
16730 something starting with __ and the normal name is an alias. */
16731#if defined __stub_$ac_func || defined __stub___$ac_func
16732choke me
16733#endif
16734
16735int
16736main ()
16737{
16738return $ac_func ();
16739 ;
16740 return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext conftest$ac_exeext
16744if { (ac_try="$ac_link"
16745case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16748esac
16749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_link") 2>conftest.er1
16751 ac_status=$?
16752 grep -v '^ *+' conftest.er1 >conftest.err
16753 rm -f conftest.er1
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758 { (case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16761esac
16762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_try") 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest$ac_exeext'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16771esac
16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 eval "$as_ac_var=yes"
16778else
16779 echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782 eval "$as_ac_var=no"
16783fi
16784
16785rm -f core conftest.err conftest.$ac_objext \
16786 conftest$ac_exeext conftest.$ac_ext
16787fi
16788ac_res=`eval echo '${'$as_ac_var'}'`
16789 { echo "$as_me:$LINENO: result: $ac_res" >&5
16790echo "${ECHO_T}$ac_res" >&6; }
16791if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016792 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016794_ACEOF
16795
16796fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016797done
John Criswell7a73b802003-06-30 21:59:07 +000016798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016799
16800
16801
16802
Reid Spencer96cf5872007-07-13 10:05:30 +000016803for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016804do
16805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16806{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16808if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16810else
16811 cat >conftest.$ac_ext <<_ACEOF
16812/* confdefs.h. */
16813_ACEOF
16814cat confdefs.h >>conftest.$ac_ext
16815cat >>conftest.$ac_ext <<_ACEOF
16816/* end confdefs.h. */
16817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16819#define $ac_func innocuous_$ac_func
16820
16821/* System header to define __stub macros and hopefully few prototypes,
16822 which can conflict with char $ac_func (); below.
16823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16824 <limits.h> exists even on freestanding compilers. */
16825
16826#ifdef __STDC__
16827# include <limits.h>
16828#else
16829# include <assert.h>
16830#endif
16831
16832#undef $ac_func
16833
16834/* Override any GCC internal prototype to avoid an error.
16835 Use char because int might match the return type of a GCC
16836 builtin and then its argument prototype would still apply. */
16837#ifdef __cplusplus
16838extern "C"
16839#endif
16840char $ac_func ();
16841/* The GNU C library defines this for functions which it implements
16842 to always fail with ENOSYS. Some functions are actually named
16843 something starting with __ and the normal name is an alias. */
16844#if defined __stub_$ac_func || defined __stub___$ac_func
16845choke me
16846#endif
16847
16848int
16849main ()
16850{
16851return $ac_func ();
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext conftest$ac_exeext
16857if { (ac_try="$ac_link"
16858case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861esac
16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_link") 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16871 { (case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16874esac
16875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_try") 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest$ac_exeext'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 eval "$as_ac_var=yes"
16891else
16892 echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895 eval "$as_ac_var=no"
16896fi
16897
16898rm -f core conftest.err conftest.$ac_objext \
16899 conftest$ac_exeext conftest.$ac_ext
16900fi
16901ac_res=`eval echo '${'$as_ac_var'}'`
16902 { echo "$as_me:$LINENO: result: $ac_res" >&5
16903echo "${ECHO_T}$ac_res" >&6; }
16904if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016905 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016907_ACEOF
16908
16909fi
16910done
16911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016912
16913
16914
16915
16916
Reid Spencerb90645c2007-02-16 19:17:20 +000016917for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016918do
16919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16920{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16924else
16925 cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h. */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h. */
16931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16933#define $ac_func innocuous_$ac_func
16934
16935/* System header to define __stub macros and hopefully few prototypes,
16936 which can conflict with char $ac_func (); below.
16937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16938 <limits.h> exists even on freestanding compilers. */
16939
16940#ifdef __STDC__
16941# include <limits.h>
16942#else
16943# include <assert.h>
16944#endif
16945
16946#undef $ac_func
16947
16948/* Override any GCC internal prototype to avoid an error.
16949 Use char because int might match the return type of a GCC
16950 builtin and then its argument prototype would still apply. */
16951#ifdef __cplusplus
16952extern "C"
16953#endif
16954char $ac_func ();
16955/* The GNU C library defines this for functions which it implements
16956 to always fail with ENOSYS. Some functions are actually named
16957 something starting with __ and the normal name is an alias. */
16958#if defined __stub_$ac_func || defined __stub___$ac_func
16959choke me
16960#endif
16961
16962int
16963main ()
16964{
16965return $ac_func ();
16966 ;
16967 return 0;
16968}
16969_ACEOF
16970rm -f conftest.$ac_objext conftest$ac_exeext
16971if { (ac_try="$ac_link"
16972case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16975esac
16976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_link") 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988esac
16989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest$ac_exeext'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; }; then
17004 eval "$as_ac_var=yes"
17005else
17006 echo "$as_me: failed program was:" >&5
17007sed 's/^/| /' conftest.$ac_ext >&5
17008
17009 eval "$as_ac_var=no"
17010fi
17011
17012rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014fi
17015ac_res=`eval echo '${'$as_ac_var'}'`
17016 { echo "$as_me:$LINENO: result: $ac_res" >&5
17017echo "${ECHO_T}$ac_res" >&6; }
17018if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017019 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017021_ACEOF
17022
17023fi
17024done
17025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017026
17027
17028
Reid Spencerb90645c2007-02-16 19:17:20 +000017029for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017030do
17031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17032{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17036else
17037 cat >conftest.$ac_ext <<_ACEOF
17038/* confdefs.h. */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
17042/* end confdefs.h. */
17043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17045#define $ac_func innocuous_$ac_func
17046
17047/* System header to define __stub macros and hopefully few prototypes,
17048 which can conflict with char $ac_func (); below.
17049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17050 <limits.h> exists even on freestanding compilers. */
17051
17052#ifdef __STDC__
17053# include <limits.h>
17054#else
17055# include <assert.h>
17056#endif
17057
17058#undef $ac_func
17059
17060/* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17063#ifdef __cplusplus
17064extern "C"
17065#endif
17066char $ac_func ();
17067/* The GNU C library defines this for functions which it implements
17068 to always fail with ENOSYS. Some functions are actually named
17069 something starting with __ and the normal name is an alias. */
17070#if defined __stub_$ac_func || defined __stub___$ac_func
17071choke me
17072#endif
17073
17074int
17075main ()
17076{
17077return $ac_func ();
17078 ;
17079 return 0;
17080}
17081_ACEOF
17082rm -f conftest.$ac_objext conftest$ac_exeext
17083if { (ac_try="$ac_link"
17084case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087esac
17088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_link") 2>conftest.er1
17090 ac_status=$?
17091 grep -v '^ *+' conftest.er1 >conftest.err
17092 rm -f conftest.er1
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17097 { (case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17100esac
17101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_try") 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; } &&
17106 { ac_try='test -s conftest$ac_exeext'
17107 { (case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17110esac
17111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_try") 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 eval "$as_ac_var=yes"
17117else
17118 echo "$as_me: failed program was:" >&5
17119sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 eval "$as_ac_var=no"
17122fi
17123
17124rm -f core conftest.err conftest.$ac_objext \
17125 conftest$ac_exeext conftest.$ac_ext
17126fi
17127ac_res=`eval echo '${'$as_ac_var'}'`
17128 { echo "$as_me:$LINENO: result: $ac_res" >&5
17129echo "${ECHO_T}$ac_res" >&6; }
17130if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017131 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017133_ACEOF
17134
17135fi
17136done
17137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017138
17139
17140
17141
17142
Eric Christophere4291822010-04-16 05:14:21 +000017143
17144for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017145do
17146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17147{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17151else
17152 cat >conftest.$ac_ext <<_ACEOF
17153/* confdefs.h. */
17154_ACEOF
17155cat confdefs.h >>conftest.$ac_ext
17156cat >>conftest.$ac_ext <<_ACEOF
17157/* end confdefs.h. */
17158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17160#define $ac_func innocuous_$ac_func
17161
17162/* System header to define __stub macros and hopefully few prototypes,
17163 which can conflict with char $ac_func (); below.
17164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17165 <limits.h> exists even on freestanding compilers. */
17166
17167#ifdef __STDC__
17168# include <limits.h>
17169#else
17170# include <assert.h>
17171#endif
17172
17173#undef $ac_func
17174
17175/* Override any GCC internal prototype to avoid an error.
17176 Use char because int might match the return type of a GCC
17177 builtin and then its argument prototype would still apply. */
17178#ifdef __cplusplus
17179extern "C"
17180#endif
17181char $ac_func ();
17182/* The GNU C library defines this for functions which it implements
17183 to always fail with ENOSYS. Some functions are actually named
17184 something starting with __ and the normal name is an alias. */
17185#if defined __stub_$ac_func || defined __stub___$ac_func
17186choke me
17187#endif
17188
17189int
17190main ()
17191{
17192return $ac_func ();
17193 ;
17194 return 0;
17195}
17196_ACEOF
17197rm -f conftest.$ac_objext conftest$ac_exeext
17198if { (ac_try="$ac_link"
17199case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17202esac
17203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_link") 2>conftest.er1
17205 ac_status=$?
17206 grep -v '^ *+' conftest.er1 >conftest.err
17207 rm -f conftest.er1
17208 cat conftest.err >&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17212 { (case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17215esac
17216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_try") 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; } &&
17221 { ac_try='test -s conftest$ac_exeext'
17222 { (case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17225esac
17226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_try") 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; }; then
17231 eval "$as_ac_var=yes"
17232else
17233 echo "$as_me: failed program was:" >&5
17234sed 's/^/| /' conftest.$ac_ext >&5
17235
17236 eval "$as_ac_var=no"
17237fi
17238
17239rm -f core conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext conftest.$ac_ext
17241fi
17242ac_res=`eval echo '${'$as_ac_var'}'`
17243 { echo "$as_me:$LINENO: result: $ac_res" >&5
17244echo "${ECHO_T}$ac_res" >&6; }
17245if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017246 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017247#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017248_ACEOF
17249
17250fi
17251done
Reid Spencerdf3be822006-01-23 08:15:53 +000017252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017253
17254
17255
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017256for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017257do
17258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17263else
17264 cat >conftest.$ac_ext <<_ACEOF
17265/* confdefs.h. */
17266_ACEOF
17267cat confdefs.h >>conftest.$ac_ext
17268cat >>conftest.$ac_ext <<_ACEOF
17269/* end confdefs.h. */
17270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17272#define $ac_func innocuous_$ac_func
17273
17274/* System header to define __stub macros and hopefully few prototypes,
17275 which can conflict with char $ac_func (); below.
17276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17277 <limits.h> exists even on freestanding compilers. */
17278
17279#ifdef __STDC__
17280# include <limits.h>
17281#else
17282# include <assert.h>
17283#endif
17284
17285#undef $ac_func
17286
17287/* Override any GCC internal prototype to avoid an error.
17288 Use char because int might match the return type of a GCC
17289 builtin and then its argument prototype would still apply. */
17290#ifdef __cplusplus
17291extern "C"
17292#endif
17293char $ac_func ();
17294/* The GNU C library defines this for functions which it implements
17295 to always fail with ENOSYS. Some functions are actually named
17296 something starting with __ and the normal name is an alias. */
17297#if defined __stub_$ac_func || defined __stub___$ac_func
17298choke me
17299#endif
17300
17301int
17302main ()
17303{
17304return $ac_func ();
17305 ;
17306 return 0;
17307}
17308_ACEOF
17309rm -f conftest.$ac_objext conftest$ac_exeext
17310if { (ac_try="$ac_link"
17311case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17314esac
17315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_link") 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17324 { (case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17327esac
17328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_try") 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; } &&
17333 { ac_try='test -s conftest$ac_exeext'
17334 { (case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17337esac
17338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_try") 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 eval "$as_ac_var=yes"
17344else
17345 echo "$as_me: failed program was:" >&5
17346sed 's/^/| /' conftest.$ac_ext >&5
17347
17348 eval "$as_ac_var=no"
17349fi
17350
17351rm -f core conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
17353fi
17354ac_res=`eval echo '${'$as_ac_var'}'`
17355 { echo "$as_me:$LINENO: result: $ac_res" >&5
17356echo "${ECHO_T}$ac_res" >&6; }
17357if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017358 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017360_ACEOF
17361
17362fi
17363done
17364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017365
17366
17367
17368
Chris Lattner511f11d2005-11-14 07:25:50 +000017369for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017370do
17371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376else
17377 cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385#define $ac_func innocuous_$ac_func
17386
17387/* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17391
17392#ifdef __STDC__
17393# include <limits.h>
17394#else
17395# include <assert.h>
17396#endif
17397
17398#undef $ac_func
17399
17400/* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17403#ifdef __cplusplus
17404extern "C"
17405#endif
17406char $ac_func ();
17407/* The GNU C library defines this for functions which it implements
17408 to always fail with ENOSYS. Some functions are actually named
17409 something starting with __ and the normal name is an alias. */
17410#if defined __stub_$ac_func || defined __stub___$ac_func
17411choke me
17412#endif
17413
17414int
17415main ()
17416{
17417return $ac_func ();
17418 ;
17419 return 0;
17420}
17421_ACEOF
17422rm -f conftest.$ac_objext conftest$ac_exeext
17423if { (ac_try="$ac_link"
17424case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427esac
17428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17437 { (case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17440esac
17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_try") 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest$ac_exeext'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450esac
17451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 eval "$as_ac_var=yes"
17457else
17458 echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461 eval "$as_ac_var=no"
17462fi
17463
17464rm -f core conftest.err conftest.$ac_objext \
17465 conftest$ac_exeext conftest.$ac_ext
17466fi
17467ac_res=`eval echo '${'$as_ac_var'}'`
17468 { echo "$as_me:$LINENO: result: $ac_res" >&5
17469echo "${ECHO_T}$ac_res" >&6; }
17470if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017471 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017473_ACEOF
17474
17475fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017476done
John Criswell7a73b802003-06-30 21:59:07 +000017477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017478
17479
17480
17481
Daniel Dunbar3e462932011-02-03 02:40:02 +000017482
17483for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017484do
17485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17486{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17488if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17490else
17491 cat >conftest.$ac_ext <<_ACEOF
17492/* confdefs.h. */
17493_ACEOF
17494cat confdefs.h >>conftest.$ac_ext
17495cat >>conftest.$ac_ext <<_ACEOF
17496/* end confdefs.h. */
17497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17499#define $ac_func innocuous_$ac_func
17500
17501/* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char $ac_func (); below.
17503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17504 <limits.h> exists even on freestanding compilers. */
17505
17506#ifdef __STDC__
17507# include <limits.h>
17508#else
17509# include <assert.h>
17510#endif
17511
17512#undef $ac_func
17513
17514/* Override any GCC internal prototype to avoid an error.
17515 Use char because int might match the return type of a GCC
17516 builtin and then its argument prototype would still apply. */
17517#ifdef __cplusplus
17518extern "C"
17519#endif
17520char $ac_func ();
17521/* The GNU C library defines this for functions which it implements
17522 to always fail with ENOSYS. Some functions are actually named
17523 something starting with __ and the normal name is an alias. */
17524#if defined __stub_$ac_func || defined __stub___$ac_func
17525choke me
17526#endif
17527
17528int
17529main ()
17530{
17531return $ac_func ();
17532 ;
17533 return 0;
17534}
17535_ACEOF
17536rm -f conftest.$ac_objext conftest$ac_exeext
17537if { (ac_try="$ac_link"
17538case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541esac
17542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_link") 2>conftest.er1
17544 ac_status=$?
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17551 { (case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17554esac
17555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_try") 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest$ac_exeext'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 eval "$as_ac_var=yes"
17571else
17572 echo "$as_me: failed program was:" >&5
17573sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 eval "$as_ac_var=no"
17576fi
17577
17578rm -f core conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17580fi
17581ac_res=`eval echo '${'$as_ac_var'}'`
17582 { echo "$as_me:$LINENO: result: $ac_res" >&5
17583echo "${ECHO_T}$ac_res" >&6; }
17584if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017585 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017587_ACEOF
17588
17589fi
17590done
17591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017592{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17593echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17594if test "${llvm_cv_c_printf_a+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017596else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017597 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017598ac_cpp='$CPP $CPPFLAGS'
17599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17601ac_compiler_gnu=$ac_cv_c_compiler_gnu
17602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017603 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017604 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017606 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017608 /* confdefs.h. */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017613
John Criswella0137d32003-10-13 16:22:01 +000017614#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017615#include <stdlib.h>
17616
John Criswella0137d32003-10-13 16:22:01 +000017617int
17618main ()
17619{
17620
Reid Spencer2706f8c2004-09-19 23:53:36 +000017621volatile double A, B;
17622char Buffer[100];
17623A = 1;
17624A /= 10.0;
17625sprintf(Buffer, "%a", A);
17626B = atof(Buffer);
17627if (A != B)
17628 return (1);
17629if (A != 0x1.999999999999ap-4)
17630 return (1);
17631return (0);
John Criswella0137d32003-10-13 16:22:01 +000017632 ;
17633 return 0;
17634}
17635_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017636rm -f conftest$ac_exeext
17637if { (ac_try="$ac_link"
17638case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17641esac
17642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_link") 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17647 { (case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650esac
17651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_try") 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017656 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017658 echo "$as_me: program exited with status $ac_status" >&5
17659echo "$as_me: failed program was:" >&5
17660sed 's/^/| /' conftest.$ac_ext >&5
17661
17662( exit $ac_status )
17663llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017665rm -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 +000017666fi
Reid Spencera773bd52006-08-04 18:18:08 +000017667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017668
Reid Spencer2706f8c2004-09-19 23:53:36 +000017669 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017670ac_cpp='$CPP $CPPFLAGS'
17671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17673ac_compiler_gnu=$ac_cv_c_compiler_gnu
17674
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017676{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17677echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017678 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017680cat >>confdefs.h <<\_ACEOF
17681#define HAVE_PRINTF_A 1
17682_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017683
Reid Spencer2706f8c2004-09-19 23:53:36 +000017684 fi
John Criswella0137d32003-10-13 16:22:01 +000017685
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017687{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17688echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17689if test "${ac_cv_func_rand48+set}" = set; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017691else
Reid Spencera773bd52006-08-04 18:18:08 +000017692 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017693ac_cpp='$CXXCPP $CPPFLAGS'
17694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017698 cat >conftest.$ac_ext <<_ACEOF
17699/* confdefs.h. */
17700_ACEOF
17701cat confdefs.h >>conftest.$ac_ext
17702cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017703/* end confdefs.h. */
17704#include <stdlib.h>
17705int
17706main ()
17707{
17708srand48(0);lrand48();drand48();
17709 ;
17710 return 0;
17711}
17712_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017713rm -f conftest.$ac_objext
17714if { (ac_try="$ac_compile"
17715case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17718esac
17719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_compile") 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17728 { (case "(($ac_try" in
17729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730 *) ac_try_echo=$ac_try;;
17731esac
17732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733 (eval "$ac_try") 2>&5
17734 ac_status=$?
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; } &&
17737 { ac_try='test -s conftest.$ac_objext'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17741esac
17742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017747 ac_cv_func_rand48=yes
17748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017749 echo "$as_me: failed program was:" >&5
17750sed 's/^/| /' conftest.$ac_ext >&5
17751
17752 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017754
Reid Spencera773bd52006-08-04 18:18:08 +000017755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017756 ac_ext=c
17757ac_cpp='$CPP $CPPFLAGS'
17758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17760ac_compiler_gnu=$ac_cv_c_compiler_gnu
17761
17762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017763{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17764echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017765
17766if test "$ac_cv_func_rand48" = "yes" ; then
17767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017768cat >>confdefs.h <<\_ACEOF
17769#define HAVE_RAND48 1
17770_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017771
17772fi
John Criswell0021c312004-02-13 21:57:29 +000017773
17774
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017775{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17776echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17777if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17779else
17780 cat >conftest.$ac_ext <<_ACEOF
17781/* confdefs.h. */
17782_ACEOF
17783cat confdefs.h >>conftest.$ac_ext
17784cat >>conftest.$ac_ext <<_ACEOF
17785/* end confdefs.h. */
17786$ac_includes_default
17787int
17788main ()
17789{
17790#ifndef strerror_s
17791 char *p = (char *) strerror_s;
17792 return !p;
17793#endif
17794
17795 ;
17796 return 0;
17797}
17798_ACEOF
17799rm -f conftest.$ac_objext
17800if { (ac_try="$ac_compile"
17801case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804esac
17805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_compile") 2>conftest.er1
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17814 { (case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817esac
17818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_try") 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; } &&
17823 { ac_try='test -s conftest.$ac_objext'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827esac
17828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_cv_have_decl_strerror_s=yes
17834else
17835 echo "$as_me: failed program was:" >&5
17836sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 ac_cv_have_decl_strerror_s=no
17839fi
17840
17841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842fi
17843{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17844echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17845if test $ac_cv_have_decl_strerror_s = yes; then
17846
17847cat >>confdefs.h <<_ACEOF
17848#define HAVE_DECL_STRERROR_S 1
17849_ACEOF
17850
17851
17852else
17853 cat >>confdefs.h <<_ACEOF
17854#define HAVE_DECL_STRERROR_S 0
17855_ACEOF
17856
17857
17858fi
17859
17860
17861
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017862if test "$llvm_cv_os_type" = "MingW" ; then
17863 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17864echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17865if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17867else
17868 ac_check_lib_save_LIBS=$LIBS
17869LIBS="-lgcc $LIBS"
17870cat >conftest.$ac_ext <<_ACEOF
17871/* confdefs.h. */
17872_ACEOF
17873cat confdefs.h >>conftest.$ac_ext
17874cat >>conftest.$ac_ext <<_ACEOF
17875/* end confdefs.h. */
17876
17877/* Override any GCC internal prototype to avoid an error.
17878 Use char because int might match the return type of a GCC
17879 builtin and then its argument prototype would still apply. */
17880#ifdef __cplusplus
17881extern "C"
17882#endif
17883char _alloca ();
17884int
17885main ()
17886{
17887return _alloca ();
17888 ;
17889 return 0;
17890}
17891_ACEOF
17892rm -f conftest.$ac_objext conftest$ac_exeext
17893if { (ac_try="$ac_link"
17894case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17897esac
17898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_link") 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910esac
17911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17920esac
17921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_try") 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_cv_lib_gcc__alloca=yes
17927else
17928 echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931 ac_cv_lib_gcc__alloca=no
17932fi
17933
17934rm -f core conftest.err conftest.$ac_objext \
17935 conftest$ac_exeext conftest.$ac_ext
17936LIBS=$ac_check_lib_save_LIBS
17937fi
17938{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17939echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17940if test $ac_cv_lib_gcc__alloca = yes; then
17941
17942cat >>confdefs.h <<\_ACEOF
17943#define HAVE__ALLOCA 1
17944_ACEOF
17945
17946fi
17947
17948 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17949echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17950if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17952else
17953 ac_check_lib_save_LIBS=$LIBS
17954LIBS="-lgcc $LIBS"
17955cat >conftest.$ac_ext <<_ACEOF
17956/* confdefs.h. */
17957_ACEOF
17958cat confdefs.h >>conftest.$ac_ext
17959cat >>conftest.$ac_ext <<_ACEOF
17960/* end confdefs.h. */
17961
17962/* Override any GCC internal prototype to avoid an error.
17963 Use char because int might match the return type of a GCC
17964 builtin and then its argument prototype would still apply. */
17965#ifdef __cplusplus
17966extern "C"
17967#endif
17968char __alloca ();
17969int
17970main ()
17971{
17972return __alloca ();
17973 ;
17974 return 0;
17975}
17976_ACEOF
17977rm -f conftest.$ac_objext conftest$ac_exeext
17978if { (ac_try="$ac_link"
17979case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17982esac
17983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_link") 2>conftest.er1
17985 ac_status=$?
17986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995esac
17996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest$ac_exeext'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18005esac
18006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_lib_gcc___alloca=yes
18012else
18013 echo "$as_me: failed program was:" >&5
18014sed 's/^/| /' conftest.$ac_ext >&5
18015
18016 ac_cv_lib_gcc___alloca=no
18017fi
18018
18019rm -f core conftest.err conftest.$ac_objext \
18020 conftest$ac_exeext conftest.$ac_ext
18021LIBS=$ac_check_lib_save_LIBS
18022fi
18023{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18024echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18025if test $ac_cv_lib_gcc___alloca = yes; then
18026
18027cat >>confdefs.h <<\_ACEOF
18028#define HAVE___ALLOCA 1
18029_ACEOF
18030
18031fi
18032
18033 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18034echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18035if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037else
18038 ac_check_lib_save_LIBS=$LIBS
18039LIBS="-lgcc $LIBS"
18040cat >conftest.$ac_ext <<_ACEOF
18041/* confdefs.h. */
18042_ACEOF
18043cat confdefs.h >>conftest.$ac_ext
18044cat >>conftest.$ac_ext <<_ACEOF
18045/* end confdefs.h. */
18046
18047/* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18050#ifdef __cplusplus
18051extern "C"
18052#endif
18053char __chkstk ();
18054int
18055main ()
18056{
18057return __chkstk ();
18058 ;
18059 return 0;
18060}
18061_ACEOF
18062rm -f conftest.$ac_objext conftest$ac_exeext
18063if { (ac_try="$ac_link"
18064case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18067esac
18068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_link") 2>conftest.er1
18070 ac_status=$?
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
18076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18077 { (case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18080esac
18081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082 (eval "$ac_try") 2>&5
18083 ac_status=$?
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; } &&
18086 { ac_try='test -s conftest$ac_exeext'
18087 { (case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18090esac
18091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_try") 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096 ac_cv_lib_gcc___chkstk=yes
18097else
18098 echo "$as_me: failed program was:" >&5
18099sed 's/^/| /' conftest.$ac_ext >&5
18100
18101 ac_cv_lib_gcc___chkstk=no
18102fi
18103
18104rm -f core conftest.err conftest.$ac_objext \
18105 conftest$ac_exeext conftest.$ac_ext
18106LIBS=$ac_check_lib_save_LIBS
18107fi
18108{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18109echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18110if test $ac_cv_lib_gcc___chkstk = yes; then
18111
18112cat >>confdefs.h <<\_ACEOF
18113#define HAVE___CHKSTK 1
18114_ACEOF
18115
18116fi
18117
18118 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18119echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18120if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122else
18123 ac_check_lib_save_LIBS=$LIBS
18124LIBS="-lgcc $LIBS"
18125cat >conftest.$ac_ext <<_ACEOF
18126/* confdefs.h. */
18127_ACEOF
18128cat confdefs.h >>conftest.$ac_ext
18129cat >>conftest.$ac_ext <<_ACEOF
18130/* end confdefs.h. */
18131
18132/* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18135#ifdef __cplusplus
18136extern "C"
18137#endif
18138char ___chkstk ();
18139int
18140main ()
18141{
18142return ___chkstk ();
18143 ;
18144 return 0;
18145}
18146_ACEOF
18147rm -f conftest.$ac_objext conftest$ac_exeext
18148if { (ac_try="$ac_link"
18149case "(($ac_try" in
18150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151 *) ac_try_echo=$ac_try;;
18152esac
18153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18154 (eval "$ac_link") 2>conftest.er1
18155 ac_status=$?
18156 grep -v '^ *+' conftest.er1 >conftest.err
18157 rm -f conftest.er1
18158 cat conftest.err >&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18162 { (case "(($ac_try" in
18163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18164 *) ac_try_echo=$ac_try;;
18165esac
18166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18167 (eval "$ac_try") 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest$ac_exeext'
18172 { (case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18175esac
18176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; }; then
18181 ac_cv_lib_gcc____chkstk=yes
18182else
18183 echo "$as_me: failed program was:" >&5
18184sed 's/^/| /' conftest.$ac_ext >&5
18185
18186 ac_cv_lib_gcc____chkstk=no
18187fi
18188
18189rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
18191LIBS=$ac_check_lib_save_LIBS
18192fi
18193{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18194echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18195if test $ac_cv_lib_gcc____chkstk = yes; then
18196
18197cat >>confdefs.h <<\_ACEOF
18198#define HAVE____CHKSTK 1
18199_ACEOF
18200
18201fi
18202
18203
18204 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18205echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18206if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208else
18209 ac_check_lib_save_LIBS=$LIBS
18210LIBS="-lgcc $LIBS"
18211cat >conftest.$ac_ext <<_ACEOF
18212/* confdefs.h. */
18213_ACEOF
18214cat confdefs.h >>conftest.$ac_ext
18215cat >>conftest.$ac_ext <<_ACEOF
18216/* end confdefs.h. */
18217
18218/* Override any GCC internal prototype to avoid an error.
18219 Use char because int might match the return type of a GCC
18220 builtin and then its argument prototype would still apply. */
18221#ifdef __cplusplus
18222extern "C"
18223#endif
18224char __ashldi3 ();
18225int
18226main ()
18227{
18228return __ashldi3 ();
18229 ;
18230 return 0;
18231}
18232_ACEOF
18233rm -f conftest.$ac_objext conftest$ac_exeext
18234if { (ac_try="$ac_link"
18235case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238esac
18239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_link") 2>conftest.er1
18241 ac_status=$?
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
18247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18248 { (case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18251esac
18252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253 (eval "$ac_try") 2>&5
18254 ac_status=$?
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; } &&
18257 { ac_try='test -s conftest$ac_exeext'
18258 { (case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18261esac
18262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_try") 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_cv_lib_gcc___ashldi3=yes
18268else
18269 echo "$as_me: failed program was:" >&5
18270sed 's/^/| /' conftest.$ac_ext >&5
18271
18272 ac_cv_lib_gcc___ashldi3=no
18273fi
18274
18275rm -f core conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18277LIBS=$ac_check_lib_save_LIBS
18278fi
18279{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18280echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18281if test $ac_cv_lib_gcc___ashldi3 = yes; then
18282
18283cat >>confdefs.h <<\_ACEOF
18284#define HAVE___ASHLDI3 1
18285_ACEOF
18286
18287fi
18288
18289 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18290echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18291if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18293else
18294 ac_check_lib_save_LIBS=$LIBS
18295LIBS="-lgcc $LIBS"
18296cat >conftest.$ac_ext <<_ACEOF
18297/* confdefs.h. */
18298_ACEOF
18299cat confdefs.h >>conftest.$ac_ext
18300cat >>conftest.$ac_ext <<_ACEOF
18301/* end confdefs.h. */
18302
18303/* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18306#ifdef __cplusplus
18307extern "C"
18308#endif
18309char __ashrdi3 ();
18310int
18311main ()
18312{
18313return __ashrdi3 ();
18314 ;
18315 return 0;
18316}
18317_ACEOF
18318rm -f conftest.$ac_objext conftest$ac_exeext
18319if { (ac_try="$ac_link"
18320case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323esac
18324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_link") 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18333 { (case "(($ac_try" in
18334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335 *) ac_try_echo=$ac_try;;
18336esac
18337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338 (eval "$ac_try") 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; } &&
18342 { ac_try='test -s conftest$ac_exeext'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18346esac
18347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352 ac_cv_lib_gcc___ashrdi3=yes
18353else
18354 echo "$as_me: failed program was:" >&5
18355sed 's/^/| /' conftest.$ac_ext >&5
18356
18357 ac_cv_lib_gcc___ashrdi3=no
18358fi
18359
18360rm -f core conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
18362LIBS=$ac_check_lib_save_LIBS
18363fi
18364{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18365echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18366if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18367
18368cat >>confdefs.h <<\_ACEOF
18369#define HAVE___ASHRDI3 1
18370_ACEOF
18371
18372fi
18373
18374 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18375echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18376if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18378else
18379 ac_check_lib_save_LIBS=$LIBS
18380LIBS="-lgcc $LIBS"
18381cat >conftest.$ac_ext <<_ACEOF
18382/* confdefs.h. */
18383_ACEOF
18384cat confdefs.h >>conftest.$ac_ext
18385cat >>conftest.$ac_ext <<_ACEOF
18386/* end confdefs.h. */
18387
18388/* Override any GCC internal prototype to avoid an error.
18389 Use char because int might match the return type of a GCC
18390 builtin and then its argument prototype would still apply. */
18391#ifdef __cplusplus
18392extern "C"
18393#endif
18394char __divdi3 ();
18395int
18396main ()
18397{
18398return __divdi3 ();
18399 ;
18400 return 0;
18401}
18402_ACEOF
18403rm -f conftest.$ac_objext conftest$ac_exeext
18404if { (ac_try="$ac_link"
18405case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18408esac
18409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_link") 2>conftest.er1
18411 ac_status=$?
18412 grep -v '^ *+' conftest.er1 >conftest.err
18413 rm -f conftest.er1
18414 cat conftest.err >&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18418 { (case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18421esac
18422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_try") 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; } &&
18427 { ac_try='test -s conftest$ac_exeext'
18428 { (case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18431esac
18432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_try") 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; }; then
18437 ac_cv_lib_gcc___divdi3=yes
18438else
18439 echo "$as_me: failed program was:" >&5
18440sed 's/^/| /' conftest.$ac_ext >&5
18441
18442 ac_cv_lib_gcc___divdi3=no
18443fi
18444
18445rm -f core conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447LIBS=$ac_check_lib_save_LIBS
18448fi
18449{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18450echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18451if test $ac_cv_lib_gcc___divdi3 = yes; then
18452
18453cat >>confdefs.h <<\_ACEOF
18454#define HAVE___DIVDI3 1
18455_ACEOF
18456
18457fi
18458
18459 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18460echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18461if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18462 echo $ECHO_N "(cached) $ECHO_C" >&6
18463else
18464 ac_check_lib_save_LIBS=$LIBS
18465LIBS="-lgcc $LIBS"
18466cat >conftest.$ac_ext <<_ACEOF
18467/* confdefs.h. */
18468_ACEOF
18469cat confdefs.h >>conftest.$ac_ext
18470cat >>conftest.$ac_ext <<_ACEOF
18471/* end confdefs.h. */
18472
18473/* Override any GCC internal prototype to avoid an error.
18474 Use char because int might match the return type of a GCC
18475 builtin and then its argument prototype would still apply. */
18476#ifdef __cplusplus
18477extern "C"
18478#endif
18479char __fixdfdi ();
18480int
18481main ()
18482{
18483return __fixdfdi ();
18484 ;
18485 return 0;
18486}
18487_ACEOF
18488rm -f conftest.$ac_objext conftest$ac_exeext
18489if { (ac_try="$ac_link"
18490case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18493esac
18494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495 (eval "$ac_link") 2>conftest.er1
18496 ac_status=$?
18497 grep -v '^ *+' conftest.er1 >conftest.err
18498 rm -f conftest.er1
18499 cat conftest.err >&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18503 { (case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506esac
18507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_try") 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; } &&
18512 { ac_try='test -s conftest$ac_exeext'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516esac
18517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; }; then
18522 ac_cv_lib_gcc___fixdfdi=yes
18523else
18524 echo "$as_me: failed program was:" >&5
18525sed 's/^/| /' conftest.$ac_ext >&5
18526
18527 ac_cv_lib_gcc___fixdfdi=no
18528fi
18529
18530rm -f core conftest.err conftest.$ac_objext \
18531 conftest$ac_exeext conftest.$ac_ext
18532LIBS=$ac_check_lib_save_LIBS
18533fi
18534{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18535echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18536if test $ac_cv_lib_gcc___fixdfdi = yes; then
18537
18538cat >>confdefs.h <<\_ACEOF
18539#define HAVE___FIXDFDI 1
18540_ACEOF
18541
18542fi
18543
18544 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18545echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18546if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18548else
18549 ac_check_lib_save_LIBS=$LIBS
18550LIBS="-lgcc $LIBS"
18551cat >conftest.$ac_ext <<_ACEOF
18552/* confdefs.h. */
18553_ACEOF
18554cat confdefs.h >>conftest.$ac_ext
18555cat >>conftest.$ac_ext <<_ACEOF
18556/* end confdefs.h. */
18557
18558/* Override any GCC internal prototype to avoid an error.
18559 Use char because int might match the return type of a GCC
18560 builtin and then its argument prototype would still apply. */
18561#ifdef __cplusplus
18562extern "C"
18563#endif
18564char __fixsfdi ();
18565int
18566main ()
18567{
18568return __fixsfdi ();
18569 ;
18570 return 0;
18571}
18572_ACEOF
18573rm -f conftest.$ac_objext conftest$ac_exeext
18574if { (ac_try="$ac_link"
18575case "(($ac_try" in
18576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577 *) ac_try_echo=$ac_try;;
18578esac
18579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580 (eval "$ac_link") 2>conftest.er1
18581 ac_status=$?
18582 grep -v '^ *+' conftest.er1 >conftest.err
18583 rm -f conftest.er1
18584 cat conftest.err >&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
18587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18588 { (case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591esac
18592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_try") 2>&5
18594 ac_status=$?
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; } &&
18597 { ac_try='test -s conftest$ac_exeext'
18598 { (case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18601esac
18602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_try") 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; }; then
18607 ac_cv_lib_gcc___fixsfdi=yes
18608else
18609 echo "$as_me: failed program was:" >&5
18610sed 's/^/| /' conftest.$ac_ext >&5
18611
18612 ac_cv_lib_gcc___fixsfdi=no
18613fi
18614
18615rm -f core conftest.err conftest.$ac_objext \
18616 conftest$ac_exeext conftest.$ac_ext
18617LIBS=$ac_check_lib_save_LIBS
18618fi
18619{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18620echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18621if test $ac_cv_lib_gcc___fixsfdi = yes; then
18622
18623cat >>confdefs.h <<\_ACEOF
18624#define HAVE___FIXSFDI 1
18625_ACEOF
18626
18627fi
18628
18629 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18630echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18631if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18633else
18634 ac_check_lib_save_LIBS=$LIBS
18635LIBS="-lgcc $LIBS"
18636cat >conftest.$ac_ext <<_ACEOF
18637/* confdefs.h. */
18638_ACEOF
18639cat confdefs.h >>conftest.$ac_ext
18640cat >>conftest.$ac_ext <<_ACEOF
18641/* end confdefs.h. */
18642
18643/* Override any GCC internal prototype to avoid an error.
18644 Use char because int might match the return type of a GCC
18645 builtin and then its argument prototype would still apply. */
18646#ifdef __cplusplus
18647extern "C"
18648#endif
18649char __floatdidf ();
18650int
18651main ()
18652{
18653return __floatdidf ();
18654 ;
18655 return 0;
18656}
18657_ACEOF
18658rm -f conftest.$ac_objext conftest$ac_exeext
18659if { (ac_try="$ac_link"
18660case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18663esac
18664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_link") 2>conftest.er1
18666 ac_status=$?
18667 grep -v '^ *+' conftest.er1 >conftest.err
18668 rm -f conftest.er1
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18673 { (case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676esac
18677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_try") 2>&5
18679 ac_status=$?
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; } &&
18682 { ac_try='test -s conftest$ac_exeext'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18686esac
18687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; }; then
18692 ac_cv_lib_gcc___floatdidf=yes
18693else
18694 echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697 ac_cv_lib_gcc___floatdidf=no
18698fi
18699
18700rm -f core conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
18702LIBS=$ac_check_lib_save_LIBS
18703fi
18704{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18705echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18706if test $ac_cv_lib_gcc___floatdidf = yes; then
18707
18708cat >>confdefs.h <<\_ACEOF
18709#define HAVE___FLOATDIDF 1
18710_ACEOF
18711
18712fi
18713
18714 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18715echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18716if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718else
18719 ac_check_lib_save_LIBS=$LIBS
18720LIBS="-lgcc $LIBS"
18721cat >conftest.$ac_ext <<_ACEOF
18722/* confdefs.h. */
18723_ACEOF
18724cat confdefs.h >>conftest.$ac_ext
18725cat >>conftest.$ac_ext <<_ACEOF
18726/* end confdefs.h. */
18727
18728/* Override any GCC internal prototype to avoid an error.
18729 Use char because int might match the return type of a GCC
18730 builtin and then its argument prototype would still apply. */
18731#ifdef __cplusplus
18732extern "C"
18733#endif
18734char __lshrdi3 ();
18735int
18736main ()
18737{
18738return __lshrdi3 ();
18739 ;
18740 return 0;
18741}
18742_ACEOF
18743rm -f conftest.$ac_objext conftest$ac_exeext
18744if { (ac_try="$ac_link"
18745case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748esac
18749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_link") 2>conftest.er1
18751 ac_status=$?
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
18757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18758 { (case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18761esac
18762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_try") 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest$ac_exeext'
18768 { (case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18771esac
18772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_try") 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 ac_cv_lib_gcc___lshrdi3=yes
18778else
18779 echo "$as_me: failed program was:" >&5
18780sed 's/^/| /' conftest.$ac_ext >&5
18781
18782 ac_cv_lib_gcc___lshrdi3=no
18783fi
18784
18785rm -f core conftest.err conftest.$ac_objext \
18786 conftest$ac_exeext conftest.$ac_ext
18787LIBS=$ac_check_lib_save_LIBS
18788fi
18789{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18790echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18791if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18792
18793cat >>confdefs.h <<\_ACEOF
18794#define HAVE___LSHRDI3 1
18795_ACEOF
18796
18797fi
18798
18799 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18800echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18801if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
18804 ac_check_lib_save_LIBS=$LIBS
18805LIBS="-lgcc $LIBS"
18806cat >conftest.$ac_ext <<_ACEOF
18807/* confdefs.h. */
18808_ACEOF
18809cat confdefs.h >>conftest.$ac_ext
18810cat >>conftest.$ac_ext <<_ACEOF
18811/* end confdefs.h. */
18812
18813/* Override any GCC internal prototype to avoid an error.
18814 Use char because int might match the return type of a GCC
18815 builtin and then its argument prototype would still apply. */
18816#ifdef __cplusplus
18817extern "C"
18818#endif
18819char __moddi3 ();
18820int
18821main ()
18822{
18823return __moddi3 ();
18824 ;
18825 return 0;
18826}
18827_ACEOF
18828rm -f conftest.$ac_objext conftest$ac_exeext
18829if { (ac_try="$ac_link"
18830case "(($ac_try" in
18831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832 *) ac_try_echo=$ac_try;;
18833esac
18834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835 (eval "$ac_link") 2>conftest.er1
18836 ac_status=$?
18837 grep -v '^ *+' conftest.er1 >conftest.err
18838 rm -f conftest.er1
18839 cat conftest.err >&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); } &&
18842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18843 { (case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846esac
18847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_try") 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest$ac_exeext'
18853 { (case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18856esac
18857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_try") 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_cv_lib_gcc___moddi3=yes
18863else
18864 echo "$as_me: failed program was:" >&5
18865sed 's/^/| /' conftest.$ac_ext >&5
18866
18867 ac_cv_lib_gcc___moddi3=no
18868fi
18869
18870rm -f core conftest.err conftest.$ac_objext \
18871 conftest$ac_exeext conftest.$ac_ext
18872LIBS=$ac_check_lib_save_LIBS
18873fi
18874{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18875echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18876if test $ac_cv_lib_gcc___moddi3 = yes; then
18877
18878cat >>confdefs.h <<\_ACEOF
18879#define HAVE___MODDI3 1
18880_ACEOF
18881
18882fi
18883
18884 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18885echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18886if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888else
18889 ac_check_lib_save_LIBS=$LIBS
18890LIBS="-lgcc $LIBS"
18891cat >conftest.$ac_ext <<_ACEOF
18892/* confdefs.h. */
18893_ACEOF
18894cat confdefs.h >>conftest.$ac_ext
18895cat >>conftest.$ac_ext <<_ACEOF
18896/* end confdefs.h. */
18897
18898/* Override any GCC internal prototype to avoid an error.
18899 Use char because int might match the return type of a GCC
18900 builtin and then its argument prototype would still apply. */
18901#ifdef __cplusplus
18902extern "C"
18903#endif
18904char __udivdi3 ();
18905int
18906main ()
18907{
18908return __udivdi3 ();
18909 ;
18910 return 0;
18911}
18912_ACEOF
18913rm -f conftest.$ac_objext conftest$ac_exeext
18914if { (ac_try="$ac_link"
18915case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18918esac
18919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_link") 2>conftest.er1
18921 ac_status=$?
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
18927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18928 { (case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18931esac
18932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_try") 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest$ac_exeext'
18938 { (case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18941esac
18942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_try") 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_cv_lib_gcc___udivdi3=yes
18948else
18949 echo "$as_me: failed program was:" >&5
18950sed 's/^/| /' conftest.$ac_ext >&5
18951
18952 ac_cv_lib_gcc___udivdi3=no
18953fi
18954
18955rm -f core conftest.err conftest.$ac_objext \
18956 conftest$ac_exeext conftest.$ac_ext
18957LIBS=$ac_check_lib_save_LIBS
18958fi
18959{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18960echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18961if test $ac_cv_lib_gcc___udivdi3 = yes; then
18962
18963cat >>confdefs.h <<\_ACEOF
18964#define HAVE___UDIVDI3 1
18965_ACEOF
18966
18967fi
18968
18969 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18970echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18971if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973else
18974 ac_check_lib_save_LIBS=$LIBS
18975LIBS="-lgcc $LIBS"
18976cat >conftest.$ac_ext <<_ACEOF
18977/* confdefs.h. */
18978_ACEOF
18979cat confdefs.h >>conftest.$ac_ext
18980cat >>conftest.$ac_ext <<_ACEOF
18981/* end confdefs.h. */
18982
18983/* Override any GCC internal prototype to avoid an error.
18984 Use char because int might match the return type of a GCC
18985 builtin and then its argument prototype would still apply. */
18986#ifdef __cplusplus
18987extern "C"
18988#endif
18989char __umoddi3 ();
18990int
18991main ()
18992{
18993return __umoddi3 ();
18994 ;
18995 return 0;
18996}
18997_ACEOF
18998rm -f conftest.$ac_objext conftest$ac_exeext
18999if { (ac_try="$ac_link"
19000case "(($ac_try" in
19001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19002 *) ac_try_echo=$ac_try;;
19003esac
19004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005 (eval "$ac_link") 2>conftest.er1
19006 ac_status=$?
19007 grep -v '^ *+' conftest.er1 >conftest.err
19008 rm -f conftest.er1
19009 cat conftest.err >&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } &&
19012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19013 { (case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19016esac
19017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_try") 2>&5
19019 ac_status=$?
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; } &&
19022 { ac_try='test -s conftest$ac_exeext'
19023 { (case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19026esac
19027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_try") 2>&5
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; }; then
19032 ac_cv_lib_gcc___umoddi3=yes
19033else
19034 echo "$as_me: failed program was:" >&5
19035sed 's/^/| /' conftest.$ac_ext >&5
19036
19037 ac_cv_lib_gcc___umoddi3=no
19038fi
19039
19040rm -f core conftest.err conftest.$ac_objext \
19041 conftest$ac_exeext conftest.$ac_ext
19042LIBS=$ac_check_lib_save_LIBS
19043fi
19044{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19045echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19046if test $ac_cv_lib_gcc___umoddi3 = yes; then
19047
19048cat >>confdefs.h <<\_ACEOF
19049#define HAVE___UMODDI3 1
19050_ACEOF
19051
19052fi
19053
19054
19055 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19056echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19057if test "${ac_cv_lib_gcc___main+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19059else
19060 ac_check_lib_save_LIBS=$LIBS
19061LIBS="-lgcc $LIBS"
19062cat >conftest.$ac_ext <<_ACEOF
19063/* confdefs.h. */
19064_ACEOF
19065cat confdefs.h >>conftest.$ac_ext
19066cat >>conftest.$ac_ext <<_ACEOF
19067/* end confdefs.h. */
19068
19069/* Override any GCC internal prototype to avoid an error.
19070 Use char because int might match the return type of a GCC
19071 builtin and then its argument prototype would still apply. */
19072#ifdef __cplusplus
19073extern "C"
19074#endif
19075char __main ();
19076int
19077main ()
19078{
19079return __main ();
19080 ;
19081 return 0;
19082}
19083_ACEOF
19084rm -f conftest.$ac_objext conftest$ac_exeext
19085if { (ac_try="$ac_link"
19086case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19089esac
19090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_link") 2>conftest.er1
19092 ac_status=$?
19093 grep -v '^ *+' conftest.er1 >conftest.err
19094 rm -f conftest.er1
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } &&
19098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19099 { (case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19102esac
19103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_try") 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; } &&
19108 { ac_try='test -s conftest$ac_exeext'
19109 { (case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19112esac
19113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_try") 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; }; then
19118 ac_cv_lib_gcc___main=yes
19119else
19120 echo "$as_me: failed program was:" >&5
19121sed 's/^/| /' conftest.$ac_ext >&5
19122
19123 ac_cv_lib_gcc___main=no
19124fi
19125
19126rm -f core conftest.err conftest.$ac_objext \
19127 conftest$ac_exeext conftest.$ac_ext
19128LIBS=$ac_check_lib_save_LIBS
19129fi
19130{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19131echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19132if test $ac_cv_lib_gcc___main = yes; then
19133
19134cat >>confdefs.h <<\_ACEOF
19135#define HAVE___MAIN 1
19136_ACEOF
19137
19138fi
19139
19140 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19141echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19142if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19144else
19145 ac_check_lib_save_LIBS=$LIBS
19146LIBS="-lgcc $LIBS"
19147cat >conftest.$ac_ext <<_ACEOF
19148/* confdefs.h. */
19149_ACEOF
19150cat confdefs.h >>conftest.$ac_ext
19151cat >>conftest.$ac_ext <<_ACEOF
19152/* end confdefs.h. */
19153
19154/* Override any GCC internal prototype to avoid an error.
19155 Use char because int might match the return type of a GCC
19156 builtin and then its argument prototype would still apply. */
19157#ifdef __cplusplus
19158extern "C"
19159#endif
19160char __cmpdi2 ();
19161int
19162main ()
19163{
19164return __cmpdi2 ();
19165 ;
19166 return 0;
19167}
19168_ACEOF
19169rm -f conftest.$ac_objext conftest$ac_exeext
19170if { (ac_try="$ac_link"
19171case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19174esac
19175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_link") 2>conftest.er1
19177 ac_status=$?
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
19183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19184 { (case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187esac
19188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_try") 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest$ac_exeext'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19197esac
19198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_cv_lib_gcc___cmpdi2=yes
19204else
19205 echo "$as_me: failed program was:" >&5
19206sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 ac_cv_lib_gcc___cmpdi2=no
19209fi
19210
19211rm -f core conftest.err conftest.$ac_objext \
19212 conftest$ac_exeext conftest.$ac_ext
19213LIBS=$ac_check_lib_save_LIBS
19214fi
19215{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19216echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19217if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19218
19219cat >>confdefs.h <<\_ACEOF
19220#define HAVE___CMPDI2 1
19221_ACEOF
19222
19223fi
19224
19225fi
19226
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019227if test "$llvm_cv_os_type" = "MingW" ; then
19228 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19229echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19230 cat >conftest.$ac_ext <<_ACEOF
19231#include <windows.h>
19232#include <imagehlp.h>
19233extern void foo(PENUMLOADED_MODULES_CALLBACK);
19234extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19235_ACEOF
19236rm -f conftest.$ac_objext
19237if { (ac_try="$ac_compile"
19238case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19241esac
19242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_compile") 2>conftest.er1
19244 ac_status=$?
19245 grep -v '^ *+' conftest.er1 >conftest.err
19246 rm -f conftest.er1
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19251 { (case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254esac
19255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest.$ac_objext'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19264esac
19265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270
19271 { echo "$as_me:$LINENO: result: yes" >&5
19272echo "${ECHO_T}yes" >&6; }
19273 llvm_cv_win32_elmcb_pcstr="PCSTR"
19274
19275else
19276 echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279
19280 { echo "$as_me:$LINENO: result: no" >&5
19281echo "${ECHO_T}no" >&6; }
19282 llvm_cv_win32_elmcb_pcstr="PSTR"
19283
19284fi
19285
19286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19287
19288cat >>confdefs.h <<_ACEOF
19289#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19290_ACEOF
19291
19292fi
19293
Torok Edwin871384f2010-01-26 08:50:50 +000019294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019295{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19296echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19297if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019299else
Reid Spencera773bd52006-08-04 18:18:08 +000019300 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019301ac_cpp='$CXXCPP $CPPFLAGS'
19302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019306 cat >conftest.$ac_ext <<_ACEOF
19307/* confdefs.h. */
19308_ACEOF
19309cat confdefs.h >>conftest.$ac_ext
19310cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019311/* end confdefs.h. */
19312#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019313int
19314main ()
19315{
19316float f; isnan(f);
19317 ;
19318 return 0;
19319}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019320_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019321rm -f conftest.$ac_objext
19322if { (ac_try="$ac_compile"
19323case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19326esac
19327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_compile") 2>conftest.er1
19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19339esac
19340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try='test -s conftest.$ac_objext'
19346 { (case "(($ac_try" in
19347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19349esac
19350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_try") 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019355 ac_cv_func_isnan_in_math_h=yes
19356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019357 echo "$as_me: failed program was:" >&5
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019362
Reid Spencera773bd52006-08-04 18:18:08 +000019363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019364 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019365ac_cpp='$CPP $CPPFLAGS'
19366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19368ac_compiler_gnu=$ac_cv_c_compiler_gnu
19369
19370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019371{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19372echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019373
19374
19375if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019377cat >>confdefs.h <<\_ACEOF
19378#define HAVE_ISNAN_IN_MATH_H 1
19379_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019380
Reid Spencerabec8f92004-10-27 23:03:44 +000019381fi
19382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019383{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19384echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19385if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019387else
Reid Spencera773bd52006-08-04 18:18:08 +000019388 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019389ac_cpp='$CXXCPP $CPPFLAGS'
19390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019394 cat >conftest.$ac_ext <<_ACEOF
19395/* confdefs.h. */
19396_ACEOF
19397cat confdefs.h >>conftest.$ac_ext
19398cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019399/* end confdefs.h. */
19400#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019401int
19402main ()
19403{
19404float f; isnan(f);
19405 ;
19406 return 0;
19407}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019408_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019409rm -f conftest.$ac_objext
19410if { (ac_try="$ac_compile"
19411case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414esac
19415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_compile") 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19424 { (case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19427esac
19428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_try") 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest.$ac_objext'
19434 { (case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437esac
19438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_try") 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019443 ac_cv_func_isnan_in_cmath=yes
19444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019445 echo "$as_me: failed program was:" >&5
19446sed 's/^/| /' conftest.$ac_ext >&5
19447
19448 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019450
Reid Spencera773bd52006-08-04 18:18:08 +000019451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019452 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019453ac_cpp='$CPP $CPPFLAGS'
19454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456ac_compiler_gnu=$ac_cv_c_compiler_gnu
19457
19458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019459{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19460echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019461
19462if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019464cat >>confdefs.h <<\_ACEOF
19465#define HAVE_ISNAN_IN_CMATH 1
19466_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019467
Reid Spencerabec8f92004-10-27 23:03:44 +000019468fi
19469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019470{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19471echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19472if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019474else
Reid Spencera773bd52006-08-04 18:18:08 +000019475 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019476ac_cpp='$CXXCPP $CPPFLAGS'
19477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019481 cat >conftest.$ac_ext <<_ACEOF
19482/* confdefs.h. */
19483_ACEOF
19484cat confdefs.h >>conftest.$ac_ext
19485cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019486/* end confdefs.h. */
19487#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019488int
19489main ()
19490{
19491float f; std::isnan(f);
19492 ;
19493 return 0;
19494}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019495_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019496rm -f conftest.$ac_objext
19497if { (ac_try="$ac_compile"
19498case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501esac
19502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_compile") 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
19510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19511 { (case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514esac
19515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_try") 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; } &&
19520 { ac_try='test -s conftest.$ac_objext'
19521 { (case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19524esac
19525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_try") 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019530 ac_cv_func_std_isnan_in_cmath=yes
19531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019532 echo "$as_me: failed program was:" >&5
19533sed 's/^/| /' conftest.$ac_ext >&5
19534
19535 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019536fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019537
Reid Spencera773bd52006-08-04 18:18:08 +000019538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019539 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019540ac_cpp='$CPP $CPPFLAGS'
19541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19543ac_compiler_gnu=$ac_cv_c_compiler_gnu
19544
19545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019546{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19547echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019548
19549if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019551cat >>confdefs.h <<\_ACEOF
19552#define HAVE_STD_ISNAN_IN_CMATH 1
19553_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019554
Reid Spencerabec8f92004-10-27 23:03:44 +000019555fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019556
19557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019558{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19559echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19560if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019562else
Reid Spencera773bd52006-08-04 18:18:08 +000019563 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019564ac_cpp='$CXXCPP $CPPFLAGS'
19565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019569 cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019574/* end confdefs.h. */
19575#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019576int
19577main ()
19578{
19579float f; isinf(f);
19580 ;
19581 return 0;
19582}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019583_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019584rm -f conftest.$ac_objext
19585if { (ac_try="$ac_compile"
19586case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19589esac
19590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_compile") 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19599 { (case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602esac
19603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_try") 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612esac
19613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_try") 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019618 ac_cv_func_isinf_in_math_h=yes
19619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019620 echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019625
Reid Spencera773bd52006-08-04 18:18:08 +000019626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019627 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019628ac_cpp='$CPP $CPPFLAGS'
19629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19631ac_compiler_gnu=$ac_cv_c_compiler_gnu
19632
19633fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019634{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19635echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019636
19637if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019639cat >>confdefs.h <<\_ACEOF
19640#define HAVE_ISINF_IN_MATH_H 1
19641_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019642
Reid Spencerabec8f92004-10-27 23:03:44 +000019643fi
19644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019645{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19646echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19647if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019649else
Reid Spencera773bd52006-08-04 18:18:08 +000019650 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019651ac_cpp='$CXXCPP $CPPFLAGS'
19652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019656 cat >conftest.$ac_ext <<_ACEOF
19657/* confdefs.h. */
19658_ACEOF
19659cat confdefs.h >>conftest.$ac_ext
19660cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019661/* end confdefs.h. */
19662#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019663int
19664main ()
19665{
19666float f; isinf(f);
19667 ;
19668 return 0;
19669}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019670_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019671rm -f conftest.$ac_objext
19672if { (ac_try="$ac_compile"
19673case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19676esac
19677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_compile") 2>conftest.er1
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19686 { (case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19689esac
19690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_try") 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try='test -s conftest.$ac_objext'
19696 { (case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699esac
19700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_try") 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019705 ac_cv_func_isinf_in_cmath=yes
19706else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019707 echo "$as_me: failed program was:" >&5
19708sed 's/^/| /' conftest.$ac_ext >&5
19709
19710 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019711fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019712
Reid Spencera773bd52006-08-04 18:18:08 +000019713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019714 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019715ac_cpp='$CPP $CPPFLAGS'
19716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19718ac_compiler_gnu=$ac_cv_c_compiler_gnu
19719
19720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019721{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19722echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019723
19724if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019726cat >>confdefs.h <<\_ACEOF
19727#define HAVE_ISINF_IN_CMATH 1
19728_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019729
Reid Spencerabec8f92004-10-27 23:03:44 +000019730fi
19731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019732{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19733echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19734if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19735 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019736else
Reid Spencera773bd52006-08-04 18:18:08 +000019737 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019738ac_cpp='$CXXCPP $CPPFLAGS'
19739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019743 cat >conftest.$ac_ext <<_ACEOF
19744/* confdefs.h. */
19745_ACEOF
19746cat confdefs.h >>conftest.$ac_ext
19747cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019748/* end confdefs.h. */
19749#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019750int
19751main ()
19752{
19753float f; std::isinf(f)}
19754 ;
19755 return 0;
19756}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019757_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019758rm -f conftest.$ac_objext
19759if { (ac_try="$ac_compile"
19760case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19763esac
19764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_compile") 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19773 { (case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19776esac
19777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_try") 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
19783 { (case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786esac
19787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_try") 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019792 ac_cv_func_std_isinf_in_cmath=yes
19793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019794 echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
19797 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019798fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019799
Reid Spencera773bd52006-08-04 18:18:08 +000019800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019801 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019802ac_cpp='$CPP $CPPFLAGS'
19803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19805ac_compiler_gnu=$ac_cv_c_compiler_gnu
19806
19807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019808{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19809echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019810
19811if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019813cat >>confdefs.h <<\_ACEOF
19814#define HAVE_STD_ISINF_IN_CMATH 1
19815_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019816
Reid Spencerabec8f92004-10-27 23:03:44 +000019817fi
19818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019819{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19820echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19821if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019823else
Reid Spencera773bd52006-08-04 18:18:08 +000019824 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019825ac_cpp='$CXXCPP $CPPFLAGS'
19826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019830 cat >conftest.$ac_ext <<_ACEOF
19831/* confdefs.h. */
19832_ACEOF
19833cat confdefs.h >>conftest.$ac_ext
19834cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019835/* end confdefs.h. */
19836#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019837int
19838main ()
19839{
19840float f; finite(f);
19841 ;
19842 return 0;
19843}
Brian Gaeked59a6472004-07-21 03:33:58 +000019844_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019845rm -f conftest.$ac_objext
19846if { (ac_try="$ac_compile"
19847case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19850esac
19851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_compile") 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19860 { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863esac
19864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; } &&
19869 { ac_try='test -s conftest.$ac_objext'
19870 { (case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19873esac
19874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_try") 2>&5
19876 ac_status=$?
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019879 ac_cv_func_finite_in_ieeefp_h=yes
19880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019881 echo "$as_me: failed program was:" >&5
19882sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019886
Reid Spencera773bd52006-08-04 18:18:08 +000019887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019888 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019889ac_cpp='$CPP $CPPFLAGS'
19890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19892ac_compiler_gnu=$ac_cv_c_compiler_gnu
19893
19894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019895{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19896echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019897
Brian Gaeke6802b552004-10-28 05:06:45 +000019898if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019900cat >>confdefs.h <<\_ACEOF
19901#define HAVE_FINITE_IN_IEEEFP_H 1
19902_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019903
Reid Spencerabec8f92004-10-27 23:03:44 +000019904fi
19905
19906
19907
Reid Spencer30fe5262007-01-20 07:48:49 +000019908if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019909
19910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019911for ac_header in stdlib.h unistd.h
19912do
19913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19919fi
19920ac_res=`eval echo '${'$as_ac_Header'}'`
19921 { echo "$as_me:$LINENO: result: $ac_res" >&5
19922echo "${ECHO_T}$ac_res" >&6; }
19923else
19924 # Is the header compilable?
19925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19927cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
19933$ac_includes_default
19934#include <$ac_header>
19935_ACEOF
19936rm -f conftest.$ac_objext
19937if { (ac_try="$ac_compile"
19938case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19941esac
19942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_compile") 2>conftest.er1
19944 ac_status=$?
19945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954esac
19955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest.$ac_objext'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964esac
19965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 ac_header_compiler=yes
19971else
19972 echo "$as_me: failed program was:" >&5
19973sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019975 ac_header_compiler=no
19976fi
19977
19978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19980echo "${ECHO_T}$ac_header_compiler" >&6; }
19981
19982# Is the header present?
19983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19985cat >conftest.$ac_ext <<_ACEOF
19986/* confdefs.h. */
19987_ACEOF
19988cat confdefs.h >>conftest.$ac_ext
19989cat >>conftest.$ac_ext <<_ACEOF
19990/* end confdefs.h. */
19991#include <$ac_header>
19992_ACEOF
19993if { (ac_try="$ac_cpp conftest.$ac_ext"
19994case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } >/dev/null; then
20006 if test -s conftest.err; then
20007 ac_cpp_err=$ac_c_preproc_warn_flag
20008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20009 else
20010 ac_cpp_err=
20011 fi
20012else
20013 ac_cpp_err=yes
20014fi
20015if test -z "$ac_cpp_err"; then
20016 ac_header_preproc=yes
20017else
20018 echo "$as_me: failed program was:" >&5
20019sed 's/^/| /' conftest.$ac_ext >&5
20020
20021 ac_header_preproc=no
20022fi
20023
20024rm -f conftest.err conftest.$ac_ext
20025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026echo "${ECHO_T}$ac_header_preproc" >&6; }
20027
20028# So? What about this header?
20029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20030 yes:no: )
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20035 ac_header_preproc=yes
20036 ;;
20037 no:yes:* )
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20050 ( cat <<\_ASBOX
20051## ----------------------------------- ##
20052## Report this to llvmbugs@cs.uiuc.edu ##
20053## ----------------------------------- ##
20054_ASBOX
20055 ) | sed "s/^/$as_me: WARNING: /" >&2
20056 ;;
20057esac
20058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20062else
20063 eval "$as_ac_Header=\$ac_header_preproc"
20064fi
20065ac_res=`eval echo '${'$as_ac_Header'}'`
20066 { echo "$as_me:$LINENO: result: $ac_res" >&5
20067echo "${ECHO_T}$ac_res" >&6; }
20068
20069fi
20070if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020071 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020073_ACEOF
20074
20075fi
20076
20077done
20078
20079
20080for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020081do
20082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20083{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20085if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20087else
20088 cat >conftest.$ac_ext <<_ACEOF
20089/* confdefs.h. */
20090_ACEOF
20091cat confdefs.h >>conftest.$ac_ext
20092cat >>conftest.$ac_ext <<_ACEOF
20093/* end confdefs.h. */
20094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20096#define $ac_func innocuous_$ac_func
20097
20098/* System header to define __stub macros and hopefully few prototypes,
20099 which can conflict with char $ac_func (); below.
20100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20101 <limits.h> exists even on freestanding compilers. */
20102
20103#ifdef __STDC__
20104# include <limits.h>
20105#else
20106# include <assert.h>
20107#endif
20108
20109#undef $ac_func
20110
20111/* Override any GCC internal prototype to avoid an error.
20112 Use char because int might match the return type of a GCC
20113 builtin and then its argument prototype would still apply. */
20114#ifdef __cplusplus
20115extern "C"
20116#endif
20117char $ac_func ();
20118/* The GNU C library defines this for functions which it implements
20119 to always fail with ENOSYS. Some functions are actually named
20120 something starting with __ and the normal name is an alias. */
20121#if defined __stub_$ac_func || defined __stub___$ac_func
20122choke me
20123#endif
20124
20125int
20126main ()
20127{
20128return $ac_func ();
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext conftest$ac_exeext
20134if { (ac_try="$ac_link"
20135case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20138esac
20139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_link") 2>conftest.er1
20141 ac_status=$?
20142 grep -v '^ *+' conftest.er1 >conftest.err
20143 rm -f conftest.er1
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } &&
20147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20148 { (case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151esac
20152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_try") 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest$ac_exeext'
20158 { (case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20161esac
20162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_try") 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 eval "$as_ac_var=yes"
20168else
20169 echo "$as_me: failed program was:" >&5
20170sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 eval "$as_ac_var=no"
20173fi
20174
20175rm -f core conftest.err conftest.$ac_objext \
20176 conftest$ac_exeext conftest.$ac_ext
20177fi
20178ac_res=`eval echo '${'$as_ac_var'}'`
20179 { echo "$as_me:$LINENO: result: $ac_res" >&5
20180echo "${ECHO_T}$ac_res" >&6; }
20181if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020182 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020184_ACEOF
20185
20186fi
20187done
20188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020189{ echo "$as_me:$LINENO: checking for working mmap" >&5
20190echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20191if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020194 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020195 ac_cv_func_mmap_fixed_mapped=no
20196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020197 cat >conftest.$ac_ext <<_ACEOF
20198/* confdefs.h. */
20199_ACEOF
20200cat confdefs.h >>conftest.$ac_ext
20201cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020202/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020203$ac_includes_default
20204/* malloc might have been renamed as rpl_malloc. */
20205#undef malloc
20206
20207/* Thanks to Mike Haertel and Jim Avera for this test.
20208 Here is a matrix of mmap possibilities:
20209 mmap private not fixed
20210 mmap private fixed at somewhere currently unmapped
20211 mmap private fixed at somewhere already mapped
20212 mmap shared not fixed
20213 mmap shared fixed at somewhere currently unmapped
20214 mmap shared fixed at somewhere already mapped
20215 For private mappings, we should verify that changes cannot be read()
20216 back from the file, nor mmap's back from the file at a different
20217 address. (There have been systems where private was not correctly
20218 implemented like the infamous i386 svr4.0, and systems where the
20219 VM page cache was not coherent with the file system buffer cache
20220 like early versions of FreeBSD and possibly contemporary NetBSD.)
20221 For shared mappings, we should conversely verify that changes get
20222 propagated back to all the places they're supposed to be.
20223
20224 Grep wants private fixed already mapped.
20225 The main things grep needs to know about mmap are:
20226 * does it exist and is it safe to write into the mmap'd area
20227 * how to use it (BSD variants) */
20228
20229#include <fcntl.h>
20230#include <sys/mman.h>
20231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020232#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020233char *malloc ();
20234#endif
20235
20236/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020237#if !HAVE_GETPAGESIZE
20238/* Assume that all systems that can run configure have sys/param.h. */
20239# if !HAVE_SYS_PARAM_H
20240# define HAVE_SYS_PARAM_H 1
20241# endif
20242
John Criswell7a73b802003-06-30 21:59:07 +000020243# ifdef _SC_PAGESIZE
20244# define getpagesize() sysconf(_SC_PAGESIZE)
20245# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020246# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020247# include <sys/param.h>
20248# ifdef EXEC_PAGESIZE
20249# define getpagesize() EXEC_PAGESIZE
20250# else /* no EXEC_PAGESIZE */
20251# ifdef NBPG
20252# define getpagesize() NBPG * CLSIZE
20253# ifndef CLSIZE
20254# define CLSIZE 1
20255# endif /* no CLSIZE */
20256# else /* no NBPG */
20257# ifdef NBPC
20258# define getpagesize() NBPC
20259# else /* no NBPC */
20260# ifdef PAGESIZE
20261# define getpagesize() PAGESIZE
20262# endif /* PAGESIZE */
20263# endif /* no NBPC */
20264# endif /* no NBPG */
20265# endif /* no EXEC_PAGESIZE */
20266# else /* no HAVE_SYS_PARAM_H */
20267# define getpagesize() 8192 /* punt totally */
20268# endif /* no HAVE_SYS_PARAM_H */
20269# endif /* no _SC_PAGESIZE */
20270
20271#endif /* no HAVE_GETPAGESIZE */
20272
20273int
20274main ()
20275{
20276 char *data, *data2, *data3;
20277 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020278 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020279
20280 pagesize = getpagesize ();
20281
20282 /* First, make a file with some known garbage in it. */
20283 data = (char *) malloc (pagesize);
20284 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020285 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020286 for (i = 0; i < pagesize; ++i)
20287 *(data + i) = rand ();
20288 umask (0);
20289 fd = creat ("conftest.mmap", 0600);
20290 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020291 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020292 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020293 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020294 close (fd);
20295
20296 /* Next, try to mmap the file at a fixed address which already has
20297 something else allocated at it. If we can, also make sure that
20298 we see the same garbage. */
20299 fd = open ("conftest.mmap", O_RDWR);
20300 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020301 return 1;
20302 data2 = (char *) malloc (2 * pagesize);
20303 if (!data2)
20304 return 1;
20305 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020306 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020307 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020308 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020309 for (i = 0; i < pagesize; ++i)
20310 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020311 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020312
20313 /* Finally, make sure that changes to the mapped area do not
20314 percolate back to the file as seen by read(). (This is a bug on
20315 some variants of i386 svr4.0.) */
20316 for (i = 0; i < pagesize; ++i)
20317 *(data2 + i) = *(data2 + i) + 1;
20318 data3 = (char *) malloc (pagesize);
20319 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020320 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020321 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020322 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020323 for (i = 0; i < pagesize; ++i)
20324 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020325 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020326 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020327 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020328}
20329_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020330rm -f conftest$ac_exeext
20331if { (ac_try="$ac_link"
20332case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20335esac
20336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_link") 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20341 { (case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20344esac
20345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_try") 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020350 ac_cv_func_mmap_fixed_mapped=yes
20351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020352 echo "$as_me: program exited with status $ac_status" >&5
20353echo "$as_me: failed program was:" >&5
20354sed 's/^/| /' conftest.$ac_ext >&5
20355
20356( exit $ac_status )
20357ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020359rm -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 +000020360fi
Reid Spencera773bd52006-08-04 18:18:08 +000020361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362
John Criswell7a73b802003-06-30 21:59:07 +000020363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020364{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20365echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020366if test $ac_cv_func_mmap_fixed_mapped = yes; then
20367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020368cat >>confdefs.h <<\_ACEOF
20369#define HAVE_MMAP 1
20370_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020371
20372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020373rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020375 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20376echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20377if test "${ac_cv_func_mmap_file+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020379else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020380 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020381ac_cpp='$CPP $CPPFLAGS'
20382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20384ac_compiler_gnu=$ac_cv_c_compiler_gnu
20385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020386 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020387 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020389 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020391 /* confdefs.h. */
20392_ACEOF
20393cat confdefs.h >>conftest.$ac_ext
20394cat >>conftest.$ac_ext <<_ACEOF
20395/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020396
John Criswell7a73b802003-06-30 21:59:07 +000020397#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020398#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020399#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020400
20401int
20402main ()
20403{
John Criswell7a73b802003-06-30 21:59:07 +000020404
20405 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020406 fd = creat ("foo",0777);
20407 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20408 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020409 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020410 ;
20411 return 0;
20412}
John Criswell7a73b802003-06-30 21:59:07 +000020413_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020414rm -f conftest$ac_exeext
20415if { (ac_try="$ac_link"
20416case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20419esac
20420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_link") 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20425 { (case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20428esac
20429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_try") 2>&5
20431 ac_status=$?
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020434 ac_cv_func_mmap_file=yes
20435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020436 echo "$as_me: program exited with status $ac_status" >&5
20437echo "$as_me: failed program was:" >&5
20438sed 's/^/| /' conftest.$ac_ext >&5
20439
20440( exit $ac_status )
20441ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020443rm -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 +000020444fi
Reid Spencera773bd52006-08-04 18:18:08 +000020445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020446
John Criswell7a73b802003-06-30 21:59:07 +000020447 ac_ext=c
20448ac_cpp='$CPP $CPPFLAGS'
20449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451ac_compiler_gnu=$ac_cv_c_compiler_gnu
20452
20453
20454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020455{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20456echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020457if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020459cat >>confdefs.h <<\_ACEOF
20460#define HAVE_MMAP_FILE
20461_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020462
20463 MMAP_FILE=yes
20464
20465fi
20466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020467 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20468echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20469if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020471else
Reid Spencer582a23c2004-12-29 07:07:57 +000020472 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020473 ac_cv_need_dev_zero_for_mmap=yes
20474 else
20475 ac_cv_need_dev_zero_for_mmap=no
20476 fi
20477
20478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020479{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20480echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020481if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020483cat >>confdefs.h <<\_ACEOF
20484#define NEED_DEV_ZERO_FOR_MMAP 1
20485_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020486
20487fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020488
Reid Spencer30fe5262007-01-20 07:48:49 +000020489 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20490 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020491 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20492echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020493 fi
20494 if test "$ac_cv_func_mmap_file" = "no"
20495 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020496 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20497echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020498 fi
John Criswellb13092b2003-07-22 21:00:24 +000020499fi
John Criswell7a73b802003-06-30 21:59:07 +000020500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020501{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20502echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020503ac_ext=cpp
20504ac_cpp='$CXXCPP $CPPFLAGS'
20505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020509cat >conftest.$ac_ext <<_ACEOF
20510/* confdefs.h. */
20511_ACEOF
20512cat confdefs.h >>conftest.$ac_ext
20513cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020514/* end confdefs.h. */
20515int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020516 volatile unsigned long val = 1;
20517 __sync_synchronize();
20518 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020519 __sync_add_and_fetch(&val, 1);
20520 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020521 return 0;
20522 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020523
20524_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020525rm -f conftest.$ac_objext conftest$ac_exeext
20526if { (ac_try="$ac_link"
20527case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20530esac
20531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_link") 2>conftest.er1
20533 ac_status=$?
20534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20540 { (case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20543esac
20544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_try") 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; } &&
20549 { ac_try='test -s conftest$ac_exeext'
20550 { (case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20553esac
20554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555 (eval "$ac_try") 2>&5
20556 ac_status=$?
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020559 ac_ext=c
20560ac_cpp='$CPP $CPPFLAGS'
20561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20563ac_compiler_gnu=$ac_cv_c_compiler_gnu
20564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020565 { echo "$as_me:$LINENO: result: yes" >&5
20566echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020569#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020570_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020571
Owen Andersond4b272b2009-05-18 23:58:51 +000020572else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020573 echo "$as_me: failed program was:" >&5
20574sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020576 { echo "$as_me:$LINENO: result: no" >&5
20577echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020580#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020581_ACEOF
20582
20583 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20584echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020585fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586
Owen Andersond4b272b2009-05-18 23:58:51 +000020587rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020588 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020589
John Criswell7a73b802003-06-30 21:59:07 +000020590
Nick Lewycky4372e692009-09-29 06:18:23 +000020591if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020592 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20593echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20594if test "${llvm_cv_linux_mixed+set}" = set; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020596else
20597 ac_ext=c
20598ac_cpp='$CPP $CPPFLAGS'
20599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601ac_compiler_gnu=$ac_cv_c_compiler_gnu
20602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020603 cat >conftest.$ac_ext <<_ACEOF
20604/* confdefs.h. */
20605_ACEOF
20606cat confdefs.h >>conftest.$ac_ext
20607cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020608/* end confdefs.h. */
20609#ifndef __x86_64__
20610 error: Not x86-64 even if uname says so!
20611 #endif
20612
20613int
20614main ()
20615{
20616
20617 ;
20618 return 0;
20619}
20620_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020621rm -f conftest.$ac_objext
20622if { (ac_try="$ac_compile"
20623case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20626esac
20627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_compile") 2>conftest.er1
20629 ac_status=$?
20630 grep -v '^ *+' conftest.er1 >conftest.err
20631 rm -f conftest.er1
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } &&
20635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20636 { (case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639esac
20640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_try") 2>&5
20642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; } &&
20645 { ac_try='test -s conftest.$ac_objext'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20649esac
20650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_try") 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020655 llvm_cv_linux_mixed=no
20656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020657 echo "$as_me: failed program was:" >&5
20658sed 's/^/| /' conftest.$ac_ext >&5
20659
20660 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020662
Nick Lewycky4372e692009-09-29 06:18:23 +000020663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664 ac_ext=c
20665ac_cpp='$CPP $CPPFLAGS'
20666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20668ac_compiler_gnu=$ac_cv_c_compiler_gnu
20669
20670
20671fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020672{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20673echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020674
20675 if test "$llvm_cv_linux_mixed" = "yes"; then
20676 llvm_cv_target_arch="x86"
20677 ARCH="x86"
20678 fi
20679fi
20680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020681
Reid Spencer9372f152007-07-30 20:13:24 +000020682for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020683do
20684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20689else
20690 cat >conftest.$ac_ext <<_ACEOF
20691/* confdefs.h. */
20692_ACEOF
20693cat confdefs.h >>conftest.$ac_ext
20694cat >>conftest.$ac_ext <<_ACEOF
20695/* end confdefs.h. */
20696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20698#define $ac_func innocuous_$ac_func
20699
20700/* System header to define __stub macros and hopefully few prototypes,
20701 which can conflict with char $ac_func (); below.
20702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20703 <limits.h> exists even on freestanding compilers. */
20704
20705#ifdef __STDC__
20706# include <limits.h>
20707#else
20708# include <assert.h>
20709#endif
20710
20711#undef $ac_func
20712
20713/* Override any GCC internal prototype to avoid an error.
20714 Use char because int might match the return type of a GCC
20715 builtin and then its argument prototype would still apply. */
20716#ifdef __cplusplus
20717extern "C"
20718#endif
20719char $ac_func ();
20720/* The GNU C library defines this for functions which it implements
20721 to always fail with ENOSYS. Some functions are actually named
20722 something starting with __ and the normal name is an alias. */
20723#if defined __stub_$ac_func || defined __stub___$ac_func
20724choke me
20725#endif
20726
20727int
20728main ()
20729{
20730return $ac_func ();
20731 ;
20732 return 0;
20733}
20734_ACEOF
20735rm -f conftest.$ac_objext conftest$ac_exeext
20736if { (ac_try="$ac_link"
20737case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20740esac
20741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_link") 2>conftest.er1
20743 ac_status=$?
20744 grep -v '^ *+' conftest.er1 >conftest.err
20745 rm -f conftest.er1
20746 cat conftest.err >&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
20749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20750 { (case "(($ac_try" in
20751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20753esac
20754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_try") 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; } &&
20759 { ac_try='test -s conftest$ac_exeext'
20760 { (case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20763esac
20764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765 (eval "$ac_try") 2>&5
20766 ac_status=$?
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; }; then
20769 eval "$as_ac_var=yes"
20770else
20771 echo "$as_me: failed program was:" >&5
20772sed 's/^/| /' conftest.$ac_ext >&5
20773
20774 eval "$as_ac_var=no"
20775fi
20776
20777rm -f core conftest.err conftest.$ac_objext \
20778 conftest$ac_exeext conftest.$ac_ext
20779fi
20780ac_res=`eval echo '${'$as_ac_var'}'`
20781 { echo "$as_me:$LINENO: result: $ac_res" >&5
20782echo "${ECHO_T}$ac_res" >&6; }
20783if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020784 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020786_ACEOF
20787
20788fi
20789done
20790
20791
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020792SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020793
20794
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020795SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20796
20797
Reid Spencere9de0912004-08-20 09:03:57 +000020798# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020799# information into substitutions that will end up in Makefile.config.in
20800# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020801if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020802 prefix="/usr/local"
20803fi
Reid Spencere9de0912004-08-20 09:03:57 +000020804eval LLVM_PREFIX="${prefix}";
20805eval LLVM_BINDIR="${prefix}/bin";
20806eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020807eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020808eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020809eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020810eval LLVM_INCLUDEDIR="${prefix}/include";
20811eval LLVM_INFODIR="${prefix}/info";
20812eval LLVM_MANDIR="${prefix}/man";
20813LLVM_CONFIGTIME=`date`
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020825# Place the various directores into the config.h file as #defines so that we
20826# can know about the installation paths within LLVM.
20827
Reid Spencere9de0912004-08-20 09:03:57 +000020828cat >>confdefs.h <<_ACEOF
20829#define LLVM_PREFIX "$LLVM_PREFIX"
20830_ACEOF
20831
20832
20833cat >>confdefs.h <<_ACEOF
20834#define LLVM_BINDIR "$LLVM_BINDIR"
20835_ACEOF
20836
20837
20838cat >>confdefs.h <<_ACEOF
20839#define LLVM_LIBDIR "$LLVM_LIBDIR"
20840_ACEOF
20841
20842
20843cat >>confdefs.h <<_ACEOF
20844#define LLVM_DATADIR "$LLVM_DATADIR"
20845_ACEOF
20846
20847
20848cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020849#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020850_ACEOF
20851
20852
20853cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020854#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020855_ACEOF
20856
20857
20858cat >>confdefs.h <<_ACEOF
20859#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20860_ACEOF
20861
20862
20863cat >>confdefs.h <<_ACEOF
20864#define LLVM_INFODIR "$LLVM_INFODIR"
20865_ACEOF
20866
20867
20868cat >>confdefs.h <<_ACEOF
20869#define LLVM_MANDIR "$LLVM_MANDIR"
20870_ACEOF
20871
20872
20873cat >>confdefs.h <<_ACEOF
20874#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20875_ACEOF
20876
20877
Eric Christopher790e11c2007-12-01 00:34:39 +000020878cat >>confdefs.h <<_ACEOF
20879#define LLVM_HOSTTRIPLE "$host"
20880_ACEOF
20881
20882
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020883# Determine which bindings to build.
20884if test "$BINDINGS_TO_BUILD" = auto ; then
20885 BINDINGS_TO_BUILD=""
20886 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20887 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20888 fi
20889fi
20890BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20891
20892
20893# This isn't really configurey, but it avoids having to repeat the list in
20894# other files.
20895ALL_BINDINGS=ocaml
20896
20897
Gordon Henriksenf0915682007-10-02 16:42:22 +000020898# Do any work necessary to ensure that bindings have what they need.
20899binding_prereqs_failed=0
20900for a_binding in $BINDINGS_TO_BUILD ; do
20901 case "$a_binding" in
20902 ocaml)
20903 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020904 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20905echo "$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 +000020906 binding_prereqs_failed=1
20907 fi
20908 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020909 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20910echo "$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 +000020911 binding_prereqs_failed=1
20912 fi
20913 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020914 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20915echo "$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 +000020916 fi
20917 if test "x$with_ocaml_libdir" != xauto ; then
20918 OCAML_LIBDIR=$with_ocaml_libdir
20919
20920 else
20921 ocaml_stdlib="`"$OCAMLC" -where`"
20922 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20923 then
20924 # ocaml stdlib is beneath our prefix; use stdlib
20925 OCAML_LIBDIR=$ocaml_stdlib
20926
20927 else
20928 # ocaml stdlib is outside our prefix; use libdir/ocaml
20929 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20930
20931 fi
20932 fi
20933 ;;
20934 esac
20935done
20936if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020937 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20938echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20939 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020940fi
20941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020942{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20943echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20944if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020946else
20947 ac_ext=cpp
20948ac_cpp='$CXXCPP $CPPFLAGS'
20949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20952
20953 oldcxxflags="$CXXFLAGS"
20954 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020955 cat >conftest.$ac_ext <<_ACEOF
20956/* confdefs.h. */
20957_ACEOF
20958cat confdefs.h >>conftest.$ac_ext
20959cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020960/* end confdefs.h. */
20961
20962int
20963main ()
20964{
20965
20966 ;
20967 return 0;
20968}
20969_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020970rm -f conftest.$ac_objext
20971if { (ac_try="$ac_compile"
20972case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20975esac
20976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_compile") 2>conftest.er1
20978 ac_status=$?
20979 grep -v '^ *+' conftest.er1 >conftest.err
20980 rm -f conftest.er1
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20985 { (case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988esac
20989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_try") 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try='test -s conftest.$ac_objext'
20995 { (case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20998esac
20999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_try") 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021004 llvm_cv_cxx_visibility_inlines_hidden=yes
21005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021006 echo "$as_me: failed program was:" >&5
21007sed 's/^/| /' conftest.$ac_ext >&5
21008
21009 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021011
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21013 CXXFLAGS="$oldcxxflags"
21014 ac_ext=c
21015ac_cpp='$CPP $CPPFLAGS'
21016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21018ac_compiler_gnu=$ac_cv_c_compiler_gnu
21019
21020
21021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021022{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21023echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021024if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21025 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21026
21027else
21028 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21029
21030fi
21031
Gordon Henriksenf0915682007-10-02 16:42:22 +000021032
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021033if test "$llvm_cv_link_use_r" = "yes" ; then
21034 RPATH="-Wl,-R"
21035else
21036 RPATH="-Wl,-rpath"
21037fi
21038
21039
21040if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21041 RDYNAMIC="-Wl,-export-dynamic"
21042else
21043 RDYNAMIC=""
21044fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021045
21046
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021047
Eric Christophera1cba682010-08-08 02:44:25 +000021048ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021049
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021050
21051
21052
21053
21054
Douglas Gregor1555a232009-06-16 20:12:29 +000021055ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21056
21057ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21058
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021059ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21060
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021061ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21062
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021063ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021064
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021065
Reid Spencera773bd52006-08-04 18:18:08 +000021066ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021067
Reid Spencerea949cf2006-08-16 00:45:38 +000021068ac_config_files="$ac_config_files llvm.spec"
21069
21070
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021071ac_config_files="$ac_config_files docs/doxygen.cfg"
21072
21073if test -f ${srcdir}/tools/clang/README.txt; then
21074 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21075
21076fi
21077
Reid Spencera773bd52006-08-04 18:18:08 +000021078ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021079
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021080ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021081
Reid Spencera773bd52006-08-04 18:18:08 +000021082ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021083
Reid Spencera773bd52006-08-04 18:18:08 +000021084ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021085
21086
Reid Spencera773bd52006-08-04 18:18:08 +000021087ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021088
21089
Reid Spencera773bd52006-08-04 18:18:08 +000021090ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021091
21092
Reid Spencera773bd52006-08-04 18:18:08 +000021093ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021094
21095
Reid Spencer8b2e1412006-11-17 03:32:33 +000021096ac_config_commands="$ac_config_commands runtime/Makefile"
21097
21098
Reid Spencera773bd52006-08-04 18:18:08 +000021099ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021100
21101
Reid Spencera773bd52006-08-04 18:18:08 +000021102ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021103
21104
Bill Wendlingf24eb392009-01-04 23:12:30 +000021105ac_config_commands="$ac_config_commands unittests/Makefile"
21106
21107
Reid Spencera773bd52006-08-04 18:18:08 +000021108ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021109
21110
Reid Spencera773bd52006-08-04 18:18:08 +000021111ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021112
21113
Reid Spencera773bd52006-08-04 18:18:08 +000021114ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021115
21116
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021117ac_config_commands="$ac_config_commands bindings/Makefile"
21118
21119
21120ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21121
21122
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021123
John Criswell7a73b802003-06-30 21:59:07 +000021124cat >confcache <<\_ACEOF
21125# This file is a shell script that caches the results of configure
21126# tests run on this system so they can be shared between configure
21127# scripts and configure runs, see configure's option --config-cache.
21128# It is not useful on other systems. If it contains results you don't
21129# want to keep, you may remove or edit it.
21130#
21131# config.status only pays attention to the cache file if you give it
21132# the --recheck option to rerun configure.
21133#
John Criswell0c38eaf2003-09-10 15:17:25 +000021134# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021135# loading this file, other *unset* `ac_cv_foo' will be assigned the
21136# following values.
21137
21138_ACEOF
21139
21140# The following way of writing the cache mishandles newlines in values,
21141# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021142# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021143# Ultrix sh set writes to stderr and can't be redirected directly,
21144# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021145(
21146 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21147 eval ac_val=\$$ac_var
21148 case $ac_val in #(
21149 *${as_nl}*)
21150 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021151 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21152echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021153 esac
21154 case $ac_var in #(
21155 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021156 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021157 esac ;;
21158 esac
21159 done
21160
John Criswell7a73b802003-06-30 21:59:07 +000021161 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021162 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21163 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021164 # `set' does not quote correctly, so add quotes (double-quote
21165 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021166 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021167 "s/'/'\\\\''/g;
21168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021169 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021170 *)
21171 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021173 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021174 esac |
21175 sort
21176) |
John Criswell7a73b802003-06-30 21:59:07 +000021177 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021178 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021179 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021180 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21182 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021183 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21184 :end' >>confcache
21185if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21186 if test -w "$cache_file"; then
21187 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021188 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21189echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021190 cat confcache >$cache_file
21191 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021192 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21193echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021194 fi
21195fi
21196rm -f confcache
21197
21198test "x$prefix" = xNONE && prefix=$ac_default_prefix
21199# Let make expand exec_prefix.
21200test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21201
John Criswell7a73b802003-06-30 21:59:07 +000021202DEFS=-DHAVE_CONFIG_H
21203
John Criswell0c38eaf2003-09-10 15:17:25 +000021204ac_libobjs=
21205ac_ltlibobjs=
21206for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21207 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021208 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021210 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21211 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021212 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21213 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021214done
21215LIBOBJS=$ac_libobjs
21216
21217LTLIBOBJS=$ac_ltlibobjs
21218
21219
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021220if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021221 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21222Usually this means the macro was only invoked conditionally." >&5
21223echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21224Usually this means the macro was only invoked conditionally." >&2;}
21225 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021226fi
21227if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021228 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21229Usually this means the macro was only invoked conditionally." >&5
21230echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21231Usually this means the macro was only invoked conditionally." >&2;}
21232 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021233fi
John Criswell7a73b802003-06-30 21:59:07 +000021234
21235: ${CONFIG_STATUS=./config.status}
21236ac_clean_files_save=$ac_clean_files
21237ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021238{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21239echo "$as_me: creating $CONFIG_STATUS" >&6;}
21240cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021241#! $SHELL
21242# Generated by $as_me.
21243# Run this file to recreate the current configuration.
21244# Compiler output produced by configure, useful for debugging
21245# configure, is in config.log if it exists.
21246
21247debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021248ac_cs_recheck=false
21249ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021250SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021253cat >>$CONFIG_STATUS <<\_ACEOF
21254## --------------------- ##
21255## M4sh Initialization. ##
21256## --------------------- ##
21257
21258# Be Bourne compatible
21259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021260 emulate sh
21261 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021263 # is contrary to our usage. Disable this feature.
21264 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021265 setopt NO_GLOB_SUBST
21266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021269BIN_SH=xpg4; export BIN_SH # for Tru64
21270DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021271
John Criswell7a73b802003-06-30 21:59:07 +000021272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021273# PATH needs CR
21274# Avoid depending upon Character Ranges.
21275as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21276as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21277as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21278as_cr_digits='0123456789'
21279as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021280
21281# The user is always right.
21282if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021283 echo "#! /bin/sh" >conf$$.sh
21284 echo "exit 0" >>conf$$.sh
21285 chmod +x conf$$.sh
21286 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21287 PATH_SEPARATOR=';'
21288 else
21289 PATH_SEPARATOR=:
21290 fi
21291 rm -f conf$$.sh
21292fi
21293
21294# Support unset when possible.
21295if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21296 as_unset=unset
21297else
21298 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021299fi
John Criswell7a73b802003-06-30 21:59:07 +000021300
Reid Spencera773bd52006-08-04 18:18:08 +000021301
21302# IFS
21303# We need space, tab and new line, in precisely that order. Quoting is
21304# there to prevent editors from complaining about space-tab.
21305# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21306# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021307as_nl='
21308'
Reid Spencera773bd52006-08-04 18:18:08 +000021309IFS=" "" $as_nl"
21310
21311# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021312case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021313 *[\\/]* ) as_myself=$0 ;;
21314 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021315for as_dir in $PATH
21316do
21317 IFS=$as_save_IFS
21318 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021319 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21320done
Reid Spencera773bd52006-08-04 18:18:08 +000021321IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021322
Reid Spencera773bd52006-08-04 18:18:08 +000021323 ;;
21324esac
21325# We did not find ourselves, most probably we were run as `sh COMMAND'
21326# in which case we are not to be found in the path.
21327if test "x$as_myself" = x; then
21328 as_myself=$0
21329fi
21330if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021331 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21332 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021333fi
21334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021335# Work around bugs in pre-3.0 UWIN ksh.
21336for as_var in ENV MAIL MAILPATH
21337do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021338done
21339PS1='$ '
21340PS2='> '
21341PS4='+ '
21342
21343# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344for as_var in \
21345 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21346 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21347 LC_TELEPHONE LC_TIME
21348do
21349 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21350 eval $as_var=C; export $as_var
21351 else
21352 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021353 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021354done
Torok Edwin871384f2010-01-26 08:50:50 +000021355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021357if expr a : '\(a\)' >/dev/null 2>&1 &&
21358 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21359 as_expr=expr
21360else
21361 as_expr=false
21362fi
21363
21364if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21365 as_basename=basename
21366else
21367 as_basename=false
21368fi
21369
21370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021371# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021372as_me=`$as_basename -- "$0" ||
21373$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21374 X"$0" : 'X\(//\)$' \| \
21375 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021376echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021377 sed '/^.*\/\([^/][^/]*\)\/*$/{
21378 s//\1/
21379 q
21380 }
21381 /^X\/\(\/\/\)$/{
21382 s//\1/
21383 q
21384 }
21385 /^X\/\(\/\).*/{
21386 s//\1/
21387 q
21388 }
21389 s/.*/./; q'`
21390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021391# CDPATH.
21392$as_unset CDPATH
21393
21394
21395
21396 as_lineno_1=$LINENO
21397 as_lineno_2=$LINENO
21398 test "x$as_lineno_1" != "x$as_lineno_2" &&
21399 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21400
21401 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21402 # uniformly replaced by the line number. The first 'sed' inserts a
21403 # line-number line after each line using $LINENO; the second 'sed'
21404 # does the real work. The second script uses 'N' to pair each
21405 # line-number line with the line containing $LINENO, and appends
21406 # trailing '-' during substitution so that $LINENO is not a special
21407 # case at line end.
21408 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21409 # scripts with optimization help from Paolo Bonzini. Blame Lee
21410 # E. McMahon (1931-1989) for sed's syntax. :-)
21411 sed -n '
21412 p
21413 /[$]LINENO/=
21414 ' <$as_myself |
21415 sed '
21416 s/[$]LINENO.*/&-/
21417 t lineno
21418 b
21419 :lineno
21420 N
21421 :loop
21422 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21423 t loop
21424 s/-\n.*//
21425 ' >$as_me.lineno &&
21426 chmod +x "$as_me.lineno" ||
21427 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21428 { (exit 1); exit 1; }; }
21429
21430 # Don't try to exec as it changes $[0], causing all sort of problems
21431 # (the dirname of $[0] is not the place where we might find the
21432 # original and so on. Autoconf is especially sensitive to this).
21433 . "./$as_me.lineno"
21434 # Exit status is that of the last command.
21435 exit
21436}
21437
21438
21439if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21440 as_dirname=dirname
21441else
21442 as_dirname=false
21443fi
Reid Spencera773bd52006-08-04 18:18:08 +000021444
21445ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021446case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021447-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021448 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021449 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021450 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021451 esac;;
21452*)
21453 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021454esac
21455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021456if expr a : '\(a\)' >/dev/null 2>&1 &&
21457 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21458 as_expr=expr
21459else
21460 as_expr=false
21461fi
21462
John Criswell7a73b802003-06-30 21:59:07 +000021463rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021464if test -d conf$$.dir; then
21465 rm -f conf$$.dir/conf$$.file
21466else
21467 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021468 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021469fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021470echo >conf$$.file
21471if ln -s conf$$.file conf$$ 2>/dev/null; then
21472 as_ln_s='ln -s'
21473 # ... but there are two gotchas:
21474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21476 # In both cases, we have to default to `cp -p'.
21477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021478 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021479elif ln conf$$.file conf$$ 2>/dev/null; then
21480 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021481else
21482 as_ln_s='cp -p'
21483fi
Reid Spencera773bd52006-08-04 18:18:08 +000021484rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21485rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021486
John Criswell0c38eaf2003-09-10 15:17:25 +000021487if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021488 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021489else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021490 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021491 as_mkdir_p=false
21492fi
21493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021494# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21495# systems may use methods other than mode bits to determine executability.
21496cat >conf$$.file <<_ASEOF
21497#! /bin/sh
21498exit 0
21499_ASEOF
21500chmod +x conf$$.file
21501if test -x conf$$.file >/dev/null 2>&1; then
21502 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021504 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021506rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021507
21508# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021509as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021510
21511# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021512as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021513
21514
John Criswell7a73b802003-06-30 21:59:07 +000021515exec 6>&1
21516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021517# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021518# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021519# values after options handling.
21520ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021521This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021523
21524 CONFIG_FILES = $CONFIG_FILES
21525 CONFIG_HEADERS = $CONFIG_HEADERS
21526 CONFIG_LINKS = $CONFIG_LINKS
21527 CONFIG_COMMANDS = $CONFIG_COMMANDS
21528 $ $0 $@
21529
Reid Spencera773bd52006-08-04 18:18:08 +000021530on `(hostname || uname -n) 2>/dev/null | sed 1q`
21531"
21532
John Criswell7a73b802003-06-30 21:59:07 +000021533_ACEOF
21534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021535cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021536# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021537config_files="$ac_config_files"
21538config_headers="$ac_config_headers"
21539config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021540
Reid Spencera773bd52006-08-04 18:18:08 +000021541_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021543cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021544ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021545\`$as_me' instantiates files from templates according to the
21546current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021548Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021549
21550 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021551 -V, --version print version number, then exit
21552 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021553 -d, --debug don't remove temporary files
21554 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021555 --file=FILE[:TEMPLATE]
21556 instantiate the configuration file FILE
21557 --header=FILE[:TEMPLATE]
21558 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021559
21560Configuration files:
21561$config_files
21562
21563Configuration headers:
21564$config_headers
21565
John Criswellc764fbc2003-09-06 15:17:13 +000021566Configuration commands:
21567$config_commands
21568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021569Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021570
Reid Spencera773bd52006-08-04 18:18:08 +000021571_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021573ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021574llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575configured by $0, generated by GNU Autoconf 2.60,
21576 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021578Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021579This config.status script is free software; the Free Software Foundation
21580gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021581
21582ac_pwd='$ac_pwd'
21583srcdir='$srcdir'
21584INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021585_ACEOF
21586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021587cat >>$CONFIG_STATUS <<\_ACEOF
21588# If no file are specified by the user, then we need to provide default
21589# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021590ac_need_defaults=:
21591while test $# != 0
21592do
21593 case $1 in
21594 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021595 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21596 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021597 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021598 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021599 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021600 ac_option=$1
21601 ac_optarg=$2
21602 ac_shift=shift
21603 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021604 esac
21605
John Criswell0c38eaf2003-09-10 15:17:25 +000021606 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021607 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21609 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021610 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021611 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021612 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021613 debug=: ;;
21614 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021615 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021617 ac_need_defaults=false;;
21618 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021619 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021621 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021622 --he | --h)
21623 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021624 { echo "$as_me: error: ambiguous option: $1
21625Try \`$0 --help' for more information." >&2
21626 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021627 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021628 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21630 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21631 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021632
21633 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021634 -*) { echo "$as_me: error: unrecognized option: $1
21635Try \`$0 --help' for more information." >&2
21636 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021638 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021639 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021640
21641 esac
21642 shift
21643done
21644
John Criswell0c38eaf2003-09-10 15:17:25 +000021645ac_configure_extra_args=
21646
21647if $ac_cs_silent; then
21648 exec 6>/dev/null
21649 ac_configure_extra_args="$ac_configure_extra_args --silent"
21650fi
21651
21652_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021653cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021654if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021655 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21656 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021657 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021658 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021659fi
21660
John Criswell7a73b802003-06-30 21:59:07 +000021661_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021662cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021663exec 5>>config.log
21664{
21665 echo
21666 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21667## Running $as_me. ##
21668_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021669 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021670} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021671
Reid Spencera773bd52006-08-04 18:18:08 +000021672_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021673cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021674#
Reid Spencera773bd52006-08-04 18:18:08 +000021675# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021676#
Reid Spencerc0682832005-02-24 19:05:19 +000021677llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021678
21679_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021681cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021682
21683# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021684for ac_config_target in $ac_config_targets
21685do
Reid Spencera773bd52006-08-04 18:18:08 +000021686 case $ac_config_target in
21687 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021688 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021689 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21690 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021691 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021692 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021693 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021694 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021695 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021696 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21697 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021698 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21699 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21700 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21701 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21702 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21703 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021704 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021705 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21706 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021707 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021708 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21709 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21710 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021711 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21712 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021714 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21715echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21716 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021717 esac
21718done
21719
Reid Spencera773bd52006-08-04 18:18:08 +000021720
John Criswell7a73b802003-06-30 21:59:07 +000021721# If the user did not use the arguments to specify the items to instantiate,
21722# then the envvar interface is used. Set only those that are not.
21723# We use the long form for the default assignment because of an extremely
21724# bizarre bug on SunOS 4.1.3.
21725if $ac_need_defaults; then
21726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021729fi
21730
John Criswell0c38eaf2003-09-10 15:17:25 +000021731# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021732# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021733# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021734# Hook for its removal unless debugging.
21735# Note that there is a small window in which the directory will not be cleaned:
21736# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021737$debug ||
21738{
Reid Spencera773bd52006-08-04 18:18:08 +000021739 tmp=
21740 trap 'exit_status=$?
21741 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21742' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021743 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021744}
John Criswell7a73b802003-06-30 21:59:07 +000021745# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021746
John Criswell7a73b802003-06-30 21:59:07 +000021747{
Reid Spencera773bd52006-08-04 18:18:08 +000021748 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021749 test -n "$tmp" && test -d "$tmp"
21750} ||
21751{
Reid Spencera773bd52006-08-04 18:18:08 +000021752 tmp=./conf$$-$RANDOM
21753 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754} ||
21755{
21756 echo "$me: cannot create a temporary directory in ." >&2
21757 { (exit 1); exit 1; }
21758}
John Criswell7a73b802003-06-30 21:59:07 +000021759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021760#
21761# Set up the sed scripts for CONFIG_FILES section.
21762#
21763
21764# No need to generate the scripts if there are no CONFIG_FILES.
21765# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021766if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021767
21768_ACEOF
21769
Reid Spencera773bd52006-08-04 18:18:08 +000021770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021771
Reid Spencera773bd52006-08-04 18:18:08 +000021772ac_delim='%!_!# '
21773for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021774 cat >conf$$subs.sed <<_ACEOF
21775SHELL!$SHELL$ac_delim
21776PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21777PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21778PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21779PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21780PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21781PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21782exec_prefix!$exec_prefix$ac_delim
21783prefix!$prefix$ac_delim
21784program_transform_name!$program_transform_name$ac_delim
21785bindir!$bindir$ac_delim
21786sbindir!$sbindir$ac_delim
21787libexecdir!$libexecdir$ac_delim
21788datarootdir!$datarootdir$ac_delim
21789datadir!$datadir$ac_delim
21790sysconfdir!$sysconfdir$ac_delim
21791sharedstatedir!$sharedstatedir$ac_delim
21792localstatedir!$localstatedir$ac_delim
21793includedir!$includedir$ac_delim
21794oldincludedir!$oldincludedir$ac_delim
21795docdir!$docdir$ac_delim
21796infodir!$infodir$ac_delim
21797htmldir!$htmldir$ac_delim
21798dvidir!$dvidir$ac_delim
21799pdfdir!$pdfdir$ac_delim
21800psdir!$psdir$ac_delim
21801libdir!$libdir$ac_delim
21802localedir!$localedir$ac_delim
21803mandir!$mandir$ac_delim
21804DEFS!$DEFS$ac_delim
21805ECHO_C!$ECHO_C$ac_delim
21806ECHO_N!$ECHO_N$ac_delim
21807ECHO_T!$ECHO_T$ac_delim
21808LIBS!$LIBS$ac_delim
21809build_alias!$build_alias$ac_delim
21810host_alias!$host_alias$ac_delim
21811target_alias!$target_alias$ac_delim
21812LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021813CC!$CC$ac_delim
21814CFLAGS!$CFLAGS$ac_delim
21815LDFLAGS!$LDFLAGS$ac_delim
21816CPPFLAGS!$CPPFLAGS$ac_delim
21817ac_ct_CC!$ac_ct_CC$ac_delim
21818EXEEXT!$EXEEXT$ac_delim
21819OBJEXT!$OBJEXT$ac_delim
21820CXX!$CXX$ac_delim
21821CXXFLAGS!$CXXFLAGS$ac_delim
21822ac_ct_CXX!$ac_ct_CXX$ac_delim
21823CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021825ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21826LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021827build!$build$ac_delim
21828build_cpu!$build_cpu$ac_delim
21829build_vendor!$build_vendor$ac_delim
21830build_os!$build_os$ac_delim
21831host!$host$ac_delim
21832host_cpu!$host_cpu$ac_delim
21833host_vendor!$host_vendor$ac_delim
21834host_os!$host_os$ac_delim
21835target!$target$ac_delim
21836target_cpu!$target_cpu$ac_delim
21837target_vendor!$target_vendor$ac_delim
21838target_os!$target_os$ac_delim
21839OS!$OS$ac_delim
21840HOST_OS!$HOST_OS$ac_delim
21841TARGET_OS!$TARGET_OS$ac_delim
21842LINKALL!$LINKALL$ac_delim
21843NOLINKALL!$NOLINKALL$ac_delim
21844LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21845LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21846ARCH!$ARCH$ac_delim
21847ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021848GREP!$GREP$ac_delim
21849EGREP!$EGREP$ac_delim
21850LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21851BUILD_CC!$BUILD_CC$ac_delim
21852BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21853BUILD_CXX!$BUILD_CXX$ac_delim
21854CVSBUILD!$CVSBUILD$ac_delim
21855ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21856ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21857DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21858ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21859EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21860DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21861DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21862JIT!$JIT$ac_delim
21863TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021864ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021865ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21866ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021867ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021868ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021869ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021870ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021871ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021874 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021875 break
21876 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021877 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21878echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21879 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021880 else
21881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021882 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021883done
21884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021885ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21886if test -n "$ac_eof"; then
21887 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21888 ac_eof=`expr $ac_eof + 1`
21889fi
21890
21891cat >>$CONFIG_STATUS <<_ACEOF
21892cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21893/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021894_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021895sed '
21896s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21897s/^/s,@/; s/!/@,|#_!!_#|/
21898:n
21899t n
21900s/'"$ac_delim"'$/,g/; t
21901s/$/\\/; p
21902N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21903' >>$CONFIG_STATUS <conf$$subs.sed
21904rm -f conf$$subs.sed
21905cat >>$CONFIG_STATUS <<_ACEOF
21906CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021907_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021908
21909
21910ac_delim='%!_!# '
21911for ac_last_try in false false false false false :; do
21912 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000021913TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21914LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21915LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021916LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021917LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021918ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021919OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021920EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021921EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021922CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021923BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021924NM!$NM$ac_delim
21925ifGNUmake!$ifGNUmake$ac_delim
21926LN_S!$LN_S$ac_delim
21927CMP!$CMP$ac_delim
21928CP!$CP$ac_delim
21929DATE!$DATE$ac_delim
21930FIND!$FIND$ac_delim
21931MKDIR!$MKDIR$ac_delim
21932MV!$MV$ac_delim
21933RANLIB!$RANLIB$ac_delim
21934AR!$AR$ac_delim
21935RM!$RM$ac_delim
21936SED!$SED$ac_delim
21937TAR!$TAR$ac_delim
21938BINPWD!$BINPWD$ac_delim
21939GRAPHVIZ!$GRAPHVIZ$ac_delim
21940DOT!$DOT$ac_delim
21941FDP!$FDP$ac_delim
21942NEATO!$NEATO$ac_delim
21943TWOPI!$TWOPI$ac_delim
21944CIRCO!$CIRCO$ac_delim
21945GV!$GV$ac_delim
21946DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021947XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021948PERL!$PERL$ac_delim
21949HAVE_PERL!$HAVE_PERL$ac_delim
21950INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21951INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21952INSTALL_DATA!$INSTALL_DATA$ac_delim
21953BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021954CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021955DOXYGEN!$DOXYGEN$ac_delim
21956GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021957GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958POD2HTML!$POD2HTML$ac_delim
21959POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021960PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021961RUNTEST!$RUNTEST$ac_delim
21962TCLSH!$TCLSH$ac_delim
21963ZIP!$ZIP$ac_delim
21964OCAMLC!$OCAMLC$ac_delim
21965OCAMLOPT!$OCAMLOPT$ac_delim
21966OCAMLDEP!$OCAMLDEP$ac_delim
21967OCAMLDOC!$OCAMLDOC$ac_delim
21968GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021969HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021970INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21971INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21972CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21973CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21974LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021975NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21976NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21977USE_UDIS86!$USE_UDIS86$ac_delim
21978USE_OPROFILE!$USE_OPROFILE$ac_delim
21979HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21980HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21981MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021982SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021983SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021984LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21985LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21986LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21987LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21988LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21989LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21990LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21991LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21992LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21993LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21994BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21995ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000021996OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21997ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21998RPATH!$RPATH$ac_delim
21999RDYNAMIC!$RDYNAMIC$ac_delim
22000LIBOBJS!$LIBOBJS$ac_delim
22001LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022002_ACEOF
22003
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022004 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022005 break
22006 elif $ac_last_try; then
22007 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22008echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22009 { (exit 1); exit 1; }; }
22010 else
22011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22012 fi
22013done
22014
22015ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22016if test -n "$ac_eof"; then
22017 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22018 ac_eof=`expr $ac_eof + 1`
22019fi
22020
22021cat >>$CONFIG_STATUS <<_ACEOF
22022cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22024_ACEOF
22025sed '
22026s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22027s/^/s,@/; s/!/@,|#_!!_#|/
22028:n
22029t n
22030s/'"$ac_delim"'$/,g/; t
22031s/$/\\/; p
22032N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22033' >>$CONFIG_STATUS <conf$$subs.sed
22034rm -f conf$$subs.sed
22035cat >>$CONFIG_STATUS <<_ACEOF
22036:end
22037s/|#_!!_#|//g
22038CEOF$ac_eof
22039_ACEOF
22040
22041
Reid Spencera773bd52006-08-04 18:18:08 +000022042# VPATH may cause trouble with some makes, so we remove $(srcdir),
22043# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22044# trailing colons and then remove the whole line if VPATH becomes empty
22045# (actually we leave an empty line to preserve line numbers).
22046if test "x$srcdir" = x.; then
22047 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22048s/:*\$(srcdir):*/:/
22049s/:*\${srcdir}:*/:/
22050s/:*@srcdir@:*/:/
22051s/^\([^=]*=[ ]*\):*/\1/
22052s/:*$//
22053s/^[^=]*=[ ]*$//
22054}'
22055fi
22056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022057cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022058fi # test -n "$CONFIG_FILES"
22059
Reid Spencera773bd52006-08-04 18:18:08 +000022060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022061for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022062do
22063 case $ac_tag in
22064 :[FHLC]) ac_mode=$ac_tag; continue;;
22065 esac
22066 case $ac_mode$ac_tag in
22067 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022068 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22069echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22070 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022071 :[FH]-) ac_tag=-:-;;
22072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22073 esac
22074 ac_save_IFS=$IFS
22075 IFS=:
22076 set x $ac_tag
22077 IFS=$ac_save_IFS
22078 shift
22079 ac_file=$1
22080 shift
22081
22082 case $ac_mode in
22083 :L) ac_source=$1;;
22084 :[FH])
22085 ac_file_inputs=
22086 for ac_f
22087 do
22088 case $ac_f in
22089 -) ac_f="$tmp/stdin";;
22090 *) # Look for the file first in the build tree, then in the source tree
22091 # (if the path is not absolute). The absolute path cannot be DOS-style,
22092 # because $ac_f cannot contain `:'.
22093 test -f "$ac_f" ||
22094 case $ac_f in
22095 [\\/$]*) false;;
22096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22097 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22099echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22100 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022101 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022102 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022103 done
22104
22105 # Let's still pretend it is `configure' which instantiates (i.e., don't
22106 # use $as_me), people would be surprised to read:
22107 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022108 configure_input="Generated from "`IFS=:
22109 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022110 if test x"$ac_file" != x-; then
22111 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022112 { echo "$as_me:$LINENO: creating $ac_file" >&5
22113echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022114 fi
22115
22116 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022117 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022118 esac
22119 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022120 esac
22121
Reid Spencera773bd52006-08-04 18:18:08 +000022122 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022123$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022124 X"$ac_file" : 'X\(//\)[^/]' \| \
22125 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022126 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022127echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22129 s//\1/
22130 q
22131 }
22132 /^X\(\/\/\)[^/].*/{
22133 s//\1/
22134 q
22135 }
22136 /^X\(\/\/\)$/{
22137 s//\1/
22138 q
22139 }
22140 /^X\(\/\).*/{
22141 s//\1/
22142 q
22143 }
22144 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022145 { as_dir="$ac_dir"
22146 case $as_dir in #(
22147 -*) as_dir=./$as_dir;;
22148 esac
22149 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22150 as_dirs=
22151 while :; do
22152 case $as_dir in #(
22153 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22154 *) as_qdir=$as_dir;;
22155 esac
22156 as_dirs="'$as_qdir' $as_dirs"
22157 as_dir=`$as_dirname -- "$as_dir" ||
22158$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22159 X"$as_dir" : 'X\(//\)[^/]' \| \
22160 X"$as_dir" : 'X\(//\)$' \| \
22161 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22162echo X"$as_dir" |
22163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22164 s//\1/
22165 q
22166 }
22167 /^X\(\/\/\)[^/].*/{
22168 s//\1/
22169 q
22170 }
22171 /^X\(\/\/\)$/{
22172 s//\1/
22173 q
22174 }
22175 /^X\(\/\).*/{
22176 s//\1/
22177 q
22178 }
22179 s/.*/./; q'`
22180 test -d "$as_dir" && break
22181 done
22182 test -z "$as_dirs" || eval "mkdir $as_dirs"
22183 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22184echo "$as_me: error: cannot create directory $as_dir" >&2;}
22185 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022186 ac_builddir=.
22187
Reid Spencera773bd52006-08-04 18:18:08 +000022188case "$ac_dir" in
22189.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22190*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022192 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022193 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022194 case $ac_top_builddir_sub in
22195 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22196 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22197 esac ;;
22198esac
22199ac_abs_top_builddir=$ac_pwd
22200ac_abs_builddir=$ac_pwd$ac_dir_suffix
22201# for backward compatibility:
22202ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022203
22204case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022205 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022206 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022207 ac_top_srcdir=$ac_top_builddir_sub
22208 ac_abs_top_srcdir=$ac_pwd ;;
22209 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022210 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022211 ac_top_srcdir=$srcdir
22212 ac_abs_top_srcdir=$srcdir ;;
22213 *) # Relative name.
22214 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22215 ac_top_srcdir=$ac_top_build_prefix$srcdir
22216 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022217esac
Reid Spencera773bd52006-08-04 18:18:08 +000022218ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022219
John Criswell7a73b802003-06-30 21:59:07 +000022220
Reid Spencera773bd52006-08-04 18:18:08 +000022221 case $ac_mode in
22222 :F)
22223 #
22224 # CONFIG_FILE
22225 #
John Criswell7a73b802003-06-30 21:59:07 +000022226
22227 case $INSTALL in
22228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022229 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022230 esac
John Criswell7a73b802003-06-30 21:59:07 +000022231_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022233cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022234# If the template does not know about datarootdir, expand it.
22235# FIXME: This hack should be removed a few years after 2.60.
22236ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022237
22238case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022239 p
22240 q
22241}
22242/@datadir@/p
22243/@docdir@/p
22244/@infodir@/p
22245/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022246/@mandir@/p
22247' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022248*datarootdir*) ac_datarootdir_seen=yes;;
22249*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022250 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22251echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022252_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022253cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022254 ac_datarootdir_hack='
22255 s&@datadir@&$datadir&g
22256 s&@docdir@&$docdir&g
22257 s&@infodir@&$infodir&g
22258 s&@localedir@&$localedir&g
22259 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022260 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022261esac
22262_ACEOF
22263
22264# Neutralize VPATH when `$srcdir' = `.'.
22265# Shell code in configure.ac might set extrasub.
22266# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022267cat >>$CONFIG_STATUS <<_ACEOF
22268 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022269$extrasub
22270_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022271cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022272:t
22273/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022274s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022275s&@top_builddir@&$ac_top_builddir_sub&;t t
22276s&@srcdir@&$ac_srcdir&;t t
22277s&@abs_srcdir@&$ac_abs_srcdir&;t t
22278s&@top_srcdir@&$ac_top_srcdir&;t t
22279s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22280s&@builddir@&$ac_builddir&;t t
22281s&@abs_builddir@&$ac_abs_builddir&;t t
22282s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22283s&@INSTALL@&$ac_INSTALL&;t t
22284$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022285" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022286
Reid Spencera773bd52006-08-04 18:18:08 +000022287test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22288 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290 { echo "$as_me:$LINENO: 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." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022292echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022293which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022294
Reid Spencera773bd52006-08-04 18:18:08 +000022295 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022296 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022297 -) cat "$tmp/out"; rm -f "$tmp/out";;
22298 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22299 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022300 ;;
22301 :H)
22302 #
22303 # CONFIG_HEADER
22304 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022305_ACEOF
22306
22307# Transform confdefs.h into a sed script `conftest.defines', that
22308# substitutes the proper values into config.h.in to produce config.h.
22309rm -f conftest.defines conftest.tail
22310# First, append a space to every undef/define line, to ease matching.
22311echo 's/$/ /' >conftest.defines
22312# Then, protect against being on the right side of a sed subst, or in
22313# an unquoted here document, in config.status. If some macros were
22314# called several times there might be several #defines for the same
22315# symbol, which is useless. But do not sort them, since the last
22316# AC_DEFINE must be honored.
22317ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22318# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22319# NAME is the cpp macro being defined, VALUE is the value it is being given.
22320# PARAMS is the parameter list in the macro definition--in most cases, it's
22321# just an empty string.
22322ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22323ac_dB='\\)[ (].*,\\1define\\2'
22324ac_dC=' '
22325ac_dD=' ,'
22326
22327uniq confdefs.h |
22328 sed -n '
22329 t rset
22330 :rset
22331 s/^[ ]*#[ ]*define[ ][ ]*//
22332 t ok
22333 d
22334 :ok
22335 s/[\\&,]/\\&/g
22336 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22337 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22338 ' >>conftest.defines
22339
22340# Remove the space that was appended to ease matching.
22341# Then replace #undef with comments. This is necessary, for
22342# example, in the case of _POSIX_SOURCE, which is predefined and required
22343# on some systems where configure will not decide to define it.
22344# (The regexp can be short, since the line contains either #define or #undef.)
22345echo 's/ $//
22346s,^[ #]*u.*,/* & */,' >>conftest.defines
22347
22348# Break up conftest.defines:
22349ac_max_sed_lines=50
22350
22351# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22352# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22353# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22354# et cetera.
22355ac_in='$ac_file_inputs'
22356ac_out='"$tmp/out1"'
22357ac_nxt='"$tmp/out2"'
22358
22359while :
22360do
22361 # Write a here document:
22362 cat >>$CONFIG_STATUS <<_ACEOF
22363 # First, check the format of the line:
22364 cat >"\$tmp/defines.sed" <<\\CEOF
22365/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22366/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22367b
22368:def
22369_ACEOF
22370 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22371 echo 'CEOF
22372 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22373 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22374 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22375 grep . conftest.tail >/dev/null || break
22376 rm -f conftest.defines
22377 mv conftest.tail conftest.defines
22378done
22379rm -f conftest.defines conftest.tail
22380
22381echo "ac_result=$ac_in" >>$CONFIG_STATUS
22382cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022383 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022384 echo "/* $configure_input */" >"$tmp/config.h"
22385 cat "$ac_result" >>"$tmp/config.h"
22386 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22387 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22388echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022389 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022390 rm -f $ac_file
22391 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022392 fi
22393 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022394 echo "/* $configure_input */"
22395 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022396 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022397 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022398 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022400 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22401echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022402 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022403 esac
John Criswell7a73b802003-06-30 21:59:07 +000022404
Reid Spencera773bd52006-08-04 18:18:08 +000022405
22406 case $ac_file$ac_mode in
22407 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022408 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022409 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022410 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022411 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022412 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022413 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022414 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022415 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022416 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022417 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022418 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022419 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022420 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022421 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022422 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022423 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022425 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022427 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022429 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022430 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022431 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022432 ${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 +000022433
22434 esac
22435done # for ac_tag
22436
John Criswell7a73b802003-06-30 21:59:07 +000022437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022438{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022440chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022441ac_clean_files=$ac_clean_files_save
22442
22443
22444# configure is writing to config.log, and then calls config.status.
22445# config.status does its own redirection, appending to config.log.
22446# Unfortunately, on DOS this fails, as config.log is still kept open
22447# by configure, so config.status won't be able to write to it; its
22448# output is simply discarded. So we exec the FD to /dev/null,
22449# effectively closing config.log, so it can be properly (re)opened and
22450# appended to by config.status. When coming back to configure, we
22451# need to make the FD available again.
22452if test "$no_create" != yes; then
22453 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022454 ac_config_status_args=
22455 test "$silent" = yes &&
22456 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022457 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022459 exec 5>>config.log
22460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22461 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022462 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022463fi
22464
John Criswell12399a12003-09-30 15:55:44 +000022465#
22466# CONFIG_SUBDIRS section.
22467#
22468if test "$no_recursion" != yes; then
22469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022470 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022471 ac_sub_configure_args=
22472 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022473 eval "set x $ac_configure_args"
22474 shift
22475 for ac_arg
22476 do
John Criswell12399a12003-09-30 15:55:44 +000022477 if test -n "$ac_prev"; then
22478 ac_prev=
22479 continue
22480 fi
22481 case $ac_arg in
22482 -cache-file | --cache-file | --cache-fil | --cache-fi \
22483 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22484 ac_prev=cache_file ;;
22485 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22486 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22487 | --c=*)
22488 ;;
22489 --config-cache | -C)
22490 ;;
22491 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22492 ac_prev=srcdir ;;
22493 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22494 ;;
22495 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22496 ac_prev=prefix ;;
22497 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22498 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022499 *)
22500 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022501 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022502 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022503 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022504 esac
22505 done
22506
22507 # Always prepend --prefix to ensure using the same prefix
22508 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022509 ac_arg="--prefix=$prefix"
22510 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022511 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022512 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022513 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022514
22515 ac_popdir=`pwd`
22516 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22517
22518 # Do not complain, so a configure script can configure whichever
22519 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022520 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022521
Reid Spencera773bd52006-08-04 18:18:08 +000022522 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022523 echo "$as_me:$LINENO: $ac_msg" >&5
22524 echo "$ac_msg" >&6
22525 { as_dir="$ac_dir"
22526 case $as_dir in #(
22527 -*) as_dir=./$as_dir;;
22528 esac
22529 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22530 as_dirs=
22531 while :; do
22532 case $as_dir in #(
22533 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22534 *) as_qdir=$as_dir;;
22535 esac
22536 as_dirs="'$as_qdir' $as_dirs"
22537 as_dir=`$as_dirname -- "$as_dir" ||
22538$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22539 X"$as_dir" : 'X\(//\)[^/]' \| \
22540 X"$as_dir" : 'X\(//\)$' \| \
22541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22542echo X"$as_dir" |
22543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22544 s//\1/
22545 q
22546 }
22547 /^X\(\/\/\)[^/].*/{
22548 s//\1/
22549 q
22550 }
22551 /^X\(\/\/\)$/{
22552 s//\1/
22553 q
22554 }
22555 /^X\(\/\).*/{
22556 s//\1/
22557 q
22558 }
22559 s/.*/./; q'`
22560 test -d "$as_dir" && break
22561 done
22562 test -z "$as_dirs" || eval "mkdir $as_dirs"
22563 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22564echo "$as_me: error: cannot create directory $as_dir" >&2;}
22565 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022566 ac_builddir=.
22567
Reid Spencera773bd52006-08-04 18:18:08 +000022568case "$ac_dir" in
22569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22570*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022572 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022573 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022574 case $ac_top_builddir_sub in
22575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22577 esac ;;
22578esac
22579ac_abs_top_builddir=$ac_pwd
22580ac_abs_builddir=$ac_pwd$ac_dir_suffix
22581# for backward compatibility:
22582ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022583
22584case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022585 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022586 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022587 ac_top_srcdir=$ac_top_builddir_sub
22588 ac_abs_top_srcdir=$ac_pwd ;;
22589 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022590 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022591 ac_top_srcdir=$srcdir
22592 ac_abs_top_srcdir=$srcdir ;;
22593 *) # Relative name.
22594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22595 ac_top_srcdir=$ac_top_build_prefix$srcdir
22596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022597esac
Reid Spencera773bd52006-08-04 18:18:08 +000022598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022599
22600
Reid Spencera773bd52006-08-04 18:18:08 +000022601 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022602
22603 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022604 if test -f "$ac_srcdir/configure.gnu"; then
22605 ac_sub_configure=$ac_srcdir/configure.gnu
22606 elif test -f "$ac_srcdir/configure"; then
22607 ac_sub_configure=$ac_srcdir/configure
22608 elif test -f "$ac_srcdir/configure.in"; then
22609 # This should be Cygnus configure.
22610 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022611 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022612 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22613echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022614 ac_sub_configure=
22615 fi
22616
22617 # The recursion is here.
22618 if test -n "$ac_sub_configure"; then
22619 # Make the cache file name correct relative to the subdirectory.
22620 case $cache_file in
22621 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022622 *) # Relative name.
22623 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022624 esac
22625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022626 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22627echo "$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 +000022628 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022629 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22630 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022631 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22632echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22633 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022634 fi
22635
Reid Spencera773bd52006-08-04 18:18:08 +000022636 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022637 done
22638fi
22639